/* ============================================================================
   For The Record — Platinum Edition
   Cinematic NDA Modal System
   Platinum Glass • Metallic Black • Glossed Platinum • Cream Accents
   Spotlight Sweep • Ambient Backlight • Title Light Shimmer
   ============================================================================ */

/* ============================================================================
   1. ROOT THEME TOKENS
   ============================================================================ */

:root {
  --metallic-black: #050507;
  --platinum-glass: rgba(255, 255, 255, 0.10);
  --platinum-border: rgba(255, 255, 255, 0.18);
  --platinum-shine: rgba(255, 255, 255, 0.45);
  --cream-soft: #f3f1ed;

  --text-main: #fafafa;
  --text-muted: #d2d2d2;
  --text-soft: #bcbcbc;

  --border-strong: rgba(255, 255, 255, 0.32);
  --border-soft: rgba(255, 255, 255, 0.16);
  --divider: rgba(255, 255, 255, 0.20);

  --shadow-strong: 0 28px 80px rgba(0, 0, 0, 0.75);

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-pill: 999px;
}

/* ============================================================================
   2. BACKGROUND IMAGE + ONE-TIME SPOTLIGHT SWEEP
   ============================================================================ */

/* One-time, subtle upward sweep on initial load */
@keyframes spotlightSweep {
  0% {
    background-position: center calc(20% - 3.0in);
  }
  100% {
    background-position: center -3.0in;
  }
}

.nda-fullpage-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;

  background:
    /* soft spotlight cone */
    radial-gradient(
      circle at 0% 0%,
      rgba(255, 255, 255, 0.18) 0%,
      rgba(255, 255, 255, 0.08) 14%,
      transparent 40%
    ),
    /* platinum wash */
    linear-gradient(
      to bottom,
      rgba(10, 10, 12, 0.60),
      rgba(10, 10, 15, 0.88)
    ),
    url("/images/nda_background.jpg");

  background-size: cover;
  background-position: center -3.0in;
  background-repeat: no-repeat;

  /* Play once, then stop */
  animation: spotlightSweep 8s ease-out forwards;

  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);

  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}

/* Container to unify width for all modals */
.nda-modal-container {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 32px 16px 48px 16px;
}

/* ============================================================================
   3. MODAL ENTRY ANIMATION
   ============================================================================ */

@keyframes modalFadeUp {
  from { opacity: 0; transform: translateY(26px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================================================================
   4. MODAL CARD WITH AMBIENT BACKLIGHT
   ============================================================================ */

.nda-modal-card {
  position: relative;
  width: 90%;
  max-width: 600px;

  background:
    linear-gradient(135deg,
      rgba(255, 255, 255, 0.14),
      rgba(255, 255, 255, 0.05)
    ),
    rgba(10, 10, 15, 0.84);

  border-radius: 0;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-strong);
  padding: 32px 32px 32px 28px;
  color: var(--text-main);
  animation: modalFadeUp 320ms ease-out;
  margin: 0 auto;

  /* let inner content and scroll areas control overflow */
  overflow: visible;

  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
}

/* Ambient backlight halo behind modal */
.nda-modal-card::before {
  content: "";
  position: absolute;
  inset: -30px;
  z-index: -1;

  background:
    radial-gradient(
      circle,
      rgba(255, 255, 255, 0.33),
      rgba(255, 255, 255, 0.02) 60%
    );

  filter: blur(28px);
  opacity: 0.32;
}

/* Platinum subtle border glow */
.nda-modal-card::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;

  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.45),
    rgba(255, 255, 255, 0.10),
    rgba(255, 255, 255, 0.32)
  );

  filter: blur(20px);
  opacity: 0.30;
  z-index: -1;
}

/* Shared sizing for the taller modals (form + NDA) */
.nda-modal-card.large,
.nda-modal-card.nda-modal-large {
  max-width: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

/* Welcome modal: wider to accommodate larger text */
#welcomeModal {
  max-width: 1100px;
  margin: 0 auto;
}

/* Form modal & NDA modal consistent width */
#formModal,
#ndaAgreementModal {
  max-width: 960px;
  margin: 0 auto;
}

/* ============================================================================
   5. EDITORIAL HEADER + TITLE SHIMMER ANIMATION
   ============================================================================ */

