/* ==========================================================================
   Cube Store Oslo — booking page polish (SCOPED TO THIS PAGE ONLY)

   Loaded AFTER /css/booking.css. Only the Step-0 verification gate (.cube-gate)
   is fully restyled here; the wizard keeps booking.css. Does NOT redefine any
   shared booking.css class, so the Unaas booking page is unaffected.

   Aesthetic: "engineered precision" — matte-black primary action (echoes the
   black CUBE wordmark), electric-blue accent, generous space, a faint technical
   grid for depth, sharp confident type.
   ========================================================================== */

:root {
  --cube-ink: #0c0e12;
  --cube-ink-2: #3a424d;
  --cube-muted: #6a7480;
  --cube-line: #e6e8ec;
  --cube-accent: #1452ff;
  --cube-danger: #c0291f;
  --cube-surface: #ffffff;
}

/* Page-wide type lift (this page only — booking.css is not touched) */
body {
  font-family: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--cube-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.progress-header { padding-top: 2.25rem; }
.logo-container { margin-bottom: 1.25rem; }

/* ====== Step-0 verification gate ====== */
.cube-gate {
  position: relative;
  overflow: hidden;
  padding: clamp(1.75rem, 4vw, 3.5rem) clamp(1.25rem, 5vw, 3.5rem) clamp(2rem, 5vw, 3.5rem);
}

/* faint engineered grid, faded from the top for depth */
.cube-gate::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--cube-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--cube-line) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(125% 75% at 50% -10%, #000 0%, transparent 68%);
  mask-image: radial-gradient(125% 75% at 50% -10%, #000 0%, transparent 68%);
  opacity: 0.45;
  pointer-events: none;
}

.cube-gate__inner {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.cube-gate__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cube-accent);
}
.cube-gate__eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--cube-accent);
}

.cube-gate__title {
  margin: 0 0 0.75rem;
  font-family: "Archivo", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.7rem, 4.6vw, 2.5rem);
  line-height: 1.04;
  letter-spacing: -0.022em;
  color: var(--cube-ink);
}

.cube-gate__sub {
  max-width: 30rem;
  margin: 0 auto 2rem;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--cube-muted);
}

.cube-gate__form {
  display: flex;
  gap: 0.6rem;
  align-items: stretch;
  max-width: 30rem;
  margin: 0 auto;
}
.cube-gate__field-wrap { position: relative; flex: 1; }

.cube-gate__field.form-control {
  height: 58px;
  padding: 0 1rem;
  border: 1.5px solid var(--cube-line);
  border-radius: 13px;
  background: var(--cube-surface);
  box-shadow: 0 1px 2px rgba(12, 14, 18, 0.04);
  color: var(--cube-ink);
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cube-gate__field.form-control::placeholder { color: #9aa3ad; letter-spacing: 0; }
.cube-gate__field.form-control:focus {
  border-color: var(--cube-accent);
  box-shadow: 0 0 0 4px rgba(20, 82, 255, 0.14);
  outline: none;
}
.cube-gate__field.form-control.is-invalid {
  border-color: var(--cube-danger);
  box-shadow: 0 0 0 4px rgba(192, 41, 31, 0.12);
  background-image: none; /* drop Bootstrap's inline validation icon */
  padding-right: 1rem;
}

.cube-gate__spinner {
  display: none;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cube-accent);
}

.cube-gate__submit {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 58px;
  padding: 0 1.6rem;
  border: 0;
  border-radius: 13px;
  background: var(--cube-ink);
  color: #fff;
  font-family: "Archivo", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(12, 14, 18, 0.16);
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.cube-gate__submit svg { transition: transform 0.18s ease; }
.cube-gate__submit:hover {
  background: #1a1f27;
  transform: translateY(-1px);
  box-shadow: 0 7px 20px rgba(12, 14, 18, 0.22);
}
.cube-gate__submit:hover svg { transform: translateX(3px); }
.cube-gate__submit:active { transform: translateY(0); }
.cube-gate__submit:focus-visible { outline: 3px solid rgba(20, 82, 255, 0.5); outline-offset: 2px; }
.cube-gate__submit:disabled { opacity: 0.55; cursor: default; transform: none; box-shadow: none; }

/* Error feedback — JS toggles the `error` class (and rewrites className), so style
   strictly on the classes the JS owns. */
.cube-gate .order-verify-feedback { display: none; animation: none; }
.cube-gate .order-verify-feedback.error {
  display: block;
  max-width: 30rem;
  margin: 0.85rem auto 0;
  color: var(--cube-danger);
  font-size: 0.9rem;
  line-height: 1.45;
  text-align: center;
}

.cube-gate__help {
  max-width: 30rem;
  margin: 1.1rem auto 0;
  font-size: 0.85rem;
  color: var(--cube-muted);
}
.cube-gate__fallback {
  max-width: 30rem;
  margin: 0.35rem auto 0;
  font-size: 0.85rem;
  color: var(--cube-muted);
}
.cube-gate__fallback a {
  color: var(--cube-accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(20, 82, 255, 0.3);
  transition: border-color 0.15s ease;
}
.cube-gate__fallback a:hover { border-bottom-color: var(--cube-accent); }

/* "What happens next" — set expectations without locked/greyed controls */
.cube-gate__next {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  max-width: 30rem;
  margin: 2.25rem auto 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--cube-line);
}
.cube-gate__next li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--cube-muted);
}
.cube-gate__next li:not(:last-child)::after { content: "→"; margin-left: 0.5rem; color: #c4cad1; }
.cube-gate__next li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #eef1f5;
  color: var(--cube-ink-2);
  font-size: 0.72rem;
  font-weight: 700;
}

/* Staggered page-load reveal */
@keyframes cubeGateIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.cube-gate__inner > * { animation: cubeGateIn 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
.cube-gate__eyebrow { animation-delay: 0.05s; }
.cube-gate__title { animation-delay: 0.12s; }
.cube-gate__sub { animation-delay: 0.19s; }
.cube-gate__form { animation-delay: 0.26s; }
.cube-gate__help { animation-delay: 0.33s; }
.cube-gate__fallback { animation-delay: 0.37s; }
.cube-gate__next { animation-delay: 0.44s; }

@media (max-width: 560px) {
  .cube-gate__form { flex-direction: column; }
  .cube-gate__submit { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .cube-gate__inner > * { animation: none; }
  .cube-gate__submit,
  .cube-gate__submit svg,
  .cube-gate__field.form-control { transition: none; }
}

/* Closed days (Cube does not take in bikes for service Thu/Fri) */
.calendar-day.store-closed { background: #f3f4f6; }
.day-label-closed {
  display: block;
  margin-top: 2px;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
  color: #8a929b;
}

/* Cookie consent: contain the overlay within the booking card instead of the
   iframe viewport, so the modal centers over the gate (not a tall empty area)
   and doesn't inflate the embedded height. Booking.css keeps position:fixed for
   the Unaas page; this override is Cube-only. */
.booking-container { position: relative; }
.cookie-consent-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  height: auto;
  border-radius: inherit;
}
