/* ═══════════════════════════════════════════════════════════
   KUIQ DEALS · Interactive 3D Brochure
   Custom CSS layer on top of Tailwind
   ═══════════════════════════════════════════════════════════ */

:root {
  --gold:        #ffc72c;
  --gold-soft:   #f5b800;
  --gold-deep:   #a87d00;
  --ink:         #0a0a0a;
  --ink-soft:    #141414;
  --ink-line:    rgba(255,199,44,0.14);
  --paper:       linear-gradient(155deg,#161616 0%,#0a0a0a 60%,#050505 100%);
  --paper-warm:  linear-gradient(155deg,#1a1612 0%,#0a0807 100%);
}

/* ━━━━━━━━━━ BASE ━━━━━━━━━━ */
html, body { background:#050505; }
html {
  scroll-behavior: smooth;
  overflow-x: clip;          /* contain horizontal overflow without making body the scroller */
}

/* A11y: skip link */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: 0.6rem 1rem;
  background: var(--gold);
  color: #0a0a0a;
  font-weight: 700;
  border-radius: 0 0 8px 8px;
  z-index: 200;
  transition: top .25s ease;
}
.skip-link:focus { top: 0; outline: none; }

/* A11y: visible focus ring */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
button:focus-visible, a:focus-visible { outline-offset: 4px; }

/* Perf hint: defer offscreen render until near viewport */
section#products, section#services, section#contact, footer {
  content-visibility: auto;
  contain-intrinsic-size: 1px 800px;
}
body {
  background:
    radial-gradient(1200px 800px at 50% -10%, rgba(255,199,44,0.10), transparent 60%),
    radial-gradient(900px 700px at 80% 110%, rgba(255,199,44,0.06), transparent 70%),
    #050505;
}
*::-webkit-scrollbar { width:10px; height:10px; }
*::-webkit-scrollbar-track { background:#0a0a0a; }
*::-webkit-scrollbar-thumb { background:linear-gradient(#a87d00,#3d2d00); border-radius:10px; }

.bg-vignette {
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.5) 80%, #000 100%);
}

/* ━━━━━━━━━━ TYPE HELPERS ━━━━━━━━━━ */
.text-gradient-gold {
  background: linear-gradient(135deg,#ffe388 0%,#ffc72c 40%,#a87d00 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.kicker {
  display: inline-flex; align-items: center; gap: .8rem;
  font-size: 10px; letter-spacing: 0.4em; text-transform: uppercase;
  color: rgba(255,199,44,0.85); font-weight: 500;
}
.kicker > span { width: 32px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }

/* ━━━━━━━━━━ KD MARK ━━━━━━━━━━ */
.kd-mark {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg,#ffe388,#ffc72c 50%,#a87d00);
  color: #0a0a0a;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-weight: 900;
  position: relative;
  box-shadow: 0 6px 24px -8px rgba(255,199,44,0.5), inset 0 1px 0 rgba(255,255,255,0.4);
  transform-style: preserve-3d;
  transition: transform .4s ease;
}
.kd-mark::after {
  content:'';
  position:absolute; inset:-6px;
  border:1px dashed rgba(255,199,44,0.45);
  border-radius:14px;
  animation: rot 18s linear infinite;
}
.kd-mark-letters { line-height: 1; font-size: 16px; letter-spacing: -0.02em; }
.kd-mark.kd-mark-sm { width:28px; height:28px; border-radius:8px; }
.kd-mark.kd-mark-sm .kd-mark-letters { font-size:12px; }
.kd-mark.kd-mark-lg { width:64px; height:64px; border-radius:14px; }
.kd-mark.kd-mark-lg .kd-mark-letters { font-size:28px; }
.kd-mark.cover-mark { width: 88px; height: 88px; border-radius: 18px; }
.kd-mark.cover-mark .kd-mark-letters { font-size: 36px; }

@keyframes rot { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* ━━━━━━━━━━ LIQUID-GLASS PILL HEADER ━━━━━━━━━━
   Always-centered pill. Layout never shifts on scroll —
   only background, border, and blur fade in. Smooth. */

.site-header {
  position: fixed; top: 0.9rem; left: 0; right: 0;
  z-index: 50;
  display: flex; justify-content: center;
  pointer-events: none;
  padding: 0 0.9rem;
}
.site-header-inner {
  pointer-events: auto;
  display: inline-flex; align-items: center;
  gap: 1.4rem;
  height: 56px;
  padding: 0 0.5rem 0 1rem;
  border-radius: 999px;
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  transition:
    background .45s cubic-bezier(.4,0,.2,1),
    border-color .45s cubic-bezier(.4,0,.2,1),
    box-shadow .45s cubic-bezier(.4,0,.2,1),
    backdrop-filter .45s cubic-bezier(.4,0,.2,1),
    -webkit-backdrop-filter .45s cubic-bezier(.4,0,.2,1);
  max-width: 100%;
}

/* Glass-pill state activates after scroll */
.site-header.scrolled .site-header-inner {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.015)),
    rgba(15,15,15,0.58);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  border-color: rgba(255,199,44,0.24);
  box-shadow:
    0 14px 40px -12px rgba(0,0,0,0.7),
    inset 0 1px 0 rgba(255,255,255,0.10),
    inset 0 -1px 0 rgba(255,199,44,0.10);
}

.site-brand {
  display: inline-flex; align-items: center; gap: 0.65rem;
  text-decoration: none;
  height: 100%;
}
.site-brand .kd-mark { width: 34px; height: 34px; border-radius: 9px; }
.site-brand .kd-mark .kd-mark-letters { font-size: 14px; }
.site-brand-text { display: flex; flex-direction: column; line-height: 1; gap: 2px; }
.site-brand-name { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 0.95rem; color: #fff; letter-spacing: -0.01em; }
.site-brand-sub  { font-size: 9px; letter-spacing: 0.32em; text-transform: uppercase; color: rgba(255,199,44,0.85); font-weight: 500; }

.site-nav {
  display: flex; align-items: center; gap: 1.4rem;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  font-weight: 500;
  height: 100%;
}
.site-nav a { transition: color .25s ease; }
.site-nav a:hover { color: var(--gold); }

/* "Get a Quote" pill-fitting variant — sized to sit cleanly inside the
   header pill with consistent padding around it. */
.site-header-inner .cta-quote {
  padding: 0 1rem !important;
  font-size: 9.5px !important;
  letter-spacing: 0.18em !important;
  height: 40px;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px -6px rgba(255,199,44,0.45);
}
.site-header-inner .cta-quote svg { width: 12px; height: 12px; }

/* Hamburger */
.hamburger {
  display: none;
  width: 38px; height: 38px;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  border-radius: 999px;
  background: rgba(255,199,44,0.08);
  border: 1px solid rgba(255,199,44,0.22);
  cursor: pointer;
  align-self: center;
  transition: background .25s ease, border-color .25s ease;
}
.hamburger:hover { background: rgba(255,199,44,0.18); border-color: rgba(255,199,44,0.45); }
.hamburger span {
  display: block; width: 16px; height: 2px;
  background: var(--gold); border-radius: 2px;
  transition: transform .35s ease, opacity .25s ease, width .35s ease;
  transform-origin: center;
}
.hamburger span:nth-child(1) { width: 18px; }
.hamburger span:nth-child(3) { width: 12px; }
.hamburger.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); width: 18px; }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); width: 18px; }

/* Mobile menu (full-screen overlay) */
.mobile-menu {
  position: fixed; inset: 0;
  z-index: 49;
  background: rgba(5,5,5,0.96);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  backdrop-filter: blur(28px) saturate(140%);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s cubic-bezier(.4,0,.2,1);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }

/* Hide site header when menu is open so the hamburger-as-X doesn't
   duplicate the dedicated close button */
body.menu-open .site-header { opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.mobile-menu-close {
  position: absolute; top: 1.4rem; right: 1.4rem;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: rgba(255,199,44,0.08);
  border: 1px solid rgba(255,199,44,0.25);
  color: var(--gold);
  cursor: pointer;
  transition: all .3s ease;
}
.mobile-menu-close:hover { background: var(--gold); color: #0a0a0a; }
.mobile-menu-inner {
  display: flex; flex-direction: column; align-items: center;
  gap: 1.4rem;
  padding: 2rem;
  text-align: center;
  max-width: 90vw;
}
.mobile-menu-inner > a:not(.btn-gold) {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 7vw, 2.4rem);
  color: white;
  letter-spacing: -0.01em;
  transition: color .25s ease, transform .25s ease;
}
.mobile-menu-inner > a:not(.btn-gold):hover { color: var(--gold); transform: translateX(4px); }
.mobile-menu-inner .cta-quote {
  margin-top: 0.4rem;
  padding: 0.85rem 1.6rem !important;
  font-size: 11px !important;
  height: auto;
}
.mobile-menu-foot {
  margin-top: 1.6rem;
  padding-top: 1.6rem;
  border-top: 1px dashed rgba(255,199,44,0.2);
  display: flex; flex-direction: column; gap: 0.5rem;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.05em;
  width: 100%;
}
.mobile-menu-foot a { transition: color .25s ease; }
.mobile-menu-foot a:hover { color: var(--gold); }

@media (max-width: 900px) {
  .site-nav { display: none; }
  .cta-quote { display: none; }
  .site-header-inner > .cta-quote { display: none; }
  .hamburger { display: inline-flex; }
  /* Pill spans full available width — logo left, hamburger right */
  .site-header { padding: 0 0.9rem; }
  .site-header-inner {
    width: 100%;
    max-width: 100%;
    justify-content: space-between;
    gap: 0;
    padding: 0 0.5rem 0 0.85rem;
    height: 54px;
  }
  .site-brand-text { display: flex; }
  .site-brand-name { font-size: 0.9rem; }
  .site-brand-sub { font-size: 8px; letter-spacing: 0.28em; }
  .site-brand .kd-mark { width: 32px; height: 32px; }
}
@media (max-width: 380px) {
  .site-header { top: 0.6rem; padding: 0 0.6rem; }
  .site-brand-text { display: none; }
}

/* Show CTA inside mobile menu even though .cta-quote is hidden globally on mobile */
.mobile-menu .cta-quote { display: inline-flex !important; }

/* ━━━━━━━━━━ BUTTONS ━━━━━━━━━━ */
.btn-gold {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .65rem 1.15rem;
  border-radius: 999px;
  background: linear-gradient(135deg,#ffe388,#ffc72c 50%,#a87d00);
  color: #0a0a0a; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  position: relative; overflow: hidden;
  box-shadow: 0 8px 32px -12px rgba(255,199,44,0.5);
  transition: transform .3s ease, box-shadow .3s ease;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 40px -10px rgba(255,199,44,0.65); }
.btn-gold::before {
  content:''; position:absolute; inset:0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.5) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .8s ease;
}
.btn-gold:hover::before { transform: translateX(100%); }

/* ━━━━━━━━━━ LOADER ━━━━━━━━━━ */
.loader-ring { animation: rot 4s linear infinite; transform-origin: 60px 60px; }
.loader-bar { width: 200px; height: 2px; background: rgba(255,199,44,0.15); position: relative; overflow: hidden; }
.loader-bar > span {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: loaderSlide 1.6s ease-in-out infinite;
}
@keyframes loaderSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ━━━━━━━━━━ HERO ━━━━━━━━━━ */
.hero-title { letter-spacing: -0.03em; }

/* ━━━━━━━━━━ THE BROCHURE STAGE ━━━━━━━━━━ */
.stage {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  perspective: 2400px;
  perspective-origin: 50% 42%;
  padding: 4rem 1rem 8rem;
}

.brochure-shadow {
  position: absolute;
  bottom: 6rem; left: 50%; transform: translateX(-50%);
  width: min(86vw, 1200px); height: 60px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.7), transparent 70%);
  filter: blur(20px);
  z-index: 1;
  pointer-events: none;
}

