/* ============================================================
   Builders — "Zisková stavebná firma za 60 dní" course page
   Booking-form landing. Reuses tokens from ds/colors_and_type.css
   and many classes from page.css. Adds page-specific styles only.
   ============================================================ */

/* ---------- Static header (always visible) ---------- */
.co-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-light);
  box-shadow: var(--sh-sm);
}
.co-header__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
@media (min-width: 768px) { .co-header__inner { padding: 0 24px; height: 84px; } }
.co-header__logo { display: flex; align-items: center; }
.co-header__logo img { height: 46px; width: auto; display: block; }
@media (min-width: 768px) { .co-header__logo img { height: 58px; } }

/* ---------- Hero ---------- */
.co-hero {
  background: var(--cream);
  padding: 56px 0 56px;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) { .co-hero { padding: 88px 0 80px; } }
.co-hero::before {
  content: "";
  position: absolute;
  top: -160px;
  right: -120px;
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, rgba(104, 24, 34, 0.10), transparent 62%);
  pointer-events: none;
}

/* Video-background variant — looping clip behind the text */
.co-hero--video { background: #1a1a1a; padding: 92px 0 84px; }
@media (min-width: 768px) { .co-hero--video { padding: 132px 0 120px; } }
.co-hero--video::before { display: none; }
.co-hero__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.co-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 40%;
  display: block;
}
.co-hero__scrim {
  position: absolute;
  inset: 0;
  /* layered so any frame of the clip stays dark enough for white text */
  background:
    radial-gradient(115% 95% at 50% 44%, rgba(8,6,6,0.30) 0%, rgba(8,6,6,0.66) 100%),
    linear-gradient(180deg, rgba(14,11,10,0.58) 0%, rgba(14,11,10,0.50) 45%, rgba(14,11,10,0.78) 100%),
    radial-gradient(120% 90% at 28% 32%, rgba(104,24,34,0.30), transparent 60%);
}
.co-hero--video .co-hero__inner { position: relative; z-index: 1; }
/* Soft focal shadow directly behind the text so it pops off the footage */
.co-hero--video .co-hero__inner::before {
  content: "";
  position: absolute;
  inset: -8% -12%;
  z-index: -1;
  background: radial-gradient(ellipse 62% 66% at 50% 47%, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.34) 45%, rgba(0,0,0,0) 74%);
  filter: blur(10px);
  pointer-events: none;
}
.co-hero--video .lp-eyebrow,
.co-hero--video .co-hero__eyebrow { color: #ffc4cb; }
.co-hero--video .co-hero__h1 {
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.55), 0 6px 30px rgba(0,0,0,0.5);
}
.co-hero--video .co-hero__h1 em { color: #ffb8c0; }
.co-hero--video .co-hero__sub {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6), 0 4px 20px rgba(0,0,0,0.45);
}
.co-hero--video .co-hero__trust { color: rgba(255,255,255,0.92); }
.co-hero--video .co-hero__trust svg { color: #ffb8c0; }
.co-hero__inner {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
}
.co-hero__h1 {
  font-size: clamp(36px, 6.4vw, 64px);
  line-height: 1.03;
  letter-spacing: -0.04em;
  font-weight: var(--fw-black);
  color: var(--dark);
  margin: 0;
  text-wrap: balance;
}
.co-hero__h1 em { font-style: normal; color: var(--bordeaux); }
.co-hero__sub { max-width: 620px; }
.co-hero__trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray);
}
.co-hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.co-hero__trust svg { color: var(--bordeaux); }

/* ---------- Pillars (light cards) ---------- */
.co-pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 640px) { .co-pillars { grid-template-columns: 1fr 1fr; gap: 20px; } }
@media (min-width: 1000px) { .co-pillars { grid-template-columns: repeat(4, 1fr); } }
.co-pillar {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--r-lg);
  padding: 26px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.co-pillar:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
  border-color: rgba(26, 26, 26, 0.4);
}
.co-pillar__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: var(--grad-signature);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(104, 24, 34, 0.24);
}
.co-pillar__icon svg { width: 26px; height: 26px; }
.co-pillar h3 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--dark);
  margin: 0;
  line-height: 1.25;
}
.co-pillar p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--fg-body);
  margin: 0;
  text-wrap: pretty;
}

