/* Hearts In Action applicant app. Palette verified from the live site (plan section 14). */
:root {
  --teal: #5A9CA6;
  --teal-deep: #1A3A42;
  --teal-ink: #12292F;
  --teal-soft: #D8E6E6;
  --teal-mist: #EEF4F4;
  --cream: #F9F7F3;
  --cream-dark: #EFECE6;
  --accent: #D27B56;
  --accent-deep: #B9623F;
  --ink: #24312F;
  --slate: #536463;
  --line: #E3DED4;
  --white: #FFFFFF;
  --ok: #3F8F5E;
  --bad: #B9623F;
  --r-lg: 28px;
  --r-md: 18px;
  --r-pill: 999px;
  --shadow-lg: 0 24px 60px rgba(26, 58, 66, 0.18);
  --shadow-sm: 0 6px 18px rgba(26, 58, 66, 0.10);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
}
a { color: var(--teal); font-weight: 600; }
button { font: inherit; }

/* ---------- hero band ---------- */
.hero {
  background: radial-gradient(120% 140% at 0% 0%, #2B5A64 0%, var(--teal-deep) 55%, var(--teal-ink) 100%);
  color: var(--white);
  padding: 18px 20px 86px;
}
.hero-inner { max-width: 640px; margin: 0 auto; }
.brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand img { height: 42px; width: auto; background: var(--white); border-radius: 12px; padding: 5px 8px; }
.brand .where { font-size: 12px; opacity: .75; letter-spacing: .4px; text-transform: uppercase; font-weight: 600; }

.progress-pill {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 22px; padding: 8px 14px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.12); font-size: 13px; font-weight: 600; letter-spacing: .2px;
}
.progress-pill .dots { display: flex; gap: 6px; }
.progress-pill .dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.3); display: block; transition: background .3s, transform .3s; }
.progress-pill .dots i.done { background: var(--white); }
.progress-pill .dots i.now { background: var(--accent); transform: scale(1.25); }

/* ---------- floating card ---------- */
main { max-width: 640px; margin: -66px auto 0; padding: 0 16px 90px; position: relative; }
.card {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 26px 22px;
  animation: rise .35s ease both;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.card h1 { font-size: 26px; line-height: 1.2; margin: 0 0 8px; color: var(--teal-deep); letter-spacing: -.3px; }
.card h2 { font-size: 22px; line-height: 1.25; margin: 0 0 8px; color: var(--teal-deep); letter-spacing: -.2px; }
.card p { margin: 6px 0 14px; color: var(--slate); font-size: 16px; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; }

.question {
  background: var(--teal-mist);
  border-radius: var(--r-md);
  padding: 16px 18px;
  font-size: 19px; font-weight: 600; line-height: 1.35;
  color: var(--teal-deep);
  margin: 6px 0 16px;
}
.tip { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--slate); margin: 10px 0 0; }
.tip svg { flex: none; margin-top: 2px; }

label.field { display: block; font-weight: 600; margin: 12px 0 6px; font-size: 15px; }
input[type="text"], textarea {
  width: 100%; font: inherit; padding: 14px 16px;
  border: 1.5px solid var(--line); border-radius: 14px; background: var(--cream);
  color: var(--ink);
}
input[type="text"]:focus, textarea:focus { outline: none; border-color: var(--teal); background: var(--white); box-shadow: 0 0 0 4px rgba(90,156,166,.18); }

/* ---------- buttons ---------- */
.btn {
  appearance: none; border: 0; cursor: pointer; font-weight: 700; font-size: 16px;
  padding: 0 22px; height: 56px; border-radius: var(--r-pill); width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: transform .08s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: scale(.985); }