/* The brochure itself */
.brochure {
  width: min(96vw, 1320px);
  aspect-ratio: 18 / 13;       /* each panel ~953px tall — fits all content with breathing room */
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(0deg) rotateY(0deg);
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.brochure.dragging { cursor: grabbing; }

/* Panels */
.panel {
  position: absolute;
  top: 0;
  width: 33.3334%;
  height: 100%;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 1.1s cubic-bezier(.65,0,.35,1);
}

/* Sequenced fold timing */
.brochure.open .panel-right       { transition-delay: 0s; }
.brochure.open .panel-left        { transition-delay: 0.45s; }
.brochure:not(.open) .panel-left  { transition-delay: 0s; }
.brochure:not(.open) .panel-right { transition-delay: 0.45s; }

.panel-left   { left: 0;        transform-origin: 100% 50%; transform: rotateY(180deg);  }
.panel-center { left: 33.3334%; }
.panel-right  { left: 66.6668%; transform-origin: 0% 50%;   transform: rotateY(-180deg); }

/* Stack closed panels properly — translateZ MUST come before rotateY
   so the side panel ends up in FRONT of center (positive world Z),
   otherwise the rotation flips +Z to -Z and panels hide behind center. */
.brochure:not(.open) .panel-right  { transform: translateZ(4px) rotateY(-180deg); z-index: 3; }
.brochure:not(.open) .panel-left   { transform: translateZ(2px) rotateY(180deg);  z-index: 2; }
.brochure:not(.open) .panel-center { z-index: 1; }

/* OPEN state */
.brochure.open .panel-left,
.brochure.open .panel-right { transform: translateZ(0) rotateY(0deg); }

/* Panel faces */
.face {
  position: absolute; inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  background: var(--paper);
  border: 1px solid var(--ink-line);
  overflow: hidden;                 /* touches pass through to page scroll on mobile */
  box-shadow:
    inset 0 0 60px rgba(255,199,44,0.04),
    inset 0 1px 0 rgba(255,255,255,0.04);
}
.face-back { transform: rotateY(180deg); }

/* Inner panel padding & decorative trim */
.panel-inner::before {
  content:''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 0%, rgba(255,199,44,0.07), transparent 40%),
    repeating-linear-gradient(45deg, transparent 0 8px, rgba(255,255,255,0.012) 8px 9px);
  pointer-events: none;
}

.panel-pad {
  position: relative;
  height: 100%;
  padding: clamp(1rem, 2.4vw, 2.4rem);
  display: flex; flex-direction: column;
  z-index: 1;
}

.panel-h {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 2.6vw, 2.4rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-top: 0.6rem;
}
.panel-h-sm {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1rem, 1.6vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hr-rule {
  height:1px; margin: 1rem 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.3;
}

.panel-foot {
  margin-top: auto;
  padding-top: 1rem;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px dashed rgba(255,199,44,0.2);
}

/* ━━━━━━━━━━ LEFT PANEL: WHY LIST + SERVICES ━━━━━━━━━━ */
.why-list {
  margin-top: clamp(.6rem, 1.4vw, 1.2rem);
  display: grid; gap: clamp(.4rem, 0.9vw, .7rem);
}
.why-list li {
  display: flex; gap: .8rem; align-items: flex-start;
  padding: clamp(.5rem, 0.9vw, .7rem);
  border: 1px solid rgba(255,199,44,0.08);
  border-radius: 10px;
  background: rgba(255,255,255,0.012);
  transition: all .3s ease;
}
.why-list li:hover {
  border-color: rgba(255,199,44,0.4);
  background: rgba(255,199,44,0.04);
  transform: translateX(4px);
}
.why-list li i {
  width: 18px; height: 18px; flex: 0 0 18px;
  color: var(--gold); margin-top: 2px;
}
.why-list li b {
  display: block;
  font-size: clamp(.78rem, 0.95vw, .9rem);
  font-weight: 600;
  color: white;
}
.why-list li span {
  display: block;
  font-size: clamp(.65rem, 0.75vw, .72rem);
  color: rgba(255,255,255,0.5);
  margin-top: 1px;
  line-height: 1.4;
}

.services-grid {
  margin-top: .6rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: .35rem;
}
.services-grid > span {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: clamp(.62rem, 0.72vw, .72rem);
  color: rgba(255,255,255,0.7);
  padding: .35rem .5rem;
  border-radius: 6px;
  background: rgba(255,199,44,0.04);
  border-left: 2px solid var(--gold);
  transition: all .3s ease;
}
.services-grid > span:hover {
  color: var(--gold);
  background: rgba(255,199,44,0.10);
}
.services-grid > span i {
  width: 12px; height: 12px; color: var(--gold);
}

/* ━━━━━━━━━━ CENTER PANEL: PRODUCTS GRID ━━━━━━━━━━ */
.products-grid {
  margin-top: clamp(.8rem, 1.6vw, 1.4rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(.4rem, 0.8vw, .65rem);
  /* Content-sized grid: panel-foot uses margin-top: auto to take leftover space,
     so the grid stays tight and the brochure height feels right */
  align-content: start;
}

.product-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  background: linear-gradient(155deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,199,44,0.08);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .35rem;
  padding: .4rem;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s ease, background .35s ease;
  transform-style: preserve-3d;
}
.product-card::before {
  content:'';
  position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(255,199,44,0.18), transparent 55%);
  opacity: 0; transition: opacity .35s ease;
  pointer-events: none;
}
.product-card:hover {
  border-color: rgba(255,199,44,0.45);
  background: linear-gradient(155deg, rgba(255,199,44,0.07), rgba(255,255,255,0.01));
}
.product-card:hover::before { opacity: 1; }
.product-card .pc-icon {
  width: clamp(20px, 2.8vw, 32px);
  height: clamp(20px, 2.8vw, 32px);
  color: var(--gold);
  transition: transform .35s ease;
}
.product-card:hover .pc-icon { transform: translateZ(20px) scale(1.15); }
.product-card .pc-name {
  font-size: clamp(.55rem, 0.7vw, .68rem);
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  line-height: 1.2;
}
.product-card:hover .pc-name { color: white; }
.product-card .pc-num {
  position: absolute; top: 4px; left: 6px;
  font-size: 8px; letter-spacing: 0.2em;
  color: rgba(255,199,44,0.4);
  font-weight: 600;
}

/* ━━━━━━━━━━ RIGHT PANEL: CONTACT ━━━━━━━━━━ */
.contact-block {
  margin-top: clamp(.8rem, 1.6vw, 1.2rem);
  display: grid; gap: clamp(.4rem, 0.8vw, .6rem);
}
.contact-name {
  display: flex; gap: .8rem; align-items: center;
  padding: clamp(.5rem, 1vw, .8rem);
  border: 1px solid rgba(255,199,44,0.2);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255,199,44,0.08), transparent);
}
.avatar {
  width: 38px; height: 38px;
  border-radius: 999px;
  background: linear-gradient(135deg,#ffe388,#a87d00);
  color: #0a0a0a;
  display: grid; place-items: center;
  font-family: 'Playfair Display', serif;
  font-weight: 900; font-size: 14px;
}
.contact-name b {
  display: block; font-size: clamp(.85rem, 1vw, 1rem); color: white;
}
.contact-name span {
  display: block; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,199,44,0.7);
}

.contact-row {
  display: flex; gap: .7rem; align-items: center;
  padding: clamp(.4rem, 0.8vw, .55rem) clamp(.5rem, 0.9vw, .65rem);
  border-radius: 8px;
  background: rgba(255,255,255,0.015);
  border: 1px solid rgba(255,255,255,0.04);
  transition: all .3s ease;
}
.contact-row:not(.no-link):hover {
  border-color: rgba(255,199,44,0.4);
  background: rgba(255,199,44,0.05);
  transform: translateX(2px);
}
.contact-row i {
  width: 16px; height: 16px; color: var(--gold);
  flex: 0 0 16px;
}
.contact-row b {
  display: block;
  font-size: clamp(.72rem, 0.88vw, .85rem);
  color: white; font-weight: 600;
}
.contact-row span {
  display: block;
  font-size: clamp(.6rem, 0.7vw, .68rem);
  color: rgba(255,255,255,0.45);
  margin-top: 1px;
}

