/* =========================================
   VISA JOURNEYS — FORM STYLES
   Blue & White Theme | visajourneys.com
   ========================================= */

:root {
  --blue-deep:    #0a2463;
  --blue-mid:     #1e56a0;
  --blue-bright:  #2979d4;
  --blue-light:   #d6e8ff;
  --blue-pale:    #f0f6ff;
  --white:        #ffffff;
  --off-white:    #f7faff;
  --border:       #c8ddf5;
  --text-dark:    #0d1b3e;
  --text-mid:     #3a5278;
  --text-muted:   #7a96b8;
  --accent:       #f0a500;
  --success:      #1aab5f;
  --error:        #d9363e;
  --shadow-sm:    0 2px 8px rgba(10, 36, 99, 0.08);
  --shadow-md:    0 6px 24px rgba(10, 36, 99, 0.12);
  --shadow-lg:    0 16px 48px rgba(10, 36, 99, 0.16);
  --radius:       14px;
  --radius-sm:    8px;
  --transition:   0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--blue-pale);
  color: var(--text-dark);
  min-height: 100vh;
  line-height: 1.6;
}

/* ===================== NAV ===================== */
.nav {
  background: var(--blue-deep);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(10, 36, 99, 0.3);
}
.nav-inner {
  max-width: 1100px;
  margin: auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
  font-size: 1.2rem;
  letter-spacing: -0.3px;
}
.logo strong { color: var(--accent); }
.logo-icon {
  font-size: 1.4rem;
  display: grid;
  place-items: center;
  background: var(--blue-mid);
  border-radius: 8px;
  padding: 6px;
}
.nav-tagline {
  font-size: 0.78rem;
  color: var(--blue-light);
  letter-spacing: 0.5px;
}

/* ===================== HERO ===================== */
.form-hero {
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-mid) 60%, var(--blue-bright) 100%);
  position: relative;
  padding: 4rem 2rem 2rem;
  overflow: hidden;
}
.form-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.04) 0%, transparent 60%),
                    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 50%);
}
.form-hero-inner {
  max-width: 1100px;
  margin: auto;
  position: relative;
}
.form-hero-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.form-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--white);
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 1rem;
}
.form-hero-title span { color: var(--accent); }
.form-hero-sub {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  max-width: 520px;
}
.req-star { color: var(--accent); font-weight: 700; }
.hero-wave {
  margin-top: 2.5rem;
  margin-bottom: -2px;
  line-height: 0;
}
.hero-wave svg { width: 100%; height: 60px; display: block; }

/* ===================== PROGRESS ===================== */
.progress-wrap {
  background: var(--blue-pale);
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
}
.progress-inner {
  max-width: 700px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 0;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}
.step p {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
  transition: color var(--transition);
}
.step.active p { color: var(--blue-mid); }
.step.done p   { color: var(--success); }

.step-dot {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2.5px solid var(--border);
  background: var(--white);
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all var(--transition);
}
.step.active .step-dot {
  border-color: var(--blue-mid);
  background: var(--blue-mid);
  color: var(--white);
  box-shadow: 0 0 0 4px rgba(30, 86, 160, 0.18);
}
.step.done .step-dot {
  border-color: var(--success);
  background: var(--success);
  color: var(--white);
}
.step-line {
  flex: 1;
  height: 2.5px;
  background: var(--border);
  margin: 0 6px;
  margin-bottom: 18px;
  border-radius: 2px;
  transition: background var(--transition);
  min-width: 24px;
}
.step-line.done { background: var(--success); }
.step-line.active { background: var(--blue-bright); }

/* ===================== MAIN FORM AREA ===================== */
.form-main {
  max-width: 860px;
  margin: 2rem auto 4rem;
  padding: 0 1.5rem;
}

.form-section {
  display: none;
  animation: fadeUp 0.4s var(--transition) both;
}
.form-section.active { display: block; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Section Header */
.section-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
}
.section-num {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--blue-light);
  line-height: 1;
  flex-shrink: 0;
  margin-top: -6px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--blue-deep);
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.section-desc { font-size: 0.9rem; color: var(--text-mid); }

/* Form Grid */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.field-group { display: flex; flex-direction: column; gap: 6px; }
.field-group.full-width { grid-column: 1 / -1; }

