/* Self-hosted fonts — no external dependency, guaranteed rendering */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/inter-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/poppins-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/poppins-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/poppins-latin-700-normal.woff2') format('woff2'); }

/* ============================================================
   Parka /pay — from Figma file "Parka Product Redesign"
   Mobile: frame 158:2425 · Desktop Focus: 160:3402 · Split: 161:690
   ============================================================ */

:root {
  /* Parka primitives */
  --teal: #0AB0BD;
  --teal-dark: #08949F;
  --teal-soft: #B5E6EB;
  --ink: #031F21;
  --mist: #F0F8F6;
  --frost: #E0EBE6;
  --white: #FFFFFF;
  --green: #3CCB7F;
  --green-deep: #0B7A52;
  --amber: #FBBF24;
  --amber-deep: #8A6206;
  --rose: #F71873;

  /* Semantic (shadcn slots — names match the Figma variables) */
  --background: #F7FFFB;   /* page background, always */
  --foreground: var(--ink);
  --card: var(--white);
  --card-border: #EDEDED;              /* card-template override from the design */
  --primary: var(--teal);
  --primary-hover: var(--teal-dark);
  --primary-foreground: var(--white);
  --accent-foreground: var(--teal-dark);
  --muted: var(--frost);
  --muted-surface: var(--mist);
  --muted-foreground: rgba(3, 31, 33, .6);
  --step-sub: #88919D;                 /* step sub-text, from the design */
  --helper-2: #555C65;                 /* text-helper paragraphs 2 and 3 */
  --placeholder: rgba(3, 31, 33, .4);
  --border: var(--frost);
  --input: var(--frost);
  --ring: rgba(10, 176, 189, .12);
  --ring-error: rgba(247, 24, 115, .08);
  --ring-selected: rgba(10, 176, 189, .10);
  --destructive: var(--rose);
  --success-surface: rgba(60, 203, 127, .14);
  --success-foreground: var(--green-deep);
  --warning-surface: rgba(251, 191, 36, .16);
  --warning-notice-surface: rgba(251, 191, 36, .12);
  --warning-border: rgba(251, 191, 36, .4);
  --warning-foreground: var(--amber-deep);
  --selected-surface: rgba(10, 176, 189, .06);

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-2xl: 16px;

  /* card-template shadow from the design */
  --elevation-card: 0 1px 1px rgba(3,31,33,.04), 0 4px 8px rgba(3,31,33,.06);
  --elevation-floating: 0 4px 4px rgba(3,31,33,.08), 0 12px 16px rgba(3,31,33,.10);

  --font-ui: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Poppins', var(--font-ui);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-ui);
  background: var(--background);
  color: var(--foreground);
  font-size: 14px;
  font-weight: 500;               /* body/default in the design is Inter Medium */
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ============ Header ============ */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px;
  position: relative; z-index: 5;
}

.site-header .logo img { display: block; width: 113px; height: 28px; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-display); font-weight: 500; font-size: 13px; line-height: 24px; color: #000;
  background: transparent; border: 1px solid #E2E2E2; border-radius: 8px;
  padding: 8px 12px; cursor: pointer;
}
.lang-toggle img { display: block; width: 16px; height: 16px; }
.lang-toggle .flag { border-radius: 50%; overflow: hidden; }

/* ============ Layout ============ */
.wrap {
  width: 100%; max-width: 402px; margin: 0 auto;
  padding: 34px 16px 48px;
  display: flex; flex-direction: column; gap: 24px;
}

/* Columns: transparent on mobile and in Focus (children flow in .wrap);
   Split turns them into real columns on desktop */
.col-info, .col-form { display: contents; }