.qr-block {
  margin-top: 1rem;
  display: flex; gap: 1rem; align-items: center;
}
.qr-frame {
  width: clamp(130px, 12vw, 168px);     /* bigger = easier phone scan */
  height: clamp(130px, 12vw, 168px);
  position: relative;
  flex-shrink: 0;
  border-radius: 20px;
  padding: 7px;                          /* gold gradient frame thickness */
  background: linear-gradient(135deg, #ffe388 0%, #ffc72c 45%, #a87d00 100%);
  box-shadow:
    0 16px 40px -10px rgba(255,199,44,0.45),
    inset 0 1px 0 rgba(255,255,255,0.55),
    inset 0 -1px 0 rgba(0,0,0,0.20);
  transition: transform .45s cubic-bezier(.2,.9,.2,1), box-shadow .4s ease;
  isolation: isolate;
  display: block;
}
.qr-frame::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,0.55), transparent 45%);
  pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  padding: 1px;
}
.qr-frame:hover {
  transform: scale(1.05) rotate(-1.2deg);
  box-shadow:
    0 22px 50px -10px rgba(255,199,44,0.7),
    inset 0 1px 0 rgba(255,255,255,0.65),
    inset 0 -1px 0 rgba(0,0,0,0.22);
}
.qr-frame img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 14px;
  background: white;
  /* No pixelated rendering — qr-code-styling outputs smooth high-res PNG */
}
.qr-logo {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 28%; height: 28%;
  background: linear-gradient(135deg,#ffe388,#ffc72c 50%,#a87d00);
  border: 2px solid white;
  border-radius: 6px;
  display: grid; place-items: center;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.06);
  pointer-events: none;
}
.qr-logo span {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(9px, 0.95vw, 13px);
  color: #0a0a0a;
  line-height: 1;
}

.social-row {
  display: flex; gap: .4rem; margin-top: .55rem;
  flex-wrap: wrap;
}
.social-row a {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: rgba(255,199,44,0.08);
  border: 1px solid rgba(255,199,44,0.22);
  color: var(--gold);
  transition: transform .3s ease, background .3s ease, color .3s ease, border-color .3s ease;
}
.social-row a:hover {
  background: var(--gold);
  color: #0a0a0a;
  border-color: var(--gold);
  transform: translateY(-2px);
}
.social-row a svg {
  width: 13px; height: 13px;
  display: block;
}
.social-row.big a { width: 46px; height: 46px; }
.social-row.big a svg { width: 19px; height: 19px; }

/* ━━━━━━━━━━ COVER (back of right panel) ━━━━━━━━━━ */
.cover {
  background:
    radial-gradient(circle at 20% 15%, rgba(255,199,44,0.18), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(255,199,44,0.10), transparent 50%),
    var(--paper-warm);
}
.cover::before {
  content:''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 90% 10%, transparent 30%, rgba(0,0,0,0.4) 100%),
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,199,44,0.025) 14px 15px);
  pointer-events: none;
}
.cover::after {
  content:'';
  position: absolute; inset: 16px;
  border: 1px solid rgba(255,199,44,0.22);
  pointer-events: none;
}

/* Sweeping shine across cover, slow loop */
.cover-shine {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,199,44,0.16) 48%, rgba(255,255,255,0.05) 50%, rgba(255,199,44,0.16) 52%, transparent 70%);
  transform: translate3d(-110%, 0, 0);
  animation: coverShine 6s ease-in-out 1.4s infinite;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
}
@keyframes coverShine {
  0%   { transform: translate3d(-110%, 0, 0); }
  55%  { transform: translate3d(110%, 0, 0); }
  100% { transform: translate3d(110%, 0, 0); }
}

.cover-pad {
  position: relative; z-index: 2;
  height: 100%;
  padding: clamp(1.4rem, 3vw, 2.6rem);
  display: flex; flex-direction: column;
}

.cover-top-row {
  display: flex; justify-content: space-between; align-items: center;
}
.cover-top-row .kicker { color: rgba(255,199,44,0.85); }

.cover-hero {
  margin-top: clamp(1rem, 3vw, 2rem);
  display: flex; flex-direction: column; align-items: flex-start; gap: .4rem;
}

.cover-title {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  display: flex; flex-direction: column;
}
.cover-title span:first-child { color: white; }

.cover-sub {
  font-size: 11px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: rgba(255,199,44,0.7);
  font-weight: 500;
  margin-top: .3rem;
}

.cover-tags {
  margin-top: clamp(1rem, 2.4vw, 1.6rem);
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .4rem .8rem;
  font-size: clamp(.55rem, 0.7vw, .68rem);
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
  text-transform: uppercase;
}
.cover-tags i {
  display: inline-block; width: 4px; height: 4px;
  border-radius: 50%; background: var(--gold);
}

.cover-tagline {
  margin-top: auto;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.15;
  color: rgba(255,255,255,0.92);
}

.cover-cta {
  margin-top: 1rem;
  display: inline-flex; align-items: center; gap: .8rem;
  padding: .9rem 1.4rem;
  background: rgba(255,199,44,0.08);
  border: 1px solid rgba(255,199,44,0.4);
  border-radius: 999px;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-weight: 600;
  align-self: flex-start;
  position: relative;
  overflow: hidden;
  transition: all .3s ease;
  cursor: pointer;
}
.cover-cta:hover {
  background: var(--gold);
  color: #0a0a0a;
  transform: translateY(-2px);
}
.cover-cta-arrow {
  display: grid; place-items: center;
  width: 26px; height: 26px;
  border-radius: 999px;
  background: rgba(255,199,44,0.15);
  transition: all .3s ease;
}
.cover-cta:hover .cover-cta-arrow {
  background: #0a0a0a;
  color: var(--gold);
  transform: rotate(45deg);
}
.cover-cta-ring {
  position: absolute; inset: -4px;
  border: 1px dashed rgba(255,199,44,0.3);
  border-radius: 999px;
  animation: rot 12s linear infinite;
  pointer-events: none;
}

.cover-foot {
  margin-top: 1.2rem;
  display: flex; justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  border-top: 1px dashed rgba(255,199,44,0.2);
  padding-top: 1rem;
}
.cover-foot span:first-child { color: rgba(255,199,44,0.7); }

/* ━━━━━━━━━━ BACK COVER (back of left panel) ━━━━━━━━━━ */
.panel-back-cover {
  background:
    radial-gradient(circle at 50% 50%, rgba(255,199,44,0.08), transparent 60%),
    var(--paper);
  display: grid; place-items: center;
}
.center-stack { text-align: center; align-items: center; justify-content: center; }
.back-stamp {
  margin-top: 1.4rem;
  font-size: 10px;
  letter-spacing: 0.45em;
  color: rgba(255,199,44,0.6);
  font-weight: 600;
  padding: .4rem 1rem;
  border: 1px solid rgba(255,199,44,0.3);
  border-radius: 999px;
}

/* ━━━━━━━━━━ BROCHURE CONTROLS ━━━━━━━━━━ */
.brochure-controls {
  position: absolute;
  bottom: 1.5rem;
  left: 50%; transform: translateX(-50%);
  display: flex; gap: .6rem;
  z-index: 20;
}
.ctrl {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem 1rem;
  background: rgba(20,20,20,0.85);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,199,44,0.2);
  border-radius: 999px;
  color: rgba(255,255,255,0.75);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all .3s ease;
  cursor: pointer;
}
.ctrl i { width: 14px; height: 14px; color: var(--gold); }
.ctrl:hover {
  border-color: var(--gold);
  background: rgba(255,199,44,0.1);
  color: white;
  transform: translateY(-2px);
}
.ctrl.active {
  background: var(--gold);
  color: #0a0a0a;
  border-color: var(--gold);
}
.ctrl.active i { color: #0a0a0a; }

.brochure-hint {
  position: absolute;
  top: 1rem; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: .5rem;
  font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(255,199,44,0.6);
  z-index: 5;
  pointer-events: none;
  animation: hintPulse 3s ease-in-out infinite;
}
.brochure-hint i { width: 12px; height: 12px; }
.brochure-hint .hint-mobile { display: none; }
@media (max-width: 900px) {
  .brochure-hint .hint-desktop { display: none; }
  .brochure-hint .hint-mobile { display: inline; }
  .brochure-shadow { display: none; }
  .brochure-hint { display: none; }   /* hide entirely on mobile, the cover CTA is enough */
}
@keyframes hintPulse {
  0%, 100% { opacity: 0.4; transform: translate(-50%, 0); }
  50% { opacity: 0.9; transform: translate(-50%, 2px); }
}

/* ━━━━━━━━━━ FULL PRODUCTS (below brochure) ━━━━━━━━━━ */
.full-products {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.full-card {
  position: relative;
  padding: 1.6rem 1.2rem;
  border-radius: 18px;
  /* Liquid glassmorphism */
  background:
    linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02)),
    rgba(15,15,15,0.45);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255,199,44,0.16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    inset 0 -1px 0 rgba(255,199,44,0.06),
    0 14px 36px -14px rgba(0,0,0,0.55);
  transition: transform .4s cubic-bezier(.2,.8,.2,1), border-color .4s ease, background .4s ease, box-shadow .4s ease;
  transform-style: preserve-3d;
  cursor: pointer;
  overflow: hidden;
}
.full-card::before {
  content:'';
  position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(255,199,44,0.15), transparent 50%);
  opacity: 0; transition: opacity .4s ease;
  pointer-events: none;
}
.full-card:hover {
  border-color: rgba(255,199,44,0.55);
  background:
    linear-gradient(180deg, rgba(255,199,44,0.10), rgba(255,255,255,0.025)),
    rgba(20,15,5,0.5);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.14),
    inset 0 -1px 0 rgba(255,199,44,0.10),
    0 18px 48px -14px rgba(255,199,44,0.18);
}
.full-card:hover::before { opacity: 1; }

