/*
 * Great Camp Jobs public pages (portal spec 3.4): the application form, the
 * thank-you page and, from step 1.3, the applicant's own page. Its own file,
 * outside the Hub's build, so a Hub theme change never restyles the form.
 * Colors from greatcampjobs.com as the version 4 mockup records them: logo
 * dark green #26524a, green #026451, Apply orange #ff6512 for the one
 * forward button, sun yellow #fddb3e for the step markers, ink #292523.
 * No web font is fetched: the heading stack starts with Jost and Futura and
 * falls back to the system's sans serif.
 */
:root {
    --g-900: #1d3f39; --g-800: #26524a; --g-700: #026451; --g-100: #e3efe9; --g-50: #f1f7f4;
    --orange: #ff6512; --orange-700: #c94a07; --sun: #fddb3e; --sun-100: #fff6cc;
    --ink: #292523; --ink-2: #55504c; --ink-3: #736d68; --line: #e4e0d8; --bg: #f6f4ee;
    --red: #b42318; --red-100: #fde8e8; --red-200: #f6c4c4;
    --head: "Jost", "Futura PT", "Futura", "Century Gothic", "Helvetica Neue", Arial, sans-serif;
    --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.gcj { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--g-700); }
button, input, select, textarea { font: inherit; color: inherit; }

.gcj-hero { position: relative; overflow: hidden; min-height: 170px; display: flex; align-items: flex-end; color: #fff; background: var(--g-800); }
.gcj-hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gcj-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(29, 63, 57, .9), rgba(29, 63, 57, .2)); }
.gcj-hero-in { position: relative; z-index: 1; padding: 18px 16px; max-width: 720px; margin: 0 auto; width: 100%; }
.gcj-logo { height: 28px; width: auto; filter: brightness(0) invert(1); margin-bottom: 10px; display: block; }
.gcj-hero h1 { font-family: var(--head); text-transform: uppercase; letter-spacing: .03em; font-size: 28px; margin: 0; line-height: 1.1; }
.gcj-hero p { margin: 6px 0 0; font-weight: 600; }

.gcj-main { max-width: 720px; margin: 0 auto; padding: 16px 16px 48px; }
.gcj-foot { max-width: 720px; margin: 0 auto; padding: 0 16px 32px; font-size: 13px; color: var(--ink-3); }

.gcj-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 16px; }
.gcj-card h2, .gcj-step h2 { font-family: var(--head); color: var(--g-900); font-size: 24px; line-height: 1.2; margin: 4px 0 8px; }
.gcj-card h3 { font-family: var(--head); color: var(--g-800); margin: 18px 0 0; }
.gcj-badge { width: 64px; height: 64px; border-radius: 50%; background: var(--g-700); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 32px; margin-bottom: 12px; }
.gcj-nexts { counter-reset: n; list-style: none; padding: 0; margin: 12px 0; }
.gcj-nexts li { counter-increment: n; display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; }
.gcj-nexts li::before { content: counter(n); flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--sun); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.gcj-muted { color: var(--ink-2); font-size: 14px; }

.gcj-steps { display: flex; gap: 6px; margin: 4px 0 16px; }
.gcj-steps span { flex: 1; height: 7px; border-radius: 99px; background: var(--line); }
.gcj-steps span.on { background: var(--sun); }
.gcj-steps span.done { background: var(--g-700); }
.gcj-stepname { font-family: var(--head); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; font-size: 13px; color: var(--g-700); }
.gcj-saved { font-size: 13.5px; color: var(--g-700); font-weight: 700; margin: 0 0 12px; }

/* Without JavaScript every step shows; with it, one at a time. */
.gcj-step { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 16px; margin-bottom: 16px; }
.gcj-js .gcj-step { display: none; }
.gcj-js .gcj-step.is-current { display: block; }
.gcj-steps { display: none; }
.gcj-js .gcj-steps { display: flex; }

.gcj-fld { margin: 0 0 14px; border: 0; padding: 0; min-width: 0; }
.gcj-fld label, .gcj-fld legend, .gcj-lab { display: block; font-weight: 700; font-size: 15px; margin: 0 0 5px; padding: 0; }
.gcj-hint { font-size: 14px; color: var(--ink-2); margin: -2px 0 6px; }
.gcj-fld input:not([type=radio]):not([type=checkbox]):not([type=file]), .gcj-fld select, .gcj-fld textarea {
    width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; min-height: 48px; max-width: 100%;
}
.gcj-fld textarea { min-height: 110px; }
.gcj-fld input:focus, .gcj-fld select:focus, .gcj-fld textarea:focus { outline: 2px solid var(--g-700); outline-offset: 0; border-color: transparent; }
.gcj-fld input[type=file] { width: 100%; padding: 14px; border: 2px dashed #aec2b8; border-radius: 12px; background: var(--g-50); font-weight: 600; }
.gcj-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 560px) { .gcj-grid2 { grid-template-columns: minmax(0, 1fr); gap: 0; } }
.gcj-phone { display: flex; gap: 8px; }
.gcj-phone select { flex: 0 0 140px; width: 140px; }
.gcj-phone input { flex: 1 1 auto; min-width: 0; }
.gcj-sub { margin-top: 10px; }

