/* ==========================================================================
   Tomas Arsov – Soutěž Florida – iframe widget
   ========================================================================== */

@font-face {
  font-family: 'Setup Grotesk';
  src: url('https://assets.slusarcik.cz/arsov-global/redesign/fonts/SetupGrotesk-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Setup Grotesk';
  src: url('https://assets.slusarcik.cz/arsov-global/redesign/fonts/SetupGrotesk-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Setup Grotesk';
  src: url('https://assets.slusarcik.cz/arsov-global/redesign/fonts/SetupGrotesk-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ta-blue: #1125a9;
  --ta-blue-deep: #0E1547;
  --ta-blue-hover: #0D1C85;
  --ta-cream: #FAF7F4;
  --ta-cream-2: #F2EDE5;
  --ta-white: #FFFFFF;
  --ta-text: #1a1a1a;
  --ta-muted: #6A7194;
  --ta-biege: #DDC9BB;
  --ta-line: #DDC9BB;
  --ta-line-soft: #EFEAE1;
  --ta-pink: #FF3E8E;
  --ta-orange: #FF7B3E;
  --ta-yellow: #FAC748;
  --ta-cyan: #2BC8D9;
  --ta-error: #D80027;
  --ta-success: #136724;
  --ta-skladem: #136724;

  --radius-sm: 5px;
  --radius: 5px;
  --radius-lg: 5px;
  --radius-pill: 5px;

  --shadow-sm: 0 1px 2px rgba(14,21,71,.05), 0 1px 1px rgba(14,21,71,.03);
  --shadow: 0 8px 24px -8px rgba(14,21,71,.12), 0 2px 6px rgba(14,21,71,.05);
  --shadow-lg: 0 24px 60px -20px rgba(14,21,71,.18), 0 6px 16px rgba(14,21,71,.06);

  --max-w: 1320px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: 'Setup Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--ta-cream);
  color: var(--ta-text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}

a { color: var(--ta-blue); }
button { font-family: inherit; }

.widget {
  width: 100%;
  max-width: var(--max-w);
  padding-top: 28px;
}

/* ---------- Hero ---------- */

.hero {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (max-width: 720px) {
  .hero { gap: 20px; }
  .widget { padding-top: 14px; }
}

/* Hero visual: full-bleed, image dictates height */
.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ta-cream-2);
  width: 100%;
}
.hero-visual__pill {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: white;
  border-radius: 5px;
  border: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--ta-blue);
  box-shadow: 0 6px 20px -8px rgba(14,21,71,.4);
  z-index: 2;
  white-space: nowrap;
}
.hero-visual__pill-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ta-success);
  flex-shrink: 0;
}
.hero-visual__pill--pre .hero-visual__pill-dot {
  background: var(--ta-blue);
  animation: pulse-pre 1.8s infinite;
}
.hero-visual__pill--live .hero-visual__pill-dot {
  background: var(--ta-success);
  animation: pulse 1.8s infinite;
}
.hero-visual__pill--ended .hero-visual__pill-dot {
  background: var(--ta-muted);
}
.hero-visual__pill-status { font-weight: 700; }
.hero-visual__pill-sep { opacity: .35; }
.hero-visual__pill-deadline { font-variant-numeric: tabular-nums; }

@media (max-width: 540px) {
  .hero-visual__pill {
    right: 10px;
    bottom: 10px;
    font-size: 11.5px;
    padding: 7px 12px;
    gap: 6px;
  }
  .hero-visual__pill-dot { width: 7px; height: 7px; }
}
.hero-visual img.master,
.hero-visual picture {
  display: block;
  width: 100%;
}
.hero-visual img.master {
  height: auto;
  max-height: 540px;
  object-fit: cover;
  object-position: center 30%;
}
@media (min-width: 721px) {
  .hero-visual img.master {
    max-height: none;
    height: auto;
    object-fit: contain;
    aspect-ratio: auto;
  }
}
@media (max-width: 720px) {
  .hero-visual img.master { max-height: 360px; }
}

/* Hero head: eyebrow + headline + subhead */
.hero-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 820px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ta-blue);
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--ta-blue);
  border-radius: 2px;
}