.full-card .fc-num {
  font-size: 10px; letter-spacing: 0.3em;
  color: rgba(255,199,44,0.6);
  font-weight: 600;
}
.full-card .fc-icon {
  width: 36px; height: 36px;
  color: var(--gold);
  margin: 1rem 0 1.2rem;
  transition: transform .4s ease;
}
.full-card:hover .fc-icon { transform: translateZ(30px) scale(1.1); }
.full-card .fc-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; font-weight: 700;
  color: white;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.full-card .fc-tag {
  display: block; margin-top: .5rem;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  line-height: 1.4;
}
.full-card .fc-arrow {
  position: absolute; top: 1.4rem; right: 1.4rem;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: rgba(255,199,44,0.08);
  border: 1px solid rgba(255,199,44,0.2);
  color: var(--gold);
  transition: all .4s ease;
}
.full-card:hover .fc-arrow {
  background: var(--gold); color: #0a0a0a;
  transform: rotate(-45deg) translate(2px, -2px);
}

/* ━━━━━━━━━━ SERVICES STRIP ━━━━━━━━━━ */
.services-strip {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.service-tile {
  padding: 1.4rem;
  border-radius: 16px;
  /* Liquid glassmorphism */
  background:
    linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02)),
    rgba(15,15,15,0.45);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255,199,44,0.16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    inset 0 -1px 0 rgba(255,199,44,0.06),
    0 12px 32px -14px rgba(0,0,0,0.55);
  display: flex; gap: 1rem; align-items: flex-start;
  transition: all .35s ease;
}
.service-tile:hover {
  border-color: rgba(255,199,44,0.55);
  transform: translateY(-3px);
  background:
    linear-gradient(180deg, rgba(255,199,44,0.10), rgba(255,255,255,0.025)),
    rgba(20,15,5,0.5);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.14),
    inset 0 -1px 0 rgba(255,199,44,0.10),
    0 16px 40px -14px rgba(255,199,44,0.18);
}
.service-tile i {
  width: 22px; height: 22px;
  color: var(--gold);
  flex: 0 0 22px;
  margin-top: 4px;
}
.service-tile b {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 700;
  color: white;
}
.service-tile span {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin-top: .35rem;
  line-height: 1.5;
}

/* ━━━━━━━━━━ CONTACT GRID ━━━━━━━━━━ */
.contact-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.contact-card {
  position: relative;
  padding: 1.8rem 1.4rem;
  border-radius: 18px;
  /* Liquid glassmorphism */
  background:
    linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02)),
    rgba(15,15,15,0.45);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255,199,44,0.16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    inset 0 -1px 0 rgba(255,199,44,0.06),
    0 14px 36px -14px rgba(0,0,0,0.55);
  display: flex; flex-direction: column;
  transition: all .35s ease;
  overflow: hidden;
}
.contact-card:not(.no-hover):hover {
  border-color: rgba(255,199,44,0.55);
  transform: translateY(-3px);
  background:
    linear-gradient(180deg, rgba(255,199,44,0.10), rgba(255,255,255,0.025)),
    rgba(20,15,5,0.5);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.14),
    inset 0 -1px 0 rgba(255,199,44,0.10),
    0 18px 44px -14px rgba(255,199,44,0.18);
}
.contact-card i {
  width: 22px; height: 22px;
  color: var(--gold);
  margin-bottom: 1rem;
}
.contact-card .contact-label {
  font-size: 10px; letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,199,44,0.7);
  font-weight: 600;
}
.contact-card b {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; font-weight: 700;
  color: white;
  margin-top: .5rem;
  letter-spacing: -0.01em;
}
.contact-card .contact-meta {
  display: block; margin-top: .4rem;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}
.contact-card.socials { padding: 2rem 1.4rem; align-items: flex-start; }

/* ━━━━━━━━━━ RESPONSIVE: MOBILE 3D BROCHURE ━━━━━━━━━━
   Closed: brochure = single portrait card, cover visible full-size.
   Tap → brochure expands 3× tall, panels redistribute vertically with
   the cover flipping over. Each panel gets full content room. */

@media (max-width: 900px) {
  .stage {
    perspective: 2000px;
    perspective-origin: 50% 35%;
    padding: 5.5rem 0.5rem 6rem;
    min-height: auto;
  }

  .brochure {
    width: min(94vw, 440px);
    aspect-ratio: 9 / 14;          /* portrait, single-panel size when closed */
    cursor: pointer;
    touch-action: auto;             /* never trap touch — page scrolls freely */
    user-select: auto;
    transition: aspect-ratio 1.4s cubic-bezier(.65,0,.35,1);
  }
  /* Allow touches to pass through panel/face containers to page scroll */
  .brochure .panel, .brochure .face { touch-action: auto; }
  .brochure.open {
    /* Each panel sizes to its own content (no equal-height waste) */
    aspect-ratio: auto;
    height: auto;
    display: flex;
    flex-direction: column;
  }

  /* OPEN: panels become flow children, height = content. */
  .brochure.open > .panel-left,
  .brochure.open > .panel-center,
  .brochure.open > .panel-right {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    transform: translateZ(0) rotateY(0);
    opacity: 1;
  }
  .brochure.open .face,
  .brochure.open .face-front {
    position: relative;
    inset: auto;
    height: auto;
  }
  .brochure.open .face-back { display: none !important; }
  .brochure.open .panel-pad,
  .brochure.open .cover-pad { height: auto; }

  /* All panels: full width, fixed left, percentage height that's the same
     when closed (overlap) or open (distributed). */
  .brochure .panel-left,
  .brochure .panel-center,
  .brochure .panel-right {
    width: 100%;
    left: 0;
    transform-origin: center center;
  }

  /* CLOSED: all panels overlap, full brochure size.
     Cover (right panel back) shows by rotateY(180) — its back face also
     has rotateY(180), so combined = rotateY(0): upright. */
  .brochure:not(.open) .panel-left,
  .brochure:not(.open) .panel-center,
  .brochure:not(.open) .panel-right {
    top: 0;
    height: 100%;
  }
  .brochure:not(.open) .panel-right { transform: translateZ(6px) rotateY(180deg); z-index: 3; }
  .brochure:not(.open) .panel-left  { transform: translateZ(3px) rotateY(180deg); z-index: 2; }
  .brochure:not(.open) .panel-center { z-index: 1; opacity: 0; }  /* hide products under cover */

  /* OPEN: brochure expands, panels distribute vertically, no rotation. */
  .brochure.open .panel-left,
  .brochure.open .panel-center,
  .brochure.open .panel-right {
    height: 33.3334%;
    transform: translateZ(0) rotateY(0);
    opacity: 1;
  }
  .brochure.open .panel-left   { top: 0; }
  .brochure.open .panel-center { top: 33.3334%; }
  .brochure.open .panel-right  { top: 66.6668%; }

  /* Smooth simultaneous transition of position + transform */
  .brochure .panel-left,
  .brochure .panel-center,
  .brochure .panel-right {
    transition:
      top 1.2s cubic-bezier(.65,0,.35,1),
      height 1.2s cubic-bezier(.65,0,.35,1),
      transform 1.2s cubic-bezier(.65,0,.35,1),
      opacity .6s ease;
  }
  /* Sequence: cover flips first, then center fades, then left lays down */
  .brochure.open .panel-right  { transition-delay: 0s, 0s, 0s, 0s; }
  .brochure.open .panel-center { transition-delay: 0.15s, 0.15s, 0.15s, 0.5s; }
  .brochure.open .panel-left   { transition-delay: 0.3s, 0.3s, 0.3s, 0s; }
  .brochure:not(.open) .panel-left   { transition-delay: 0s, 0s, 0s, 0s; }
  .brochure:not(.open) .panel-center { transition-delay: 0.15s, 0.15s, 0.15s, 0s; }
  .brochure:not(.open) .panel-right  { transition-delay: 0.3s, 0.3s, 0.3s, 0s; }

  /* No flip-to-back on mobile, hide thank-you back face */
  .panel-back-cover { display: none !important; }

  /* Show only Open/Close on mobile (drop flip + auto-spin) */
  .brochure-controls {
    bottom: 1.2rem;
    gap: 0.5rem;
    padding: 0 1rem;
  }
  .ctrl { padding: 0.6rem 0.95rem; font-size: 10px; }
  .ctrl[data-action="flip"], .ctrl[data-action="auto"] { display: none; }

  .brochure-hint { top: 4.6rem; }

  .panel-pad { padding: 1.4rem; height: 100%; }
  .cover-pad { padding: 1.4rem; height: 100%; }

  .panel-h { font-size: 1.6rem; }
  .cover-title { font-size: clamp(2.6rem, 12vw, 3.6rem); }
  .cover-tagline { font-size: clamp(1.4rem, 5.5vw, 1.9rem); }

  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 0.45rem; }
  .product-card { padding: 0.4rem; gap: 0.3rem; }
  .product-card .pc-icon { width: 22px; height: 22px; }
  .product-card .pc-name { font-size: 9.5px; line-height: 1.2; }
  .product-card .pc-num  { font-size: 8px; }

  .services-grid { grid-template-columns: 1fr 1fr; gap: 0.3rem; }
  .services-grid > span { font-size: 10px; padding: 0.4rem 0.55rem; }

  .why-list { gap: 0.45rem; }
  .why-list li { padding: 0.55rem; }
  .why-list li b { font-size: 0.85rem; }
  .why-list li span { font-size: 0.7rem; line-height: 1.4; }
  .why-list li i { width: 16px; height: 16px; flex: 0 0 16px; }

  .contact-block { gap: 0.4rem; }
  .contact-row { padding: 0.5rem 0.65rem; }
  .contact-row b { font-size: 0.85rem; }
  .contact-row span { font-size: 0.7rem; }

  .qr-block { gap: 0.85rem; }
  .qr-frame { width: 140px; height: 140px; }

  .social-row a { width: 30px; height: 30px; }
  .social-row a svg { width: 13px; height: 13px; }
}

@media (max-width: 480px) {
  .stage { padding: 5rem 0.4rem 6rem; }
  .brochure { width: 96vw; }
  .full-products { grid-template-columns: 1fr; }
}