.gcj-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.gcj-chip { display: flex !important; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 99px; padding: 0 14px; min-height: 44px; font-weight: 600 !important; font-size: 15px !important; background: #fff; cursor: pointer; margin: 0 !important; }
.gcj-chip input { width: 20px; height: 20px; accent-color: var(--g-700); margin: 0; }
.gcj-chip:has(input:checked) { border-color: var(--g-700); background: var(--g-50); color: var(--g-800); }
.gcj-chip:has(input:focus-visible) { outline: 2px solid var(--g-700); }

.gcj-note { background: var(--g-50); border: 1px solid var(--g-100); border-radius: 12px; padding: 12px 14px; margin: 10px 0 14px; font-size: 15px; }
.gcj-note p { margin: 0 0 6px; }
.gcj-note p:last-child { margin-bottom: 0; }
.gcj-stop { background: var(--red-100); border: 1px solid var(--red-200); border-radius: 12px; padding: 12px 14px; margin: 8px 0 0; font-weight: 600; }
.gcj-error { color: var(--red); font-weight: 700; font-size: 14px; margin: 6px 0 0; }
.has-error input:not([type=radio]):not([type=checkbox]), .has-error select, .has-error textarea { border-color: var(--red); }
/* A group with nothing picked (Trevor T1): a red bar beside it, a red question, red chip edges. */
fieldset.gcj-fld.has-error { border-left: 4px solid var(--red); padding-left: 12px; }
fieldset.gcj-fld.has-error legend { color: var(--red); }
fieldset.gcj-fld.has-error .gcj-chip { border-color: var(--red-200); }
.gcj-alert { background: var(--red-100); border: 1px solid var(--red-200); border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; }
.gcj-alert p { margin: 0 0 4px; }

.gcj-nav { display: flex; gap: 10px; margin-top: 18px; }
.gcj-btn { flex: 1; min-height: 52px; border-radius: 10px; padding: 0 16px; font-weight: 700; font-size: 16px; border: 1.5px solid transparent; cursor: pointer; }
.gcj-btn-pri { background: var(--orange); color: #fff; }
.gcj-btn-pri:hover { background: var(--orange-700); }
.gcj-btn-pri:disabled { background: #c9c3bb; cursor: not-allowed; }
.gcj-btn-sec { background: #fff; border-color: var(--line); color: var(--g-800); flex: 0 0 auto; }

/* The box people never see. */
.gcj-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }

/* The applicant's own page (portal spec 3.5). */
.gcj-main > .gcj-card, .gcj-main > section.gcj-card, .gcj-main > form.gcj-card { margin-bottom: 16px; }
.gcj-done { background: var(--g-50); border-color: var(--g-100); }
.gcj-done p { margin: 0; }
.gcj-status { font-size: 17px; }
.gcj-answers { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 8px 14px; margin: 8px 0 12px; }
.gcj-answers dt { color: var(--ink-2); font-size: 14px; }
.gcj-answers dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
@media (max-width: 560px) { .gcj-answers { grid-template-columns: minmax(0, 1fr); gap: 2px; } .gcj-answers dd { margin-bottom: 10px; } }
.gcj-opt { display: flex !important; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 12px; min-height: 48px; margin: 0 0 6px !important; font-weight: 600 !important; cursor: pointer; background: #fff; }
.gcj-opt input { width: 20px; height: 20px; accent-color: var(--g-700); }
.gcj-opt:has(input:checked) { border-color: var(--g-700); background: var(--g-50); }
.gcj-linkbtn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.gcj-confirm .gcj-btn { width: 100%; }

/* Meet the camps (tranche 2): read-only, never a picker. Two columns of camp
   cards at desktop width, one on a phone; the sky tint marks the line as
   information, so it never looks like a choice (version 4 design). Since
   2026-10-22 (Anthony) every camp shows at once, so the cards are small:
   tight padding, a smaller tile (none on a phone, where the width goes to
   the words), and no text under 13px. */
.gcj-meet { margin: 6px 0 14px; }
.gcj-readonly { background: #e6f5ff; border: 1px solid #b9dcf2; border-radius: 12px; padding: 10px 12px; font-size: 14.5px; line-height: 1.4; margin: 4px 0 10px; }
.gcj-camplist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
@media (max-width: 700px) { .gcj-camplist { grid-template-columns: minmax(0, 1fr); } }
.gcj-campcard { border: 1px solid var(--line); border-radius: 10px; padding: 6px 9px; background: #fff; display: flex; gap: 8px; align-items: flex-start; min-width: 0; }
.gcj-campcard-text { min-width: 0; overflow-wrap: anywhere; line-height: 1.3; }
/* Camp picks (Anthony, 2026-10-22): on the form a card is a label with a
   check box in its top corner; a picked card turns green like a chip. The
   whole card is the tap target (44px and up); at 4 picks the other cards
   are dimmed (gcj-apply.js sets is-full) and a fifth tap says why under it. */
.gcj-campcard-pick { position: relative; cursor: pointer; padding-right: 40px; min-height: 44px; font-weight: 400 !important; margin: 0 !important; }
.gcj-campcard-pick:has(.gcj-pick-box:checked) { border-color: var(--g-700); background: var(--g-50); box-shadow: inset 0 0 0 1px var(--g-700); }
.gcj-campcard-pick:has(.gcj-pick-box:focus-visible) { outline: 2px solid var(--g-700); outline-offset: 1px; }
.gcj-meet.is-full .gcj-campcard-pick:not(:has(.gcj-pick-box:checked)) { opacity: .6; }
.gcj-pick-note { grid-column: 1 / -1; margin: 0 0 4px; }
.gcj-pick-box { position: absolute; top: 8px; right: 9px; width: 22px; height: 22px; margin: 0; accent-color: var(--g-700); }
.gcj-pick-count { font-weight: 800; color: var(--g-800); margin: 2px 0 6px; font-size: 15px; }
.gcj-mono { width: 30px; height: 30px; border-radius: 8px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; font-family: var(--head); font-weight: 700; color: var(--sun); background: var(--g-800); font-size: 12px; letter-spacing: .03em; margin-top: 1px; }
@media (max-width: 700px) { .gcj-mono { display: none; } }
.gcj-cn { font-weight: 800; font-size: 14.5px; line-height: 1.25; }
.gcj-ct { font-size: 13px; color: var(--g-700); font-weight: 700; }
.gcj-pr { font-size: 13px; color: var(--ink); font-weight: 700; margin-top: 1px; }
.gcj-tr { font-size: 13px; color: var(--ink-2); margin-top: 1px; line-height: 1.3; }
/* Anthony, 2026-10-21: camps under All Boys, All Girls, Coed, Day Camps; the
   commutable tag; and the Specialty heading over the niche positions. */
.gcj-group-head { font-family: var(--head); font-weight: 700; font-size: 15px; color: var(--g-800); margin: 10px 0 5px; }
.gcj-commute { display: inline-block; font-size: 13px; font-weight: 700; color: var(--g-800); background: var(--g-50); border: 1px solid var(--g-700); border-radius: 999px; padding: 0 7px; margin-top: 3px; }
.gcj-chips-head { margin-top: 12px; }

/* The Video button and its player (resources/views/components/ui/explainer.blade.php),
   in this file's own colors; the Hub's copy is in resources/css/hub/v4.css. */
.v4-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hub-explainer { display: inline-flex; vertical-align: middle; }
.hub-explainer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.hub-explainer-btn, .hub-explainer-close { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--g-700); background: #fff; color: var(--g-700); font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.hub-explainer-close { border-color: var(--line); color: var(--g-800); }
.hub-explainer-btn svg, .hub-explainer-close svg { width: 18px; height: 18px; flex: 0 0 auto; }
.hub-explainer-btn:focus-visible, .hub-explainer-close:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.hub-explainer-dialog { width: min(720px, calc(100vw - 24px)); max-width: none; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); }
.hub-explainer-dialog::backdrop { background: rgba(0, 0, 0, .55); }
.hub-explainer-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.hub-explainer-title { font-family: var(--head); color: var(--g-900); font-size: 20px; margin: 0; }
.hub-explainer-video { display: block; width: 100%; height: auto; max-height: calc(100vh - 120px); background: #000; border-radius: 6px; }

/* The visa pop-up on step 1 (Anthony, 2026-10-22). A native <dialog>, like the Video player above. */
.gcj-visa-pop { width: min(440px, calc(100vw - 32px)); max-width: none; padding: 22px 18px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); text-align: center; }
.gcj-visa-pop::backdrop { background: rgba(0, 0, 0, .55); }
.gcj-visa-pop-text { margin: 0 0 18px; font-size: 18px; line-height: 1.45; }
.gcj-visa-pop-text strong { display: block; font-family: var(--head); color: var(--g-900); font-size: 22px; line-height: 1.2; margin-bottom: 6px; }
.gcj-visa-pop .gcj-btn { width: 100%; }
.gcj-pop-btns { display: grid; gap: 10px; }
.gcj-dob { display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: 8px; }
.gcj-dob select { min-width: 0; }
.gcj-visa-pop .gcj-btn:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

/* The applicant's video (2026-10-21): full width on a phone, never taller than the screen. */
.gcj-video { display: block; width: 100%; max-height: 70vh; background: #000; border-radius: 8px; margin: 6px 0 10px; }
.gcj-remove { margin-top: 10px; }
.gcj-remove summary { cursor: pointer; color: var(--red); font-weight: 700; padding: 10px 0; line-height: 24px; } /* 44px tall, a finger's reach (Trevor) */
