/* VIVAS Careers — brand navy, very rounded, mobile-first.
   Tokens match Time Clock / Venues so this feels like the same product.

   Type: Poppins, self-hosted. The brand face is Aquawax, but the copy on
   this machine is a Zetafonts trial: the licence does not cover webfont
   use and the trial swaps digits and @ for a "PERSONAL USE ONLY"
   watermark — on a page full of "$25.00" and email addresses that would
   print on screen. Poppins is the closest geometric stand-in until the
   Aquawax web licence is bought; swap the @font-face block below and the
   --font token, nothing else. */

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/poppins-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/poppins-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/poppins-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/poppins-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/poppins-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/poppins-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/poppins-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/poppins-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/poppins-800-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/poppins-800-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Brand */
  --navy: #00163c;
  --navy-2: #16356b;
  --navy-3: #2f63c4;
  --navy-dark: #000d24;
  --navy-tint: #e9eef8;
  --navy-tint-2: #f3f6fc;
  --accent: #a6c5f2;       /* the 2026 accent — the only one */
  --accent-hi: #bcd4f6;    /* same accent, lifted, for hover */

  --white: #ffffff;
  --ink: #0f1b2d;
  --gray: #6b7686;
  --gray-soft: #97a1b1;
  --line: #eef1f6;
  --bg: #f4f6fb;

  --ok: #1f9d55;
  --ok-tint: #e7f6ee;
  --warn: #e2231a;
  --warn-tint: #fdecea;

  --font: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --grad-hero: linear-gradient(150deg, #16356b 0%, #00163c 58%, #00112f 100%);
  --grad-btn: linear-gradient(135deg, #2f63c4 0%, #16356b 55%, #00163c 100%);

  --radius: 22px;
  --radius-sm: 14px;
  --radius-pill: 999px;
  --shadow: 0 10px 30px rgba(16, 35, 80, 0.08);
  --shadow-soft: 0 4px 16px rgba(16, 35, 80, 0.06);
  --shadow-lift: 0 18px 44px rgba(16, 35, 80, 0.14);
  --shadow-btn: 0 12px 28px rgba(22, 53, 107, 0.28);

  --maxw: 1080px;
  font-size: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--navy-3); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------------- Top bar ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; height: 62px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 19px; width: auto; }
.lang-btn {
  font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer;
  background: var(--navy-tint); color: var(--navy); border: 0;
  padding: 8px 14px; border-radius: var(--radius-pill);
  transition: background .18s ease;
}
.lang-btn:hover { background: var(--accent); }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: .95rem;
  padding: 15px 26px; border-radius: var(--radius-pill);
  border: 0; cursor: pointer; text-decoration: none; text-align: center;
  transition: transform .18s cubic-bezier(.2,.7,.3,1), box-shadow .18s ease, background .18s ease;
}
.btn:active { transform: translateY(1px) scale(.995); }
.btn-primary { background: var(--accent); color: var(--navy); box-shadow: 0 12px 28px rgba(0, 22, 60, .3); }
.btn-primary:hover { background: var(--accent-hi); box-shadow: 0 16px 34px rgba(0, 22, 60, .38); }
.btn-navy { background: var(--grad-btn); color: var(--white); box-shadow: var(--shadow-btn); }
.btn-navy:hover { box-shadow: 0 16px 34px rgba(22, 53, 107, .38); }
.btn-ghost {
  background: rgba(255,255,255,.1); color: var(--white);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.34);
}
.btn-ghost:hover { background: rgba(255,255,255,.18); }
.btn-quiet { background: var(--navy-tint); color: var(--navy); }
.btn-quiet:hover { background: var(--accent); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------------- Hero ---------------- */
.hero {
  background: var(--grad-hero);
  color: var(--white);
  border-radius: 0 0 34px 34px;
  padding: 30px 0 34px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -140px; top: -120px;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(166,197,242,.30), rgba(166,197,242,0) 68%);
  pointer-events: none;
}
.hero-in { position: relative; z-index: 1; max-width: 720px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  padding: 6px 13px; border-radius: var(--radius-pill);
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(2rem, 7vw, 3.2rem);
  line-height: 1.04; font-weight: 800; letter-spacing: -.025em;
  margin-bottom: 10px;
}
.hero .lead { font-size: clamp(1.02rem, 2.4vw, 1.2rem); color: rgba(255,255,255,.84); max-width: 540px; }
.hero .btn { margin-top: 20px; }
@media (max-width: 460px) { .hero .btn { width: 100%; } }

