/* ==========================================================================
   Metayb Contact Modal Styles (Static Pages)
   ========================================================================== */

#metayb-contact-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999999;
  background: rgba(3, 7, 18, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  font-family: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

#metayb-contact-modal-overlay.mcm-active {
  opacity: 1;
  visibility: visible;
}

#metayb-contact-modal-card {
  position: relative;
  margin: auto;
  background: rgba(8, 14, 30, 0.98);
  border: 1px solid rgba(0, 101, 253, 0.32);
  border-radius: 18px;
  width: 100%;
  max-width: 680px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 36px 36px 32px;
  box-sizing: border-box;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85), 0 0 45px rgba(0, 101, 253, 0.16);
  transform: scale(0.94) translateY(12px);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  color: #ffffff;
}

/* Custom scrollbars */
#metayb-contact-modal-card::-webkit-scrollbar,
.mcm-assist-menu::-webkit-scrollbar,
#metayb-contact-modal-overlay::-webkit-scrollbar {
  width: 6px;
}

#metayb-contact-modal-card::-webkit-scrollbar-track,
.mcm-assist-menu::-webkit-scrollbar-track,
#metayb-contact-modal-overlay::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
}

#metayb-contact-modal-card::-webkit-scrollbar-thumb,
.mcm-assist-menu::-webkit-scrollbar-thumb,
#metayb-contact-modal-overlay::-webkit-scrollbar-thumb {
  background: rgba(0, 165, 235, 0.45);
  border-radius: 4px;
}

#metayb-contact-modal-card::-webkit-scrollbar-thumb:hover,
.mcm-assist-menu::-webkit-scrollbar-thumb:hover,
#metayb-contact-modal-overlay::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 165, 235, 0.7);
}

#metayb-contact-modal-card,
.mcm-assist-menu,
#metayb-contact-modal-overlay {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 165, 235, 0.45) rgba(255, 255, 255, 0.04);
}

#metayb-contact-modal-overlay.mcm-active #metayb-contact-modal-card {
  transform: scale(1) translateY(0);
}

#metayb-contact-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

#metayb-contact-modal-close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  transform: scale(1.06);
}

.mcm-header {
  margin-bottom: 26px;
}

.mcm-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #00A5EB;
  margin-bottom: 8px;
}

.mcm-title {
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  margin: 0 0 6px;
}

.mcm-subtitle {
  font-size: 0.88rem;
  color: rgba(226, 232, 255, 0.65);
  margin: 0;
}

/* Grid form */
.mcm-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mcm-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .mcm-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  #metayb-contact-modal-card {
    padding: 26px 20px 24px;
  }
}

.mcm-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mcm-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(226, 232, 255, 0.85);
  letter-spacing: 0.02em;
}

.mcm-req {
  color: #ff4d6d;
}

.mcm-input,
.mcm-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 0.88rem;
  font-family: inherit;
  color: #ffffff;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.mcm-input::placeholder,
.mcm-textarea::placeholder {
  color: rgba(255, 255, 255, 0.32);
}

.mcm-input:focus,
.mcm-textarea:focus {
  background: rgba(0, 101, 253, 0.08);
  border-color: #00A5EB;
  box-shadow: 0 0 14px rgba(0, 165, 235, 0.25);
}

.mcm-textarea {
  resize: vertical;
  min-height: 84px;
}

/* Phone Field */
.mcm-phone-wrap {
  display: flex;
  gap: 8px;
}

.mcm-country-select {
  width: 105px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  color: #ffffff;
  padding: 0 10px;
  font-size: 0.84rem;
  font-family: inherit;
  cursor: pointer;
  outline: none;
}
.mcm-country-select option {
  background: #080e1e;
  color: #ffffff;
}

/* Assist Dropdown */
.mcm-dropdown-btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 0.88rem;
  font-family: inherit;
  color: #ffffff;
  outline: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.mcm-dropdown-btn:focus,
.mcm-dropdown-btn.open {
  border-color: #00A5EB;
}

.mcm-dropdown-btn .mcm-arrow {
  width: 10px;
  height: 6px;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.mcm-dropdown-btn.open .mcm-arrow {
  transform: rotate(180deg);
}

.mcm-assist-menu {
  display: none;
  background: rgba(10, 18, 38, 0.98);
  border: 1px solid rgba(0, 101, 253, 0.35);
  border-radius: 12px;
  margin-top: 6px;
  padding: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75);
  max-height: 220px;
  overflow-y: auto;
}

.mcm-assist-menu.open {
  display: block;
}

.mcm-assist-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.mcm-assist-opt:hover {
  background: rgba(0, 101, 253, 0.15);
  color: #ffffff;
}

.mcm-assist-opt.selected {
  background: rgba(0, 165, 235, 0.18);
  color: #00dadb;
  font-weight: 600;
}

.mcm-assist-opt:focus-visible {
  outline: 2px solid #00a5eb;
  outline-offset: 2px;
}

.mcm-checkbox-icon {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.mcm-assist-opt.selected .mcm-checkbox-icon {
  background: #0065FD;
  border-color: #0065FD;
}

/* Checkboxes */
.mcm-check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 4px;
}

.mcm-check-row input[type="checkbox"] {
  margin-top: 3px;
  cursor: pointer;
  accent-color: #0065FD;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.mcm-check-label {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.45;
  cursor: pointer;
}

.mcm-check-label a {
  color: #00A5EB;
  text-decoration: none;
}
.mcm-check-label a:hover {
  text-decoration: underline;
}

/* Error messages */
.mcm-error-inline {
  font-size: 0.72rem;
  color: #ff4d6d;
  display: none;
}
.mcm-error-inline.show {
  display: block;
}

.mcm-banner-error {
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 77, 109, 0.15);
  border: 1px solid rgba(255, 77, 109, 0.4);
  color: #ff859c;
  font-size: 0.82rem;
  display: none;
}
.mcm-banner-error.show {
  display: block;
}

/* Success message */
.mcm-banner-success {
  padding: 24px;
  border-radius: 14px;
  background: rgba(0, 165, 235, 0.12);
  border: 1px solid rgba(0, 165, 235, 0.4);
  color: #ffffff;
  text-align: center;
  display: none;
}
.mcm-banner-success.show {
  display: block;
}
.mcm-success-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #00dadb;
  margin: 0 0 8px;
}
.mcm-success-desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* Submit Button */
.mcm-submit-btn {
  width: 100%;
  padding: 13px 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, #00A5EB 0%, #0065FD 100%);
  border: 1px solid rgba(111, 168, 255, 0.4);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0, 101, 253, 0.38);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mcm-submit-btn:hover:not(:disabled) {
  transform: translateY(-1.5px);
  box-shadow: 0 8px 30px rgba(0, 101, 253, 0.55);
}

.mcm-submit-btn:disabled {
  background: #64748b;
  border-color: #64748b;
  box-shadow: none;
  opacity: 1;
  cursor: not-allowed;
  transform: none;
}

.mcm-submit-btn.mcm-submit-btn--ready:not(:disabled) {
  background: linear-gradient(135deg, #00A5EB 0%, #0065FD 100%);
  border-color: rgba(111, 168, 255, 0.4);
  box-shadow: 0 6px 24px rgba(0, 101, 253, 0.38);
}

.mcm-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: mcm-spin 0.7s linear infinite;
  display: none;
}
.mcm-spinner.show {
  display: inline-block;
}

@keyframes mcm-spin {
  to { transform: rotate(360deg); }
}