.btn-primary { background: linear-gradient(180deg, #DC8560, var(--accent)); color: var(--white); box-shadow: 0 10px 22px rgba(210,123,86,.35); }
.btn-primary:hover { background: var(--accent-deep); }
.btn-teal { background: var(--teal); color: var(--white); box-shadow: 0 10px 22px rgba(90,156,166,.3); }
.btn-ghost { background: var(--teal-mist); color: var(--teal-deep); }
.btn-ghost:hover { background: var(--teal-soft); }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.stack { display: grid; gap: 12px; margin-top: 16px; }

/* ---------- recorder ---------- */
.stage {
  position: relative; background: #0E1F23; border-radius: var(--r-md); overflow: hidden;
  aspect-ratio: 3 / 4; max-height: 62vh; margin: 8px 0 14px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.stage video { width: 100%; height: 100%; object-fit: cover; display: block; background: #0E1F23; }
.stage video.mirror { transform: scaleX(-1); }
.stage .clock {
  position: absolute; top: 14px; left: 14px;
  background: rgba(14,31,35,.7); backdrop-filter: blur(6px); color: #fff;
  padding: 7px 12px; border-radius: var(--r-pill); font-weight: 700; font-size: 14px;
  font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 8px;
}
.stage .clock.rec::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #FF4D4F; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.stage .hint {
  position: absolute; left: 0; right: 0; bottom: 110px; text-align: center; color: rgba(255,255,255,.85);
  font-size: 14px; font-weight: 600; text-shadow: 0 1px 6px rgba(0,0,0,.6); padding: 0 20px;
}

.recwrap { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: 84px; height: 84px; }
.recwrap svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.recwrap circle.track { fill: none; stroke: rgba(255,255,255,.25); stroke-width: 5; }
.recwrap circle.arc { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; transition: stroke-dashoffset .25s linear; }
.recbtn {
  position: absolute; inset: 10px; border-radius: 50%; border: 0; cursor: pointer;
  background: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.recbtn .dot { width: 30px; height: 30px; border-radius: 50%; background: #FF4D4F; transition: all .2s ease; }
.recbtn.on .dot { width: 24px; height: 24px; border-radius: 6px; }
.recbtn[disabled] { opacity: .5; }

/* ---------- upload chip (background uploads) ---------- */
.chip {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%);
  background: var(--teal-deep); color: #fff; border-radius: var(--r-pill);
  padding: 10px 16px 10px 12px; font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-lg);
  max-width: calc(100% - 32px); z-index: 20; animation: rise .3s ease both;
}
.chip .ring { width: 22px; height: 22px; border-radius: 50%; background: conic-gradient(var(--accent) var(--pct, 0%), rgba(255,255,255,.2) 0); flex: none; }
.chip.done .ring { background: var(--ok); }

/* ---------- finishing screen ---------- */
.uplist { display: grid; gap: 12px; margin: 8px 0 16px; }
.upitem { border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; background: var(--cream); }
.upitem .top { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 15px; gap: 10px; }
.upitem .bar { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; margin-top: 10px; }
.upitem .bar > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--teal-deep)); transition: width .25s ease; }
.upitem .st { font-size: 13px; color: var(--slate); margin-top: 6px; }
.upitem iframe { width: 100%; aspect-ratio: 9 / 14; max-height: 420px; border: 0; border-radius: 12px; margin-top: 12px; background: #0E1F23; }
.ok { color: var(--ok); } .bad { color: var(--bad); }
.alert { background: #fff4ee; border: 1px solid #f0c9b7; color: #7a3d22; padding: 12px 14px; border-radius: 14px; margin: 10px 0; font-size: 14px; }
.notice { background: var(--teal-mist); color: var(--teal-deep); padding: 12px 14px; border-radius: 14px; margin: 10px 0; font-size: 14px; }
.hidden { display: none !important; }
.footer { text-align: center; color: var(--slate); font-size: 12px; margin-top: 28px; }

/* ---------- results dashboard ---------- */
.wide { max-width: 1000px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--slate); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.tag.ready { background: #e3f3e9; color: var(--ok); }
.tag.wait { background: var(--teal-soft); color: var(--teal-deep); }
.tag.err { background: #fde8e8; color: #a33; }
.linkbtn { background: none; border: 0; color: var(--teal); font-weight: 700; cursor: pointer; padding: 0; }
.row2 { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.btn.auto { width: auto; height: 44px; padding: 0 18px; font-size: 14px; }
.videobox { background: #0E1F23; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16/9; max-height: 70vh; }
.videobox iframe { width: 100%; height: 100%; border: 0; display: block; }

.bigtick {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 16px;
  background: linear-gradient(180deg, var(--teal), var(--teal-deep));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px rgba(90,156,166,.35);
  animation: pop .5s cubic-bezier(.2,1.4,.4,1) both;
}
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
#sThanks { text-align: center; }
#sThanks .notice, #sThanks .uplist, #sThanks #verdict { text-align: left; }

/* ---------- application flow extras ---------- */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .grid2 { grid-template-columns: 1fr; gap: 0; } }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--slate); line-height: 1.45; cursor: pointer; }
.check input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--teal); }
.dropzone { display: block; border: 2px dashed var(--teal); border-radius: var(--r-md); padding: 22px 18px; text-align: center; background: var(--teal-mist); cursor: pointer; }
.dropzone input { display: none; }
.dropzone .big { display: block; font-weight: 700; color: var(--teal-deep); font-size: 17px; }
.dropzone .small { display: block; color: var(--slate); font-size: 13px; margin-top: 4px; }
.progress { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 12px 0 0; }
.progress > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--teal-deep)); transition: width .2s ease; }
textarea { min-height: 150px; resize: vertical; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-btn { border: 1.5px solid var(--line); background: var(--white); color: var(--teal-deep); border-radius: 999px; padding: 10px 16px; font-weight: 600; font-size: 14px; cursor: pointer; min-height: 44px; }
.pill-btn.on { background: var(--teal); border-color: var(--teal); color: #fff; }
.cards { display: grid; gap: 12px; margin: 8px 0 4px; }
.carditem { border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; background: var(--cream); }
.carditem .lbl { font-weight: 600; margin-bottom: 10px; }
.gridwrap { overflow-x: auto; margin: 6px -4px 10px; }
table.avail { border-collapse: separate; border-spacing: 6px; width: 100%; }
table.avail th { font-size: 11px; color: var(--slate); font-weight: 600; text-align: center; padding: 0; letter-spacing: .3px; }
table.avail tbody th { text-align: left; white-space: nowrap; padding-right: 4px; }
table.avail td { padding: 0; text-align: center; }
.cell { width: 100%; height: 44px; min-width: 44px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--white); cursor: pointer; }
.cell.on { background: var(--teal); border-color: var(--teal); box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 4px var(--teal); }
.stack .btn + .btn { margin-top: 0; }