/* ============ Lot hero ============ */
.lot-hero { display: flex; flex-direction: column; gap: 12px; }
.lot-title-block { display: flex; flex-direction: column; gap: 4px; }
.lot-title { font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 1.2; letter-spacing: -.02em; color: var(--foreground); }
.lot-meta { font-size: 14px; font-weight: 500; color: var(--muted-foreground); }
.lot-media {
  display: flex; align-items: stretch; overflow: hidden;
  background: var(--selected-surface);
  border: 1px solid var(--ring-selected);
  border-radius: var(--radius-2xl);
}
.lot-photo { flex: 1 0 0; min-width: 0; height: 140px; border-radius: var(--radius-xl); object-fit: cover; display: block; }
.zone-panel {
  flex: 1 0 0; min-width: 0; align-self: stretch;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
}
.zone-panel .zp-label { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-foreground); }
.zone-panel .zp-num { display: flex; align-items: center; gap: 4px; }
.zone-panel .zp-num img { width: 21px; height: 20px; display: block; }
.zone-panel .zp-num span { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1; color: var(--foreground); }
.status-row { display: flex; gap: 8px; flex-wrap: wrap; }
.status-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; line-height: 1; padding: 6px 12px; border-radius: 999px;
  color: var(--success-foreground); background: var(--success-surface);
}
.status-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.status-chip.warn { color: var(--warning-foreground); background: var(--warning-surface); }
.status-chip.warn::before { background: var(--amber); }

/* ============ Text helper (lot description, arbitrary HTML) ============ */
.text-helper { font-size: 14px; font-weight: 500; line-height: 1.55; color: var(--helper-2); }
.text-helper .th-body > * { margin: 0 0 12px; }
.text-helper .th-body > *:last-child { margin-bottom: 0; }
.text-helper .th-body > :first-child { color: var(--muted-foreground); }
.text-helper ul, .text-helper ol { padding-left: 20px; }
.text-helper li { margin: 0; }
.text-helper h1, .text-helper h2, .text-helper h3, .text-helper h4, .text-helper h5 { font-size: 14px; font-weight: 600; line-height: 1.55; color: var(--foreground); }
.text-helper b, .text-helper strong { font-weight: 700; }
.text-helper a { color: var(--accent-foreground); font-weight: 600; }

/* ============ Step cards ============ */
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--elevation-card);
  padding: 24px;
  display: flex; flex-direction: column; gap: 24px;
}
.step-wrapper { display: flex; flex-direction: column; gap: 8px; }
.step-title-row { display: flex; align-items: flex-start; gap: 8px; }
.step-circle {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  background: #0EB0BD; color: #fff;
  font-weight: 700; font-size: 14px; line-height: 1.3;
  display: grid; place-items: center;
}
.step-title { font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; color: var(--foreground); }
.step-sub { font-size: 14px; font-weight: 500; line-height: 1.55; color: var(--step-sub); }

/* ============ Plate ============ */
.plate-input {
  width: 100%;
  font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.2;
  letter-spacing: .12em; text-transform: uppercase; text-align: center;
  color: var(--foreground); background: var(--muted-surface);
  border: 2px solid var(--input); border-radius: var(--radius-xl);
  padding: 14px; outline: none; transition: .15s;
}
.plate-input::placeholder { color: var(--placeholder); }
.plate-input:focus { background: var(--card); border-color: var(--primary); box-shadow: 0 0 0 4px var(--ring); }
.field.error .plate-input { border-color: var(--destructive); box-shadow: 0 0 0 4px var(--ring-error); }