/* ---------------- Proof line ---------------- */
.proof {
  padding: 14px 0 0; font-size: .84rem; line-height: 1.5; color: var(--gray);
}
.proof strong { color: var(--navy); font-weight: 700; }

/* ---------------- Sections ---------------- */
section { scroll-margin-top: 78px; }
.sec { padding: 20px 0 36px; }
.sec-head { margin-bottom: 18px; }
.sec-head h2 {
  font-size: clamp(1.5rem, 4.4vw, 2rem); font-weight: 800; letter-spacing: -.015em;
  color: var(--navy);
}
.sec-head p { color: var(--gray); margin-top: 6px; max-width: 620px; font-size: .92rem; }

/* Stats — one card split in three, so it doesn't fight the 2-column grid below */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-soft);
  overflow: hidden; margin-bottom: 16px;
}
.stat { padding: 22px 22px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: clamp(1.3rem, 4vw, 1.75rem); font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.stat span { font-size: .82rem; color: var(--gray); }
@media (max-width: 620px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 20px; }
  .stat:last-child { border-bottom: 0; }
}

/* Why */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.why-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-soft);
  padding: 26px 24px; border: 1px solid transparent;
  display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; align-content: start;
  transition: box-shadow .2s ease, transform .2s ease;
}
.why-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.why-card .dot {
  width: 44px; height: 44px; border-radius: 14px; background: var(--navy-tint);
  display: grid; place-items: center; color: var(--navy-3); grid-row: span 2;
}
.why-card h3 { font-size: 1.02rem; font-weight: 800; color: var(--navy); margin: 2px 0 6px; align-self: center; }
.why-card p { color: var(--gray); font-size: .93rem; }
@media (max-width: 720px) { .why-grid { grid-template-columns: 1fr; } }


/* ---------------- Job cards ---------------- */
.jobs { display: grid; gap: 14px; }
.job {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-soft); overflow: hidden;
  border: 1px solid var(--line);
  transition: box-shadow .22s ease;
}
.job:hover { box-shadow: var(--shadow); }
.job-head { padding: 24px 22px; }
.job-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.job-id { min-width: 0; }
.job h3 { font-size: clamp(1.15rem, 3.6vw, 1.35rem); font-weight: 800; color: var(--navy); letter-spacing: -.015em; }
.job .tagline { color: var(--gray); font-weight: 500; font-size: .9rem; margin-top: 4px; }
.pay-block { flex: 0 0 auto; text-align: right; }
.pay-block b {
  display: block; font-size: clamp(1.35rem, 5vw, 1.7rem); font-weight: 800;
  color: var(--navy); letter-spacing: -.03em; line-height: 1;
}
.pay-block span { font-size: .74rem; color: var(--gray-soft); font-weight: 600; }
.pill-open {
  flex: 0 0 auto;
  background: var(--accent); color: var(--navy);
  font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 12px; border-radius: var(--radius-pill); white-space: nowrap;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  background: var(--navy-tint-2); color: var(--navy);
  font-size: .8rem; font-weight: 600;
  padding: 7px 13px; border-radius: var(--radius-pill);
}
.chip.pay { background: var(--navy-tint); font-weight: 800; }
.job-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.job-actions .btn { padding: 14px 30px; font-size: .95rem; }
.job-actions .btn-quiet { padding: 14px 22px; font-size: .9rem; }
@media (max-width: 420px) { .job-actions { display: grid; grid-template-columns: 1fr 1fr; } }

.job-body {
  border-top: 1px solid var(--line);
  padding: 4px 22px 26px;
  background: linear-gradient(180deg, var(--navy-tint-2), var(--white) 120px);
}
.job-body[hidden] { display: none !important; }
.job-body h5 { font-size: 1rem; font-weight: 800; color: var(--navy); margin: 22px 0 0; }
.job-body .intro { color: var(--ink); margin: 10px 0 6px; }
.job-body > .btn { margin-top: 26px; }
.job-body h4 {
  font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--navy-3); margin: 22px 0 10px;
}
.job-body ul { list-style: none; display: grid; gap: 9px; }
.job-body li { position: relative; padding-left: 22px; color: var(--gray); font-size: .94rem; }
.job-body li::before {
  content: ""; position: absolute; left: 4px; top: .58em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--navy);
}
.job-body p.block-text { color: var(--gray); font-size: .94rem; }