h1.headline {
  font-size: 36px;
  line-height: 1.15;
  font-weight: 500;
  margin: 0 0 6px;
  color: #000;
  letter-spacing: -.01em;
}
h1.headline em {
  font-style: normal;
  color: #000;
  font-weight: 500;
}

.subhead {
  font-size: 17px;
  color: #4a4a4a;
  max-width: 64ch;
  margin: 0;
  line-height: 1.55;
}

/* Countdown row */
.countdown-row {
  background: var(--ta-cream-2);
  border-radius: var(--radius);
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.countdown-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.countdown-meta .live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ta-success);
}
.countdown-meta .live::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--ta-success);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(19,103,36,.7);
  animation: pulse 1.8s infinite;
}
.countdown-meta .deadline {
  font-size: 18px;
  font-weight: 500;
  color: var(--ta-blue);
}
.countdown-meta .deadline strong { font-weight: 700; }

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(56px, 70px));
  gap: 10px;
}
.countdown.countdown--last-day {
  grid-template-columns: repeat(3, minmax(56px, 76px));
}
.countdown .unit {
  text-align: center;
  background: var(--ta-white);
  border-radius: var(--radius-sm);
  padding: 10px 6px 8px;
  border: 1px solid var(--ta-line);
}
.countdown .num {
  font-size: 26px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--ta-blue);
}
.countdown .label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ta-muted);
  margin-top: 6px;
  font-weight: 500;
}

@media (max-width: 720px) {
  .countdown-row { padding: 18px 16px; gap: 18px; justify-content: center; }
  .countdown-meta { text-align: center; align-items: center; }
  .countdown { grid-template-columns: repeat(4, 1fr); width: 100%; }
}

/* Status dot color changes by campaign phase */
.countdown-row--pre .countdown-meta .live { color: var(--ta-blue); }
.countdown-row--pre .countdown-meta .live::before {
  background: var(--ta-blue);
  box-shadow: 0 0 0 0 rgba(17,37,169,.7);
  animation: pulse-pre 1.8s infinite;
}
.countdown-row--ended .countdown-meta .live { color: var(--ta-muted); }
.countdown-row--ended .countdown-meta .live::before {
  background: var(--ta-muted);
  box-shadow: none;
  animation: none;
}
@keyframes pulse-pre {
  70% { box-shadow: 0 0 0 8px rgba(17,37,169,0); }
  100% { box-shadow: 0 0 0 0 rgba(17,37,169,0); }
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(19,103,36,0); }
  100% { box-shadow: 0 0 0 0 rgba(19,103,36,0); }
}

/* Process steps (from shop.tomasarsov.cz/o-nas/) */
.process-steps {
  background: transparent;
  border-radius: 0;
  padding: 24px 0 8px;
  text-align: center;
}
.process-steps__title {
  margin: 0 0 48px;
  font-size: 30px;
  font-weight: 500;
  color: var(--ta-text);
  letter-spacing: -.01em;
  text-align: center;
}
@media (max-width: 720px) {
  .process-steps__title { margin-bottom: 40px; }
}
.process-steps__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px 32px;
  text-align: left;
}
@media (max-width: 1000px) { .process-steps__list { grid-template-columns: repeat(2, 1fr); gap: 40px 28px; } }
@media (max-width: 540px) { .process-steps__list { grid-template-columns: 1fr; gap: 32px; } }

.process-steps__item {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.process-steps__number {
  line-height: 0;
}
.process-steps__number svg { display: block; }
.process-steps__step-title {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--ta-text);
  line-height: 1.3;
}
.process-steps__description {
  margin: 0;
  font-size: 15px;
  color: #3a3a3a;
  line-height: 1.6;
}

/* ---------- Form card ---------- */

.form-section {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr 380px;
  grid-template-areas: "form aside";
  gap: 28px;
  align-items: start;
}
.form-section > .card { grid-area: form; }
.form-section > .prize-card { grid-area: aside; }
@media (max-width: 960px) {
  .form-section {
    grid-template-columns: 1fr;
    grid-template-areas:
      "aside"
      "form";
  }
}

