
/* Ensure [hidden] wins over .btn { display: inline-flex } */
[hidden] { display: none !important; }
:root {
  --navy: #131e3d;
  --navy-soft: #1c2a52;
  --gold: #cdad7d;
  --gold-deep: #b8945f;
  --cream: #f4f1ec;
  --text: #222344;
  --muted: #5c607a;
  --white: #ffffff;
  --line: rgba(19, 30, 61, 0.1);
  --shadow: 0 18px 50px rgba(19, 30, 61, 0.12);
  --radius: 18px;
  --max: 1120px;
  --header-h: 76px;
  --font-display: "Libre Baskerville", Georgia, serif;
  --font-body: Inter, system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 0.6em;
}
p { margin: 0 0 1em; }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.section { padding: 5rem 0; }
.section-tight { padding: 3.5rem 0; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.lead { font-size: 1.125rem; color: var(--muted); max-width: 40rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  border: 2px solid transparent;
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 24px rgba(205, 173, 125, 0.35);
}
.btn:hover { background: var(--gold-deep); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-navy {
  background: var(--navy);
  color: var(--cream);
  box-shadow: 0 8px 24px rgba(19, 30, 61, 0.25);
}
.btn-navy:hover { background: var(--navy-soft); }
.btn-outline {
  background: transparent;
  border-color: var(--gold);
  color: var(--cream);
  box-shadow: none;
}
.btn-outline:hover { background: rgba(205, 173, 125, 0.15); }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--navy);
  box-shadow: none;
}
.btn-block { width: 100%; }

/* Top bar + header */
.topbar {
  background: var(--navy);
  color: rgba(244, 241, 236, 0.85);
  font-size: 0.85rem;
}
.topbar .container {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
  justify-content: space-between; align-items: center;
  padding: 0.55rem 0;
}
.topbar a:hover { color: var(--gold); }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 241, 236, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 1rem;
}
.logo img { height: 48px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.25rem; }
.nav a { font-weight: 500; font-size: 0.95rem; color: var(--navy); }
.nav a:hover { color: var(--gold-deep); }
.nav-toggle {
  display: none; background: none; border: 0; width: 42px; height: 42px;
  place-items: center; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--navy);
  margin: 5px auto; transition: 0.2s;
}
.nav.open { display: flex; }

/* Hero */
.hero {
  position: relative; min-height: min(88vh, 760px);
  display: grid; align-items: end;
  color: var(--cream);
  overflow: hidden;
  background: var(--navy);
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.05);
  animation: heroDrift 18s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1.05) translate3d(0,0,0); }
  to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(19,30,61,0.35) 0%, rgba(19,30,61,0.78) 70%, rgba(19,30,61,0.92) 100%),
    linear-gradient(90deg, rgba(19,30,61,0.65), transparent 55%);
}
.hero-content {
  position: relative; z-index: 1;
  padding: 5rem 0 4rem;
}
.hero h1 {
  color: var(--cream);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  max-width: 14ch;
  margin-bottom: 0.8rem;
}
.hero .lead { color: rgba(244,241,236,0.88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.6rem; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 1rem 1.75rem;
  margin-top: 2rem; font-size: 0.92rem; color: rgba(244,241,236,0.8);
}
.hero-meta strong { color: var(--gold); font-weight: 600; }

/* Cards / spaces */
.grid-3 {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(3, 1fr);
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.6);
  transition: transform 0.25s ease;
}
.card:hover { transform: translateY(-4px); }
.card-media {
  aspect-ratio: 4/3;
  background-size: cover; background-position: center;
}
.card-body { padding: 1.35rem 1.4rem 1.5rem; }
.card-body h3 { font-size: 1.35rem; margin-bottom: 0.4rem; }
.card-body p { color: var(--muted); margin-bottom: 1rem; }
.chip {
  display: inline-block; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--navy); background: rgba(205,173,125,0.25);
  padding: 0.25rem 0.6rem; border-radius: 999px; margin-bottom: 0.7rem;
}