/* ============ Vehicle cards ============ */
.v-cards { display: flex; flex-direction: column; gap: 16px; }
.v-card {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  font-family: inherit; padding: 12px 16px;
  background: var(--card); border: 1px solid var(--input); border-radius: var(--radius-xl);
  cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s;
}
.v-card:hover { border-color: var(--primary); }
.v-card .v-icon { width: 48px; height: 28px; flex-shrink: 0; }
.v-card .v-icon img { display: block; width: 48px; height: 28px; }
.v-card .v-name { font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--foreground); flex: 1; white-space: nowrap; }
.v-card .v-price { font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--foreground); white-space: nowrap; }
.v-card .v-radio { width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; border: 2px solid var(--input); transition: .15s; position: relative; }
.v-card[aria-checked="true"] {
  border-color: var(--primary); background: var(--selected-surface);
  box-shadow: 0 0 0 3px var(--ring-selected);
}
.v-card[aria-checked="true"] .v-radio { border-color: var(--primary); background: var(--primary); }
.v-card[aria-checked="true"] .v-radio::after { content: ""; position: absolute; inset: 0; margin: auto; width: 7px; height: 7px; border-radius: 50%; background: #fff; }

/* ============ Days + Start ============ */
.days-start { display: flex; gap: 24px; align-items: flex-start; }
.field-label { font-size: 12px; font-weight: 600; line-height: 1.3; color: var(--muted-foreground); }
.stepper-block { display: flex; flex-direction: column; gap: 6px; }
.stepper { display: flex; align-items: stretch; height: 44px; background: var(--card); border: 1px solid var(--input); border-radius: var(--radius-lg); overflow: hidden; }
.stepper button { font-family: inherit; font-size: 18px; font-weight: 600; width: 42px; border: none; background: var(--card); color: var(--muted-foreground); cursor: pointer; }
.stepper button:hover { background: var(--muted-surface); color: var(--foreground); }
.stepper .st-val { width: 64px; display: grid; place-items: center; font-size: 16px; font-weight: 600; letter-spacing: .01em; color: var(--foreground); border-left: 1px solid var(--input); border-right: 1px solid var(--input); }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1 0 0; min-width: 0; }
.input {
  width: 100%; height: 44px;
  font-family: inherit; font-size: 16px; font-weight: 400; color: var(--foreground);
  background: var(--card); border: 1px solid var(--input); border-radius: var(--radius-lg);
  padding: 0 14px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: var(--placeholder); }
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--ring); }
.field.error .input { border-color: var(--destructive); box-shadow: 0 0 0 4px var(--ring-error); }
/* Date picker (Starting from) — DateTimeField + Calendar from the design system */
.datefield-box { position: relative; width: 100%; }
.date-trigger { display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; cursor: pointer; }
.date-trigger .date-ic { flex-shrink: 0; color: var(--muted-foreground); }
.calendar-pop {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 40;
  width: 278px; padding: 12px;
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius-xl); box-shadow: var(--elevation-floating);
}
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-title { font-size: 14px; font-weight: 600; color: var(--foreground); }
.cal-nav {
  width: 28px; height: 28px; display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--input); border-radius: var(--radius-md);
  color: var(--muted-foreground); cursor: pointer; padding: 0; transition: .15s;
}
.cal-nav:hover { color: var(--foreground); background: var(--muted-surface); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 36px); justify-content: center; }
.cal-wd { height: 28px; display: grid; place-items: center; font-size: 12px; font-weight: 500; color: var(--muted-foreground); }
.cal-day {
  width: 36px; height: 36px; display: grid; place-items: center;
  font-family: inherit; font-size: 14px; font-weight: 400; color: var(--foreground);
  background: transparent; border: none; border-radius: var(--radius-lg); cursor: pointer; padding: 0; transition: .1s;
}
.cal-day:hover { background: var(--muted-surface); }
.cal-day.outside { color: var(--placeholder); }
.cal-day.disabled { color: var(--placeholder); cursor: default; background: transparent; }
.cal-day.selected { background: var(--primary); color: #fff; font-weight: 600; }

.error-msg { display: none; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--destructive); }
.field.error .error-msg { display: flex; }