/* ━━━━━━━━━━ SITE FOOTER ━━━━━━━━━━ */
.site-footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(255,199,44,0.14);
  background:
    linear-gradient(180deg, rgba(255,199,44,0.04), transparent 50%),
    rgba(5,5,5,0.92);
  margin-top: 4rem;
  padding: 4rem 1.25rem 1.5rem;
}
.footer-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 2fr 1.2fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px dashed rgba(255,199,44,0.14);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.footer-brand { display: flex; gap: 0.85rem; align-items: center; }
.footer-brand > div { display: flex; flex-direction: column; }
.footer-brand b {
  display: block;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  letter-spacing: -0.01em;
}
/* Only the tagline span — NOT the .kd-mark-letters inside the logo pill */
.footer-brand > div > span {
  display: block;
  font-size: 11px; letter-spacing: 0.25em;
  color: rgba(255,199,44,0.7);
  text-transform: uppercase; font-weight: 500;
  margin-top: 4px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 0.65rem 2.4rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  align-content: center;
}
@media (max-width: 600px) { .footer-nav { grid-template-columns: 1fr 1fr; } }
.footer-nav a { transition: color .25s ease; }
.footer-nav a:hover { color: var(--gold); }

.footer-contact {
  display: flex; flex-direction: column; gap: 0.45rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  text-align: right;
}
@media (max-width: 900px) { .footer-contact { text-align: left; } }
.footer-contact a { transition: color .25s ease; }
.footer-contact a:hover { color: var(--gold); }

.footer-bottom {
  max-width: 1280px; margin: 0 auto;
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
}
.footer-copy { letter-spacing: 0.01em; }

/* Designer credit */
.footer-credit {
  display: inline-flex; align-items: center; gap: 0.65rem;
  flex-wrap: wrap;
  letter-spacing: 0.02em;
}
.footer-credit-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.85rem 0.4rem 0.4rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015)),
    rgba(15,15,15,0.6);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255,199,44,0.18);
  border-radius: 999px;
  color: rgba(255,255,255,0.78);
  transition: all .25s ease;
  font-weight: 500;
}
.footer-credit-link:hover {
  border-color: var(--gold);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -8px rgba(255,199,44,0.45);
}
.footer-credit-link em {
  font-style: normal;
  color: var(--gold);
  font-weight: 600;
  margin-left: 2px;
}
.footer-credit-mono {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffe388, #ffc72c 50%, #a87d00);
  color: #0a0a0a;
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 9px;
  letter-spacing: 0;
}
.footer-credit-divider { color: rgba(255,255,255,0.25); margin: 0 0.1rem; }
.footer-credit-upwork {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: rgba(255,255,255,0.55);
  transition: color .25s ease;
}
.footer-credit-upwork:hover { color: #6fda44; }
.footer-credit-upwork svg { color: #6fda44; }

@media (max-width: 700px) {
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.85rem; }
}

/* ━━━━━━━━━━ LEGAL PAGES (privacy / terms) ━━━━━━━━━━ */
.legal-page {
  max-width: 880px;
  margin: 0 auto;
  padding: 7rem 1.5rem 4rem;
  position: relative; z-index: 10;
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
}
.legal-page h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 1rem 0 0.6rem;
}
.legal-page h1 span { color: var(--gold); font-style: italic; }
.legal-page .legal-meta {
  font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(255,199,44,0.7); font-weight: 500;
}
.legal-page h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 700;
  color: white;
  margin: 2.4rem 0 0.75rem;
  letter-spacing: -0.01em;
}
.legal-page h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold);
  margin: 1.6rem 0 0.5rem;
  letter-spacing: 0.01em;
}
.legal-page p { margin: 0 0 1rem; font-size: 0.95rem; }
.legal-page ul, .legal-page ol { margin: 0.5rem 0 1rem 1.2rem; }
.legal-page ul li, .legal-page ol li { margin-bottom: 0.5rem; font-size: 0.93rem; }
.legal-page a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; transition: color .2s ease; }
.legal-page a:hover { color: #ffe388; }
.legal-page .legal-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015)),
    rgba(15,15,15,0.6);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255,199,44,0.18);
  border-radius: 16px;
  padding: 1.4rem 1.6rem;
  margin: 1.6rem 0;
}
.legal-page .legal-card-title {
  font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--gold); font-weight: 600;
  margin-bottom: 0.6rem;
}
.legal-page strong { color: white; font-weight: 600; }
.legal-page .legal-back {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-bottom: 1.4rem;
  padding: 0.5rem 1rem;
  background: rgba(255,199,44,0.08);
  border: 1px solid rgba(255,199,44,0.25);
  border-radius: 999px;
  color: var(--gold);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  text-decoration: none !important;
  font-weight: 600;
  transition: all .25s ease;
}
.legal-page .legal-back:hover { background: var(--gold); color: #0a0a0a; }

/* ━━━━━━━━━━ QUOTE FORM MODAL ━━━━━━━━━━ */
.quote-modal {
  position: fixed; inset: 0;
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 1.5rem 1rem;
  overflow-y: auto;
}
.quote-modal.open { display: flex; }
.quote-modal[aria-hidden="false"] { display: flex; }

.quote-backdrop {
  position: fixed; inset: 0;
  background: rgba(5,5,5,0.78);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  z-index: 0;
  cursor: pointer;
}

.quote-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
  margin: 2rem auto;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015)),
    rgba(15,15,15,0.92);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid rgba(255,199,44,0.22);
  border-radius: 22px;
  padding: 2rem 2rem 1.6rem;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    inset 0 -1px 0 rgba(255,199,44,0.08),
    0 30px 70px -20px rgba(0,0,0,0.85);
  animation: qfPanelIn .45s cubic-bezier(.2,.9,.2,1);
}
@keyframes qfPanelIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.quote-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: rgba(255,199,44,0.08);
  border: 1px solid rgba(255,199,44,0.25);
  color: var(--gold);
  cursor: pointer;
  transition: all .25s ease;
}
.quote-close:hover { background: var(--gold); color: #0a0a0a; transform: rotate(90deg); }

.quote-header { margin-bottom: 1.6rem; }
.quote-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0.6rem 0 0.6rem;
}
.quote-sub {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
  max-width: 56ch;
}

/* Form structure */
.qf-group {
  border: none;
  padding: 0; margin: 0 0 1.6rem;
  display: flex; flex-direction: column; gap: 0.65rem;
}
.qf-legend {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: white;
  letter-spacing: -0.01em;
  margin-bottom: 0.55rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.qf-num {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg,#ffe388,#ffc72c 50%,#a87d00);
  color: #0a0a0a;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px; font-weight: 800;
  letter-spacing: 0;
}

.qf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
@media (max-width: 600px) { .qf-row { grid-template-columns: 1fr; } }

.qf-field { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.qf-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,199,44,0.85);
  font-weight: 600;
  display: flex; gap: 0.4rem; align-items: center;
}
.qf-label em { color: #ff9d4d; font-style: normal; }
.qf-opt { color: rgba(255,255,255,0.4); font-weight: 400; letter-spacing: 0.05em; text-transform: none; }
.qf-hint { font-size: 0.78rem; color: rgba(255,255,255,0.55); margin: 0; line-height: 1.5; }

.qf-field input[type="text"],
.qf-field input[type="email"],
.qf-field input[type="tel"],
.qf-field input[type="date"],
.qf-field select,
.qf-field textarea,
.qf-phone select,
.qf-phone input {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,199,44,0.18);
  border-radius: 10px;
  color: white;
  font-family: inherit;
  font-size: 0.92rem;
  padding: 0.7rem 0.85rem;
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
  outline: none;
}
.qf-field textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
.qf-field input:hover,
.qf-field select:hover,
.qf-field textarea:hover { border-color: rgba(255,199,44,0.32); }
.qf-field input:focus,
.qf-field select:focus,
.qf-field textarea:focus,
.qf-phone input:focus,
.qf-phone select:focus {
  border-color: var(--gold);
  background: rgba(255,199,44,0.04);
  box-shadow: 0 0 0 3px rgba(255,199,44,0.15);
}
.qf-field input.qf-invalid,
.qf-field select.qf-invalid,
.qf-field textarea.qf-invalid {
  border-color: #ff6868;
  background: rgba(255,90,90,0.04);
}
.qf-field input::placeholder,
.qf-field textarea::placeholder { color: rgba(255,255,255,0.35); }
.qf-field select option { background: #141414; color: white; }

/* Phone with country code */
.qf-phone { display: grid; grid-template-columns: auto 1fr; gap: 0.4rem; }
.qf-phone select { width: auto; min-width: 96px; }

/* Customer type radio cards */
.qf-types {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.55rem;
}
.qf-type input { position: absolute; opacity: 0; pointer-events: none; }
.qf-type-card {
  display: flex; flex-direction: column; gap: 0.3rem;
  padding: 0.85rem 0.8rem;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,199,44,0.15);
  border-radius: 12px;
  cursor: pointer;
  transition: all .25s ease;
}
.qf-type-card svg { color: var(--gold); margin-bottom: 0.25rem; }
.qf-type-card b { font-size: 0.85rem; color: white; font-weight: 600; }
.qf-type-card em {
  font-style: normal;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.3;
}
.qf-type-card:hover { border-color: rgba(255,199,44,0.4); transform: translateY(-2px); }
.qf-type input:checked + .qf-type-card {
  border-color: var(--gold);
  background: rgba(255,199,44,0.08);
  box-shadow: inset 0 1px 0 rgba(255,199,44,0.18), 0 6px 20px -10px rgba(255,199,44,0.4);
}
.qf-type input:focus-visible + .qf-type-card { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Product chips */
.qf-products {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  margin-top: 0.4rem;
}
.qf-chip { position: relative; }
.qf-chip input { position: absolute; opacity: 0; pointer-events: none; }
.qf-chip-label {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,199,44,0.18);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.78);
  transition: all .2s ease;
  user-select: none;
}
.qf-chip-label:hover { border-color: rgba(255,199,44,0.4); color: white; }
.qf-chip input:checked + .qf-chip-label {
  background: var(--gold);
  color: #0a0a0a;
  border-color: var(--gold);
  font-weight: 600;
}
.qf-chip input:focus-visible + .qf-chip-label { outline: 2px solid var(--gold); outline-offset: 2px; }