/* Title shimmer effect */
@keyframes titleShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.nda-modal-header {
  text-align: center;
  margin-bottom: 22px;
}

.nda-modal-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;

  /* metallic gradient */
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.35),
    rgba(255,255,255,0.95),
    rgba(255,255,255,0.35)
  );
  background-size: 240%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  animation: titleShimmer 7s linear infinite;
}

/* Editorial subtitle */
.nda-modal-subtitle {
  margin-top: 14px;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.65);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  letter-spacing: 0.05em;
  font-weight: 400;
}

.nda-modal-header::after {
  content: "";
  display: block;
  width: 150px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--platinum-shine), transparent);
  margin: 24px auto 0;
}

/* ============================================================================
   6. SCROLLABLE AREAS
   ============================================================================ */

/* Form modal (Modal 2) scroll area */
.nda-modal-body.scrollable {
  flex: 1;
  overflow-y: auto;
  padding-right: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--platinum-shine) transparent;
}

.nda-modal-body.scrollable::-webkit-scrollbar {
  width: 6px;
}

.nda-modal-body.scrollable::-webkit-scrollbar-thumb {
  background: var(--platinum-shine);
  border-radius: 999px;
}

/* NDA modal (Modal 3) body: scroll the document only */
#ndaAgreementModal .nda-modal-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* container for inner scroll */
  position: relative; /* for scroll indicator positioning */
}

/* The NDA text area scrolls, buttons stay reachable */
#nda-page-content {
  flex: 1;
  overflow-y: auto;
  padding-right: 12px;
  margin-right: -12px; /* keep scrollbar tight to edge */
  scrollbar-width: thin;
  scrollbar-color: var(--platinum-shine) transparent;
}

#nda-page-content::-webkit-scrollbar {
  width: 6px;
}

#nda-page-content::-webkit-scrollbar-thumb {
  background: var(--platinum-shine);
  border-radius: 999px;
}

/* ============================================================================
   7. FORM SYSTEM
   ============================================================================ */

.nda-form {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.nda-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
  align-items: start;
}

/* Keep paired fields aligned on the same baseline unless a row opts out */
.nda-form-row:not(.name-row):not(.address-dob-row) {
  align-items: start;
}

/* Contact row (email + phone) should align at bottom */
.nda-form-row:has(#email):has(#phone) {
  align-items: end !important;
}

.nda-form-row:has(#email) .nda-form-group,
.nda-form-row:has(#phone) .nda-form-group {
  align-self: end !important;
}

.nda-form-row input,
.nda-form-row select {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
}

.address-dob-row {
  grid-template-columns: 2fr 1fr;
  align-items: end;
}

.dob-group input[type="date"] {
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  padding: 8px 14px;
}

.nda-form-row.name-row {
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  align-items: end;
}

.nda-form-row.name-row select,
.nda-form-row.name-row input {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
}

.nda-form-row.full {
  grid-template-columns: 1fr;
}

.nda-form-group {
  display: flex;
  flex-direction: column;
}

.nda-form-group + .nda-form-group {
  margin-top: 18px;
}

/* Keep side-by-side inputs aligned within grid rows */
.nda-form-row .nda-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 0;
  align-self: stretch;
}

/* When two groups sit side by side in a row, remove stacked spacing */
.nda-form-row .nda-form-group + .nda-form-group {
  margin-top: 0;
}

.verification-method-group {
  margin-top: 28px;
}

#loginForm .nda-form-group + .nda-form-group {
  margin-top: 22px;
}

#loginForm .verification-method-group {
  margin-top: 26px;
}

#loginForm .nda-form-group input,
#loginForm .nda-form-group select {
  max-width: 420px;
}

#loginForm #verificationCode {
  max-width: 220px;
  letter-spacing: 0.3em;
  text-align: center;
}

#loginForm .verification-code-group {
  align-items: center;
  text-align: center;
}

#loginForm .verification-code-group label {
  width: 100%;
}

#loginForm .verification-code-group #verificationCode {
  margin: 0 auto;
}

.login-action-group {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 18px;
}

.login-action-group .nda-btn {
  max-width: 340px;
  width: 100%;
}

