/* Goshen Home Care — Volunteer Application
   Palette and shape tokens match the Doxa Careers plugin.

   Type sizes are in pixels on purpose. A theme that changes the root font
   size would otherwise rescale parts of the form unevenly, which is what
   makes one form look like three stitched together. */

.gv {
  --gv-brand: #2F6B57;
  --gv-brand-dark: #245243;
  --gv-accent: #C08A2E;
  --gv-bg: #F7F8F7;
  --gv-surface: #FFFFFF;
  --gv-line: #E2E6E3;
  --gv-heading: #17322A;
  --gv-text: #46534E;
  --gv-muted: #77857F;
  --gv-error: #A8332B;
  --gv-error-soft: #FEF7F6;
  --gv-error-line: #C2695F;

  --gv-radius: 10px;
  --gv-radius-input: 8px;

  /* One type scale, used everywhere. */
  --gv-fs-h1: clamp(25px, 3.3vw, 33px);
  --gv-fs-h2: 22px;
  --gv-fs-lede: 16px;
  --gv-fs-body: 15px;
  --gv-fs-label: 13px;
  --gv-fs-small: 13px;
  --gv-fs-micro: 11px;

  --gv-display: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gv-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  font-family: var(--gv-sans);
  font-size: var(--gv-fs-body);
  color: var(--gv-text);
  line-height: 1.65;
  background: var(--gv-bg);
  padding: 48px 0 64px;
  -webkit-font-smoothing: antialiased;
}

.gv *, .gv *::before, .gv *::after { box-sizing: border-box; }

/* Form controls do not inherit type by default, and themes like to restyle
   them. State it once here so nothing drifts. */
.gv input, .gv select, .gv textarea, .gv button, .gv label, .gv legend {
  font-family: var(--gv-sans);
  letter-spacing: normal;
}

.gv h1, .gv h2, .gv h3, .gv h4 {
  font-family: var(--gv-display); color: var(--gv-heading);
  margin: 0 0 .5em; letter-spacing: -.022em; font-weight: 600; text-transform: none;
}
.gv p { margin: 0 0 1em; font-size: var(--gv-fs-body); }
.gv ul { margin: 0; padding: 0; }
.gv a { color: var(--gv-brand); }

.gv-wrap { max-width: 880px; margin: 0 auto; padding: 0 24px; }
.gv-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.gv :focus-visible { outline: 3px solid var(--gv-accent); outline-offset: 3px; border-radius: 4px; }

/* ---- Header ---- */
.gv-head { margin-bottom: 28px; }
.gv-kicker {
  font-size: var(--gv-fs-micro); font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gv-accent); margin-bottom: 14px;
}
.gv-head h1 { font-size: var(--gv-fs-h1); line-height: 1.18; margin-bottom: 14px; }
.gv-lede { font-size: var(--gv-fs-lede); color: var(--gv-muted); max-width: 60ch; }

/* ---- Error summary ---- */
.gv-errors {
  background: #FDECEA; border: 1px solid #F0BFB9; border-left: 4px solid var(--gv-error);
  border-radius: var(--gv-radius); padding: 18px 22px; margin-bottom: 22px; color: #7E2620;
}
.gv-errors[hidden] { display: none; }
.gv-errors strong {
  display: block; margin-bottom: 8px;
  font-family: var(--gv-display); font-size: var(--gv-fs-body); font-weight: 600;
}
.gv-errors ul { list-style: disc; padding-left: 20px; }
.gv-errors li { font-size: var(--gv-fs-small); margin-bottom: 4px; }

/* ---- Groups ---- */
.gv-group {
  background: var(--gv-surface); border: 1px solid var(--gv-line);
  border-radius: var(--gv-radius); padding: 26px 28px 22px; margin: 0 0 18px;
  box-shadow: 0 8px 24px -12px rgba(16, 32, 26, .14);
}
.gv-group legend {
  font-family: var(--gv-display); font-size: var(--gv-fs-micro); font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gv-accent);
  padding: 0 0 16px; float: left; width: 100%;
}
.gv-group legend + * { clear: both; }
.gv-note { font-size: var(--gv-fs-body); color: var(--gv-muted); margin: 0 0 18px; }

.gv-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.gv-full { grid-column: span 6; }
.gv-half { grid-column: span 3; }
.gv-third { grid-column: span 2; }

/* ---- Fields ---- */
.gv-field > label {
  display: block; font-size: var(--gv-fs-label); font-weight: 600;
  color: var(--gv-heading); margin-bottom: 6px; line-height: 1.45;
}
.gv-req { color: var(--gv-error); font-weight: 700; }