/* Gallery */
.gallery-grid {
  display: grid; gap: 0.75rem;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 140px;
}
.gallery-grid a {
  border-radius: 14px; overflow: hidden; position: relative;
  background: var(--navy);
}
.gallery-grid img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.45s ease;
}
.gallery-grid a:hover img { transform: scale(1.06); }
.gallery-grid a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-grid a:nth-child(6) { grid-column: span 2; }

/* Location */
.location-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: stretch;
}
.map-wrap {
  border-radius: var(--radius); overflow: hidden;
  min-height: 360px; box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.map-wrap iframe { width: 100%; height: 100%; min-height: 360px; border: 0; }
.poi-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.poi-list li {
  display: flex; gap: 0.75rem; align-items: flex-start;
  padding: 0.85rem 0; border-bottom: 1px solid var(--line);
}
.poi-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold); margin-top: 0.45rem; flex: none;
}

/* Amenities */
.amenity-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}
.amenity {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.amenity-icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(19,30,61,0.06); color: var(--navy);
  margin-bottom: 0.9rem; font-size: 1.2rem;
}

/* Contact */
.contact-panel {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr 1fr;
  background: var(--navy); color: var(--cream);
  border-radius: calc(var(--radius) + 4px);
  padding: 2.25rem;
  box-shadow: var(--shadow);
}
.contact-panel h2, .contact-panel h3 { color: var(--cream); }
.contact-panel a { color: var(--gold); }
/* Contact CTA — keep label readable (parent link color is gold) */
.contact-panel .btn {
  color: #1e40af; /* blue */
  font-weight: 700;
}
.contact-panel .btn:hover {
  color: #1e3a8a;
}

.contact-panel a:hover { text-decoration: underline; }
.access-note {
  margin-top: 1.25rem; padding: 0.9rem 1rem;
  border-left: 3px solid var(--gold);
  background: rgba(255,255,255,0.06);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  background: #0d152c; color: rgba(244,241,236,0.75);
  padding: 2.5rem 0 5.5rem;
  font-size: 0.92rem;
}
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between; align-items: center;
}
.site-footer a:hover { color: var(--gold); }

/* Sticky mobile Apply */
.sticky-apply {
  display: none;
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 60;
}
.sticky-apply .btn { width: 100%; box-shadow: 0 12px 30px rgba(19,30,61,0.35); }