/* File drop zone */
.qf-drop {
  display: block;
  position: relative;
  padding: 1.4rem 1rem;
  background: rgba(255,255,255,0.02);
  border: 2px dashed rgba(255,199,44,0.3);
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  transition: all .25s ease;
}
.qf-drop:hover { border-color: var(--gold); background: rgba(255,199,44,0.05); }
.qf-drop.dragover { border-color: var(--gold); background: rgba(255,199,44,0.1); transform: scale(1.01); }
.qf-drop-inner { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; color: rgba(255,255,255,0.7); }
.qf-drop-inner svg { color: var(--gold); }
.qf-drop-inner b { font-size: 0.9rem; color: white; }
.qf-drop-inner em { font-style: normal; font-size: 0.72rem; color: rgba(255,255,255,0.5); }

.qf-files-list {
  display: flex; flex-direction: column; gap: 0.45rem;
  margin-top: 0.6rem;
}
.qf-file {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.55rem 0.7rem;
  background: rgba(255,199,44,0.04);
  border: 1px solid rgba(255,199,44,0.18);
  border-radius: 10px;
}
.qf-file-thumb {
  width: 36px; height: 36px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  display: grid; place-items: center;
  color: var(--gold);
  flex-shrink: 0;
  overflow: hidden;
}
.qf-file-thumb img { width: 100%; height: 100%; object-fit: cover; }
.qf-file-name { flex: 1; min-width: 0; font-size: 0.82rem; color: white; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qf-file-size { font-size: 0.72rem; color: rgba(255,255,255,0.5); flex-shrink: 0; }
.qf-file-remove {
  width: 26px; height: 26px;
  border-radius: 999px;
  background: rgba(255,90,90,0.1);
  border: 1px solid rgba(255,90,90,0.3);
  color: #ff8080;
  display: grid; place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all .2s ease;
}
.qf-file-remove:hover { background: #ff6868; color: white; }

/* Checkbox */
.qf-checkbox {
  display: flex; gap: 0.65rem; align-items: flex-start;
  padding: 0.7rem 0.85rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,199,44,0.15);
  border-radius: 10px;
  cursor: pointer;
}
.qf-checkbox input {
  flex-shrink: 0; margin-top: 3px;
  width: 16px; height: 16px;
  accent-color: var(--gold);
  cursor: pointer;
}
.qf-checkbox span { font-size: 0.82rem; color: rgba(255,255,255,0.78); line-height: 1.5; }
.qf-checkbox span em { color: #ff9d4d; font-style: normal; }
.qf-checkbox span a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }

.qf-recaptcha-note {
  display: flex; gap: 0.45rem; align-items: center;
  margin-top: 0.6rem;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.42);
}
.qf-recaptcha-note svg { color: var(--gold); flex-shrink: 0; }
.qf-recaptcha-note a { color: rgba(255,199,44,0.85); }

/* Errors */
.qf-error {
  font-size: 0.74rem;
  color: #ff8080;
  min-height: 1.2em;
  margin-top: 2px;
  font-weight: 500;
}
.qf-error:empty { display: none; }

/* Submit */
.qf-submit-row { display: flex; flex-direction: column; gap: 0.5rem; align-items: stretch; margin-top: 0.4rem; }
.qf-submit {
  position: relative;
  width: 100%;
  justify-content: center;
  padding: 1rem 1.4rem !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.18em !important;
}
.qf-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.qf-submit.loading .qf-submit-label { opacity: 0; }
.qf-submit.loading svg { opacity: 0; }
.qf-submit-spinner {
  display: none;
  position: absolute;
  width: 18px; height: 18px;
  border: 2.5px solid rgba(10,10,10,0.25);
  border-top-color: #0a0a0a;
  border-radius: 999px;
  animation: qfSpin 0.7s linear infinite;
}
.qf-submit.loading .qf-submit-spinner { display: block; }
@keyframes qfSpin { to { transform: rotate(360deg); } }
.qf-submit-hint { text-align: center; font-size: 0.7rem; color: rgba(255,255,255,0.5); }

/* Success state */
.qf-success {
  text-align: center;
  padding: 1.4rem 1rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.85rem;
  animation: qfSuccessIn .55s cubic-bezier(.2,.9,.2,1);
}
@keyframes qfSuccessIn {
  from { opacity: 0; transform: scale(0.93); }
  to   { opacity: 1; transform: scale(1); }
}
.qf-success-icon {
  width: 76px; height: 76px;
  border-radius: 999px;
  background: linear-gradient(135deg,#ffe388,#ffc72c 50%,#a87d00);
  display: grid; place-items: center;
  color: #0a0a0a;
  box-shadow: 0 12px 40px -8px rgba(255,199,44,0.5);
  animation: qfPulse 1.6s ease-in-out infinite;
}
@keyframes qfPulse {
  0%,100% { box-shadow: 0 12px 40px -8px rgba(255,199,44,0.5); }
  50%     { box-shadow: 0 12px 50px -4px rgba(255,199,44,0.85); }
}
.qf-success h3 { font-family: 'Playfair Display', serif; font-size: 1.7rem; margin: 0; }
.qf-success p { color: rgba(255,255,255,0.7); font-size: 0.92rem; margin: 0; max-width: 38ch; }
.qf-success-meta { font-size: 0.78rem !important; color: rgba(255,255,255,0.5) !important; margin-top: 0.6rem !important; }
.qf-ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.6);
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 0.4rem;
  transition: all .25s ease;
}
.qf-ghost:hover { color: white; border-color: var(--gold); }

@media (max-width: 600px) {
  .quote-panel { padding: 1.5rem 1.2rem 1.2rem; margin: 0.6rem auto; border-radius: 18px; }
  .quote-title { font-size: 1.5rem; }
  .qf-types { grid-template-columns: 1fr 1fr; }
  .qf-type-card { padding: 0.7rem 0.6rem; }
  .qf-type-card b { font-size: 0.78rem; }
  .qf-type-card em { font-size: 0.66rem; }
}

/* Lock body scroll when modal open */
body.modal-open { overflow: hidden; }

/* Honeypot — invisible to humans/AT, attractive to dumb bots */
.qf-honeypot {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important; height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ━━━━━━━━━━ FLATPICKR — branded theme ━━━━━━━━━━ */
.flatpickr-calendar {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015)),
    rgba(15,15,15,0.96) !important;
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255,199,44,0.25) !important;
  border-radius: 14px !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 18px 45px -10px rgba(0,0,0,0.7) !important;
  color: white !important;
  font-family: 'Space Grotesk', system-ui, sans-serif !important;
  font-size: 0.85rem;
  padding: 0.4rem;
}
.flatpickr-calendar.arrowTop::before,
.flatpickr-calendar.arrowTop::after { border-bottom-color: rgba(255,199,44,0.25) !important; }
.flatpickr-calendar.arrowBottom::before,
.flatpickr-calendar.arrowBottom::after { border-top-color: rgba(255,199,44,0.25) !important; }

.flatpickr-months,
.flatpickr-months .flatpickr-month {
  background: transparent !important;
  color: white !important;
  border-radius: 12px 12px 0 0;
}
.flatpickr-current-month {
  font-family: 'Playfair Display', serif !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: white !important;
}
.flatpickr-current-month .numInputWrapper:hover { background: rgba(255,199,44,0.1); }
.flatpickr-current-month input.cur-year { color: white !important; font-weight: 700; }
.flatpickr-monthDropdown-months {
  background: #141414 !important;
  color: white !important;
  border-radius: 6px;
  padding: 0.2rem 0.4rem;
  appearance: none;
}
.flatpickr-monthDropdown-month { background: #141414 !important; color: white !important; }
.flatpickr-prev-month,
.flatpickr-next-month {
  fill: var(--gold) !important;
  color: var(--gold) !important;
  padding: 8px !important;
  border-radius: 999px;
  transition: background .2s ease;
}
.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
  background: rgba(255,199,44,0.12) !important;
  fill: var(--gold) !important;
  color: var(--gold) !important;
}
.flatpickr-prev-month svg,
.flatpickr-next-month svg { fill: currentColor !important; }

.flatpickr-weekdays { background: transparent !important; }
.flatpickr-weekday {
  color: rgba(255,199,44,0.75) !important;
  font-weight: 600 !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.15em;
  background: transparent !important;
}