.gv-field input[type="text"],
.gv-field input[type="email"],
.gv-field input[type="tel"],
.gv-field input[type="date"],
.gv-field input[type="number"],
.gv-field textarea,
.gv-field select {
  width: 100%; height: auto; padding: 11px 13px;
  font-size: var(--gv-fs-body); line-height: 1.5; color: var(--gv-text);
  background: var(--gv-bg); border: 1px solid var(--gv-line);
  border-radius: var(--gv-radius-input);
  -webkit-appearance: none; appearance: none;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.gv-field input[type="date"] { min-height: 45px; }
.gv-field textarea { resize: vertical; min-height: 116px; }
.gv-field input:focus, .gv-field textarea:focus, .gv-field select:focus {
  outline: none; border-color: var(--gv-brand); background: var(--gv-surface);
  box-shadow: 0 0 0 3px rgba(47, 107, 87, .13);
}
.gv-field input::placeholder, .gv-field textarea::placeholder {
  color: var(--gv-muted); opacity: 1; font-size: var(--gv-fs-body);
}
.gv-help { display: block; font-size: var(--gv-fs-small); color: var(--gv-muted); margin-top: 6px; }

.gv-select { position: relative; }
.gv-select select { padding-right: 38px; cursor: pointer; }
.gv-caret {
  position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px; color: var(--gv-muted); pointer-events: none;
}

/* ---- Availability grid ----
   Every part is targeted by class. An element selector such as
   `.gv-slot span` would outrank `.gv-slot-label` and squash the text into
   the width of a checkbox. */
.gv-avail { border: 1px solid var(--gv-line); border-radius: var(--gv-radius); overflow: hidden; }
.gv-avail-head, .gv-avail-row {
  display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); align-items: center;
}
.gv-avail-head { background: var(--gv-bg); border-bottom: 1px solid var(--gv-line); }
.gv-avail-head > span {
  padding: 11px 14px; text-align: center;
  font-size: var(--gv-fs-micro); font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gv-muted); line-height: 1.4;
}
.gv-avail-head > span:first-child { text-align: left; }
.gv-avail-row { border-top: 1px solid var(--gv-line); }
.gv-avail-row:first-of-type { border-top: none; }
.gv-avail-day {
  padding: 12px 14px; font-size: var(--gv-fs-body); font-weight: 600;
  color: var(--gv-heading); line-height: 1.4;
}

.gv-slot {
  display: flex; align-items: center; justify-content: center;
  padding: 11px 6px; margin: 0; min-height: 48px; cursor: pointer;
}
.gv-slot input {
  position: absolute; width: 1px; height: 1px;
  opacity: 0; pointer-events: none; margin: 0;
}
.gv-slot-box {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 26px; height: 26px; border-radius: 7px;
  border: 1.5px solid var(--gv-line); background: var(--gv-surface);
  transition: background-color .14s ease, border-color .14s ease;
}
.gv-slot-box::after {
  content: ""; width: 9px; height: 5px; margin-top: -3px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(.4); opacity: 0;
  transition: opacity .14s ease, transform .14s ease;
}
.gv-slot:hover .gv-slot-box { border-color: var(--gv-brand); }
.gv-slot input:checked + .gv-slot-box { background: var(--gv-brand); border-color: var(--gv-brand); }
.gv-slot input:checked + .gv-slot-box::after { opacity: 1; transform: rotate(-45deg) scale(1); }
.gv-slot input:focus-visible + .gv-slot-box { outline: 3px solid var(--gv-accent); outline-offset: 2px; }

/* Hidden on wide screens, where the column heading already names the slot. */
.gv-slot-label {
  display: none; margin-left: 10px;
  font-size: var(--gv-fs-body); font-weight: 500; color: var(--gv-text);
  line-height: 1.4; white-space: nowrap;
}

/* ---- Checkbox list ---- */
.gv-checks { display: grid; gap: 10px; }
.gv-check {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px;
  background: var(--gv-bg); border: 1px solid var(--gv-line);
  border-radius: var(--gv-radius-input); cursor: pointer;
  transition: border-color .14s ease, background-color .14s ease;
}
.gv-check:hover { border-color: var(--gv-brand); }
.gv-check input { width: 18px; height: 18px; margin: 3px 0 0; flex-shrink: 0; accent-color: var(--gv-brand); }
.gv-check-text { display: block; }
.gv-check-title {
  display: block; font-family: var(--gv-display); font-weight: 600;
  font-size: var(--gv-fs-body); color: var(--gv-heading); line-height: 1.4;
}
.gv-check-desc { display: block; font-size: var(--gv-fs-small); color: var(--gv-muted); line-height: 1.55; }
.gv-check:has(input:checked) { border-color: var(--gv-brand); background: var(--gv-surface); }

/* ---- Sub headings inside a group ---- */
.gv-sub {
  font-family: var(--gv-display); font-size: var(--gv-fs-micro); font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--gv-muted);
  margin: 0 0 4px; padding-top: 18px; border-top: 1px solid var(--gv-line);
}
.gv-grid .gv-sub { grid-column: span 6; }
.gv-grid .gv-sub:first-child { padding-top: 0; border-top: none; }

