/* rco-checkin - Hope Town Ohio RCO check-in
   Same brand language as grantintake: orange #F09018, grey #6C6C6C. */

:root {
  --orange: #f09018;
  --orange-dark: #d67d0b;
  --orange-tint: #fdf2e4;
  --grey: #6c6c6c;
  --ink: #2c3137;
  --muted: #7e848b;
  --line: #e6e3df;
  --bg: #faf7f3;
  --card: #ffffff;
  --error: #b3261e;
  --error-bg: #fbeae8;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 660px; margin: 0 auto; padding: 34px 18px 56px; }
.wrap.narrow { max-width: 480px; }

/* Header */
.masthead { text-align: center; margin-bottom: 24px; }
.logo { width: 210px; max-width: 64%; height: auto; }
.masthead h1 { margin: 16px 0 6px; font-size: 1.66rem; line-height: 1.2; letter-spacing: -0.015em; }
.lede { margin: 0 auto; max-width: 30rem; color: var(--grey); font-size: 1.02rem; }

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 28px 30px;
  box-shadow: 0 6px 24px rgba(44, 49, 55, 0.06);
}
.center-card { text-align: center; }
@media (max-width: 520px) {
  .card { padding: 22px 18px 26px; border-radius: 14px; }
  .wrap { padding-top: 24px; }
}

.eyebrow {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--orange); margin: 0 0 16px;
}

.divider {
  display: flex; align-items: baseline; gap: 10px;
  margin: 30px 0 4px; padding-top: 24px; border-top: 1px solid var(--line);
}
.divider .eyebrow { color: var(--grey); margin: 0; }
.divider .opt {
  font-size: 0.78rem; font-weight: 600; color: #fff; background: var(--orange);
  border-radius: 999px; padding: 1px 9px; text-transform: none;
}
.section-note { margin: 6px 0 18px; color: var(--muted); font-size: 0.9rem; }

/* Fields */
.field { margin-bottom: 18px; }
label, .label-text { display: block; font-weight: 600; font-size: 0.96rem; margin-bottom: 6px; }
label .req, .label-text .req { color: var(--orange); margin-left: 1px; }
.hint { font-weight: 400; color: var(--muted); font-size: 0.85rem; }
label.sub { font-weight: 500; font-size: 0.82rem; color: var(--muted); margin-bottom: 3px; }

input[type="text"], input[type="tel"], input[type="date"], input[type="number"], select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.12s, box-shadow 0.12s;
  min-height: 48px; /* comfortable touch target */
}
input::placeholder { color: #b3b8bd; }
input:focus, select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(240, 144, 24, 0.18);
}

/* Phone-first screen */
.biglabel { font-size: 1.05rem; text-align: center; }
.biginput {
  font-size: 1.5rem !important;
  text-align: center;
  letter-spacing: 0.04em;
  padding: 16px 14px !important;
}

/* Radio choice cards (in recovery / in support) */
.choice2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 460px) { .choice2 { grid-template-columns: 1fr; } }
.choice {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border: 1.5px solid var(--line); border-radius: 12px;
  padding: 15px 12px; cursor: pointer; font-weight: 600; text-align: center;
  transition: border-color 0.12s, background 0.12s;
}
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:has(input:checked) {
  border-color: var(--orange); background: var(--orange-tint); color: var(--orange-dark);
}
.choice:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(240, 144, 24, 0.18); }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 520px) { .grid2 { grid-template-columns: 1fr; } }

/* Errors */
.error-banner {
  background: var(--error-bg); border: 1px solid #eebbb6; color: var(--error);
  border-radius: 11px; padding: 11px 15px; margin-bottom: 20px;
  font-size: 0.94rem; font-weight: 500;
}

/* Actions */
.actions { margin-top: 24px; text-align: center; }
button[type="submit"], .btnlink {
  display: inline-block;
  background: var(--orange); color: #fff; border: 0; border-radius: 12px;
  padding: 15px 42px; font: inherit; font-weight: 700; font-size: 1.06rem;
  cursor: pointer; text-decoration: none;
  box-shadow: 0 4px 14px rgba(240, 144, 24, 0.32);
  transition: background 0.12s, transform 0.05s;
}
button[type="submit"]:hover, .btnlink:hover { background: var(--orange-dark); }
button[type="submit"]:active { transform: translateY(1px); }
button.jumbo { font-size: 1.3rem; padding: 20px 54px; }

.reassure { color: var(--muted); font-size: 0.9rem; margin: 14px auto 0; max-width: 28rem; }
.reassure a { color: var(--orange-dark); }

/* Thanks */
.thanks-card .check { width: 54px; height: 54px; margin: 0 auto 6px; display: block; }
.thanks-card h1 { font-size: 1.5rem; margin: 10px 0 6px; }

/* Staff box */
.staffbox { margin-top: 20px; padding: 18px 20px; }
.staffline { margin: 0; font-size: 0.95rem; }
.staffline a { color: var(--orange-dark); font-weight: 600; }
.todaylist { list-style: none; padding: 0; margin: 12px 0 0; max-height: 260px; overflow-y: auto; }
.todaylist li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 6px 2px; border-bottom: 1px solid #f2efe9; font-size: 0.93rem;
}
.todaylist .time { color: var(--muted); }

/* Offline banner */
.offline-banner {
  background: #fff7e8; border: 1px solid #f2d5a4; color: #8a5a00;
  border-radius: 11px; padding: 11px 15px; margin-bottom: 20px;
  font-size: 0.94rem; font-weight: 500;
}

/* Milestone celebration */
.milestone {
  background: var(--orange-tint); border: 1px solid #f2d5a4; color: var(--orange-dark);
  border-radius: 11px; padding: 12px 16px; margin: 16px auto 0; max-width: 26rem;
  font-weight: 700; font-size: 1.02rem;
}

/* Post-check-in optional profile card */
.profile-card { margin-top: 18px; text-align: left; }
.profile-card .actions { display: flex; gap: 10px; align-items: center; justify-content: center; }

/* Footer */
.foot { margin-top: 26px; text-align: center; color: var(--muted); font-size: 0.85rem; }
.foot a { color: var(--orange-dark); }
.langtoggle { font-weight: 600; }