/* ============ Breakdown ============ */
.breakdown { display: flex; flex-direction: column; gap: 8px; }
.breakdown .row { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.breakdown .row .lbl { font-weight: 500; color: var(--muted-foreground); }
.breakdown .row .lbl-group { display: flex; align-items: center; gap: 8px; flex: 1 0 0; min-width: 0; }
.breakdown .row > .lbl:first-child { flex: 1 0 0; min-width: 0; }
.breakdown .row .amount { margin-left: auto; font-weight: 700; line-height: 1.3; color: var(--foreground); white-space: nowrap; }
.breakdown .row.total { border-top: 1px solid var(--border); padding-top: 12px; font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--foreground); }
.breakdown .row.total .lbl { font-weight: 700; color: var(--foreground); flex: 1; }
.info-dot {
  /* Phosphor "info" (regular), tinted muted-foreground */
  display: inline-block; width: 16px; height: 16px;
  font-style: normal;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='rgba(3,31,33,0.6)'%3E%3Cpath d='M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z'/%3E%3C/svg%3E");
  cursor: help; position: relative; flex-shrink: 0;
}
.info-dot:hover::after, .info-dot:focus::after {
  content: attr(data-tip); position: absolute; bottom: 140%; left: 50%; transform: translateX(-50%);
  white-space: nowrap; background: var(--foreground); color: #fff;
  font-size: 12px; font-weight: 400; line-height: 1.5; padding: 8px 12px; border-radius: var(--radius-lg);
  box-shadow: var(--elevation-floating); z-index: 20;
}

/* ============ Checkbox ============ */
.tc-group { display: flex; flex-direction: column; gap: 14px; }
.tc { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 500; line-height: 1.55; color: var(--muted-foreground); cursor: pointer; }
.tc input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; flex-shrink: 0; background: var(--card); border: 1px solid var(--input); border-radius: var(--radius-sm); cursor: pointer; display: grid; place-items: center; transition: .15s; margin-top: 1px; }
.tc input:checked { background: var(--primary); border-color: var(--primary); }
.tc input:checked::after { content: ""; width: 11px; height: 9px; background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10' fill='none'%3E%3Cpath d='M1 5l3.5 3.5L11 1.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.tc a { color: var(--accent-foreground); font-weight: 600; text-decoration: none; }
.tc a:hover { text-decoration: underline; }

/* ============ Button ============ */
.btn {
  width: 100%; height: 44px;
  font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1; letter-spacing: .01em;
 
  border: none; border-radius: var(--radius-xl); cursor: pointer; transition: .15s;
}
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); transform: translateY(-1px); }
.btn-primary:disabled { background: var(--muted); color: var(--placeholder); cursor: not-allowed; transform: none; }

/* ============ Notice ============ */
.notice {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--warning-notice-surface); border: 1px solid var(--warning-border);
  border-radius: var(--radius-xl); padding: 12px 14px;
  font-size: 12px; font-weight: 400; line-height: 1.5; color: var(--warning-foreground);
}
.notice img { flex-shrink: 0; margin-top: 1px; width: 15px; height: 15px; }

/* ============ Footer ============ */
.site-footer { position: relative; margin-top: 40px; padding: 24px 16px 48px; }
.footer-watermark { display: none; }
.footer-rows { display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; position: relative; }
.footer-copy { font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--muted-foreground); }
.footer-links { display: flex; gap: 10px 24px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: 13px; font-weight: 600; color: var(--foreground); text-decoration: none; line-height: 30px; }
.footer-links a:hover { color: var(--accent-foreground); }

/* ============================================================
   Breakpoints (Figma frames: mobile 402, desktop 1440)
   < 600      mobile: one column, full width up to 402
   600-1099   tablet: one centered 512 column (Focus layout)
   >= 1100    desktop: Split, info column + form column
   ============================================================ */