/* Apply page */
.apply-hero {
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  color: var(--cream); padding: 3rem 0 2.5rem;
}
.apply-hero h1 { color: var(--cream); }
.apply-shell { padding: 2.5rem 0 5rem; }
.progress {
  display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem;
}
.progress-step {
  flex: 1; min-width: 90px; text-align: center;
  padding: 0.55rem 0.4rem; border-radius: 999px;
  background: rgba(19,30,61,0.06); color: var(--muted);
  font-size: 0.8rem; font-weight: 600;
}
.progress-step.active { background: var(--navy); color: var(--cream); }
.progress-step.done { background: rgba(205,173,125,0.35); color: var(--navy); }
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.form-step { display: none; }
.form-step.active { display: block; }
.form-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
.form-grid .full { grid-column: 1 / -1; }
.field label {
  display: block; font-size: 0.86rem; font-weight: 600;
  color: var(--navy); margin-bottom: 0.35rem;
}
.field .hint { font-weight: 400; color: var(--muted); font-size: 0.8rem; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  padding: 0.75rem 0.85rem; background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(205,173,125,0.25);
}
.field.invalid input, .field.invalid select, .field.invalid textarea {
  border-color: #b42318;
}
.yesno {
  display: grid; gap: 0.75rem;
}
.yesno-row {
  display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: 12px;
}
.yesno-row span { flex: 1; min-width: 180px; font-size: 0.92rem; }
.yesno-opts { display: flex; gap: 0.75rem; }
.yesno-opts label {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-weight: 500; cursor: pointer;
}
.form-nav {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  justify-content: space-between; margin-top: 1.5rem;
}
.status-box {
  display: none; margin-top: 1rem; padding: 1rem 1.1rem;
  border-radius: 12px; font-size: 0.95rem;
}
.status-box.show { display: block; }
.status-box.ok { background: #e8f6ee; color: #0f5132; border: 1px solid #a3d9b1; }
.status-box.err { background: #fdecea; color: #7a1c1c; border: 1px solid #f5c2c0; }
.status-box.info { background: #eef2ff; color: #1e2a5a; border: 1px solid #c7d2fe; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(13,21,44,0.92);
  display: none; place-items: center; padding: 1rem;
}
.lightbox.open { display: grid; }
.lightbox img { max-width: min(96vw, 1100px); max-height: 90vh; border-radius: 12px; }
.lightbox-close {
  position: absolute; top: 1rem; right: 1rem;
  background: transparent; border: 0; color: #fff; font-size: 2rem; cursor: pointer;
}

@media (max-width: 960px) {
  .grid-3, .amenity-grid, .location-grid, .contact-panel { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 120px; }
  .gallery-grid a:nth-child(1), .gallery-grid a:nth-child(6) { grid-column: span 2; }
}
@media (max-width: 760px) {
  .nav-toggle { display: grid; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 0.5rem 1rem 1rem;
  }
  .nav a, .nav .btn { padding: 0.85rem 0.4rem; }
  .form-grid { grid-template-columns: 1fr; }
  .sticky-apply { display: block; }
  .site-footer { padding-bottom: 6.5rem; }
}

.section-head { margin-bottom: 2rem; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.split-2 { display:grid; gap:1.5rem; grid-template-columns:1.1fr 0.9fr; align-items:center; }
.grid-3 { display:grid; gap:1.25rem; grid-template-columns:repeat(3,1fr); }
.amenity-grid { display:grid; gap:1rem; grid-template-columns:repeat(3,1fr); }
.bg-white { background: var(--white); }
.bg-navy { background: var(--navy); color: var(--cream); }
.bg-navy h2, .bg-navy h3 { color: var(--cream); }
.muted { color: var(--muted); }

/* === Layout helpers matching index.html === */
.topbar {
  background: var(--navy);
  color: rgba(244,241,236,.88);
  font-size: .85rem;
}
.topbar .container {
  display:flex; flex-wrap:wrap; gap:.75rem 1.5rem;
  justify-content:space-between; align-items:center;
  padding:.55rem 0;
}
.topbar a { color: inherit; }
.topbar a:hover { color: var(--gold); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,241,236,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display:flex; align-items:center; justify-content:space-between;
  min-height: var(--header-h); gap: 1rem;
}
.logo img { height: 52px; width: auto; }
.nav { display:flex; align-items:center; gap:1.2rem; }
.nav a { font-weight:500; color: var(--navy); font-size:.95rem; }
.nav a:hover { color: var(--gold-deep); }
.nav-toggle {
  display:none; background:none; border:0; width:42px; height:42px;
  place-items:center; cursor:pointer; padding:0;
}
.nav-toggle span {
  display:block; width:22px; height:2px; background:var(--navy); margin:5px auto;
}
.nav.is-open { display:flex; }

.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:.45rem;
  padding:.85rem 1.35rem; border-radius:999px; border:2px solid transparent;
  background: var(--gold); color: var(--navy); font-weight:600; cursor:pointer;
  box-shadow: 0 8px 24px rgba(205,173,125,.35); transition:.2s ease;
}
.btn:hover { background: var(--gold-deep); transform: translateY(-1px); }
.btn-outline {
  background: transparent; border-color: var(--gold); color: var(--cream);
  box-shadow: none;
}
.btn-outline:hover { background: rgba(205,173,125,.15); }
.btn-navy { background: var(--navy); color: var(--cream); box-shadow: 0 8px 24px rgba(19,30,61,.25); }
.btn-navy:hover { background: var(--navy-soft); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--navy); box-shadow:none; }

.hero {
  position:relative; min-height: min(88vh, 740px);
  display:grid; align-items:end; color: var(--cream); overflow:hidden; background: var(--navy);
}
.hero-bg {
  position:absolute; inset:0; background-size:cover; background-position:center;
  transform: scale(1.06); animation: heroDrift 18s ease-in-out infinite alternate;
}
.hero-overlay {
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(19,30,61,.3), rgba(19,30,61,.88)),
              linear-gradient(90deg, rgba(19,30,61,.7), transparent 60%);
}
.hero-content { position:relative; z-index:1; padding: 5rem 0 3.5rem; }
.hero h1 { color: var(--cream); font-size: clamp(2.2rem, 5vw, 3.5rem); max-width: 14ch; }
.hero .lead { color: rgba(244,241,236,.9); max-width: 36rem; }
.hero-actions { display:flex; flex-wrap:wrap; gap:.85rem; margin-top:1.5rem; }
.hero-meta {
  display:flex; flex-wrap:wrap; gap:1rem 1.75rem; margin-top:2rem;
  font-size:.92rem; color: rgba(244,241,236,.82);
}
.hero-meta strong { color: var(--gold); }