.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--ta-line-soft);
}

.card h2 {
  margin: 0 0 6px;
  font-size: 30px;
  font-weight: 500;
  color: var(--ta-text);
  letter-spacing: -.01em;
}
.card .sub {
  margin: 0 0 24px;
  color: #4a4a4a;
  font-size: 15px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid .full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ta-blue);
  letter-spacing: .01em;
}
.field label .req { color: var(--ta-error); margin-left: 2px; }
.field .hint { font-size: 12px; color: var(--ta-muted); }

/* Info tooltip (?) icon */
.label-with-tip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tip-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--ta-biege);
  color: white;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  transition: background .15s;
  text-indent: 0.5px;
}
.tip.open { background: var(--ta-blue); outline: none; }
@media (hover: hover) {
  .tip:hover { background: var(--ta-blue); outline: none; }
  .tip:focus-visible { background: var(--ta-blue); outline: none; }
}
.tip__bubble {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  --tip-shift: 0px;
  transform: translateX(calc(-50% + var(--tip-shift)));
  background: var(--ta-blue);
  color: white;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  padding: 12px 36px 12px 14px;
  border-radius: 5px;
  width: 260px;
  max-width: calc(100vw - 24px);
  text-align: left;
  letter-spacing: 0;
  text-transform: none;
  z-index: 10;
  box-shadow: 0 10px 30px -8px rgba(17,37,169,.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
}

/* Desktop hover: open on hover, no close button needed */
@media (hover: hover) {
  .tip-wrap:hover .tip__bubble {
    opacity: 1;
    pointer-events: auto;
  }
  .tip-wrap:hover .tip__bubble { padding: 12px 14px; }
  .tip__close { display: none !important; }
}

/* Mobile / touch: only open when JS toggles is-open */
.tip-wrap.is-open .tip__bubble {
  opacity: 1;
  pointer-events: auto;
}
.tip__bubble::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(calc(-50% - var(--tip-shift)));
  border: 6px solid transparent;
  border-top-color: var(--ta-blue);
}
.tip__text {
  display: block;
}
.tip__close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.12);
  border: 0;
  border-radius: 4px;
  color: white;
  cursor: pointer;
  padding: 0;
  transition: background .15s;
}
.tip__close:hover { background: rgba(255,255,255,.24); }
@media (max-width: 480px) {
  .tip__bubble {
    width: min(240px, calc(100vw - 32px));
  }
}

.input, .field input[type="text"], .field input[type="email"], .field input[type="tel"] {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--ta-biege);
  border-radius: var(--radius-sm);
  background: var(--ta-white);
  font: inherit;
  font-size: 15px;
  color: var(--ta-text);
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.input:focus, .field input:focus {
  outline: none;
  border-color: var(--ta-blue);
  background: white;
  box-shadow: 0 0 0 3px rgba(17,37,169,.08);
}
.input::placeholder, .field input::placeholder { color: #A8AEC9; }

.field.error .input, .field.error input {
  border-color: var(--ta-error);
  background: #FFF5F7;
}
.field .err-msg {
  font-size: 12px;
  color: var(--ta-error);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Order numbers */
.orders {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.order-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.order-row .input { flex: 1; font-variant-numeric: tabular-nums; }
.order-row .remove {
  width: 44px;
  border: 1px solid var(--ta-biege);
  background: var(--ta-white);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--ta-muted);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .15s, border-color .15s, background .15s;
}
.order-row .remove:hover { color: var(--ta-error); border-color: var(--ta-error); }
.order-row .remove:disabled { opacity: .3; cursor: not-allowed; }

.add-order {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--ta-blue);
  background: transparent;
  color: var(--ta-blue);
  font-weight: 500;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 5px;
  cursor: pointer;
  transition: background .15s;
  margin-top: 6px;
  white-space: nowrap;
}
.add-order:hover { background: var(--ta-ligth-blue, #E6EAFF); }
.add-order .plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ta-blue);
}

.boost-line {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--ta-muted);
  margin-top: 2px;
}
.boost-line strong { color: var(--ta-blue); }