/* ---------- Featured bonus card (dark dominant block, sits BELOW the pillars) ---------- */
.co-feature {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 24px;
  background:
    radial-gradient(ellipse 80% 70% at 82% 12%, rgba(138,42,54,0.55), transparent 60%),
    linear-gradient(135deg, #2a1218 0%, #1a1a1a 58%, #251015 100%);
  border: 1px solid rgba(232,168,176,0.18);
  border-radius: var(--r-lg);
  padding: 30px 26px;
  overflow: hidden;
  color: #fff;
  box-shadow: 0 28px 64px rgba(104,24,34,0.28), inset 0 1px 0 rgba(255,255,255,0.06);
}
@media (min-width: 720px) {
  .co-feature {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 38px 44px;
    margin-top: 28px;
  }
}
.co-feature__glow {
  position: absolute;
  top: -40%;
  right: -6%;
  width: 46%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(255,184,192,0.20), transparent 62%);
  pointer-events: none;
}
.co-feature__main { position: relative; display: flex; flex-direction: column; gap: 12px; max-width: 660px; }
.co-feature__tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffc4cb;
  background: rgba(255,184,192,0.10);
  border: 1px solid rgba(255,184,192,0.30);
  padding: 6px 14px;
  border-radius: var(--r-pill);
}
.co-feature__tagDot {
  width: 7px; height: 7px;
  border-radius: 999px;
  background: #ffb8c0;
  box-shadow: 0 0 10px rgba(255,184,192,0.8);
}
.co-feature__h {
  font-size: clamp(25px, 3.4vw, 38px);
  font-weight: var(--fw-black);
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0;
  line-height: 1.08;
  text-wrap: balance;
}
.co-feature__p {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(245,245,245,0.85);
  margin: 0;
  text-wrap: pretty;
}
.co-feature__p b { color: #fff; font-weight: 800; }
.co-feature__stat {
  position: relative;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 210px;
  padding: 24px 26px;
  border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--bordeaux) 0%, var(--bordeaux-dark) 100%);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 16px 40px rgba(104,24,34,0.45), inset 0 1px 0 rgba(255,255,255,0.12);
}
.co-feature__statNum {
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: var(--fw-black);
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1;
}
.co-feature__statLabel {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.78);
  margin-top: 8px;
}

/* ---------- Curriculum (9 modules — image-led cards) ---------- */
.co-modules {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 680px) { .co-modules { grid-template-columns: 1fr 1fr; gap: 20px; } }
@media (min-width: 1000px) { .co-modules { grid-template-columns: repeat(3, 1fr); } }
.co-module {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.co-module:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
  border-color: rgba(104, 24, 34, 0.35);
}
.co-module__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--cream);
}
.co-module__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* frosted / foggy — you can sense the scene but not read it (teaser) */
  filter: blur(9px) saturate(1.05) brightness(0.95);
  transform: scale(1.16);
  transition: filter .45s ease, transform .45s ease;
}
.co-module:hover .co-module__media img {
  /* a small peek through the fog on hover */
  filter: blur(5px) saturate(1.08) brightness(1);
  transform: scale(1.2);
}
.co-module__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 75% at 50% 50%, rgba(0,0,0,0.42) 0%, rgba(0,0,0,0.30) 100%),
    linear-gradient(180deg, rgba(104,24,34,0.18), rgba(20,16,15,0.30));
  pointer-events: none;
}

/* Big centered “hidden” number — dominant, builds curiosity */
.co-module__no {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  pointer-events: none;
}
.co-module__no b {
  font-family: var(--font-sans);
  font-size: 60px;
  font-weight: var(--fw-black);
  letter-spacing: -0.045em;
  line-height: 0.9;
  text-shadow: 0 4px 10px rgba(0,0,0,0.45), 0 10px 36px rgba(0,0,0,0.40);
}
.co-module__no .co-module__nz { color: #fff; }
.co-module__no .co-module__nd {
  /* same soft pink used for headings on dark backgrounds */
  color: #ffb8c0;
  text-shadow: 0 3px 12px rgba(0,0,0,0.5), 0 0 26px rgba(104,24,34,0.35);
}
.co-module__no i {
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.88);
  margin-top: 6px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
@media (max-width: 680px) {
  .co-module__no b { font-size: 76px; }
  .co-module__no i { font-size: 12px; letter-spacing: 0.32em; margin-top: 7px; }
}
.co-module__body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.co-module h3 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.012em;
  color: var(--dark);
  margin: 0;
  line-height: 1.25;
  text-wrap: balance;
}
.co-module p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-body);
  margin: 0;
  text-wrap: pretty;
}
.co-modules__note {
  margin: 36px auto 0;
  max-width: 640px;
  text-align: center;
  font-size: 15px;
  color: var(--gray);
}