.dayContainer { padding: 4px 0; }
.flatpickr-day {
  color: rgba(255,255,255,0.78) !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  max-width: 38px;
  height: 36px;
  line-height: 34px;
  font-weight: 500;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.flatpickr-day:hover {
  background: rgba(255,199,44,0.12) !important;
  color: white !important;
  border-color: rgba(255,199,44,0.35) !important;
}
.flatpickr-day.today {
  border-color: var(--gold) !important;
  color: var(--gold) !important;
  font-weight: 700;
}
.flatpickr-day.today:hover { background: rgba(255,199,44,0.18) !important; color: var(--gold) !important; }
.flatpickr-day.selected,
.flatpickr-day.selected:hover {
  background: linear-gradient(135deg, #ffe388, #ffc72c 50%, #a87d00) !important;
  color: #0a0a0a !important;
  border-color: var(--gold) !important;
  font-weight: 700;
  box-shadow: 0 4px 14px -4px rgba(255,199,44,0.5);
}
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay { color: rgba(255,255,255,0.25) !important; }
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
  color: rgba(255,255,255,0.12) !important;
  background: transparent !important;
  cursor: not-allowed;
  border-color: transparent !important;
}

/* ━━━━━━━━━━ COOKIE CONSENT ━━━━━━━━━━ */

/* Bottom-left banner — non-blocking, dismissible */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  width: min(380px, calc(100vw - 2rem));
  z-index: 250;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.018)),
    rgba(15,15,15,0.92);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid rgba(255,199,44,0.24);
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -1px 0 rgba(255,199,44,0.08),
    0 24px 60px -16px rgba(0,0,0,0.7);
  padding: 1.1rem 1.2rem 1.15rem;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  transform: translateY(160%);
  opacity: 0;
  pointer-events: none;
  transition: transform .55s cubic-bezier(.2,.9,.2,1), opacity .35s ease;
}
.cookie-banner.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg,#ffe388,#ffc72c 50%,#a87d00);
  color: #0a0a0a;
  display: grid; place-items: center;
  box-shadow: 0 4px 14px -4px rgba(255,199,44,0.55);
}
.cookie-banner-content { flex: 1; min-width: 0; }
.cookie-banner-content b {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.02rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
}
.cookie-banner-content p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
  margin: 0 0 0.7rem;
}
.cookie-banner-content a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner-actions {
  display: flex; gap: 0.4rem;
  flex-wrap: wrap;
}
.cookie-banner-close {
  position: absolute; top: 0.5rem; right: 0.5rem;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(255,199,44,0.18);
  color: rgba(255,199,44,0.6);
  cursor: pointer;
  transition: all .25s ease;
}
.cookie-banner-close:hover {
  background: rgba(255,90,90,0.1);
  border-color: #ff8080;
  color: #ff8080;
}

/* Buttons */
.cookie-btn-primary {
  padding: 0.55rem 1rem !important;
  font-size: 10.5px !important;
  letter-spacing: 0.18em !important;
  flex: 1;
  justify-content: center;
}
.cookie-btn-ghost {
  padding: 0.55rem 1rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.78);
  border-radius: 999px;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s ease;
  font-family: inherit;
}
.cookie-btn-ghost:hover {
  border-color: var(--gold);
  color: white;
  background: rgba(255,199,44,0.06);
}
.cookie-btn-save { background: rgba(255,199,44,0.08); border-color: rgba(255,199,44,0.3); color: var(--gold); }

/* Preferences modal */
.cookie-prefs {
  position: fixed; inset: 0;
  z-index: 260;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
  overflow-y: auto;
}
.cookie-prefs.open { display: flex; }
.cookie-prefs-backdrop {
  position: fixed; inset: 0;
  background: rgba(5,5,5,0.78);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  cursor: pointer;
}
.cookie-prefs-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 600px;
  margin: 1.5rem auto;
  padding: 2rem 1.8rem 1.5rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.018)),
    rgba(15,15,15,0.94);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid rgba(255,199,44,0.24);
  border-radius: 22px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 30px 70px -20px rgba(0,0,0,0.85);
  animation: qfPanelIn .45s cubic-bezier(.2,.9,.2,1);
}
.cookie-prefs-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: rgba(255,199,44,0.08);
  border: 1px solid rgba(255,199,44,0.25);
  color: var(--gold);
  cursor: pointer;
  transition: all .25s ease;
}
.cookie-prefs-close:hover { background: var(--gold); color: #0a0a0a; transform: rotate(90deg); }
.cookie-prefs-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0.6rem 0 0.5rem;
}
.cookie-prefs-sub {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin: 0 0 1.4rem;
  line-height: 1.5;
}

.cookie-cats { display: flex; flex-direction: column; gap: 0.65rem; }
.cookie-cat {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,199,44,0.16);
  border-radius: 12px;
  padding: 0.85rem 1rem;
}
.cookie-cat-head {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer;
  user-select: none;
}
.cookie-cat-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1rem;
  color: white;
  letter-spacing: -0.01em;
}
.cookie-cat-desc {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  margin: 0.5rem 0 0;
  line-height: 1.5;
}

/* Toggle switch */
.cookie-toggle {
  position: relative;
  width: 42px; height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}
.cookie-toggle input {
  position: absolute; opacity: 0; pointer-events: none;
}
.cookie-toggle-slider {
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,199,44,0.18);
  border-radius: 999px;
  transition: all .25s ease;
}
.cookie-toggle-slider::before {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  background: rgba(255,255,255,0.45);
  border-radius: 999px;
  transition: all .25s ease;
}
.cookie-toggle input:checked + .cookie-toggle-slider {
  background: linear-gradient(135deg, #ffe388, #ffc72c 50%, #a87d00);
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(255,199,44,0.3), 0 4px 12px -4px rgba(255,199,44,0.5);
}
.cookie-toggle input:checked + .cookie-toggle-slider::before {
  transform: translateX(18px);
  background: #0a0a0a;
}
.cookie-toggle input:focus-visible + .cookie-toggle-slider { outline: 2px solid var(--gold); outline-offset: 2px; }

.cookie-toggle-pill.always-on {
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  background: rgba(255,199,44,0.08);
  border: 1px solid rgba(255,199,44,0.25);
  border-radius: 999px;
}

.cookie-prefs-actions {
  display: flex; gap: 0.5rem;
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px dashed rgba(255,199,44,0.18);
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cookie-prefs-actions .cookie-btn-primary {
  flex: 0 0 auto;
  min-width: 140px;
}

/* Mobile tweaks */
@media (max-width: 600px) {
  .cookie-banner {
    bottom: 0.6rem;
    left: 0.6rem;
    right: 0.6rem;
    width: auto;
    padding: 1rem 1rem 1.05rem;
  }
  .cookie-banner-actions { gap: 0.4rem; }
  .cookie-banner-actions .cookie-btn-primary,
  .cookie-banner-actions .cookie-btn-ghost { flex: 1; min-width: 0; padding: 0.55rem 0.55rem; font-size: 9.5px !important; }
  .cookie-prefs-panel { padding: 1.5rem 1.2rem 1.2rem; margin: 0.5rem auto; }
  .cookie-prefs-actions { flex-direction: column-reverse; }
  .cookie-prefs-actions > * { width: 100%; justify-content: center; }
}

/* ━━━━━━━━━━ 404 PAGE ━━━━━━━━━━ */
.error-page {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 1.5rem 4rem;
}
.error-stack {
  max-width: 780px;
  width: 100%;
  text-align: center;
  display: flex; flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}
.error-code {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.4rem 0 0.2rem;
  font-family: 'Playfair Display', serif;
  line-height: 1;
}
.error-digit {
  font-size: clamp(7rem, 22vw, 14rem);
  font-weight: 900;
  background: linear-gradient(135deg, #ffe388 0%, #ffc72c 50%, #a87d00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.04em;
  line-height: 0.9;
  filter: drop-shadow(0 8px 30px rgba(255,199,44,0.18));
}
.error-zero {
  display: inline-block;
  width: clamp(7rem, 22vw, 14rem);
  height: clamp(7rem, 22vw, 14rem);
  position: relative;
  animation: errorRotate 16s linear infinite;
}
.error-zero svg { width: 100%; height: 100%; }
@keyframes errorRotate { to { transform: rotate(360deg); } }

.error-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.1;
}
.error-title em {
  color: var(--gold);
  font-style: italic;
}
.error-sub {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
  max-width: 56ch;
  margin: 0;
}

.error-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.6rem;
}
.error-btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015)),
    rgba(15,15,15,0.6);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255,199,44,0.2);
  border-radius: 999px;
  color: rgba(255,255,255,0.78);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  transition: all .25s ease;
}
.error-btn-ghost:hover {
  border-color: var(--gold);
  color: white;
  background:
    linear-gradient(180deg, rgba(255,199,44,0.10), rgba(255,255,255,0.025)),
    rgba(20,15,5,0.55);
  transform: translateY(-1px);
}
.error-btn-ghost svg { color: var(--gold); }

.error-tip {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed rgba(255,199,44,0.2);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
}
.error-tip > span:first-child {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,199,44,0.7);
  font-weight: 600;
  font-size: 10px;
  margin-right: 0.4rem;
}
.error-tip a {
  color: rgba(255,255,255,0.78);
  transition: color .2s ease;
}
.error-tip a:hover { color: var(--gold); }
.error-tip > span:not(:first-child) { color: rgba(255,255,255,0.25); }

@media (max-width: 600px) {
  .error-page { padding: 7rem 1rem 3rem; }
  .error-actions { gap: 0.5rem; }
  .error-btn-ghost { font-size: 10px; padding: 0.6rem 0.95rem; }
}

/* ━━━━━━━━━━ NOSCRIPT WALL ━━━━━━━━━━ */
/* When JavaScript is disabled, hide everything else and show only this. */
.noscript-wall {
  position: fixed; inset: 0; z-index: 99999;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 60%, #0a0a0a 100%);
  color: #fff;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 2rem;
  font-family: 'Space Grotesk', system-ui, sans-serif;
}
.noscript-wall .kd-mark { width: 84px; height: 84px; border-radius: 18px; }
.noscript-wall .kd-mark-letters { font-size: 32px; }
.noscript-wall h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #ffc72c;
  margin: 1.5rem 0 0.5rem;
  letter-spacing: -0.02em;
}
.noscript-wall p {
  color: rgba(255,255,255,0.75);
  max-width: 52ch;
  line-height: 1.6;
  margin: 0 0 0.6rem;
}
.noscript-wall .noscript-contact { margin-top: 1.4rem; font-size: 0.95rem; }
.noscript-wall .noscript-contact a {
  color: #ffc72c;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin: 0 0.3rem;
}
/* When noscript is active, hide the rest of the body */
body:has(.noscript-wall) > *:not(noscript) { /* fallback: */ }

/* ━━━━━━━━━━ PRINT — defeat Ctrl+P / Print to PDF ━━━━━━━━━━ */
@media print {
  body * { visibility: hidden !important; }
  body::before {
    content: 'This page cannot be printed. © KUIQ DEALS Technologies Pvt Ltd';
    visibility: visible !important;
    display: block;
    text-align: center;
    font-family: Georgia, serif;
    font-size: 14pt;
    padding: 30mm 20mm;
    color: #000;
  }
}

