/* ============================================================
   ApplyUSANow – Landing Page Styles
   Layout mirrors applyukjobs.com structure/proportions
============================================================ */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --ink: #0c1423;
  --ink-soft: #39465c;
  --muted: #6b7380;
  --line: #e5e9f0;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #eff6ff;
  --success: #16a34a;
  --danger: #dc2626;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(12,20,35,.06), 0 1px 3px rgba(12,20,35,.05);
  --shadow-md: 0 6px 18px rgba(12,20,35,.08);
  --shadow-lg: 0 20px 40px rgba(12,20,35,.12);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3,h4 { color: var(--ink); line-height: 1.25; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
h4 { font-size: .95rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--ink-soft); }
ul { margin: 0; padding: 0; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 20px; border-radius: var(--radius);
  font-weight: 600; font-size: .95rem; border: 1px solid transparent;
  cursor: pointer; font-family: var(--font);
  transition: transform .05s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
  text-decoration: none; line-height: 1.2; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff !important; box-shadow: 0 8px 20px rgba(37,99,235,.28); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-alt); }
.btn-sm { padding: 9px 14px; font-size: .875rem; }
.btn-lg { padding: 14px 24px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center;
  justify-content: space-between; height: 64px; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--primary); color: #fff;
  font-size: .8rem; font-weight: 800; letter-spacing: .02em;
}
.brand-name { font-size: 1rem; letter-spacing: -.01em; }
.nav-links { display: flex; gap: 26px; margin-left: auto; margin-right: 16px; }
.nav-links a { color: var(--ink-soft); font-weight: 500; font-size: .95rem; text-decoration: none; }
.nav-links a:hover { color: var(--ink); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative; padding: 72px 0 56px;
  background:
    radial-gradient(1200px 400px at 50% -180px, rgba(37,99,235,.1), transparent 60%),
    linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 44px; align-items: center; }

.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600;
  color: var(--primary); background: var(--primary-soft);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; letter-spacing: .02em;
}
.lead { font-size: 1.125rem; color: var(--ink-soft); max-width: 56ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 26px; }
.hero-points {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px 22px; max-width: 560px;
}
.hero-points li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-soft); font-size: .95rem; }
.tick {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: #e8f7ee; color: var(--success);
  font-size: .75rem; font-weight: 800; flex-shrink: 0; margin-top: 2px;
}

/* Hero right card */
.hero-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-md);
}
.card-top { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.pill { display: inline-block; font-size: .75rem; font-weight: 600; color: var(--primary); background: var(--primary-soft); padding: 4px 10px; border-radius: 999px; }
.pill-muted { color: var(--ink-soft); background: var(--bg-alt); }
.stat-list {
  display: grid; grid-template-columns: repeat(2,1fr);
  gap: 14px 16px; margin: 18px 0 20px;
  padding: 16px; background: var(--bg-alt); border-radius: var(--radius);
}
.stat-list dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.stat-list dd { margin: 0; font-weight: 600; color: var(--ink); font-size: .92rem; }

/* ── Sections ────────────────────────────────────────────── */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; }

/* ── About two-col ───────────────────────────────────────── */
.two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; margin-top: 18px; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 28px; color: var(--ink-soft); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: #e8f7ee; color: var(--success);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 800; margin-top: 3px;
}

/* ── Steps ───────────────────────────────────────────────── */
.steps {
  list-style: none; padding: 0; margin: 24px 0 0;
  display: grid; grid-template-columns: repeat(3,1fr); gap: 20px;
}
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 700; margin-bottom: 12px;
}

/* ── Benefits grid ───────────────────────────────────────── */
.grid { display: grid; gap: 18px; margin-top: 24px; }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #d5dcea; }
.feature .icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; background: var(--primary-soft); font-size: 1.3rem; margin-bottom: 14px; }
.feature p { margin: 0; font-size: .95rem; }

/* ── Requirements ────────────────────────────────────────── */
.req-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.req-list li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; color: var(--ink-soft); }
.req-list strong { color: var(--ink); }

/* ── Apply section ───────────────────────────────────────── */
.apply-section { background: linear-gradient(180deg,#ffffff 0%,#fbfdff 100%); }
.apply-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.apply-intro .check-list { margin-top: 14px; }
.apply-form {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-md); position: relative; overflow: hidden;
}
.form-title { margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: .875rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input[type="text"], .field input[type="tel"], .field input[type="number"], .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; font-size: 1rem; font-family: inherit; color: var(--ink); background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease; outline: none;
}
.field input:focus, .field select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.18); }
.field.invalid input, .field.invalid select { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(220,38,38,.12); }
.hint { display: block; margin-top: 6px; font-size: .8rem; color: var(--muted); }
.error { display: none; margin-top: 5px; font-size: .8rem; color: var(--danger); font-weight: 500; }
.field.invalid .error { display: block; }

/* Radio group */
.radio-group { display: flex; gap: 10px; margin-top: 4px; }
.radio-option {
  flex: 1; display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px;
  cursor: pointer; font-size: .93rem; font-weight: 500; color: var(--ink-soft);
  transition: border-color .15s, background .15s; user-select: none;
}
.radio-option input { accent-color: var(--primary); width: 16px; height: 16px; }
.radio-option:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-dark); }