/* Checkboxes */
.consents { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.check {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 13.5px; color: var(--ta-text);
  cursor: pointer; line-height: 1.5;
}
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 5px;
  border: 1.5px solid var(--ta-blue);
  background: white;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s;
  margin-top: 1px;
}
.check input:checked + .box {
  background: var(--ta-blue);
  border-color: var(--ta-blue);
}
.check input:checked + .box::after {
  content: '';
  width: 10px; height: 6px;
  border: 2px solid white;
  border-top: 0; border-right: 0;
  transform: rotate(-45deg) translate(1px, -1px);
}
.check.error .box { border-color: var(--ta-error); }
.check a { color: var(--ta-blue); text-decoration: underline; text-underline-offset: 2px; }
.check a:hover { text-decoration: none; }

/* Submit */
.submit-row {
  margin-top: 22px;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.btn {
  border: 0;
  border-radius: 5px;
  padding: 16px 32px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  letter-spacing: .01em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform .12s, box-shadow .15s, background .15s;
  text-decoration: none;
}
.btn-primary {
  background: var(--ta-blue);
  color: white;
  box-shadow: 0 4px 14px -4px rgba(17,37,169,.4);
}
.btn-primary:hover:not(:disabled) {
  background: var(--ta-blue-hover);
  transform: translateY(-1px);
}
.btn-primary:disabled { opacity: .55; cursor: not-allowed; }
.btn .arrow {
  display: inline-block;
  transition: transform .15s;
}
.btn:hover .arrow { transform: translateX(3px); }

.security {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ta-muted);
}

/* ---------- Aside: prize ---------- */

.prize-card {
  background: #1125a9;
  color: white;
  border-radius: var(--radius-lg);
  padding: 26px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
/* glow removed per design feedback */
.prize-card .eyebrow {
  color: white;
  opacity: .9;
}
.prize-card .eyebrow::before { display: none; }
.prize-card h3 {
  margin: 8px 0 16px;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -.01em;
  position: relative;
}
.prize-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
.prize-list li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.45;
  align-items: flex-start;
}
.prize-list .ic {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 6px;
  background: rgba(255,255,255,.15);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px;
  margin-top: 1px;
}

.tiny {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.18);
  font-size: 12px;
  opacity: .8;
  position: relative;
}

.prize-extra {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.18);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
.prize-extra-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-bottom: 2px;
}
.prize-extra-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(255,255,255,.92);
}
.prize-extra-row strong { color: white; font-weight: 500; }
.prize-extra-count {
  flex-shrink: 0;
  min-width: 38px;
  font-weight: 700;
  font-size: 16px;
  color: white;
  background: rgba(255,255,255,.13);
  padding: 4px 8px;
  border-radius: 6px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}

.rules-sub {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--ta-muted);
  font-weight: 400;
}
.rules-pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--ta-blue);
  color: white !important;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 13px;
  text-decoration: none !important;
  transition: background .15s;
}
.rules-pdf-link:hover { background: var(--ta-blue-hover); }

/* ---------- Rules accordion ---------- */

.rules {
  margin-top: 36px;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--ta-line-soft);
  overflow: hidden;
}
.rules-header {
  padding: 22px 26px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  cursor: pointer;
  user-select: none;
}
.rules-header h3 {
  margin: 0;
  color: var(--ta-blue);
  font-size: 18px;
  font-weight: 700;
}
.rules-header .chev {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  transition: transform .25s;
  color: #ddc9bb;
  flex-shrink: 0;
}
.rules-header .chev svg { width: 28px; height: 28px; display: block; }
.rules.open .rules-header .chev { transform: rotate(180deg); }

.rules-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.rules.open .rules-body { max-height: 1200px; }
.rules-inner {
  padding: 6px 26px 26px;
  border-top: 1px solid var(--ta-line-soft);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  color: var(--ta-text);
}
@media (max-width: 720px) { .rules-inner { grid-template-columns: 1fr; } }
.rules-inner h4 {
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ta-blue);
  margin: 14px 0 8px;
}
.rules-inner p, .rules-inner li {
  font-size: 14px;
  line-height: 1.6;
  color: #2A3160;
}
.rules-inner ul { padding-left: 18px; margin: 0; }
.rules-inner ul li { margin-bottom: 4px; }