/* ---------- Booking section ---------- */
.co-book {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  overflow: hidden;
}
.co-book__top {
  background: var(--grad-signature);
  color: #fff;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.co-book__topIcon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: flex; align-items: center; justify-content: center;
}
.co-book__topIcon svg { width: 22px; height: 22px; }
.co-book__topText strong {
  display: block;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.co-book__topText span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}

.co-form { padding: 28px; display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 560px) { .co-form { padding: 32px; } }
.co-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 480px) { .co-form__row { grid-template-columns: 1fr 1fr; } }
.co-field { display: flex; flex-direction: column; gap: 7px; }
.co-field label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--dark);
}
.co-field label span { color: var(--bordeaux); }
.co-input {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--dark);
  background: var(--cream);
  border: 1.5px solid var(--gray-light);
  border-radius: var(--r-md);
  padding: 13px 15px;
  width: 100%;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.co-input::placeholder { color: #a8a29a; }
.co-input:focus {
  outline: none;
  border-color: var(--bordeaux);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(104, 24, 34, 0.12);
}
.co-input--error { border-color: #c0392b; background: #fdf3f2; }

/* Time-slot picker */
.co-slots__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 2px;
}
.co-slots__label span { color: var(--bordeaux); }
.co-slots {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 480px) { .co-slots { grid-template-columns: repeat(3, 1fr); } }
.co-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 16px 10px;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--r-md);
  background: var(--cream);
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .12s ease;
}
@media (min-width: 480px) { .co-slot { flex-direction: column; } }
.co-slot input { position: absolute; opacity: 0; pointer-events: none; }
.co-slot__icon {
  width: 30px; height: 30px;
  color: var(--gray);
  transition: color .18s ease;
}
.co-slot__name {
  font-size: 14px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.005em;
}
.co-slot__time {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gray);
  font-variant-numeric: tabular-nums;
}
.co-slot:hover { border-color: rgba(104, 24, 34, 0.45); }
.co-slot.is-active {
  border-color: var(--bordeaux);
  background: rgba(104, 24, 34, 0.06);
  box-shadow: 0 0 0 3px rgba(104, 24, 34, 0.10);
}
.co-slot.is-active .co-slot__icon { color: var(--bordeaux); }
.co-slot__check {
  position: absolute;
  top: 8px; right: 8px;
  width: 18px; height: 18px;
  border-radius: 999px;
  background: var(--bordeaux);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
}
.co-slot.is-active .co-slot__check { display: flex; }
.co-slot__check svg { width: 11px; height: 11px; }

.co-form__error {
  font-size: 13px;
  font-weight: 600;
  color: #c0392b;
  margin: -4px 0 0;
}
.co-form__submit { margin-top: 4px; }
.co-form__fine {
  font-size: 13px;
  color: var(--gray);
  text-align: center;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.co-form__fine svg { color: var(--bordeaux); flex-shrink: 0; }

/* ---------- Success state (replaces the form in place) ---------- */
.co-success {
  padding: 44px 28px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  animation: co-fadeUp .5s cubic-bezier(.4, 0, .2, 1) both;
}
@media (min-width: 560px) { .co-success { padding: 52px 36px 48px; } }
@keyframes co-fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.co-success__seal {
  position: relative;
  width: 84px; height: 84px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--bordeaux) 0%, var(--bordeaux-dark) 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 16px 36px rgba(104, 24, 34, 0.34);
}
.co-success__seal svg { width: 42px; height: 42px; color: #fff; }
.co-success__seal svg path {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: co-drawCheck .6s cubic-bezier(.65, 0, .35, 1) .15s forwards;
}
@keyframes co-drawCheck { to { stroke-dashoffset: 0; } }
.co-success h3 {
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: var(--fw-black);
  letter-spacing: -0.025em;
  color: var(--dark);
  margin: 0;
  text-wrap: balance;
}
.co-success h3 em { font-style: normal; color: var(--bordeaux); }
.co-success p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-body);
  margin: 0;
  max-width: 420px;
  text-wrap: pretty;
}
.co-success__recap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--cream);
  border: 1px solid var(--gray-light);
  border-radius: var(--r-pill);
  padding: 10px 18px;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
}
.co-success__recap svg { color: var(--bordeaux); flex-shrink: 0; }
.co-success__recap b { color: var(--bordeaux); font-weight: 800; }

@media (prefers-reduced-motion: reduce) {
  .co-success { animation: none; }
  .co-success__seal svg path { animation: none; stroke-dashoffset: 0; }
}