.nda-alert-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 6, 12, 0.78);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  z-index: 9999;
  animation: alertFadeIn 180ms ease-out;
}

.nda-alert-card {
  position: relative;
  width: min(480px, 96vw);
  padding: 42px 36px 32px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(140deg, rgba(32, 32, 38, 0.9), rgba(18, 18, 24, 0.94)),
    rgba(12, 12, 18, 0.92);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  text-align: center;
  color: var(--platinum-shine);
  margin-bottom: 16px;
}

.nda-alert-title {
  text-transform: uppercase;
}

.nda-alert-message {
  font-size: 0.98rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 auto 26px;
  max-width: 400px;
  text-transform: none;
}

.nda-alert-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.nda-alert-actions .nda-btn {
  min-width: 160px;
  padding: 0 28px;
}

.nda-alert-card.tone-success .nda-alert-icon,
.nda-alert-card.tone-success .nda-alert-title {
  color: #9ff6c1;
}

.nda-alert-card.tone-warning .nda-alert-icon,
.nda-alert-card.tone-warning .nda-alert-title {
  color: #ffd766;
}

.nda-alert-card.tone-error .nda-alert-icon,
.nda-alert-card.tone-error .nda-alert-title {
  color: #ff8a8a;
}

@keyframes alertFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes alertSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 480px) {
  .nda-alert-card {
    padding: 36px 24px 28px;
  }

  .nda-alert-actions .nda-btn {
    width: 100%;
  }
}

.nda-form-group label {
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--platinum-shine);
  font-weight: 600;
}

.required { color: #ff6b6b; }

/* Inputs */
.nda-form-group input,
.nda-form-group select {
  width: 100%;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.5;
  box-sizing: border-box;

  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.85);
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);

  text-transform: capitalize;
  letter-spacing: 0.03em;

  transition: all 150ms ease;
}

.nda-form-group input::placeholder {
  color: rgba(255, 255, 255, 0.45);
  text-transform: capitalize;
}

/* Date input should not be uppercase */
.nda-form-group input[type="email"],
.nda-form-group input[type="tel"],
.nda-form-group input[type="date"],
#verificationCode {
  text-transform: none;
  letter-spacing: normal;
}

.nda-form-group input[type="email"]::placeholder,
.nda-form-group input[type="tel"]::placeholder,
.nda-form-group input[type="date"]::placeholder {
  text-transform: none;
}

/* Ensure inputs are clickable */
.nda-form-group input,
.nda-form-group select {
  pointer-events: auto;
  user-select: text;
}

#middleInitial,
#suffix {
  text-align: center;
}

#prefix {
  text-align: left;
  text-align-last: left;
  padding-left: 12px;
}

/* Capitalize date field text and match font */
#dob {
  text-transform: uppercase;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* Focus */
.nda-form-group input:focus,
.nda-form-group select:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--platinum-shine);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.20), 0 4px 12px rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.95);
}

/* Invalid input styling */
.nda-form-group input:not(#dob):invalid:not(:placeholder-shown) {
  border-color: rgba(255, 107, 107, 0.6);
}

.nda-form-group input:not(#dob):invalid:not(:placeholder-shown):focus {
  border-color: rgba(255, 107, 107, 0.8);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.15), 0 4px 12px rgba(255,255,255,0.1);
}

#dob {
  cursor: pointer;
}

#dob:invalid {
  border-color: rgba(255,255,255,0.25);
}

#dob:invalid:focus {
  border-color: var(--platinum-shine);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.20), 0 4px 12px rgba(255,255,255,0.1);
}

.nda-form-group #address{
    z-index: 9999;
}

/* Email verification styling */
.verification-method-selector {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  padding: 14px 16px;
  background: rgba(10, 10, 18, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.35);
}

.radio-option {
  flex: 1;
  cursor: pointer;
  position: relative;
  display: flex;
}

.radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  cursor: pointer;
  z-index: 1;
}

.radio-option .radio-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  width: 100%;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 180ms ease;
  position: relative;
}

.radio-option input[type="radio"]:checked + .radio-label {
  background: linear-gradient(135deg, rgba(255,255,255,0.3), rgba(255,255,255,0.08));
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--metallic-black);
  box-shadow: 0 12px 28px rgba(255, 255, 255, 0.28);
}