/* ---------------- General application ---------------- */
.general {
  background: var(--grad-hero); color: var(--white);
  border-radius: var(--radius); padding: 34px 28px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.general::after {
  content: ""; position: absolute; left: -90px; bottom: -130px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(166,197,242,.28), rgba(166,197,242,0) 70%);
}
.general-in { position: relative; z-index: 1; max-width: 620px; }
.general h2 { font-size: clamp(1.35rem, 4vw, 1.8rem); font-weight: 800; letter-spacing: -.015em; }
.general p { color: rgba(255,255,255,.8); margin: 10px 0 22px; }

/* ---------------- Form ---------------- */
.form-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 30px 24px;
}
.form-card > h2 { font-size: clamp(1.4rem, 4vw, 1.8rem); font-weight: 800; color: var(--navy); letter-spacing: -.015em; }
.form-card > .sub { color: var(--gray); margin-top: 6px; margin-bottom: 26px; font-size: .95rem; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 620px) { .grid-2 { grid-template-columns: 1fr; } }

.field { margin-bottom: 18px; }
.field > label, .group > .glabel {
  display: block; font-size: .82rem; font-weight: 700; color: var(--navy);
  margin-bottom: 7px; letter-spacing: .01em;
}
.req { color: var(--navy-3); }
.help { font-size: .79rem; color: var(--gray-soft); margin-top: 6px; }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
input[type="password"], input[type="search"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--navy-tint-2);
  border: 1.5px solid transparent; border-radius: var(--radius-sm);
  padding: 14px 15px;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%236b7686' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
  padding-right: 42px;
}
textarea { min-height: 116px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 0; background: var(--white);
  border-color: var(--navy-3); box-shadow: 0 0 0 4px rgba(47, 99, 196, .14);
}
input.bad, select.bad, textarea.bad { border-color: var(--warn); background: var(--warn-tint); }

.err { color: var(--warn); font-size: .8rem; font-weight: 600; margin-top: 6px; }
.err[hidden] { display: none !important; }

/* Text link used for the resume escape hatch */
.textlink {
  display: inline-block; margin-top: 10px;
  font: inherit; font-size: .88rem; font-weight: 700; color: var(--navy-3);
  background: none; border: 0; padding: 4px 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.textlink:hover { color: var(--navy); }
.textlink[hidden] { display: none !important; }

/* Optional details, closed by default */
.more-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; font: inherit; font-size: .9rem; font-weight: 700; color: var(--navy);
  background: var(--navy-tint-2); border: 0; cursor: pointer;
  padding: 15px 18px; border-radius: var(--radius-sm); margin-bottom: 18px;
  transition: background .16s ease;
}
.more-toggle:hover { background: var(--navy-tint); }
.more-toggle svg { transition: transform .2s ease; flex: 0 0 auto; }
.more-toggle.open svg { transform: rotate(180deg); }
#moreBox[hidden] { display: none !important; }

/* Checkboxes / radios */
.group { margin-bottom: 18px; }
.checkline {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--navy-tint-2); border: 1.5px solid transparent;
  border-radius: var(--radius-sm); padding: 13px 15px; margin-bottom: 9px;
  cursor: pointer; transition: background .16s ease, border-color .16s ease;
}
.checkline:hover { background: var(--navy-tint); }
.checkline input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--navy-3); flex: 0 0 auto; }
.checkline span { font-size: .93rem; color: var(--ink); }
.checkline.bad { border-color: var(--warn); background: var(--warn-tint); }

.radio-row { display: flex; flex-wrap: wrap; gap: 9px; }
.radio-pill { position: relative; }
.radio-pill input { position: absolute; opacity: 0; width: 0; height: 0; }
.radio-pill span {
  display: inline-block; cursor: pointer;
  background: var(--navy-tint-2); color: var(--ink);
  border: 1.5px solid transparent; border-radius: var(--radius-pill);
  padding: 11px 20px; font-size: .92rem; font-weight: 600;
  transition: all .16s ease;
}
.radio-pill input:checked + span {
  background: var(--navy); color: var(--white); border-color: var(--navy);
}
.radio-pill input:focus-visible + span { box-shadow: 0 0 0 4px rgba(47, 99, 196, .2); }