label {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 0.2px;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-wrap input,
.input-wrap select {
  width: 100%;
  padding: 0.75rem 2.6rem 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--off-white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  color: var(--text-dark);
  transition: all var(--transition);
  outline: none;
  appearance: none;
}
.input-wrap input::placeholder { color: var(--text-muted); }
.input-wrap input:focus,
.input-wrap select:focus {
  border-color: var(--blue-bright);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(41, 121, 212, 0.12);
}
.input-wrap input.invalid,
.input-wrap select.invalid {
  border-color: var(--error);
  background: #fff5f5;
}
.input-icon {
  position: absolute;
  right: 10px;
  font-size: 1rem;
  pointer-events: none;
  opacity: 0.6;
}
.select-wrap::after {
  content: '▾';
  position: absolute;
  right: 30px;
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
}

.field-hint {
  font-size: 0.74rem;
  color: var(--text-muted);
}
.field-error {
  font-size: 0.76rem;
  color: var(--error);
  font-weight: 500;
  min-height: 1rem;
}

/* ===================== UPLOAD CARDS ===================== */
.upload-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.upload-cards.docs-only {
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}
.upload-cards.payment-layout {
  grid-template-columns: repeat(2, minmax(260px, 1fr));
}
.upload-card {
  background: var(--white);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  transition: all var(--transition);
  cursor: default;
  min-height: 280px;
}
.upload-card:hover {
  border-color: var(--blue-bright);
  background: var(--blue-pale);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.upload-card.uploaded {
  border-color: var(--success);
  background: #f0fff7;
}
#card-citizenship,
#card-receipt {
  cursor: pointer;
}
.upload-icon { font-size: 2.2rem; }
.upload-card h3 { font-size: 0.95rem; color: var(--text-dark); font-weight: 600; }
.upload-card p  { font-size: 0.78rem; color: var(--text-mid); }

.upload-btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: var(--blue-light);
  color: var(--blue-deep);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.upload-btn:hover { background: var(--blue-mid); color: var(--white); }
.upload-status { font-size: 0.76rem; color: var(--text-muted); font-weight: 500; min-height: 1rem; }
.payment-qr-image {
  width: 150px;
  height: 150px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 6px;
}

/* ===================== REVIEW GRID ===================== */
.review-grid {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
}
.review-section-title {
  background: var(--blue-deep);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 0.6rem 1.5rem;
  text-transform: uppercase;
}
.review-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 1.5rem;
  border-bottom: 1px solid var(--blue-pale);
  gap: 1rem;
}
.review-row:last-child { border-bottom: none; }
.review-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  min-width: 180px;
}
.review-value {
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 600;
  text-align: right;
}
.review-empty { color: var(--text-muted); font-style: italic; font-weight: 400; }

/* ===================== CONSENT ===================== */
.consent-box {
  background: var(--blue-pale);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.5rem;
  margin-bottom: 2rem;
}
.consent-label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.5;
}
.consent-label input[type="checkbox"] {
  width: 18px; height: 18px;
  margin-top: 2px;
  accent-color: var(--blue-mid);
  flex-shrink: 0;
  cursor: pointer;
}

.payment-qr-image{
  width: 220px;
  height: auto;
  margin-top: 20px;
  border-radius: 12px;
}

/* ===================== NAV BUTTONS ===================== */
.section-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  gap: 1rem;
}
.btn-next, .btn-back, .btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.8rem 1.8rem;
  border: none;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-next {
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-bright));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(30, 86, 160, 0.3);
}
.btn-next:hover {
  transform: translateX(3px);
  box-shadow: 0 6px 24px rgba(30, 86, 160, 0.4);
}
.btn-back {
  background: var(--white);
  color: var(--text-mid);
  border: 1.5px solid var(--border);
}
.btn-back:hover { background: var(--blue-pale); border-color: var(--blue-bright); color: var(--blue-mid); }
.btn-arrow { font-size: 1rem; }

.btn-submit {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
  color: var(--white);
  padding: 0.9rem 2.2rem;
  font-size: 1rem;
  box-shadow: 0 6px 24px rgba(10, 36, 99, 0.35);
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(10, 36, 99, 0.45);
}
.btn-submit-icon { font-size: 1.1rem; animation: plane 2s ease-in-out infinite; }
@keyframes plane { 0%,100% { transform: translateX(0); } 50% { transform: translateX(4px); } }

/* ===================== SUCCESS ===================== */
.success-state {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 4rem 2rem;
  text-align: center;
  animation: fadeUp 0.5s ease both;
}
.success-state.hidden { display: none; }
.success-inner { max-width: 480px; margin: auto; }
.success-icon { font-size: 3.5rem; margin-bottom: 1.25rem; }
.success-state h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  color: var(--blue-deep);
  margin-bottom: 1rem;
}
.success-state p { color: var(--text-mid); margin-bottom: 0.75rem; }
.success-ref {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1.25rem;
}
.success-ref span { font-weight: 700; color: var(--blue-mid); }
.btn-home {
  display: inline-block;
  margin-top: 1.75rem;
  padding: 0.8rem 2rem;
  background: var(--blue-mid);
  color: var(--white);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all var(--transition);
}
.btn-home:hover { background: var(--blue-deep); transform: translateY(-2px); }

/* ===================== FOOTER ===================== */
.footer {
  background: var(--blue-deep);
  padding: 1.25rem 2rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.78rem;
}
.footer-inner {
  max-width: 1100px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 720px) {
  .form-grid { grid-template-columns: 1fr; padding: 1.25rem; }
  .field-group.full-width { grid-column: 1 / -1; }
  .upload-cards { grid-template-columns: 1fr; }
  .upload-cards.docs-only { max-width: none; }
  .upload-cards.payment-layout { grid-template-columns: 1fr; }
  .progress-inner { gap: 2px; }
  .step p { display: none; }
  .form-hero-title { font-size: 2rem; }
  .section-header { gap: 0.75rem; }
  .section-num { font-size: 2rem; }
}