.radio-option:hover .radio-label {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.32);
  color: var(--platinum-shine);
}

.radio-option svg {
  flex-shrink: 0;
}

.radio-option input[type="radio"]:focus-visible + .radio-label {
  outline: 2px solid var(--platinum-shine);
  outline-offset: 2px;
}

.verification-send-section {
  margin-bottom: 12px;
}

.input-with-button {
  display: flex;
  gap: 8px;
  align-items: center;
}

.input-with-button input {
  flex: 1;
}

#personalInfoForm .input-with-button {
  max-width: 420px;
  margin: 0 auto 6px;
  gap: 6px;
}

#personalInfoForm .input-with-button input {
  max-width: 280px;
}

#personalInfoForm #verificationCode {
  text-align: center;
  letter-spacing: 0.3em;
}

#personalInfoForm .verify-btn {
  min-width: 110px;
}

#personalInfoForm .field-hint,
#personalInfoForm .verification-status {
  text-align: center;
}

.verify-btn {
  height: 48px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-md);
  color: var(--platinum-shine);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 150ms ease;
  white-space: nowrap;
}

.verify-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--platinum-shine);
}

.verify-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.verification-code-group {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.verification-code-group input {
  flex: 1;
  min-width: 150px;
  pointer-events: auto;
  z-index: 1;
}

.verify-btn-small {
  height: 48px;
  padding: 0 16px;
  font-size: 13px;
}

.verification-status {
  width: 100%;
  margin: 8px 0 0 0;
  font-size: 13px;
  font-weight: 500;
}

/* Resend button styling */
.resend-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}

.resend-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.30);
}

/* Verification code row layout */
.verification-code-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

/* Help link button */
.help-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 14px;
  background: rgba(158, 203, 255, 0.08);
  border: 1px solid rgba(158, 203, 255, 0.25);
  border-radius: var(--radius-pill);
  color: rgba(158, 203, 255, 0.9);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 150ms ease;
}

.help-link:hover {
  background: rgba(158, 203, 255, 0.15);
  border-color: rgba(158, 203, 255, 0.40);
  color: rgba(158, 203, 255, 1);
}

.help-link svg {
  flex-shrink: 0;
}

/* Troubleshooting assistant content */
.troubleshoot-content {
  text-align: left;
  padding: 8px 0;
}

.troubleshoot-content .ai-avatar {
  font-size: 36px;
  text-align: center;
  margin-bottom: 12px;
}

.troubleshoot-content .ai-greeting {
  font-size: 15px;
  color: var(--text-main);
  margin-bottom: 16px;
  text-align: center;
}

.troubleshoot-content .troubleshoot-options {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 16px;
}

.troubleshoot-content .troubleshoot-options p {
  margin: 0 0 10px 0;
  color: var(--text-muted);
}

.troubleshoot-content .troubleshoot-options ul,
.troubleshoot-content .troubleshoot-options ol {
  margin: 0;
  padding-left: 20px;
}

.troubleshoot-content .troubleshoot-options li {
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.5;
}

.troubleshoot-content .troubleshoot-options li strong {
  color: var(--text-main);
}

.troubleshoot-content .ai-question {
  font-size: 14px;
  color: var(--cream-soft);
  text-align: center;
  margin: 0;
  font-weight: 500;
}

/* Loading spinner for cache clearing */
.loading-spinner {
  width: 32px;
  height: 32px;
  margin: 16px auto;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--cream-soft);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ============================================================================
   8. BUTTON SYSTEM
   ============================================================================ */

.nda-button-container,
.nda-modal-footer {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 24px;
}

.nda-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 46px;
  padding: 0 32px;
  border-radius: var(--radius-pill);

  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;

  border: 1px solid transparent;
  cursor: pointer;

  transition: all 150ms ease;
}

.nda-btn-primary {
  background: rgba(255, 255, 255, 0.32);
  border-color: var(--border-strong);
  color: var(--metallic-black);
  box-shadow: 0 10px 28px rgba(255,255,255,0.20);
}

.nda-btn-primary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.45);
}

