/* Happy Rides — shared styles for every page.
   Section markup is copied from HappyRides_Handoff/{mobile,desktop}/design/*.dc.html with its inline styles;
   this file only holds what the design keeps in <helmet>, plus layout switch, modal, form states and themes.
   No global box-sizing reset: Claude Design renders with browser defaults, and the copied markup relies on that. */

body{margin:0;background:#14234B;font-family:'Plus Jakarta Sans',system-ui,sans-serif;color:#14234B}
a{color:#14234B}a:hover{color:#B85500}
html{scroll-behavior:smooth}
img{max-width:100%;height:auto}
[hidden]{display:none !important}

/* ─── Page shell & themes ─────────────────────────────────────────────────── */
.page{min-height:100vh;background:#F5F9FE;color:#14234B;position:relative}
/* Cream: Drive Happy, and T&C (matches Good Things T&C) */
.theme-drive .page,.theme-cream .page{background:#FFF8EE}

/* ─── Layout switch: mobile < 1024px, desktop >= 1024px ───────────────────── */
.d-only{display:none}
@media (min-width:1024px){
  .m-only{display:none !important}
  .d-only{display:block}
  .d-only.d-flex{display:flex}
  .d-only.d-grid{display:grid}
}
/* Content column is 1200px (content-box) with side gutters; ported desktop boxes append the same gutter inline */
:root{--gutter:40px}
@media (max-width:1279px){:root{--gutter:32px}}
.d-container{max-width:1200px;margin:0 auto;padding-left:var(--gutter);padding-right:var(--gutter);box-sizing:content-box}
/* Desktop art is positioned/oversized on purpose */
.d-only img{max-width:none}

.skip-link{position:absolute;left:12px;top:-60px;z-index:100;padding:10px 16px;border-radius:10px;background:#14234B;color:#FFFFFF;font-weight:800;text-decoration:none}
.skip-link:focus{top:12px;color:#FFFFFF}

/* ─── Home (desktop): values from desktop/design/home.dc.html at 1440px ───── */
/* Hero is 2/3 of the design height (720 → 480px, requested 2026-10-14). Type and spacing scale down with it;
   the art keeps the design's left edge (42px right of the column centre) and crops sky instead of shrinking the car. */
.d-hero{height:480px}
.d-hero-img{width:min(calc(50% - 42px), 700px);height:100%;object-fit:cover;object-position:center bottom}
.d-hero-text{width:600px;gap:14px}
.d-hero-h1{font-size:60px;max-width:470px}
.d-hero-p{font-size:18px}
.d-hero-cta{min-height:54px}
.d-how-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.d-chances{grid-template-columns:minmax(0,.8fr) minmax(0,1.4fr)}
.d-chat{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);padding:48px 52px}
/* 1024–1279px has no design: keep the headline clear of the car, stack the two crowded grids */
@media (min-width:1024px) and (max-width:1279px){
  .d-hero-text{width:440px}
  .d-hero-h1{font-size:52px}
  .d-chances{grid-template-columns:minmax(0,1fr)}
}

/* ─── Header ──────────────────────────────────────────────────────────────── */
.nav-menu{display:none}
.nav-menu.open{display:flex}
.d-nav a{white-space:nowrap}
@media (min-width:1024px) and (max-width:1279px){.d-nav{gap:24px !important}}
.d-footer-nav a{white-space:nowrap}
@media (min-width:1024px) and (max-width:1279px){.d-footer-row{flex-wrap:wrap;row-gap:16px}}

/* ─── Modal: [data-modal] overlays ────────────────────────────────────────── */
.modal{display:none;position:fixed;inset:0;z-index:50;align-items:flex-start;justify-content:center;padding:16px 12px}
.modal.open{display:flex}
.modal [data-modal-focus]:focus{outline:none}
@media (min-width:1024px){.modal{padding:40px}}

/* ─── Form controls (values from EntryForm.dc.html) ───────────────────────── */
.hr-field{width:100%;box-sizing:border-box;min-height:52px;padding:0 16px;border:1.5px solid #D3DCE8;border-radius:14px;background:#FFFFFF;font:inherit;font-size:16px;color:#14234B}
.hr-field::placeholder{color:#7D869E}
.hr-field:focus{outline:3px solid #9CC8F5;outline-offset:1px;border-color:#14234B}
select.hr-field{padding-right:40px;appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234A5578' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center}
.hr-field.invalid{border-color:#DC2626}
.hr-choice{display:flex;align-items:center;gap:12px;min-height:48px;padding:0 14px;border:1.5px solid #DCE6F2;border-radius:14px;background:#FFFFFF;font-size:15.5px;cursor:pointer;box-sizing:border-box}
.hr-choice input{width:20px;height:20px;margin:0;accent-color:#14234B;flex:none}
.hr-check{display:flex;align-items:flex-start;gap:12px;font-size:14.5px;line-height:1.5;cursor:pointer}
.hr-check input{width:22px;height:22px;margin:1px 0 0;accent-color:#14234B;flex:none}
/* Honeypot: off-screen, not display:none (some bots skip hidden fields) */
.hr-hp{position:absolute !important;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}

/* ─── Form states ─────────────────────────────────────────────────────────── */
.success-panel{display:none !important}
.submitted .form-panel{display:none !important}
.submitted .success-panel{display:flex !important}
.form-error{display:none;padding:14px 16px;border-radius:14px;background:#FDECEC;color:#9B1C1C;font-size:14.5px;line-height:1.45;font-weight:600}
.form-error.show{display:block}
.field-error{margin:6px 0 0;font-size:13px;color:#9B1C1C;font-weight:600;line-height:1.4}
.btn-submit[aria-busy="true"]{opacity:.7;cursor:progress}

/* ─── Accordion (FAQ): one item open at a time, +/− icon as in the design ──── */
[data-accordion] .acc-panel{display:none}
[data-accordion] .open > .acc-panel{display:block}
[data-accordion] .acc-minus,[data-accordion] .open .acc-plus{display:none}
[data-accordion] .open .acc-minus{display:block}

@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none !important}}

/* ─── Drive / Ride (desktop) ──────────────────────────────────────────────── */
/* Hero art reaches the viewport edge: the design's -120px is the 1440px side margin */
.d-bleed-right{margin-right:calc(-1 * max(var(--gutter), (100vw - 1200px) / 2))}
.d-bleed-right img{height:auto}
/* Above 1440px the wider column would scale the art up and push the headline down:
   hold the 1440px height (--hero-h, set per page) and crop sideways instead */
@media (min-width:1441px){
  .d-bleed-right img{height:var(--hero-h);object-fit:cover;object-position:left bottom}
}

/* ─── Thank-you screen (ported from Good Things .gt-ty; Drive = yellow, Ride = blue) ─────────────── */
.hr-ty,.hr-ty *{box-sizing:border-box}
.hr-ty{container-type:inline-size;width:100%;display:flex;flex-direction:column;gap:14px;color:#14234B}
.hr-ty-hero{display:flex;align-items:center;gap:12px;padding:20px 18px;border-radius:22px;background:#FDFAF2}
.hr-ty[data-prize="ride"] .hr-ty-hero{background:#F3F8FE}
.hr-ty-head{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.hr-ty .hr-ty-title{margin:0;font-size:25px;font-weight:800;letter-spacing:-0.6px;line-height:1.1}
.hr-ty .hr-ty-intro{margin:0;font-size:14.5px;line-height:1.45;color:#3D4870}
.hr-ty-mascot{flex:none;width:118px;height:auto;margin:-10px -6px -10px 0;-webkit-mask-image:radial-gradient(ellipse 50% 50% at 50% 50%,#000 78%,transparent 100%);mask-image:radial-gradient(ellipse 50% 50% at 50% 50%,#000 78%,transparent 100%)}
.hr-ty-selected{padding:14px 16px;border-radius:20px;background:#FFF6DE}
.hr-ty[data-prize="ride"] .hr-ty-selected{background:#E3F1FC}
.hr-ty-row{display:flex;align-items:center;gap:12px}
.hr-ty-icon{flex:none;width:44px;height:44px;border-radius:50%;background:#FFE3A3;color:#B5631F;display:flex;align-items:center;justify-content:center}
.hr-ty[data-prize="ride"] .hr-ty-icon{background:#C9E2FB;color:#0F5FB8}
.hr-ty .hr-ty-label{display:block;font-size:11.5px;font-weight:800;letter-spacing:1.3px;color:#D97706}
.hr-ty[data-prize="ride"] .hr-ty-label{color:#0F5FB8}
.hr-ty-prize{display:block;margin-top:2px;font-size:18px;font-weight:800;line-height:1.2}
.hr-ty-ref{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:2px 12px;margin-top:12px;padding-top:12px;border-top:1px solid rgba(181,99,31,.2)}
.hr-ty[data-prize="ride"] .hr-ty-ref{border-top-color:rgba(15,95,184,.18)}
.hr-ty-ref[hidden]{display:none}
.hr-ty-ref:not([hidden]){animation:hr-pop .55s cubic-bezier(.2,1.5,.4,1) both}
@keyframes hr-pop{from{opacity:0;transform:scale(.85)}to{opacity:1;transform:none}}
.hr-ty-ticket{grid-row:1/3;width:44px;display:flex;justify-content:center}
.hr-ty-ref .hr-ty-label{grid-column:2}
.hr-ty-code{grid-column:2;font-size:24px;font-weight:800;letter-spacing:1.5px;line-height:1.15}
.hr-ty-copy{grid-column:3;grid-row:1/3;min-height:40px;padding:0 16px;border:0;border-radius:999px;background:#2F7BE4;color:#FFFFFF;font:inherit;font-size:14.5px;font-weight:800;cursor:pointer}
.hr-ty-copy:focus-visible{outline:3px solid #9CC2F5;outline-offset:2px}
.hr-ty .hr-ty-emailed{grid-column:1/-1;margin:8px 0 0;font-size:13px;color:#3D4870}
.hr-ty-emailed[hidden]{display:none}
.hr-ty-cards{display:grid;gap:12px}
.hr-ty-card{border-radius:20px;padding:18px}
.hr-ty-next{display:flex;gap:14px;align-items:flex-start;background:#EAF1FB}
.hr-ty-illus{flex:none;width:72px;height:72px;border-radius:50%;overflow:hidden;background:#FFFFFF}
.hr-ty-illus img,.hr-ty-bell img{display:block;width:100%;height:100%}
.hr-ty-heads{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;background:#FDECEF}
.hr-ty-bell{width:72px;height:72px;border-radius:50%;overflow:hidden;background:#FBD5DE}
.hr-ty .hr-ty-h4{margin:0;font-size:20px;font-weight:800;letter-spacing:-0.3px;line-height:1.15}
.hr-ty .hr-ty-sub{margin:2px 0 6px;font-size:16px;font-weight:800;color:#2B4C8C}
.hr-ty .hr-ty-p{margin:6px 0 0;font-size:14.5px;line-height:1.5;color:#3D4870}
.hr-ty-heads .hr-ty-p{margin:0}
.hr-ty .hr-ty-foot{margin:2px 0 0;padding-top:12px;border-top:1px solid #EFE8DC;text-align:center;font-size:13px;color:#4A5578}
.hr-ty-foot a{color:#2F7BE4}
.hr-ty-close{align-self:center;min-height:48px;padding:0 24px;border-radius:999px;border:2px solid #14234B;background:#FFFFFF;color:#14234B;font:inherit;font-weight:800;cursor:pointer}
@container (min-width:600px){
  .hr-ty{gap:18px}
  .hr-ty-hero{padding:28px 32px;gap:20px}
  .hr-ty .hr-ty-title{font-size:38px;letter-spacing:-1.2px}
  .hr-ty .hr-ty-intro{font-size:17px}
  .hr-ty-mascot{width:210px;margin:-24px -8px -24px 0}
  .hr-ty-selected{padding:18px 22px}
  .hr-ty-prize{font-size:22px}
  .hr-ty-code{font-size:30px}
  .hr-ty-cards{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)}
  .hr-ty-card{padding:22px 24px}
  .hr-ty-illus{width:110px;height:110px}
  .hr-ty-bell{width:92px;height:92px}
  .hr-ty .hr-ty-h4{font-size:24px}
  .hr-ty .hr-ty-p{font-size:15.5px}
}
@media (prefers-reduced-motion:reduce){.hr-ty-ref:not([hidden]){animation:none}}
/* HGLReferral.show() adds .hgl-celebrate (margin:auto) to the code box parent; keep it full width here */
.hr-ty .hgl-celebrate{margin-left:0;margin-right:0}
/* Once submitted, the thank-you screen replaces the form intro / sign-up header */
.hr-submitted [data-hr-intro]{display:none !important}