/* ---- Consent ---- */
.gv-consent-copy {
  background: var(--gv-bg); border-left: 3px solid var(--gv-accent);
  border-radius: var(--gv-radius-input); padding: 16px 18px;
  font-size: var(--gv-fs-body); line-height: 1.7; color: var(--gv-text); margin-bottom: 18px;
}
.gv-consent {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: var(--gv-fs-body); font-weight: 400; color: var(--gv-text);
  margin-bottom: 0; cursor: pointer; line-height: 1.55;
}
.gv-consent input { width: 18px; height: 18px; margin: 3px 0 0; flex-shrink: 0; accent-color: var(--gv-brand); }
.gv-signature input[type="text"] { font-family: var(--gv-display); font-size: 17px; }

/* ---- Validation ---- */
.gv-error {
  display: flex; align-items: flex-start; gap: 6px;
  font-size: var(--gv-fs-small); font-weight: 500; color: var(--gv-error);
  margin-top: 6px; line-height: 1.5;
}
.gv-error[hidden] { display: none; }
.gv-error::before {
  content: "!"; flex-shrink: 0;
  width: 15px; height: 15px; margin-top: 3px; border-radius: 50%;
  background: var(--gv-error); color: #fff; font-size: 10px; font-weight: 700;
  line-height: 15px; text-align: center;
}
.gv-field.has-error input,
.gv-field.has-error textarea,
.gv-field.has-error select,
.has-error .gv-avail { border-color: var(--gv-error-line); background: var(--gv-error-soft); }
.gv-field.has-error > label { color: #8E2C25; }

/* ---- Submit ---- */
.gv-submit { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.gv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 28px; font-size: var(--gv-fs-body); font-weight: 700; line-height: 1.2;
  background: var(--gv-accent); color: #1B1408; border: none;
  border-radius: var(--gv-radius); cursor: pointer; text-decoration: none;
  transition: background-color .18s ease, transform .18s ease, opacity .18s ease;
}
.gv-btn:hover { background: #A97722; color: #1B1408; transform: translateY(-1px); }
.gv-btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.gv-btn-ghost { background: transparent; color: var(--gv-heading); border: 2px solid var(--gv-heading); font-weight: 600; }
.gv-btn-ghost:hover { background: var(--gv-heading); color: #fff; }
.gv-btn svg { width: 16px; height: 16px; }
.gv-submit-note { font-size: var(--gv-fs-small); color: var(--gv-muted); margin: 0; }
.gv-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.gv-spin {
  width: 15px; height: 15px; border: 2px solid rgba(27, 20, 8, .3);
  border-top-color: #1B1408; border-radius: 50%;
  animation: gv-turn .7s linear infinite;
}
@keyframes gv-turn { to { transform: rotate(360deg); } }

/* ---- Confirmation ---- */
.gv-done {
  max-width: 620px; margin: 0 auto; text-align: center;
  background: var(--gv-surface); border: 1px solid var(--gv-line);
  border-top: 4px solid var(--gv-brand); border-radius: var(--gv-radius);
  padding: 52px 34px; box-shadow: 0 8px 24px -12px rgba(16, 32, 26, .14);
}
.gv-done[hidden] { display: none; }
.gv-done-mark {
  width: 58px; height: 58px; margin: 0 auto 20px; border-radius: 50%;
  background: rgba(47, 107, 87, .12); color: var(--gv-brand);
  display: flex; align-items: center; justify-content: center;
}
.gv-done-mark svg { width: 26px; height: 26px; }
.gv-done h2 { font-size: var(--gv-fs-h2); margin-bottom: 8px; }
.gv-done-meta {
  font-size: var(--gv-fs-small); font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: var(--gv-muted); margin: 0 0 16px;
}
.gv-done-meta[hidden] { display: none; }
.gv-done p { color: var(--gv-muted); }
.gv-done-actions { margin-top: 26px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* ---- Responsive ---- */
@media (max-width: 760px) {
  .gv { padding: 32px 0 48px; --gv-fs-h2: 20px; }
  .gv-wrap { padding: 0 16px; }
  .gv-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .gv-full, .gv-half { grid-column: span 2; }
  .gv-third { grid-column: span 1; }
  .gv-grid .gv-sub { grid-column: span 2; }
  .gv-group { padding: 22px 20px 18px; }

  /* One card per day, with the slot named beside each box. */
  .gv-avail-head { display: none; }
  .gv-avail-row {
    grid-template-columns: 1fr; border-top: 1px solid var(--gv-line);
    padding: 8px 0 12px; align-items: stretch;
  }
  .gv-avail-day { padding: 4px 14px 2px; }
  .gv-slot { justify-content: flex-start; padding: 8px 14px; min-height: 42px; }
  .gv-slot-label { display: inline-block; }

  .gv-submit { flex-direction: column; align-items: stretch; }
  .gv-btn { width: 100%; }
  .gv-done { padding: 40px 22px; }
  .gv-done-actions { flex-direction: column; }
}

@media (max-width: 420px) {
  .gv-third { grid-column: span 2; }
}

@media (prefers-reduced-motion: reduce) {
  .gv *, .gv *::before, .gv *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .gv-btn:hover { transform: none; }
}
