/* === Contact / CTA Section === */

.fda-contact-section {
  /* Scoped local variables */
  --contact-purple-accent: #8b5cf6;
  --contact-purple-light: #c4b5fd;
  --contact-card-bg: rgba(255, 255, 255, 0.04);
  --contact-card-border: rgba(139, 92, 246, 0.18);
  --contact-card-glow: rgba(139, 92, 246, 0.12);
  --contact-input-border: rgba(255, 255, 255, 0.15);
  --contact-input-focus: rgba(139, 92, 246, 0.6);
  --contact-text-light: #f8fafc;
  --contact-text-muted: #94a3b8;
  --contact-field-bg: transparent;

  position: relative;
  background-color: #000000 !important;
  color: var(--contact-text-light);
  padding: 120px 0;
  overflow: hidden;
  z-index: 10;
}

/* Scroll entrance reveal */
.fda-contact-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.fda-contact-section.active .fda-contact-reveal {
  opacity: 1;
  transform: translateY(0);
}

/* === Layout === */

.fda-contact-grid {
  display: grid;
  grid-template-columns: 58% 1fr;
  gap: 48px;
  align-items: start;
}

/* Left column */
.fda-contact-left {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.fda-contact-heading {
  font-family: var(--font-primary, sans-serif);
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--contact-text-light);
  margin: 0;
  transition: color var(--transition-fast, 0.2s ease);
}

.fda-contact-subtext {
  font-family: var(--font-secondary, 'Inter', sans-serif);
  font-size: 16px;
  line-height: 1.7;
  color: var(--contact-text-muted);
  max-width: 520px;
  margin: -16px 0 0 0;
  transition: color var(--transition-fast, 0.2s ease);
}

/* === Map & Location === */

.fda-contact-map-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--contact-card-border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.fda-contact-map-wrap iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: none;
  border-radius: 16px;
  /* No filter — show standard white Google Maps as-is */
}

/* "Open in Maps" pill button — absolute top-left over the map */
.fda-contact-map-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  font-family: var(--font-secondary, 'Inter', sans-serif);
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
  z-index: 5;
  min-height: 36px;
}

.fda-contact-map-pill:hover {
  background-color: #ffffff;
  transform: scale(1.03);
  color: #0f172a;
}

.fda-contact-map-pill svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-width: 2.2px;
  flex-shrink: 0;
}

/* Location block below the map */
.fda-contact-location {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.fda-contact-flag {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.12);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  background-color: rgba(255, 255, 255, 0.04);
}

.fda-contact-location-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fda-contact-country {
  font-family: var(--font-primary, sans-serif);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--contact-text-light);
  margin: 0;
  transition: color var(--transition-fast, 0.2s ease);
}

.fda-contact-address {
  font-family: var(--font-secondary, 'Inter', sans-serif);
  font-size: 14px;
  line-height: 1.6;
  color: var(--contact-text-muted);
  margin: 0;
  transition: color var(--transition-fast, 0.2s ease);
}

/* === Form Card === */

.fda-contact-right {
  position: sticky;
  top: 100px; /* Sticks while scrolling through left content */
}

.fda-contact-card {
  background: var(--contact-card-bg);
  border: 1px solid var(--contact-card-border);
  border-radius: 24px;
  padding: 40px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--contact-card-border) inset, 0 0 40px var(--contact-card-glow);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.fda-contact-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 60px var(--contact-card-glow);
}

.fda-contact-card-title {
  font-family: var(--font-primary, sans-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--contact-text-light);
  margin: 0 0 28px 0;
  letter-spacing: -0.01em;
  transition: color var(--transition-fast, 0.2s ease);
}

/* === Form Fields === */

/* <!-- FORM: Add submission action URL or JS handler to this form element --> */
#fda-contact-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.fda-contact-field {
  position: relative;
  padding: 14px 0;
  border-bottom: 1px solid var(--contact-input-border);
  transition: border-color 0.3s ease;
}

.fda-contact-field:last-of-type {
  border-bottom: none;
  margin-bottom: 28px;
}

.fda-contact-field:focus-within {
  border-bottom-color: var(--contact-purple-accent);
}

.fda-contact-label {
  display: block;
  font-family: var(--font-secondary, 'Inter', sans-serif);
  font-size: 13px;
  font-weight: 500;
  color: var(--contact-text-muted);
  margin-bottom: 6px;
  transition: color var(--transition-fast, 0.2s ease);
}

.fda-contact-field:focus-within .fda-contact-label {
  color: var(--contact-purple-light);
}

.fda-contact-input,
.fda-contact-textarea {
  width: 100%;
  background: var(--contact-field-bg);
  border: none;
  outline: none;
  font-family: var(--font-secondary, 'Inter', sans-serif);
  font-size: 15px;
  font-weight: 400;
  color: var(--contact-text-light);
  padding: 0;
  transition: color var(--transition-fast, 0.2s ease);
}

.fda-contact-input::placeholder,
.fda-contact-textarea::placeholder {
  color: rgba(148, 163, 184, 0.4);
}

.fda-contact-textarea {
  resize: none;
  min-height: 72px;
  line-height: 1.6;
}

/* Mobile number field — country code + input inline */
.fda-contact-phone-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fda-contact-country-code {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 0;
  font-family: var(--font-secondary, 'Inter', sans-serif);
  font-size: 15px;
  font-weight: 500;
  color: var(--contact-text-light);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color var(--transition-fast, 0.2s ease);
}

