/* ESTA Portal USA Services — main stylesheet */
:root {
  /* Green theme */
  --navy: #0b3d2e;          /* primary brand (deep forest green) */
  --navy-light: #14573f;    /* lighter brand shade */
  --accent: #1f9d55;        /* accent green */
  --accent-hover: #27b864;
  --soft-blue: #8ee6b4;     /* pale green highlight */
  --bg-soft: #f0f9f4;       /* soft green-tinted background */
  --muted: #55655c;
}

body {
  color: var(--navy);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

a { text-decoration: none; }

/* ---------- Top bar ---------- */
.top-header-bar {
  background: #072b20;
  color: #dcdcdc;
  font-size: 14px;
  padding: 6px 0;
}
.top-header-bar a { color: #dcdcdc; margin-left: 20px; }
.top-header-bar a:hover { color: #fff; }

/* ---------- Header ---------- */
header.site-header {
  background: var(--navy);
  border-bottom: 1px solid var(--navy-light);
  position: sticky;
  top: 0;
  z-index: 1030;
}
.site-header .navbar-brand {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-header .brand-badge {
  background: var(--soft-blue);
  color: var(--navy);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.brand-logo { display: flex; align-items: center; }
.brand-logo svg { display: block; }
.site-header .nav-link {
  color: #fff !important;
  font-size: 14px;
  font-weight: 500;
}
.site-header .nav-link:hover { color: var(--soft-blue) !important; }
.btn-start {
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  border-radius: 30px;
  padding: 8px 20px;
  font-size: 14px;
  border: none;
}
.btn-start:hover { background: var(--soft-blue); color: var(--navy); }

@media (max-width: 991px) {
  .site-header .navbar-collapse {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
  }
  .site-header .navbar-collapse .nav-link {
    color: var(--navy) !important;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
  }
}

/* ---------- Disclaimer banner ---------- */
.disclaimer-banner {
  border-left: 4px solid var(--accent);
  background: var(--bg-soft);
  padding: 1rem 1.25rem;
  border-radius: 0 6px 6px 0;
  font-size: 0.9rem;
}

/* ---------- Hero ---------- */
.hero h1 { font-weight: 700; }
.hero .lead { color: var(--muted); }

.btn-primary-cta {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
}
.btn-primary-cta:hover { background: var(--navy-light); color: #fff; }

/* ---------- Hero visual panel ---------- */
.hero-visual {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #1f6b4d 100%);
  border-radius: 14px;
  padding: 1.75rem;
  color: #fff;
  box-shadow: 0 18px 40px rgba(11, 61, 46, 0.25);
}
.hero-visual .hv-illustration {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}
.hv-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.hv-stat {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(142, 230, 180, 0.25);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
}
.hv-stat .hv-num {
  font-size: 1.25rem;
  font-weight: 700;
  color: #8ee6b4;
  line-height: 1.1;
}
.hv-stat .hv-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hv-note {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0.9rem 0 0;
  text-align: center;
}

/* ---------- Cards ---------- */
.feature-card {
  border: 1px solid #dcebe2;
  border-radius: 8px;
  padding: 1.4rem;
  background: #fff;
}
.feature-card i {
  color: var(--accent);
  font-size: 1.4rem;
}
.feature-card h3 { font-size: 0.95rem; font-weight: 700; margin: 0.6rem 0 0.4rem; }
.feature-card p { font-size: 0.875rem; color: var(--muted); margin: 0; }

/* ---------- Steps ---------- */
.step-list { border: 1px solid #dcebe2; border-radius: 8px; background: #fff; }
.step-list .step {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.25rem;
  align-items: flex-start;
}
.step-list .step + .step { border-top: 1px solid #dcebe2; }
.step-num {
  background: var(--bg-soft);
  color: var(--navy);
  font-weight: 700;
  font-family: monospace;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  flex-shrink: 0;
  font-size: 0.9rem;
}

/* ---------- Section headings ---------- */
.section-title { font-size: 1.35rem; font-weight: 700; }
.text-muted-soft { color: var(--muted); }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4rem;
}
.site-footer a { color: rgba(255, 255, 255, 0.6); font-size: 0.875rem; display: block; padding: 3px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-heading {
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}
.site-footer .footer-pin {
  color: var(--soft-blue);
  font-size: 1.1rem;
}
.site-footer .footer-brand {
  color: #fff;
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 0.95rem;
}
.site-footer .footer-disclaimer {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
}

/* ---------- Application form ---------- */
.apply-card {
  border: 1px solid #dcebe2;
  border-radius: 10px;
  background: #fff;
  padding: 2rem;
}
.apply-progress .badge-step {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: #dcebe2;
  color: var(--muted);
}
.apply-progress .badge-step.active { background: var(--navy); color: #fff; }
.apply-progress .badge-step.done { background: var(--accent); color: #fff; }
.form-label { font-weight: 600; font-size: 0.875rem; }
.form-control.is-warning, .form-select.is-warning { border-color: #d9a406; }
.soft-warning { color: #8a6d00; font-size: 0.8rem; }
.fee-table td { font-size: 0.9rem; }

/* ---------- Refund table ---------- */
.refund-table {
  border: 1px solid #dcebe2;
  border-radius: 8px;
  overflow: hidden;
}
.refund-table thead th {
  background: var(--bg-soft);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #dcebe2;
}
.refund-table tbody td {
  font-size: 0.9rem;
  padding: 0.9rem 1rem;
  border-color: #dcebe2;
}
.refund-table .refund-yes { color: var(--accent); font-weight: 700; }
.refund-table .refund-no { color: var(--muted); }

/* ---------- FAQ ---------- */
.accordion-button:not(.collapsed) {
  background: var(--bg-soft);
  color: var(--navy);
  box-shadow: none;
}

/* ---------- Page hero strip ---------- */
.page-strip {
  background: var(--bg-soft);
  padding: 2.5rem 0;
  border-bottom: 1px solid #dcebe2;
}
.page-strip h1 { font-size: 1.75rem; font-weight: 700; margin: 0; }