@media (min-width: 600px) {
  body::before {
    /* gradient wash panel from the design: radius 16, inset 12, top 80, h 600 */
    content: ""; position: absolute; left: 12px; right: 12px; top: 80px; height: 600px;
    border-radius: 16px;
    background: linear-gradient(180deg, var(--teal-soft) 0%, #F7FFFC 100%);
    z-index: 0;
  }
  .site-header { max-width: 1240px; margin: 0 auto; padding: 20px 24px; }
  .page-body { position: relative; z-index: 1; }
  .wrap { max-width: 544px; padding: 26px 16px 0; }
}

@media (min-width: 1100px) {
  body.split .wrap {
    max-width: 1072px; padding: 26px 24px 0;
    display: grid; grid-template-columns: minmax(0, 468px) minmax(0, 468px);
    column-gap: clamp(32px, 6vw, 88px); row-gap: 24px; justify-content: center;
    align-items: start;
  }
  body.split .col-info { grid-column: 1; display: flex; flex-direction: column; gap: 24px; position: sticky; top: 24px; }
  body.split .col-form { grid-column: 2; display: flex; flex-direction: column; gap: 24px; }

  /* Footer with watermark */
  .site-footer { max-width: 1240px; margin: 60px auto 0; padding: 0 24px 40px; }
  .footer-watermark { display: block; width: 1200px; max-width: 100%; margin: 0 auto 40px; }
  .footer-watermark img { display: block; width: 100%; height: auto; }
  .footer-rows { flex-direction: row; align-items: flex-start; justify-content: space-between; text-align: left; }
  .footer-links { display: grid; grid-template-columns: repeat(3, auto); gap: 0 100px; justify-content: end; }
  .footer-links .col { align-items: flex-start; }
}

.hidden { display: none !important; }


/* ============ Django integration ============ */
.lang-form { margin: 0; }
.input[type=date], .input[type=time], select.input { font-family: inherit; }
.input-row { display: flex; gap: 12px; }
.input-row .input { flex: 1 1 0; min-width: 0; }
.period-note { align-self: flex-start; font-size: 12px; font-weight: 600; line-height: 1; padding: 6px 12px; border-radius: 999px; color: var(--warning-foreground); background: var(--warning-surface); }
.notice.danger { background: rgba(247, 24, 115, .06); border-color: rgba(247, 24, 115, .3); color: var(--destructive); }
.pay-dialog { border: 0; border-radius: var(--radius-2xl); padding: 0; max-width: min(560px, calc(100vw - 32px)); box-shadow: var(--elevation-floating); }
.pay-dialog::backdrop { background: rgba(3, 31, 33, .5); }
.pay-dialog img { display: block; width: 100%; }
.pay-dialog .btn { border-radius: 0; }
.v-card .v-name small { display: block; font-size: 12px; font-weight: 500; color: var(--muted-foreground); white-space: normal; }
.v-card .v-name { white-space: normal; }
.footer-links .col { display: flex; flex-direction: column; align-items: center; }

/* ============ Legal pages (terms, skilmalar) ============ */
body.legal .wrap { max-width: 752px; }
.legal-card { gap: 16px; }
.legal-switch { font-size: 14px; font-weight: 600; color: var(--accent-foreground); text-decoration: none; }
.legal-switch:hover { text-decoration: underline; }
.legal-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.legal-list li { position: relative; padding-left: 20px; font-size: 14px; font-weight: 500; line-height: 1.55; color: var(--helper-2); }
.legal-list li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }

/* ============ Language menu ============ */
.lang-menu { position: relative; }
.lang-toggle .cur { display: none; align-items: center; gap: 6px; }
.lang-form[data-current="en"] .cur-en, .lang-form[data-current="is"] .cur-is { display: inline-flex; }
.lang-toggle .flag, .lang-list .flag { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.lang-list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; min-width: 148px; list-style: none; padding: 4px; background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius-xl); box-shadow: var(--elevation-floating); }
.lang-list[hidden] { display: none; }
.lang-list button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; font-family: var(--font-display); font-size: 13px; font-weight: 500; color: var(--foreground); background: transparent; border: 0; border-radius: var(--radius-lg); cursor: pointer; text-align: left; }
.lang-list button:hover { background: var(--muted-surface); }
.lang-form[data-current="en"] [data-lang="en"], .lang-form[data-current="is"] [data-lang="is"] { background: var(--selected-surface); color: var(--accent-foreground); }

/* Group of controls with one shared error message (vehicle size cards) */
.field-group { display: flex; flex-direction: column; gap: 8px; }
.field-group.error .error-msg { display: flex; }