/* Honeypot */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form-note { margin: 14px 0 0; font-size: .8rem; color: var(--muted); line-height: 1.5; }
.form-alert { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius); font-size: .9rem; background: #fef2f2; color: #7a1d1d; border: 1px solid #f3c2c2; }
.form-alert.success { background: #f0fdf4; color: #14532d; border-color: #86efac; }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-list { margin-top: 20px; display: grid; gap: 10px; }
.faq-list details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; transition: border-color .15s; }
.faq-list details[open] { border-color: #d5dcea; }
.faq-list summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; position: relative; padding-right: 24px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 0; top: 0; font-size: 1.3rem; line-height: 1; color: var(--muted); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 10px 0 0; color: var(--ink-soft); }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer { background: #0c1423; color: #c9d1de; padding: 48px 0 24px; }
.site-footer .brand-name { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer ul li { color: #9aa4b6; font-size: .9rem; }
.site-footer a { color: #c9d1de; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); }

/* ── Thank-you page ──────────────────────────────────────── */
.thank-you { padding: 80px 0; background: linear-gradient(180deg,#fbfdff 0%,#ffffff 100%); }
.ty-card { max-width: 580px; margin: 0 auto; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 48px 32px; box-shadow: var(--shadow-md); }
.ty-icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: #e8f7ee; color: var(--success); display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 800; }
.wa-btn { display: inline-flex; align-items: center; gap: 10px; background: #25D366; color: #fff !important; font-size: 1rem; font-weight: 700; padding: 14px 28px; border-radius: 50px; text-decoration: none; transition: background .2s, transform .15s; box-shadow: 0 6px 20px rgba(37,211,102,.4); margin-top: 20px; }
.wa-btn:hover { background: #128C7E; transform: translateY(-2px); color: #fff; text-decoration: none; }

/* ── Terms & Conditions checkbox ────────────────────────── */
.tc-field { margin-top: 4px; }
.tc-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: .88rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.tc-label input[type="checkbox"] {
  width: 17px; height: 17px;
  margin-top: 2px;
  accent-color: var(--primary);
  flex-shrink: 0;
  cursor: pointer;
}
.tc-field.invalid .tc-label { color: var(--danger); }
.tc-link {
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  padding: 0;
  margin: 0;
  color: var(--primary);
  font-weight: 600;
  font-size: inherit;
  font-family: var(--font);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  display: inline;
  line-height: inherit;
}
.tc-link:hover { color: var(--primary-dark); }
.tc-link:focus { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 2px; }

/* ── Terms & Conditions modal ────────────────────────────── */
.tc-backdrop[hidden] { display: none !important; }
.tc-backdrop {
  position: fixed; inset: 0;
  background: rgba(12,20,35,.55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; z-index: 200;
  animation: tcFadeIn .15s ease;
}
@keyframes tcFadeIn { from { opacity: 0; } to { opacity: 1; } }
.tc-modal {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 640px; width: 100%;
  max-height: 88vh;
  display: flex; flex-direction: column;
  box-shadow: 0 24px 60px rgba(12,20,35,.22);
  overflow: hidden;
}
.tc-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.tc-modal-head h3 { margin: 0; font-size: 1.1rem; }
.tc-modal-close {
  background: none; border: none; font-size: 1.7rem; line-height: 1;
  cursor: pointer; color: var(--muted); padding: 0 4px; border-radius: 6px;
}
.tc-modal-close:hover { background: var(--bg-alt); color: var(--ink); }
.tc-modal-body {
  padding: 22px 24px;
  overflow-y: auto;
  flex: 1;
}
.tc-modal-body h4 {
  font-size: .95rem; font-weight: 700; color: var(--ink);
  margin: 20px 0 6px;
}
.tc-modal-body h4:first-of-type { margin-top: 0; }
.tc-modal-body p { font-size: .9rem; color: var(--ink-soft); margin: 0 0 8px; }
.tc-updated { font-size: .8rem; color: var(--muted); margin-bottom: 16px !important; }

.tc-consent-box {
  display: flex;
  gap: 14px;
  background: var(--primary-soft);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.tc-consent-icon { font-size: 1.4rem; flex-shrink: 0; line-height: 1.3; }
.tc-consent-box strong { display: block; font-size: .92rem; color: var(--ink); margin-bottom: 4px; }
.tc-consent-box p { font-size: .87rem; color: var(--ink-soft); margin: 0; line-height: 1.55; }

.tc-list {
  list-style: disc; padding-left: 20px; margin: 6px 0 10px;
  display: grid; gap: 4px;
}
.tc-list li { font-size: .9rem; color: var(--ink-soft); }
.tc-modal-foot {
  display: flex; gap: 10px; padding: 16px 24px;
  border-top: 1px solid var(--line); flex-shrink: 0;
  flex-direction: row-reverse;
}

/* ── Sticky mobile CTA ───────────────────────────────────── */
.sticky-cta { display: none; position: fixed; left: 16px; right: 16px; bottom: 16px; background: var(--primary); color: #fff !important; text-align: center; padding: 14px; font-weight: 700; border-radius: 999px; box-shadow: 0 10px 30px rgba(37,99,235,.35); z-index: 40; text-decoration: none; }
.sticky-cta:hover { background: var(--primary-dark); text-decoration: none; }

/* ── Reveal animation ────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { padding: 56px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .apply-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .hero-points { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .section { padding: 52px 0; }
  .req-list { grid-template-columns: 1fr; }
  .sticky-cta { display: block; }
}
@media (max-width: 560px) {
  .grid-3 { grid-template-columns: 1fr; }
  .apply-form { padding: 20px; }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 899px) and (min-width: 560px) {
  .grid-3 { grid-template-columns: repeat(2,1fr); }
}
