:root {
  --navy: #1b4379;
  --navy-soft: #153665;
  --brand-blue: #1b4379;
  --brand-blue-hover: #153665;
  --cta-green: #009e80;
  --cta-green-hover: #00866d;
  --romance: #e73655;
  --gold: #f4c76a;
  --ink: #102033;
  --muted: #59677a;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.84);
  --glass-border: rgba(255, 255, 255, 0.44);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--white);
  background: var(--navy);
}

button,
input {
  font: inherit;
}

.landing {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.background-image,
.background-overlay,
.top-shadow-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

.background-image {
  object-fit: cover;
  object-position: center;
  z-index: -3;
  transform: scale(1.02);
}

.background-overlay {
  z-index: -2;
  background:
    radial-gradient(circle at 50% 12%, rgba(231, 54, 85, 0.2), transparent 26rem),
    linear-gradient(135deg, rgba(27, 67, 121, 0.78), rgba(27, 67, 121, 0.72));
}

.top-shadow-overlay {
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.42) 24%, rgba(0, 0, 0, 0) 58%);
}

.content-shell {
  width: min(1120px, calc(100% - 32px));
  min-height: 100svh;
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(20px, 4vh, 42px);
}

.brand-header {
  display: grid;
  justify-items: center;
  padding: 8px 0;
}

.brand-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 6vw, 56px);
  width: 100%;
}

.brand-logo {
  width: clamp(138px, 36vw, 240px);
  height: clamp(44px, 11vw, 72px);
  object-fit: contain;
  padding: 0;
  background: transparent;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.58));
}

.brand-logo-vitrola {
  width: clamp(138px, 36vw, 240px);
}

.brand-logo-tche {
  height: clamp(34px, 9vw, 58px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.hero-copy {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 13px;
}

.eyebrow {
  margin: 0;
  color: var(--romance);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(231, 54, 85, 0.32);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 0;
  font-size: clamp(2rem, 7vw, 4.55rem);
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
}

.love-led {
  display: inline-block;
  color: var(--romance);
  animation: ledPulse 2.8s ease-in-out infinite;
}

.arrow-heart {
  display: inline-block;
  margin-left: 0.18em;
  color: var(--romance);
  font-size: 0.72em;
  vertical-align: 0.08em;
  animation: heartArrowPulse 2.8s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(231, 54, 85, 0.46));
}

.subtitle {
  max-width: 710px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2.5vw, 1.22rem);
  line-height: 1.58;
}

.subtitle p {
  margin: 0;
}

.subtitle p + p {
  margin-top: 8px;
}

.subtitle strong {
  color: var(--white);
  font-weight: 900;
}

.subtitle .prize-line {
  display: inline-block;
  color: var(--romance);
  font-size: clamp(1.12rem, 3vw, 1.52rem);
  line-height: 1.25;
  text-shadow: 0 0 18px rgba(231, 54, 85, 0.34);
}

.draw-date {
  margin-bottom: 0;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 800;
  border-radius: 999px;
  background: var(--romance);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 16px rgba(231, 54, 85, 0.3), 0 12px 28px rgba(0, 0, 0, 0.16);
  animation: dateLedPulse 2.8s ease-in-out infinite;
}

.calendar-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.form-card {
  position: relative;
  width: min(100%, 454px);
  justify-self: center;
  color: var(--ink);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  overflow: hidden;
}

form,
.success-panel {
  padding: clamp(22px, 6vw, 34px);
}

.form-heading {
  margin-bottom: 20px;
}

.form-heading h2,
.success-panel h2 {
  margin: 5px 0 0;
  color: var(--navy);
  font-size: clamp(1.45rem, 5vw, 1.9rem);
  line-height: 1.15;
}

.field-group,
.radio-field {
  margin: 0 0 16px;
}

label,
legend {
  display: block;
  margin-bottom: 8px;
  color: #000000;
  font-weight: 800;
}

input[type="text"],
input[type="tel"] {
  width: 100%;
  min-height: 54px;
  padding: 0 15px;
  color: var(--ink);
  border: 1px solid rgba(16, 32, 51, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  outline: 3px solid transparent;
  transition: border-color 160ms ease, box-shadow 160ms ease, outline-color 160ms ease;
}

input::placeholder {
  color: #7e8896;
}

input:focus {
  border-color: var(--cta-green);
  outline-color: rgba(0, 158, 128, 0.14);
  box-shadow: 0 0 0 1px rgba(0, 158, 128, 0.3);
}

.field-error {
  min-height: 18px;
  margin: 6px 0 0;
  color: #b42138;
  font-size: 0.86rem;
  font-weight: 700;
}

.radio-field {
  padding: 0;
  border: 0;
}

.radio-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.radio-option {
  position: relative;
  overflow: hidden;
  min-height: 52px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(16, 32, 51, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  cursor: pointer;
  transition: transform 170ms ease, border-color 170ms ease, background 170ms ease, box-shadow 170ms ease;
}

.radio-option span {
  color: #000000;
}

.radio-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--cta-green);
}