.fda-contact-country-code select {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.fda-contact-code-display {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.fda-contact-code-display svg {
  width: 12px;
  height: 12px;
  stroke: var(--contact-text-muted);
  stroke-width: 2px;
  flex-shrink: 0;
}

.fda-contact-code-divider {
  width: 1px;
  height: 18px;
  background-color: var(--contact-input-border);
  flex-shrink: 0;
}

/* Submit Button */
.fda-contact-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 32px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  color: #ffffff;
  font-family: var(--font-primary, sans-serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.3s ease;
  box-shadow: 0 4px 24px rgba(139, 92, 246, 0.35);
  min-height: 52px;
}

.fda-contact-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.5);
  background: linear-gradient(135deg, #9d72f8 0%, #7c3aed 100%);
}

.fda-contact-submit:active {
  transform: translateY(0);
}

/* === LIGHT THEME OVERRIDES === */

[data-theme="light"] .fda-contact-section {
  background-color: #f3f0ff !important;
  color: #0f172a;
}

[data-theme="light"] .fda-contact-heading {
  color: #0f172a;
}

[data-theme="light"] .fda-contact-subtext {
  color: #475569;
}

[data-theme="light"] .fda-contact-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(108, 93, 211, 0.2);
  box-shadow: 0 20px 60px rgba(108, 93, 211, 0.1), 0 0 40px rgba(108, 93, 211, 0.06);
}

[data-theme="light"] .fda-contact-card-title {
  color: #0f172a;
}

[data-theme="light"] .fda-contact-label {
  color: #64748b;
}

[data-theme="light"] .fda-contact-input,
[data-theme="light"] .fda-contact-textarea,
[data-theme="light"] .fda-contact-country-code {
  color: #0f172a;
}

[data-theme="light"] .fda-contact-input::placeholder,
[data-theme="light"] .fda-contact-textarea::placeholder {
  color: rgba(100, 116, 139, 0.5);
}

[data-theme="light"] .fda-contact-field {
  border-bottom-color: rgba(108, 93, 211, 0.2);
}

[data-theme="light"] .fda-contact-country {
  color: #0f172a;
}

[data-theme="light"] .fda-contact-address {
  color: #475569;
}

[data-theme="light"] .fda-contact-map-wrap {
  border-color: rgba(108, 93, 211, 0.2);
}

[data-theme="light"] .fda-contact-map-wrap iframe {
  /* Already clean white — no override needed */
}

/* === Responsive === */

/* Tablet — stack to single column */
@media (max-width: 1024px) {
  .fda-contact-section {
    padding: 100px 0;
  }

  .fda-contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .fda-contact-right {
    position: static; /* Remove sticky stacking behavior */
  }

  .fda-contact-heading {
    font-size: 36px;
  }
}

/* Mobile */
@media (max-width: 767.98px) {
  .fda-contact-section {
    padding: 80px 0;
  }

  .fda-contact-heading {
    font-size: 28px;
  }

  .fda-contact-map-wrap iframe {
    height: 240px;
  }

  .fda-contact-card {
    padding: 28px 24px;
  }

  .fda-contact-card-title {
    font-size: 19px;
  }
}

@media (max-width: 575.98px) {
  .fda-contact-heading {
    font-size: 26px;
  }

  /* Phone field wraps gracefully on very small screens */
  .fda-contact-phone-row {
    flex-wrap: wrap;
  }

  .fda-contact-code-divider {
    display: none;
  }
}

/* === Accessibility: prefers-reduced-motion === */

@media (prefers-reduced-motion: reduce) {
  .fda-contact-section * {
    transition: none !important;
    animation: none !important;
  }
}

/* === Quick Contact Channels === */
.fda-contact-channels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
}

.fda-contact-channel-card {
  background: var(--contact-card-bg);
  border: 1px solid var(--contact-card-border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.fda-contact-channel-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 15px 35px rgba(139, 92, 246, 0.15);
}

.fda-contact-channel-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(108, 93, 211, 0.12);
  color: var(--contact-purple-accent);
}

.fda-contact-channel-icon svg {
  width: 22px;
  height: 22px;
}

.fda-contact-channel-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fda-contact-channel-info h4 {
  font-family: var(--font-primary, sans-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--contact-text-light);
  margin: 0;
}

.fda-contact-channel-info a,
.fda-contact-channel-info span {
  font-family: var(--font-secondary, 'Inter', sans-serif);
  font-size: 13.5px;
  color: var(--contact-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.fda-contact-channel-info a:hover {
  color: var(--contact-purple-light);
}

[data-theme="light"] .fda-contact-channel-card {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(108, 93, 211, 0.15);
  box-shadow: 0 10px 30px rgba(108, 93, 211, 0.04);
}

[data-theme="light"] .fda-contact-channel-info h4 {
  color: #0f172a;
}

[data-theme="light"] .fda-contact-channel-info a,
[data-theme="light"] .fda-contact-channel-info span {
  color: #475569;
}

@media (max-width: 575.98px) {
  .fda-contact-channels {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .fda-contact-channel-card {
    padding: 18px;
  }
}

/* === Consent Checkbox Styles === */
.fda-form-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
  margin-bottom: 24px;
  text-align: left;
}

.fda-form-consent input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: #8b5cf6;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  flex-shrink: 0;
}

.fda-form-consent label {
  font-family: var(--font-secondary, 'Inter', sans-serif);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--contact-text-muted, #94a3b8);
  cursor: pointer;
  user-select: none;
}

[data-theme="light"] .fda-form-consent label {
  color: #475569;
}

[data-theme="light"] .fda-form-consent input[type="checkbox"] {
  accent-color: #6d28d9;
  border-color: rgba(0, 0, 0, 0.2);
}