.section { padding: 5rem 0; }
.bg-white { background: var(--white); }
.eyebrow {
  display:inline-block; font-size:.78rem; letter-spacing:.14em; text-transform:uppercase;
  color: var(--gold-deep); font-weight:600; margin-bottom:.7rem;
}
.lead { font-size:1.1rem; color: var(--muted); max-width: 40rem; }
.muted { color: var(--muted); }

.grid-3 { display:grid; gap:1.25rem; grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--white); border-radius: var(--radius); overflow:hidden;
  box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.6);
  transition: transform .25s ease;
}
.card:hover { transform: translateY(-4px); }
.card-media { aspect-ratio: 4/3; background-size:cover; background-position:center; }
.card-body { padding: 1.35rem 1.4rem 1.5rem; }
.chip {
  display:inline-block; font-size:.72rem; font-weight:600; letter-spacing:.06em;
  text-transform:uppercase; color: var(--navy); background: rgba(205,173,125,.28);
  padding:.25rem .6rem; border-radius:999px; margin-bottom:.65rem;
}

.gallery-grid {
  display:grid; gap:.75rem; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 140px;
}
.gallery-grid a { border-radius:14px; overflow:hidden; background:var(--navy); }
.gallery-grid img { width:100%; height:100%; object-fit:cover; transition: transform .45s ease; }
.gallery-grid a:hover img { transform: scale(1.06); }
.gallery-grid a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-grid a:nth-child(6) { grid-column: span 2; }

.location-grid {
  display:grid; gap:1.5rem; grid-template-columns: 1.05fr .95fr; align-items:stretch;
}
.map-wrap {
  border-radius: var(--radius); overflow:hidden; min-height:360px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.map-wrap iframe { width:100%; height:100%; min-height:360px; border:0; }
.poi-list { list-style:none; padding:0; margin:1rem 0 0; }
.poi-list li {
  display:flex; gap:.75rem; padding:.85rem 0; border-bottom:1px solid var(--line);
}
.poi-dot {
  width:10px; height:10px; border-radius:50%; background:var(--gold);
  margin-top:.45rem; flex:none;
}

.amenity-grid { display:grid; gap:1rem; grid-template-columns: repeat(3, 1fr); }
.amenity {
  background: var(--cream); border:1px solid var(--line);
  border-radius: var(--radius); padding:1.35rem;
}
.amenity-icon {
  width:42px; height:42px; border-radius:12px; display:grid; place-items:center;
  background: rgba(19,30,61,.06); margin-bottom:.85rem; font-size:1.15rem;
}
.access-note {
  padding: .95rem 1.1rem; border-left: 3px solid var(--gold);
}

.contact-panel {
  display:grid; gap:1.5rem; grid-template-columns:1fr 1fr;
  background: var(--navy); color: var(--cream);
  border-radius: calc(var(--radius) + 4px); padding:2.25rem;
  box-shadow: var(--shadow);
}
.contact-panel h2, .contact-panel h3 { color: var(--cream); }
.contact-panel a { color: var(--gold); }
/* Contact CTA — keep label readable (parent link color is gold) */
.contact-panel .btn {
  color: #1e40af; /* blue */
  font-weight: 700;
}
.contact-panel .btn:hover {
  color: #1e3a8a;
}


.site-footer {
  background:#0d152c; color: rgba(244,241,236,.75);
  padding: 2.5rem 0 5.5rem; font-size:.92rem;
}
.footer-inner {
  display:flex; flex-wrap:wrap; gap:1rem;
  justify-content:space-between; align-items:center;
}
.site-footer a:hover { color: var(--gold); }

.sticky-apply {
  display:none; position:fixed; left:1rem; right:1rem; bottom:1rem; z-index:60;
}
.sticky-apply .btn { width:100%; box-shadow: 0 12px 30px rgba(19,30,61,.35); }

.reveal { opacity:0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity:1; transform:none; }

.lightbox {
  position:fixed; inset:0; z-index:100; background: rgba(13,21,44,.92);
  display:none; place-items:center; padding:1rem;
}
.lightbox.open { display:grid; }
.lightbox img { max-width:min(96vw,1100px); max-height:90vh; border-radius:12px; }
.lightbox-close {
  position:absolute; top:1rem; right:1rem; background:transparent; border:0;
  color:#fff; font-size:2rem; cursor:pointer;
}

@media (max-width: 960px) {
  .grid-3, .amenity-grid, .location-grid, .contact-panel { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2,1fr); grid-auto-rows:120px; }
  .gallery-grid a:nth-child(1), .gallery-grid a:nth-child(6) { grid-column: span 2; }
}
@media (max-width: 760px) {
  .nav-toggle { display:grid; }
  .nav {
    display:none; position:absolute; left:0; right:0; top:100%;
    flex-direction:column; align-items:stretch; gap:0;
    background: var(--cream); border-bottom:1px solid var(--line);
    padding:.5rem 1rem 1rem;
  }
  .nav a, .nav .btn { padding:.85rem .4rem; }
  .nav.is-open { display:flex; }
  .sticky-apply { display:block; }
  .site-footer { padding-bottom: 6.5rem; }
}