.nda-btn-secondary {
  background: rgba(0, 0, 0, 0.40);
  border-color: var(--border-soft);
  color: var(--cream-soft);
}

.nda-btn-secondary:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.58);
}

.nda-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.nda-button-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-bottom: 18px;
}

/* ============================================================================
   9. NDA CONTENT PAGES
   ============================================================================ */

#nda-page-content h2,
#nda-page-content h3 {
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--platinum-shine);
  margin-top: 16px;
  margin-bottom: 10px;
}

#nda-page-content p {
  font-size: 14px;
  color: var(--cream-soft);
  line-height: 1.65;
  margin-bottom: 12px;
}

#nda-page-content ul {
  margin: 10px 0 16px 20px;
  padding-left: 12px;
}

#nda-page-content li {
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-main);
}

.nda-pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--divider);
}

.nda-page-indicator {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-soft);
}

/* ============================================================================
   8. WELCOME MODAL SPECIFIC STYLING
   ============================================================================ */

#welcomeModal {
  margin-left: -10px; /* 0.10 inch shift left */
}

/* Welcome modal text styling */

.nda-welcome-text {
  font-size: 19px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.015em;
  font-weight: 400;
}

.nda-welcome-text p {
  margin-bottom: 22px;
  font-weight: 400;
  text-align: left;
}

.nda-welcome-text p:last-child {
  margin-bottom: 0;
  margin-top: 24px;
}

.nda-welcome-text strong {
  color: rgba(255, 255, 255, 0.96);
  font-weight: 600;
  letter-spacing: 0.015em;
}

.nda-welcome-text em {
  color: var(--platinum-shine);
  font-style: normal;
  font-weight: 500;
}

/* ============================================================================
   9. MAPBOX GEOCODER STYLING
   ============================================================================ */

#mapbox-geocoder-wrapper {
  width: 100%;
}

#mapbox-geocoder-wrapper .mapboxgl-ctrl-geocoder {
  width: 100%;
  max-width: none;
  box-shadow: none;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-md);
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  font-family: 'Poppins', sans-serif;
}

#mapbox-geocoder-wrapper .mapboxgl-ctrl-geocoder--input {
  height: 48px;
  padding: 8px 14px;
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  background: transparent;
  border: none;
  font-family: 'Poppins', sans-serif;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

#mapbox-geocoder-wrapper .mapboxgl-ctrl-geocoder--input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

#mapbox-geocoder-wrapper .mapboxgl-ctrl-geocoder--input:focus {
  outline: none;
}

#mapbox-geocoder-wrapper .mapboxgl-ctrl-geocoder--icon {
  fill: var(--platinum-shine);
}

#mapbox-geocoder-wrapper .mapboxgl-ctrl-geocoder--button {
  background: transparent;
}

#mapbox-geocoder-wrapper .mapboxgl-ctrl-geocoder--icon-close {
  margin-top: 0;
}

#mapbox-geocoder-wrapper .mapboxgl-ctrl-geocoder--icon-search {
  top: 12px;
  left: 12px;
}

#mapbox-geocoder-wrapper .suggestions {
  background: #ffffff !important;
  border: 1px solid rgba(0,0,0,0.15) !important;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2) !important;
  margin-top: 4px;
}

#mapbox-geocoder-wrapper .suggestions li {
  color: #1a1a1a !important;
  padding: 10px 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
}

#mapbox-geocoder-wrapper .suggestions li:hover,
#mapbox-geocoder-wrapper .suggestions li.active {
  background: rgba(0, 0, 0, 0.08) !important;
  color: #000000 !important;
}

#mapbox-geocoder-wrapper .suggestions li > a {
  color: inherit !important;
}

#mapbox-geocoder-wrapper .suggestions .mapbox-gl-geocoder--suggestion-title {
  color: #1a1a1a !important;
}

#mapbox-geocoder-wrapper .suggestions .mapbox-gl-geocoder--suggestion-address {
  color: #666666 !important;
}

/* ============================================================================
   9. SCROLL INDICATOR
   ============================================================================ */

.scroll-indicator {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(250, 130, 29, 0.15);
  border: 1px solid rgba(250, 130, 29, 0.4);
  border-radius: 24px;
  backdrop-filter: blur(10px);
  opacity: 1;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 10;
}

