/* ==========================================================================
   SUPERSTRUX™ — Quote page skin
   Cosmetic-only overrides that bring create-quote / create-garden-room-quote
   in line with the landing redesign. Loaded AFTER css/style.css.
   No layout or DOM assumptions beyond the classes style.css already styles —
   the calculator markup and JS are untouched.
   ========================================================================== */

:root {
  --ink-950: #060a14;
  --ink-900: #0a0f1e;
  --qs-accent: #f97316;
  --qs-accent-deep: #c2410c;
  --qs-cream: #f6ca8c;
  --qs-grad: linear-gradient(135deg, #f97316 0%, #fb923c 50%, #f6ca8c 100%);
  --qs-mono: "Space Mono", ui-monospace, monospace;
}

/* ---------- Focus visibility (matches landing) ---------- */
:focus-visible {
  outline: 3px solid var(--qs-accent-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Navigation ---------- */
nav {
  background: rgba(6, 10, 20, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0.9rem 2rem;
}

.nav-cta {
  background: var(--qs-grad);
  color: var(--ink-900) !important;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 10px 32px rgba(249, 115, 22, 0.35);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(249, 115, 22, 0.45);
}

/* ---------- Quote hero band ---------- */
.form-section {
  background: var(--ink-900);
}

/* Blueprint grid backdrop instead of the old radial blob */
.form-section::before {
  content: "";
  position: absolute;
  inset: 0;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(120, 174, 193, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 174, 193, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 15%, black 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 15%, black 30%, transparent 75%);
  border-radius: 0;
  pointer-events: none;
}

.form-header::before {
  content: "SYS.7 · Instant quote";
  display: block;
  font-family: var(--qs-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--qs-cream);
  margin-bottom: 1.1rem;
}

.form-header h2 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.06;
  text-wrap: balance;
}

.form-header p {
  font-size: 1.05rem;
  max-width: 56ch;
  margin-inline: auto;
}

/* ---------- Configurator card ---------- */
.configurator {
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  padding: 28px;
}

.configurator .block {
  border-radius: 16px;
}

.configurator .block .name {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.configurator input:focus {
  border-color: var(--qs-accent) !important;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

/* Selection cards: slightly softer radii + landing-style active glow */
.configurator .roof-type-card,
.configurator .shell-option-card {
  border-radius: 16px;
}

.configurator .roof-type-card.active,
.configurator .shell-option-card.active {
  box-shadow: 0 8px 28px rgba(249, 115, 22, 0.22);
}

/* Price figures in the brand mono */
.shell-option-price-exvat,
#total-price {
  font-family: var(--qs-mono);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.totals {
  border-radius: 16px;
}

.totals > div:first-child {
  font-size: 1.55rem;
  font-weight: 800;
}

/* Badge + primary buttons: gradient pill with dark text (AA contrast) */
.shell-option-badge,
.configurator .shell-option-badge,
.configurator .shell-option-card .shell-option-badge {
  background: var(--qs-grad);
  color: var(--ink-900);
  font-weight: 700;
}

#save-quote-button,
#success-close {
  background: var(--qs-grad);
  color: var(--ink-900);
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.02rem;
  padding: 1.05rem 2rem;
  cursor: pointer;
  box-shadow: 0 14px 40px rgba(249, 115, 22, 0.35);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}

#save-quote-button:hover:not(:disabled),
#success-close:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 50px rgba(249, 115, 22, 0.45);
}

#save-quote-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Success modal ---------- */
.success-content {
  border-radius: 24px;
}

/* ==========================================================================
   Installer course box  (js/course-box.js → #course-promo-mount)
   Sits between .form-header and the white .configurator card, so it is styled
   as dark glass to read as a promo rather than as another calculator step.
   Width matches .configurator (500px) so the column stays aligned.
   ========================================================================== */

#course-promo-mount:empty {
  display: none;
}

.sx-course-box {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
  padding: 1.35rem 1.4rem 1.3rem;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* Gradient hairline along the top edge */
.sx-course-box::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--qs-grad);
}

.sx-course-box--confirmed::before {
  background: linear-gradient(135deg, #22c55e 0%, #4ade80 100%);
}

.sx-course-box--pending::before {
  background: linear-gradient(135deg, #eab308 0%, #fbbf24 100%);
}

.sx-course-eyebrow {
  font-family: var(--qs-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--qs-cream);
  margin-bottom: 0.55rem;
}

.sx-course-box--confirmed .sx-course-eyebrow {
  color: #86efac;
}

.sx-course-title {
  margin: 0 0 0.35rem;
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
}

.sx-course-copy {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.62);
}

.sx-course-copy strong {
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--qs-mono);
}

.sx-course-tz {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.04em;
}

.sx-course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.4rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.58);
}