/* ---------- Rules link (compact) ---------- */

.rules-link-row {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}
.btn-rules {
  font-size: 14px;
  padding: 12px 24px;
  text-decoration: none;
}

/* ---------- Thank you ---------- */

.thanks {
  text-align: center;
  padding: 48px 28px 40px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--ta-line-soft);
  position: relative;
  overflow: hidden;
}
.thanks::before { content: none; }
.thanks::after { content: none; }
.thanks-inner { position: relative; max-width: 580px; margin: 0 auto; }
.thanks .ico {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--ta-blue);
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  color: white;
  box-shadow: 0 12px 32px -8px rgba(17,37,169,.45);
}
.thanks .ico svg { width: 32px; height: 32px; display: block; }
.thanks h2 {
  font-size: 30px;
  font-weight: 500;
  color: var(--ta-text);
  margin: 0 0 10px;
  letter-spacing: -.01em;
}
.thanks p { color: var(--ta-muted); font-size: 16px; max-width: 48ch; margin: 0 auto 24px; }
.thanks .summary {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  justify-content: center;
}
.thanks .summary .chip {
  background: var(--ta-cream);
  border: 1px solid var(--ta-line);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ta-blue);
  font-variant-numeric: tabular-nums;
}
.thanks .actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.btn-ghost {
  background: transparent;
  color: var(--ta-blue);
  border: 1.5px solid var(--ta-blue);
}
.btn-ghost:hover { background: rgba(17,37,169,.06); }

/* error banner */
.banner-error {
  background: #FFF1F4;
  border: 1.5px solid #FFC2CD;
  color: var(--ta-error);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 16px;
}

/* footer note */
.footer-note {
  margin-top: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--ta-muted);
}
.footer-note a { color: var(--ta-blue); }
.footer-note a:hover { text-decoration: none; }

/* ---------- Gallery ---------- */

.gallery {
  margin-top: 56px;
}
.gallery__title {
  font-size: 30px;
  font-weight: 500;
  color: var(--ta-text);
  text-align: center;
  margin: 0 0 32px;
  letter-spacing: -.01em;
  padding: 0 16px;
}

.gallery__carousel {
  position: relative;
}
/* Side gradient masks to fade edges */
@media (min-width: 541px) {
  .gallery__carousel::before,
  .gallery__carousel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    pointer-events: none;
    z-index: 1;
  }
  .gallery__carousel::before {
    left: 0;
    background: linear-gradient(90deg, var(--ta-cream) 0%, rgba(250,247,244,0) 100%);
  }
  .gallery__carousel::after {
    right: 0;
    background: linear-gradient(270deg, var(--ta-cream) 0%, rgba(250,247,244,0) 100%);
  }
}

.gallery__grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  padding: 0 16px 8px;
  scrollbar-width: none;
  scroll-padding-left: 16px;
}
.gallery__grid::-webkit-scrollbar { display: none; }

.gallery__item {
  flex: 0 0 auto;
  width: 340px;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  margin: 0;
  will-change: transform;
}
.gallery__item img {
  height: 280px;
  width: 340px;
  object-fit: cover;
}
@media (max-width: 540px) {
  .gallery__item { width: 78%; flex: 0 0 78%; scroll-snap-align: center; }
  .gallery__item img { width: 100%; height: 280px; }
}

.gallery__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: calc(50% - 12px);
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: #e6eaff;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  padding: 0;
  z-index: 2;
  box-shadow: 0 4px 12px -2px rgba(14,21,71,.12);
}
.gallery__arrow:hover { background: #e6eaff; }
.gallery__arrow--prev { left: 8px; }
.gallery__arrow--next { right: 8px; }
@media (max-width: 540px) {
  .gallery__arrow--prev { left: -5px; }
  .gallery__arrow--next { right: -5px; }
}

.gallery__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 0 16px;
  flex-wrap: wrap;
}
.gallery__dot {
  width: 24px;
  height: 4px;
  border-radius: 2px;
  background: var(--ta-biege);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background .15s, width .2s;
}
.gallery__dot.is-active {
  background: var(--ta-blue);
  width: 36px;
}
@media (max-width: 540px) {
  .gallery__dot { width: 20px; }
  .gallery__dot.is-active { width: 32px; }
}