/* Apply page */
.apply-hero {
  background: linear-gradient(135deg, var(--navy), #1c2a52);
  color: var(--cream);
  padding: 3rem 0 2.25rem;
}
.apply-hero h1 { color: var(--cream); margin: 0 0 .6rem; }
.apply-shell { padding: 2.25rem 0 5rem; }
.progress {
  display: flex; gap: .45rem; flex-wrap: wrap; margin-bottom: 1.25rem;
}
.progress-step {
  flex: 1; min-width: 88px; text-align: center; padding: .5rem .35rem;
  border-radius: 999px; background: rgba(19,30,61,.07); color: var(--muted);
  font-size: .78rem; font-weight: 600;
}
.progress-step.active { background: var(--navy); color: var(--cream); }
.progress-step.done { background: rgba(205,173,125,.35); color: var(--navy); }
.form-card {
  background: #fff; border-radius: var(--radius); padding: 1.6rem;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.form-step { display: none; }
.form-step.active { display: block; }
.form-grid {
  display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr));
}
.form-grid .full, .field.full { grid-column: 1 / -1; }
.field label {
  display: block; font-size: .86rem; font-weight: 600; color: var(--navy); margin-bottom: .35rem;
}
.field .hint { font-weight: 400; color: var(--muted); font-size: .8rem; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  padding: .72rem .85rem; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(205,173,125,.25);
}
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #b42318; }
.yesno { display: grid; gap: .7rem; }
.yesno-row {
  display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between;
  padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px;
}
.yesno-row span { flex: 1; min-width: 180px; font-size: .92rem; }
.yesno-opts { display: flex; gap: .75rem; }
.yesno-opts label { display: inline-flex; align-items: center; gap: .35rem; font-weight: 500; cursor: pointer; }
.form-nav {
  display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1.4rem;
}
.btn-ghost {
  background: transparent; border: 2px solid var(--line); color: var(--navy); box-shadow: none;
}
.btn-navy { background: var(--navy); color: var(--cream); }
.status-box {
  display: none; margin-top: 1rem; padding: 1rem 1.1rem; border-radius: 12px; font-size: .95rem;
}
.status-box.show { display: block; }
.status-box.ok { background: #e8f6ee; color: #0f5132; border: 1px solid #a3d9b1; }
.status-box.err { background: #fdecea; color: #7a1c1c; border: 1px solid #f5c2c0; }
.status-box.info { background: #eef2ff; color: #1e2a5a; border: 1px solid #c7d2fe; }
.muted { color: var(--muted); }
@media (max-width: 760px) {
  .form-grid { grid-template-columns: 1fr; }
}

.yesno-row {
  display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between;
  padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px;
}
.yesno-row span { flex: 1; min-width: 180px; font-size: .92rem; }
.yesno-opts { display: flex; gap: .75rem; }
.yesno-opts label { display: inline-flex; align-items: center; gap: .35rem; font-weight: 500; cursor: pointer; }
.progress-step {
  flex: 1; min-width: 88px; text-align: center; padding: .5rem .35rem;
  border-radius: 999px; background: rgba(19,30,61,.07); color: var(--muted);
  font-size: .78rem; font-weight: 600;
}
.progress-step.active { background: var(--navy); color: var(--cream); }
.progress-step.done { background: rgba(205,173,125,.35); color: var(--navy); }
.apply-hero { background: linear-gradient(135deg, var(--navy), #1c2a52); color: var(--cream); padding: 3rem 0 2.25rem; }
.apply-hero h1 { color: var(--cream); }
.apply-shell { padding: 2.25rem 0 5rem; }


/* Date field with calendar button */
.date-field {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}
.date-field input[type="date"] {
  flex: 1;
  min-width: 0;
}
.date-picker-btn {
  flex: none;
  width: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--cream);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  transition: background .15s ease, border-color .15s ease;
}
.date-picker-btn:hover {
  background: rgba(205,173,125,0.25);
  border-color: var(--gold);
}

/* ---- Apply: documents + card on file ---- */
.field input[type="file"] { padding: .6rem .7rem; background: var(--cream); cursor: pointer; }
.doc-status { margin-top: .4rem; font-size: .84rem; color: var(--muted); min-height: 1.1em; }
.doc-status.ok { color: #0f5132; }
.doc-status.err { color: #b42318; font-weight: 600; }
.field.invalid .doc-status { color: #b42318; }
.field.invalid input[type="file"] { border-color: #b42318; }
.req-mark { color: var(--navy); }

.draft-note {
  margin: .9rem 0; padding: .55rem .8rem; border-radius: 10px;
  background: #fff4d6; border: 1px solid #f0c24b; color: #7a5200;
  font-size: .85rem; font-weight: 600;
}
.draft-note[hidden] { display: none; }
.disclosure-box {
  margin: 1rem 0; padding: 1rem 1.1rem 1rem 1.2rem; border-radius: 12px;
  background: var(--cream); border: 1px solid var(--line); border-left: 4px solid var(--gold);
  font-size: .92rem; line-height: 1.55; color: var(--navy);
}
.disclosure-box h3 { margin: 0 0 .5rem; font-size: 1rem; }
.disclosure-box ol { margin: 0; padding-left: 1.25rem; }
.disclosure-box li { margin: .35rem 0; }
.card-panel {
  margin: 1rem 0; padding: .9rem 1rem; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; font-size: .92rem;
}
.card-panel[hidden] { display: none; }
.card-panel.demo { background: #eef2ff; border-color: #c7d2fe; color: #1e2a5a; display: grid; gap: .3rem; }
.card-panel.demo[hidden] { display: none; }
.card-panel.saved { background: #e8f6ee; border-color: #a3d9b1; color: #0f5132; display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; }
.card-panel.saved[hidden] { display: none; }
.card-panel.err { background: #fdecea; border-color: #f5c2c0; color: #7a1c1c; }
.card-panel-title { font-weight: 600; color: var(--navy); margin-bottom: .6rem; }
.card-error { color: #b42318; font-size: .88rem; margin-top: .5rem; min-height: 1em; }
#payment-element { min-height: 60px; }
.btn-sm { padding: .45rem .9rem; font-size: .85rem; }
label.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; line-height: 1.45; cursor: pointer; }
label.check input[type="checkbox"] { width: auto; margin-top: .25rem; flex: none; }
@media (max-width: 760px) {
  .progress-step { min-width: 70px; font-size: .72rem; }
}