/* File picker */
.file-drop {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--navy-tint-2); border: 1.5px dashed var(--accent);
  border-radius: var(--radius-sm); padding: 16px;
  transition: border-color .16s ease, background .16s ease;
}
.file-drop.has-file { border-style: solid; border-color: var(--ok); background: var(--ok-tint); }
.file-drop.bad { border-color: var(--warn); background: var(--warn-tint); }
.file-drop input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-btn {
  font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer;
  background: var(--navy); color: var(--white); border: 0;
  padding: 11px 19px; border-radius: var(--radius-pill); flex: 0 0 auto;
}
.file-name { font-size: .88rem; color: var(--gray); word-break: break-all; min-width: 0; }
.file-drop.has-file .file-name { color: #14683a; font-weight: 600; }

.consent { margin-top: 24px; }
.form-foot { margin-top: 22px; }
.form-foot .btn { width: 100%; }
.privacy-note { font-size: .79rem; color: var(--gray-soft); margin-top: 14px; }
.privacy-note a { color: var(--navy-3); }

/* Success */
.success { text-align: center; padding: 34px 10px; }
.success .mark {
  width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 20px;
  background: var(--ok-tint); color: var(--ok); display: grid; place-items: center;
}
.success h2 { font-size: 1.6rem; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.success p { color: var(--gray); max-width: 460px; margin: 0 auto 24px; }

.notice {
  background: var(--navy-tint); color: var(--navy); border-radius: var(--radius-sm);
  padding: 14px 16px; font-size: .88rem; margin-bottom: 20px;
}
.notice b { font-weight: 800; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------------- Sticky Apply (phones) ---------------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--line);
  transition: transform .22s cubic-bezier(.2,.7,.3,1);
}
.sticky-cta[hidden] { display: none !important; }
.sticky-cta.hide { transform: translateY(120%); }
@media (min-width: 760px) { .sticky-cta { display: none !important; } }
@media (max-width: 759px) { body { padding-bottom: 78px; } }

/* ---------------- Footer ---------------- */
footer {
  background: var(--navy); color: rgba(255,255,255,.7);
  border-radius: 40px 40px 0 0; margin-top: 44px;
  padding: 44px 0 34px;
}
.foot-top { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: flex-start; }
footer img { height: 22px; width: auto; margin-bottom: 12px; }
.foot-contact { font-size: .9rem; }
.foot-contact a { color: var(--accent); text-decoration: none; }
.foot-contact a:hover { text-decoration: underline; }
.legal { margin-top: 30px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); display: grid; gap: 16px; }
.legal h4 {
  font-size: .72rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 6px;
}
.legal p { font-size: .81rem; line-height: 1.6; color: rgba(255,255,255,.62); }
.copy { margin-top: 26px; font-size: .78rem; color: rgba(255,255,255,.44); }
@media (min-width: 760px) { .legal { grid-template-columns: 1fr 1fr; gap: 16px 34px; } }

.fade-in { animation: fade .45s cubic-bezier(.2,.7,.3,1) both; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.spinner {
  width: 17px; height: 17px; border-radius: 50%; flex: 0 0 auto;
  border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* The form reads better as a column than as a 1080px-wide sheet. */
.form-card { max-width: 760px; margin: 0 auto; }

/* Red summary of what's missing, the way a normal web form does it. */
.err-summary {
  background: var(--warn-tint); border-left: 5px solid var(--warn);
  border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 22px;
}
.err-summary[hidden] { display: none !important; }
.err-summary strong { display: block; color: #8c1109; font-size: .92rem; font-weight: 800; margin-bottom: 8px; }
.err-summary ul { list-style: none; display: grid; gap: 4px; }
.err-summary li { position: relative; padding-left: 16px; }
.err-summary li::before {
  content: ""; position: absolute; left: 3px; top: .62em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--warn);
}
.err-summary button {
  font: inherit; font-size: .89rem; font-weight: 600; color: #8c1109;
  background: none; border: 0; padding: 2px 0; cursor: pointer; text-align: left;
  text-decoration: underline; text-underline-offset: 3px;
}
.err-summary button:hover { color: var(--warn); }

/* Elección de resume: dos opciones visibles, no un link escondido. */
.seg { display: flex; gap: 6px; background: var(--navy-tint-2); border-radius: var(--radius-pill); padding: 5px; margin-bottom: 14px; }
.seg[hidden] { display: none !important; }
.seg-opt {
  flex: 1 1 0; min-width: 0; font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer;
  background: transparent; color: var(--gray); border: 0; border-radius: var(--radius-pill);
  padding: 12px 10px; transition: background .16s ease, color .16s ease;
}
.seg-opt:hover { color: var(--navy); }
.seg-opt.on { background: var(--navy); color: var(--white); box-shadow: var(--shadow-soft); }

/* El aviso junto al botón pesa más que el de un campo suelto. */
.form-foot .err {
  background: var(--warn-tint); border-radius: var(--radius-sm);
  padding: 12px 14px; margin-top: 12px; font-weight: 700;
}