.sx-course-meta strong {
  color: #fff;
  font-weight: 700;
}

.sx-course-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}

.sx-course-cta {
  display: inline-block;
  background: var(--qs-grad);
  color: var(--ink-900);
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1.7rem;
  font: inherit;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(249, 115, 22, 0.3);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}

.sx-course-cta:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(249, 115, 22, 0.42);
}

.sx-course-cta:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.sx-course-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 0.87rem;
  color: var(--qs-cream);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.sx-course-note {
  font-size: 0.87rem;
  color: rgba(255, 255, 255, 0.55);
}

.sx-course-seats {
  font-family: var(--qs-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--qs-cream);
}

/* ---------- Booking modal ---------- */

body.sx-course-locked {
  overflow: hidden;
}

.sx-course-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.sx-course-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 20, 0.74);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.sx-course-modal__panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45);
  padding: 2rem;
}

.sx-course-modal__x {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
}

.sx-course-modal__x:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.sx-course-modal__title {
  outline: none;          /* focused programmatically on step change, not by the user */
  margin: 0 0 0.35rem;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.sx-course-modal__sub {
  margin: 0 0 1.4rem;
  font-size: 0.88rem;
  color: #64748b;
}

.sx-course-textlink {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--qs-accent);
  text-decoration: underline;
  cursor: pointer;
}

/* Date picker */

.sx-course-dates {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.sx-course-date {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.sx-course-date:hover {
  border-color: var(--qs-accent);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.16);
  transform: translateY(-1px);
}

.sx-course-date__when {
  flex: 1;
  font-weight: 700;
  color: #0f172a;
}

.sx-course-date__meta {
  font-family: var(--qs-mono);
  font-size: 0.85rem;
  color: #475569;
}

.sx-course-date__seats {
  font-size: 0.72rem;
  font-weight: 700;
  color: #b45309;
  background: #fef3c7;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  white-space: nowrap;
}

/* Details form */

.sx-course-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sx-course-row {
  display: flex;
  gap: 0.85rem;
}

.sx-course-row > * {
  flex: 1;
  min-width: 0;
}

.sx-course-field {
  display: block;
}

.sx-course-field > span {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
}

.sx-course-field em {
  color: var(--qs-accent);
  font-style: normal;
}

.sx-course-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid #dbe2ea;
  border-radius: 10px;
  font: inherit;
  font-size: 0.95rem;
  color: #0f172a;
  background: #fff;
}

.sx-course-field input:focus {
  border-color: var(--qs-accent);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
  outline: 0;
}

.sx-course-legend {
  margin: 0.6rem 0 -0.2rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
}

.sx-course-shirt > span {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
}

.sx-course-shirt em {
  color: var(--qs-accent);
  font-style: normal;
}

.sx-course-sizes {
  display: flex;
  gap: 0.6rem;
}

.sx-course-size {
  min-width: 4.5rem;
  padding: 0.6rem 1rem;
  background: #fff;
  border: 1.5px solid #dbe2ea;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.sx-course-size.is-active {
  border-color: var(--qs-accent);
  background: rgba(249, 115, 22, 0.1);
  color: var(--qs-accent-deep);
}

.sx-course-error {
  padding: 0.65rem 0.85rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  font-size: 0.85rem;
  color: #b91c1c;
}

.sx-course-cta--wide {
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.95rem 1.5rem;
  font-size: 1rem;
}

.sx-course-fineprint {
  margin: 0;
  text-align: center;
  font-size: 0.76rem;
  line-height: 1.5;
  color: #94a3b8;
}

/* Full-screen sheet on phones */
@media (max-width: 640px) {
  .sx-course-box {
    padding: 1.2rem 1.15rem 1.15rem;
  }

  .sx-course-title {
    font-size: 1.16rem;
  }

  .sx-course-meta {
    gap: 0.25rem 1rem;
    margin-bottom: 0.9rem;
  }

  .sx-course-modal {
    padding: 0;
  }

  .sx-course-modal__panel {
    max-width: none;
    max-height: none;
    height: 100%;
    border-radius: 0;
    padding: 3.25rem 1.25rem 2rem;
  }

  .sx-course-row {
    flex-direction: column;
    gap: 0.85rem;
  }

  .sx-course-actions {
    gap: 0.75rem;
  }

  .sx-course-cta {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sx-course-cta,
  .sx-course-date {
    transition: none;
  }

  .sx-course-cta:hover:not(:disabled),
  .sx-course-date:hover {
    transform: none;
  }
}

/* ---------- Footer ---------- */
footer {
  background: var(--ink-950);
}

.footer-col h4 {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
}