.scroll-arrow {
  font-size: 24px;
  color: var(--platinum-shine);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.scroll-indicator span {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--platinum-shine);
  font-weight: 600;
}

/* ============================================================================
   10. SIGNATURE PAD
   ============================================================================ */

.signature-section {
  margin-top: 32px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(10px);
}

.signature-section label {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--platinum-shine);
  font-weight: 600;
}

#signature-pad {
  width: 100%;
  max-width: 100%;
  height: 180px;
  background: rgba(255,255,255,0.95);
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-md);
  cursor: crosshair;
  margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: border-color 0.2s ease;
}

#signature-pad:hover {
  border-color: var(--platinum-shine);
}

.signature-section button {
  margin-bottom: 16px;
}

.signature-name,
.signature-date {
  margin: 8px 0;
  padding: 10px 14px;
  background: rgba(255,255,255,0.06);
  border-left: 3px solid var(--platinum-shine);
  border-radius: 4px;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}

.signature-name strong,
.signature-date strong {
  color: var(--platinum-shine);
  margin-right: 8px;
}

/* Host Signatures */
.host-signatures {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.host-signature-block {
  padding: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
}

.host-signature-title {
  margin: 0 0 16px 0;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--platinum-shine);
  font-weight: 600;
}

.host-signature-image {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  font-family: 'Brush Script MT', cursive;
  font-size: 28px;
  color: rgba(255,255,255,0.75);
  font-style: italic;
}

.host-signature-name {
  margin: 8px 0 4px 0;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}

.host-signature-date {
  margin: 4px 0 0 0;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
}

.host-signature-date strong {
  color: var(--platinum-shine);
  margin-right: 6px;
}

/* ============================================================================
   11. FORCE CONSISTENT INPUT SIZING
   ============================================================================ */

/* Force all form inputs to same height */
#personalInfoForm #email,
#personalInfoForm #phone,
#personalInfoForm #address,
#personalInfoForm #dob,
#personalInfoForm input[type="email"],
#personalInfoForm input[type="tel"],
#personalInfoForm input[type="text"],
#personalInfoForm input[type="date"],
#personalInfoForm select {
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  box-sizing: border-box !important;
}

/* Force verification code container to be wider */
#personalInfoForm .input-with-button {
  max-width: 450px !important;
}

#personalInfoForm .input-with-button input#verificationCode {
  max-width: 300px !important;
  min-width: 300px !important;
}

/* ============================================================================
   12. RESPONSIVE
   ============================================================================ */

@media (max-width: 900px) {
  .nda-modal-card { padding: 26px 24px; }
  .nda-modal-title { font-size: 28px; }

  .nda-form-row { grid-template-columns: 1fr; }
  .nda-form-row.name-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nda-modal-card.large,
  .nda-modal-card.nda-modal-large {
    max-height: 94vh;
  }

  .nda-form-row.name-row { grid-template-columns: 1fr; }

  .nda-modal-footer {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .nda-btn { width: 100%; }
}

/* ============================================================================
   FINAL OVERRIDES - ABSOLUTELY FORCE THESE STYLES
   ============================================================================ */

/* Force email and phone to be exact same height - FINAL OVERRIDE */
form#personalInfoForm input#email,
form#personalInfoForm input#phone,
#personalInfoForm input[type="email"]#email,
#personalInfoForm input[type="tel"]#phone {
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  line-height: 1.5 !important;
  padding: 8px 14px !important;
  box-sizing: border-box !important;
}

/* Force verification code input sizing - FINAL OVERRIDE */
form#personalInfoForm input#verificationCode {
  max-width: 200px !important;
  min-width: 200px !important;
  width: 200px !important;
}

/* Mobile responsive for verification code row */
@media (max-width: 720px) {
  .verification-code-row {
    flex-direction: column;
    gap: 10px;
  }
  
  .verification-code-row input {
    width: 100% !important;
    max-width: 100% !important;
    min-width: unset !important;
  }
  
  .verification-code-row .verify-btn-small {
    width: 100%;
  }
  
  form#personalInfoForm input#verificationCode {
    max-width: 100% !important;
    min-width: unset !important;
    width: 100% !important;
  }
}