/* ============ About this parking area (collapsed on mobile < 600px, plain text from 600px) ============ */
.about { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius-2xl); box-shadow: var(--elevation-card); }
.about > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 16px 20px; font-family: var(--font-display); font-size: 14px; font-weight: 500; color: var(--foreground); }
.about > summary::-webkit-details-marker { display: none; }
.about > summary::after { content: ""; width: 16px; height: 16px; flex-shrink: 0; background: url("chevron.svg") center / contain no-repeat; transition: transform .15s; }
.about[open] > summary::after { transform: rotate(180deg); }
.about > .text-helper { padding: 0 20px 20px; }
@media (min-width: 600px) {
  /* script opens it; without script the summary stays usable */
  .has-js .about { background: none; border: 0; box-shadow: none; border-radius: 0; }
  .has-js .about > summary { display: none; }
  .has-js .about > .text-helper { padding: 0; }
}

/* ============ Header: Download the App pill (mobile only) ============ */
.header-actions { display: flex; align-items: center; gap: 8px; }
.app-pill { display: inline-flex; align-items: center; height: 40px; padding: 0 12px; border-radius: var(--radius-lg); background: var(--teal-soft); color: var(--foreground); font-family: var(--font-display); font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap; }
@media (min-width: 600px) { .app-pill { display: none; } }

/* ============ App banner (mobile and tablet; hidden on the desktop Split layout) ============ */
.app-banner { border-radius: var(--radius-2xl); overflow: hidden; background: linear-gradient(180deg, #F7FFFB 0%, #43ACB7 100%); display: flex; flex-direction: column; }
.ab-text { display: flex; flex-direction: column; padding: 24px 24px 0; }
.ab-text h2 { font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 1.25; letter-spacing: -.02em; color: var(--foreground); }
.ab-sub { display: none; margin-top: 8px; font-size: 12px; font-weight: 500; line-height: 1.3; color: var(--foreground); }
.ab-btn { align-self: center; display: inline-flex; align-items: center; height: 40px; margin-top: 20px; padding: 0 16px; border-radius: var(--radius-lg); background: var(--ink); color: #fff; font-family: var(--font-display); font-size: 13px; font-weight: 500; text-decoration: none; }
.ab-btn:hover { background: #0A3236; }
.ab-phones { display: block; width: 252px; height: 234px; max-width: 100%; margin: 8px auto 0; }
@media (min-width: 600px) {
  .app-banner { display: block; position: relative; height: 234px; }
  .ab-text { position: absolute; left: 256px; right: 16px; top: 56px; padding: 0; }
  .ab-sub { display: block; }
  .ab-btn { margin-top: 16px; }
  .ab-phones { position: absolute; left: 0; bottom: 0; margin: 0; }
}
@media (min-width: 1100px) { .app-banner { display: none; } }

/* Date field inside a row next to a time input; popover aligned to the field's left edge */
.input-row .datefield-box { flex: 1 1 0; min-width: 0; }
.calendar-pop.align-left { left: 0; right: auto; }
.date-text { white-space: nowrap; }

/* Time field and popover (hour and minute columns) */
.time-trigger { display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; cursor: pointer; }
.time-trigger .date-ic { flex-shrink: 0; color: var(--muted-foreground); }
.timefield-box { position: relative; width: 100%; }
.input-row .timefield-box { flex: 1 1 0; min-width: 0; }
.time-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; width: 176px; padding: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius-xl); box-shadow: var(--elevation-floating); }
.time-pop[hidden] { display: none; }
.time-col { max-height: 216px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; display: flex; flex-direction: column; gap: 2px; }
.time-opt { flex-shrink: 0; height: 36px; border: 0; border-radius: var(--radius-lg); background: transparent; font-family: inherit; font-size: 14px; font-weight: 400; color: var(--foreground); cursor: pointer; }
.time-opt:hover { background: var(--muted-surface); }
.time-opt.selected { background: var(--primary); color: #fff; font-weight: 600; }
.v-card .v-amount { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.v-card .v-duration { font-size: 12px; font-weight: 500; line-height: 1.3; color: var(--muted-foreground); white-space: nowrap; }