/* ━━━━━━━━━━ CONTENT PROTECTION ━━━━━━━━━━ */
/* Disable text selection + image dragging on the protected body.
   Form fields, code blocks, and contact details still allow selection. */
body.content-protected {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;       /* iOS long-press menu */
}
body.content-protected input,
body.content-protected textarea,
body.content-protected select,
body.content-protected [contenteditable],
body.content-protected .legal-page,        /* let users read legal text */
body.content-protected .qr-frame,
body.content-protected .contact-row b,
body.content-protected .contact-card b,
body.content-protected .footer-contact a {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}
body.content-protected img {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
  pointer-events: auto;
}

/* Branded toast for blocked actions */
.protection-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  z-index: 10000;
  padding: 1rem 1.6rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015)),
    rgba(15,15,15,0.95);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255,199,44,0.4);
  border-radius: 14px;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.1),
    0 16px 40px -12px rgba(0,0,0,0.7);
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease, transform .35s cubic-bezier(.2,.9,.2,1);
}
.protection-toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .kd-mark::after, .cover-cta-ring, .loader-ring { animation: none !important; }
}

/* ━━━━━━━━━━ QUOTE FORM · LIVE VALIDATION ━━━━━━━━━━ */

/* Wrap fields so we can pin a status icon (✓ / !) without breaking layout */
.qf-field { position: relative; }
.qf-field-status {
  position: absolute;
  right: 12px;
  top: 32px;                     /* sits inside the input, vertically centered */
  width: 18px; height: 18px;
  border-radius: 999px;
  display: grid; place-items: center;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity .2s ease, transform .25s cubic-bezier(.2,.9,.2,1);
  z-index: 2;
}
.qf-field-status svg { width: 11px; height: 11px; }
.qf-field.qf-state-valid   .qf-field-status,
.qf-field.qf-state-invalid .qf-field-status { opacity: 1; transform: scale(1); }

.qf-field.qf-state-valid   .qf-field-status {
  background: linear-gradient(135deg, #ffe388, #ffc72c 50%, #a87d00);
  color: #0a0a0a;
  box-shadow: 0 0 0 1px rgba(255,199,44,0.35), 0 4px 14px -4px rgba(255,199,44,0.45);
}
.qf-field.qf-state-invalid .qf-field-status {
  background: rgba(255,90,90,0.15);
  color: #ff8080;
  box-shadow: 0 0 0 1px rgba(255,90,90,0.4);
}

/* Subtle valid-border (lighter than focus state) */
.qf-field.qf-state-valid input,
.qf-field.qf-state-valid select,
.qf-field.qf-state-valid textarea,
.qf-field.qf-state-valid .qf-phone input,
.qf-field.qf-state-valid .qf-phone select {
  border-color: rgba(255,199,44,0.55);
  background: rgba(255,199,44,0.025);
}

/* Make space at the right edge so input text doesn't run under the badge */
.qf-field.qf-state-valid input:not([type=checkbox]),
.qf-field.qf-state-valid select,
.qf-field.qf-state-invalid input:not([type=checkbox]),
.qf-field.qf-state-invalid select { padding-right: 2.2rem; }

/* Animated error pill — replaces the bare red text */
.qf-error {
  font-size: 0.74rem;
  color: #ff9999;
  min-height: 0;
  margin-top: 4px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  border: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-2px);
  transition: max-height .3s ease, opacity .25s ease, transform .25s ease, padding .25s ease, background .25s ease, border-color .25s ease;
}
.qf-error:not(:empty) {
  max-height: 60px;
  opacity: 1;
  transform: translateY(0);
  padding: 6px 10px;
  background: rgba(255,90,90,0.08);
  border: 1px solid rgba(255,90,90,0.28);
}
.qf-error:not(:empty)::before {
  content: '';
  display: inline-block;
  width: 13px; height: 13px;
  flex: 0 0 13px;
  background-color: #ff9999;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><line x1='12' y1='8' x2='12' y2='13'/><circle cx='12' cy='16.5' r='0.6' fill='currentColor'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><line x1='12' y1='8' x2='12' y2='13'/><circle cx='12' cy='16.5' r='0.6' fill='currentColor'/></svg>") center/contain no-repeat;
}
.qf-error:empty { display: none; }

/* Stronger invalid border, gentle shake on first mark-invalid */
.qf-field input.qf-invalid,
.qf-field select.qf-invalid,
.qf-field textarea.qf-invalid,
.qf-phone input.qf-invalid,
.qf-phone select.qf-invalid {
  border-color: #ff6868 !important;
  background: rgba(255,90,90,0.05);
  box-shadow: 0 0 0 3px rgba(255,90,90,0.10);
  animation: qfShake 0.32s cubic-bezier(.36,.07,.19,.97);
}
@keyframes qfShake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-3px); }
  40%, 60% { transform: translateX(3px); }
}

/* Status icon for radio group + checkbox (positioned differently — under the legend / next to label) */
.qf-group.qf-state-invalid .qf-legend::after {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  margin-left: 0.5rem;
  border-radius: 999px;
  background: #ff6868;
  box-shadow: 0 0 0 3px rgba(255,90,90,0.18);
}
.qf-group.qf-state-valid .qf-legend::after {
  content: '✓';
  display: inline-block;
  margin-left: 0.5rem;
  width: 16px; height: 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffe388, #ffc72c 50%, #a87d00);
  color: #0a0a0a;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  font-weight: 800;
}

/* ━━━━━━━━━━ QUOTE FORM · BRANDED SUCCESS CARD ━━━━━━━━━━
   Replaces the simple "Thank you" with an animated card showing
   reference number, what was received, and 3 next-step actions. */

.qf-success {
  text-align: left;
  padding: 0.4rem 0 0.8rem;
  display: flex; flex-direction: column;
  gap: 1rem;
  animation: qfSuccessIn .55s cubic-bezier(.2,.9,.2,1);
}

.qf-success-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  padding: 0.4rem 0 0.6rem;
}

/* Concentric gold halos behind the check icon */
.qf-success-icon {
  position: relative;
  width: 88px; height: 88px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffe388, #ffc72c 50%, #a87d00);
  display: grid; place-items: center;
  color: #0a0a0a;
  box-shadow: 0 14px 44px -8px rgba(255,199,44,0.55);
  margin: 0;
  animation: qfPulse 2.2s ease-in-out infinite;
}
.qf-success-icon::before,
.qf-success-icon::after {
  content: '';
  position: absolute; inset: -8px;
  border-radius: 999px;
  border: 1px dashed rgba(255,199,44,0.4);
  animation: qfHalo 6s linear infinite;
  pointer-events: none;
}
.qf-success-icon::after {
  inset: -18px;
  border-style: solid;
  border-color: rgba(255,199,44,0.10);
  animation-direction: reverse;
  animation-duration: 12s;
}
@keyframes qfHalo { to { transform: rotate(360deg); } }
.qf-success-icon svg { width: 44px; height: 44px; stroke-width: 2.4; }

.qf-success-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.05;
}
.qf-success-title em { color: var(--gold); font-style: italic; font-weight: 900; }
.qf-success-sub {
  color: rgba(255,255,255,0.7);
  font-size: 0.92rem;
  margin: 0;
  max-width: 46ch;
  line-height: 1.55;
}

/* Reference-ID chip — copyable, large enough to read at a glance */
.qf-success-ref {
  display: inline-flex; align-items: center; gap: 0.55rem;
  margin-top: 0.4rem;
  padding: 0.55rem 1rem;
  background: rgba(255,199,44,0.08);
  border: 1px solid rgba(255,199,44,0.32);
  border-radius: 999px;
}
.qf-success-ref-label {
  font-size: 9.5px; letter-spacing: 0.32em; text-transform: uppercase;
  color: rgba(255,199,44,0.85); font-weight: 600;
}
.qf-success-ref-value {
  font-family: 'Space Grotesk', system-ui, monospace;
  font-size: 13px; font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
  cursor: text;
  user-select: all;
  -webkit-user-select: all;
}

/* Summary card — what we received */
.qf-success-summary {
  background:
    linear-gradient(180deg, rgba(255,199,44,0.05), rgba(255,255,255,0.01)),
    rgba(15,15,15,0.55);
  border: 1px solid rgba(255,199,44,0.18);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem 1rem;
}
@media (max-width: 480px) {
  .qf-success-summary { grid-template-columns: 1fr; }
}
.qf-success-row {
  display: flex; flex-direction: column; gap: 2px;
  min-width: 0;
}
.qf-success-row-label {
  font-size: 9.5px; letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(255,199,44,0.85); font-weight: 600;
}
.qf-success-row-value {
  font-size: 0.92rem; color: white; font-weight: 600;
  word-break: break-word;
}

/* Next-step CTA grid */
.qf-success-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin-top: 0.4rem;
}
@media (max-width: 480px) {
  .qf-success-actions { grid-template-columns: 1fr; }
}
.qf-success-cta {
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  padding: 0.95rem 0.7rem;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.012)),
    rgba(15,15,15,0.55);
  border: 1px solid rgba(255,199,44,0.16);
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.78rem;
  text-align: center;
  transition: all .28s ease;
  cursor: pointer;
  font-family: inherit;
}
.qf-success-cta:hover {
  border-color: var(--gold);
  background:
    linear-gradient(180deg, rgba(255,199,44,0.10), rgba(255,255,255,0.025)),
    rgba(20,15,5,0.55);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -10px rgba(255,199,44,0.4);
}
.qf-success-cta-icon {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffe388, #ffc72c 50%, #a87d00);
  color: #0a0a0a;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.qf-success-cta-icon svg { width: 16px; height: 16px; }
.qf-success-cta b {
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.01em;
}
.qf-success-cta span {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.4;
}

/* Footer line + close */
.qf-success-foot {
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  padding-top: 0.4rem;
  margin-top: 0.2rem;
  border-top: 1px dashed rgba(255,199,44,0.18);
}
.qf-success-foot-note {
  font-size: 0.74rem;
  color: rgba(255,255,255,0.45);
  text-align: center;
  margin: 0.5rem 0 0;
}