.radio-option:has(input:checked) {
  transform: translateY(-2px);
  border-color: rgba(0, 158, 128, 0.7);
  background: rgba(0, 158, 128, 0.12);
  box-shadow: 0 10px 24px rgba(0, 158, 128, 0.18);
  animation: optionSelect 360ms ease both;
}

.radio-option:has(input:checked)::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle, rgba(0, 158, 128, 0.24), transparent 58%);
  opacity: 0;
  animation: optionGlow 520ms ease;
}

.cta-button {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  color: var(--white);
  font-weight: 900;
  font-size: 0.94rem;
  letter-spacing: 0;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--cta-green), #00b894);
  box-shadow: 0 14px 30px rgba(0, 158, 128, 0.32);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.cta-button:hover,
.cta-button:focus-visible {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--cta-green-hover), #00aa8a);
  box-shadow: 0 18px 38px rgba(0, 158, 128, 0.42);
}

.cta-button:disabled {
  cursor: wait;
  opacity: 0.88;
}

.cta-button::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  left: var(--ripple-x, 50%);
  top: var(--ripple-y, 50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
}

.cta-button.is-pressed {
  animation: ctaPress 420ms ease;
}

.cta-button.is-pressed::after {
  animation: ctaRipple 520ms ease-out;
}

.button-loader {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

.cta-button.is-loading .button-loader {
  display: inline-block;
}

.trust-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: center;
}

.success-panel {
  display: grid;
  justify-items: center;
  gap: 12px;
  min-height: 430px;
  text-align: center;
  align-content: center;
}

.success-panel[hidden] {
  display: none;
}

.success-panel p {
  margin: 0;
  color: #435267;
  line-height: 1.6;
}

.success-panel strong {
  color: var(--navy);
  font-size: 1.05rem;
}

.success-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 2rem;
  font-weight: 900;
  border-radius: 50%;
  background: linear-gradient(135deg, #0baa62, #18c678);
  box-shadow: 0 16px 34px rgba(24, 198, 120, 0.32);
  animation: confirm 520ms ease both;
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.08);
  }
  55% {
    transform: scale(1.02);
  }
}

@keyframes ledPulse {
  0%,
  100% {
    text-shadow: 0 0 10px rgba(231, 54, 85, 0.32), 0 0 22px rgba(231, 54, 85, 0.2);
    filter: brightness(1);
  }
  50% {
    text-shadow: 0 0 18px rgba(231, 54, 85, 0.72), 0 0 34px rgba(231, 54, 85, 0.44);
    filter: brightness(1.14);
  }
}

@keyframes heartArrowPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.92;
    filter: drop-shadow(0 0 10px rgba(231, 54, 85, 0.42));
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
    filter: drop-shadow(0 0 20px rgba(231, 54, 85, 0.72));
  }
}

@keyframes dateLedPulse {
  0%,
  100% {
    box-shadow: 0 0 14px rgba(231, 54, 85, 0.34), 0 12px 28px rgba(0, 0, 0, 0.16);
    filter: brightness(1);
  }
  50% {
    box-shadow: 0 0 24px rgba(231, 54, 85, 0.7), 0 0 42px rgba(231, 54, 85, 0.28), 0 12px 28px rgba(0, 0, 0, 0.18);
    filter: brightness(1.08);
  }
}

@keyframes optionSelect {
  0% {
    transform: scale(0.98);
  }
  60% {
    transform: translateY(-2px) scale(1.02);
  }
  100% {
    transform: translateY(-2px) scale(1);
  }
}

@keyframes optionGlow {
  0% {
    opacity: 0;
    transform: scale(0.4);
  }
  45% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

@keyframes ctaPress {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  45% {
    transform: translateY(-1px) scale(0.985);
  }
}

@keyframes ctaRipple {
  0% {
    opacity: 0.52;
    transform: translate(-50%, -50%) scale(0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.4);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes confirm {
  from {
    opacity: 0;
    transform: scale(0.86);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (min-width: 768px) {
  .content-shell {
    width: min(1180px, calc(100% - 56px));
    padding: 32px 0;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.72fr);
    gap: clamp(32px, 5vw, 72px);
  }

  .hero-copy {
    text-align: left;
    justify-items: start;
  }

  .brand-header {
    margin-bottom: 4px;
  }
}

@media (min-width: 1024px) {
  .content-shell {
    gap: 48px;
  }

  .brand-logo {
    height: 72px;
  }

  .brand-logo-tche {
    height: 58px;
  }
}

@media (min-width: 1440px) {
  .content-shell {
    width: min(1240px, calc(100% - 88px));
  }
}

@media (max-width: 374px) {
  .content-shell {
    width: min(100% - 22px, 1120px);
    padding: 16px 0;
    gap: 16px;
  }

  .brand-logo {
    width: 124px;
    height: 46px;
  }

  .brand-logo-tche {
    height: 34px;
  }

  .draw-date {
    border-radius: 18px;
  }

  form,
  .success-panel {
    padding: 20px 16px;
  }

  .cta-button {
    font-size: 0.82rem;
    padding: 0 12px;
  }
}