/* Lightbox cursor */
.gallery__item:hover { transform: translateY(-2px); }
.gallery__item { cursor: zoom-in; border: 0; background: transparent; padding: 0; border-radius: 5px; overflow: hidden; position: relative; transition: transform .2s ease; }
@media (hover: none) {
  .gallery__item:hover { transform: none; }
}
.gallery__item img { display: block; border-radius: 5px; background: var(--ta-cream-2); }

/* ---------- Inline Photo Viewer (replaces lightbox modal) ---------- */

.gallery__carousel.is-hidden { display: none; }
.gallery__dots.is-hidden { display: none; }

.photo-viewer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.photo-viewer__stage {
  position: relative;
  width: 100%;
  background: var(--ta-cream-2);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 56px;
  min-height: 280px;
  max-height: 560px;
}
.photo-viewer__img {
  max-width: 100%;
  max-height: 480px;
  width: auto;
  height: auto;
  display: block;
  border-radius: 5px;
  object-fit: contain;
}
.photo-viewer__nav,
.photo-viewer__close {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e6eaff;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  padding: 0;
  width: 36px;
  height: 36px;
  box-shadow: 0 4px 12px -2px rgba(14,21,71,.12);
  transition: background .15s;
}
.photo-viewer__nav:hover,
.photo-viewer__close:hover { background: #d8defc; }
.photo-viewer__nav--prev { left: 12px; top: 50%; transform: translateY(-50%); }
.photo-viewer__nav--next { right: 12px; top: 50%; transform: translateY(-50%); }
.photo-viewer__close { right: 12px; top: 12px; }
.photo-viewer__counter {
  font-size: 13px;
  color: var(--ta-muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

@media (max-width: 540px) {
  .photo-viewer__stage { padding: 16px 12px 50px; max-height: 460px; min-height: 220px; }
  .photo-viewer__img { max-height: 380px; }
  .photo-viewer__nav--prev { left: 6px; bottom: 8px; top: auto; transform: none; }
  .photo-viewer__nav--next { right: 6px; bottom: 8px; top: auto; transform: none; }
  .photo-viewer__close { right: 8px; top: 8px; }
}

/* ---------- Lightbox (legacy, kept for safety; component renamed) ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(14, 21, 71, 0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 56px 80px;
  animation: lightboxIn .2s ease-out;
}
@keyframes lightboxIn { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 640px) { .lightbox { padding: 56px 16px 80px; } }

.lightbox__figure {
  max-width: min(1200px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 0;
}
.lightbox__figure img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  width: auto;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,.6);
  object-fit: contain;
  background: var(--ta-blue-deep);
}
/* When pinned to parent iframe viewport, size image relative to lightbox container */
.lightbox--iframe { padding: 40px 64px 64px; box-sizing: border-box; }
.lightbox--iframe .lightbox__figure img { max-height: calc(100% - 36px); }
@media (max-width: 640px) {
  .lightbox--iframe { padding: 40px 16px 64px; }
}
.lightbox__counter {
  color: rgba(255,255,255,.8);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: rgba(255,255,255,.12);
  color: white;
  border: 0;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(255,255,255,.24); }

.lightbox__close { top: 18px; right: 18px; }
.lightbox__nav--prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 16px; top: 50%; transform: translateY(-50%); }

@media (max-width: 540px) {
  .lightbox__nav--prev { left: 10px; }
  .lightbox__nav--next { right: 10px; }
  .lightbox__close { top: 12px; right: 12px; }
}

/* ---------- Loading spinner ---------- */
.spinner {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: white;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Tiny niceties ---------- */
.kicker-band {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  margin-bottom: 4px;
  background: white;
  border-radius: var(--radius-pill);
  border: 1px solid var(--ta-line);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--ta-blue);
}
.kicker-band .palm { font-size: 14px; }

/* visually hidden */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
