*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background-color: var(--white);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  overflow-wrap: break-word;
}


:root {
  --white: #FFFFFF;
  --cream: #FAF8F5;
  --beige: #F0E8DC;
  --champagne: #E8D5B0;
  --gold: #63845B;
  --gold-dark: #4B6745;
  --dark: #1D1D1F;
  --dark-soft: #2C2C2E;
  --grey: #6E6E73;
  --grey-light: #AEAEB2;
  --border: #E5E0D8;

  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --section-padding: 120px;
  --container-max: 1200px;
  --container-pad: 48px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.3s var(--ease);
  --transition-slow: 0.6s var(--ease);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p {
  font-family: var(--font-sans);
  font-weight: 300;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  width: 100%;
}

.section-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: block;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 56px);
  color: var(--dark);
  margin-bottom: 20px;
}

.section-title em {
  font-style: italic;
  color: var(--gold);
}

.divider {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 24px 0;
}

.divider--center {
  margin: 24px auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 40px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  outline: 0;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--dark);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--dark-soft);
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
}

.btn-gold:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(201, 169, 110, 0.35);
}

.btn-outline-dark {
  background: transparent;
  color: var(--dark);
  border: 1px solid var(--dark);
}

.btn-outline-dark:hover {
  background: var(--dark);
  color: var(--white);
  transform: translateY(-2px);
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 36px var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--transition-slow);
}

.nav--solid {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 24px var(--container-pad);
  box-shadow: 0 1px 0 var(--border);
}

.nav__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  flex-shrink: 0;
  transition: opacity var(--transition);
}

.nav__logo-img {
  height: 100%;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  transition: filter var(--transition);
}

.nav--solid .nav__logo-img {
  filter: none;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 52px;
  list-style: none;
}

.nav__links a {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 4px;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}

.nav__links a:hover::after,
.nav__links a:focus::after {
  transform: scaleX(1);
}

.nav--solid .nav__links a {
  color: var(--grey);
}

.nav--solid .nav__links a:hover {
  color: var(--dark);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 1001;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.9);
  transition: all var(--transition);
  transform-origin: center;
}

.nav--solid .nav__hamburger span {
  background: var(--dark);
}

.nav__hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav__hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav__hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.nav__mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}

.nav__mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.nav__mobile-menu a {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 400;
  color: var(--dark);
  transition: color var(--transition);
  letter-spacing: -0.01em;
}

.nav__mobile-menu a:hover {
  color: var(--gold);
}

.hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--dark);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/atardecer-costa.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
  animation: kenBurnsHero 25s ease-out forwards;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: 
    linear-gradient(160deg, rgba(13, 8, 8, 0.55) 0%, rgba(30, 15, 26, 0.45) 40%, rgba(13, 8, 8, 0.65) 100%),
    linear-gradient(to bottom, rgba(10, 5, 10, 0.25) 0%, rgba(10, 5, 10, 0.50) 60%, rgba(10, 5, 10, 0.72) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 820px;
  width: 100%;
}

.hero__names {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 48px);
  font-weight: 400;
  font-style: italic;
  color: var(--champagne);
  margin-bottom: 16px;
  opacity: 0;
  animation: heroFadeUp 1s ease forwards 0.4s;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(52px, 9vw, 108px);
  font-weight: 400;
  color: var(--white);
  line-height: 1;
  margin-bottom: 24px;
  opacity: 0;
  animation: heroFadeUp 1s ease forwards 0.75s;
}

.hero__date {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 52px;
  opacity: 0;
  animation: heroFadeUp 1s ease forwards 1.1s;
  display: block;
}

.hero__cta {
  opacity: 0;
  animation: heroFadeUp 1s ease forwards 1.35s;
}

.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: heroFadeIn 1s ease forwards 2.2s;
}

.scroll-indicator__mouse {
  width: 22px;
  height: 34px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 11px;
  position: relative;
}

.scroll-indicator__wheel {
  width: 2px;
  height: 6px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 2px;
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2.2s ease-in-out infinite;
}

.scroll-indicator__text {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--font-sans);
}

.countdown-bar {
  background: var(--cream);
  padding: 56px 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.countdown-bar__label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey-light);
  margin-bottom: 28px;
  display: block;
}

.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
}

.countdown__item {
  padding: 0 44px;
  position: relative;
}

.countdown__item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 44px;
  width: 1px;
  background: var(--border);
}

.countdown__number {
  font-family: var(--font-serif);
  font-size: clamp(44px, 6vw, 68px);
  font-weight: 400;
  color: var(--dark);
  line-height: 1;
  display: block;
  font-variant-numeric: tabular-nums;
}

.countdown__label {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-light);
  margin-top: 10px;
  display: block;
}

.historia {
  position: relative;
  padding: var(--section-padding) 0;
  background: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.historia::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url('../images/acuarela-casa.jpeg');
  background-size: 110vw auto;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.08;
  mix-blend-mode: multiply;
}

.historia__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: center;
}

.historia__body {
  font-size: 17px;
  line-height: 1.85;
  color: var(--grey);
  margin-bottom: 22px;
  text-align: justify;
  hyphens: auto;
}

.historia__body:last-of-type {
  margin-bottom: 0;
}

.historia__image-wrap {
  position: relative;
  align-self: stretch;
}

.historia__photo {
  width: 100%;
  height: 100%;
  min-height: 560px;
  border-radius: 2px;
  background-image: url('../images/adolescencia-playa.jpg');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: transparent;
}

.historia__image-deco {
  position: absolute;
  bottom: -28px;
  left: -28px;
  width: 55%;
  aspect-ratio: 1;
  border: 1px solid var(--border);
  border-radius: 2px;
  z-index: -1;
}

.parallax-break {
  position: relative;
  height: 480px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--dark-soft);
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.42)),
    url('../images/ciudad-verano.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  transform: translateZ(0);
}

.cuando-donde {
  padding: var(--section-padding) 0;
  background: var(--cream);
}

.cuando-donde__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.event-details {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.event-detail {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.event-detail__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 18px;
  color: var(--gold);
}

.event-detail__label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-light);
  margin-bottom: 6px;
  display: block;
}

.event-detail__value {
  font-family: var(--font-serif);
  font-size: 21px;
  color: var(--dark);
  line-height: 1.3;
  display: block;
}

.event-detail__sub {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--grey);
  margin-top: 5px;
  display: block;
  font-weight: 300;
}

.map-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.map-container {
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.08);
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: none;
}

.visual-break {
  position: relative;
  height: 580px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--dark-soft);
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.48)),
    url('../images/bici-maizales.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  transform: translateZ(0);
}

.visual-break__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 760px;
  width: 100%;
}

.visual-break__ornament {
  font-family: var(--font-serif);
  font-size: 60px;
  color: var(--gold);
  opacity: 0.5;
  line-height: 1;
  display: block;
  margin-bottom: 20px;
}

.visual-break__quote {
  font-family: var(--font-serif);
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 400;
  font-style: italic;
  color: var(--white);
  line-height: 1.5;
}

.rsvp-cta {
  padding: var(--section-padding) 0;
  background: var(--white);
  text-align: center;
}

.rsvp-cta__message {
  font-size: 18px;
  color: var(--grey);
  max-width: 520px;
  margin: 0 auto 52px;
  line-height: 1.75;
  font-weight: 300;
}

.footer {
  background: var(--dark);
  padding: 64px 0;
  text-align: center;
}

.footer__names {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 12px;
}

.footer__date {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 36px;
  display: block;
}

.footer__divider {
  width: 40px;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 auto 36px;
}

.footer__message {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.4);
  max-width: 380px;
  margin: 0 auto;
  line-height: 1.7;
}

.fade-up {
  opacity: 0;
  transform: translateY(44px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.85s var(--ease);
}

.fade-in.visible {
  opacity: 1;
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.45s;
}

.delay-5 {
  transition-delay: 0.6s;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes scrollWheel {

  0%,
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  50% {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
}

@keyframes kenBurnsHero {
  0%   { transform: scale(1); }
  100% { transform: scale(1.12); }
}

@media (max-width: 1024px) {
  :root {
    --section-padding: 88px;
    --container-pad: 32px;
  }

  .historia__grid,
  .cuando-donde__grid {
    gap: 56px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 64px;
    --container-pad: 20px;
  }

  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .historia__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .historia__text-col {
    order: 2;
  }

  .historia__image-wrap {
    order: 1;
  }

  .historia__photo {
    min-height: 0;
    height: auto;
    aspect-ratio: 4/3;
  }

  .historia__image-deco {
    left: 15px;
    bottom: -15px;
    width: 40%;
  }

  .cuando-donde__grid {
    grid-template-columns: 1fr;
  }

  .countdown__item {
    padding: 0 24px;
  }

  .parallax-break,
  .visual-break {
    background-attachment: scroll;
  }

  .visual-break {
    height: 420px;
  }

  .parallax-break {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .countdown {
    flex-wrap: wrap;
    gap: 20px;
  }

  .countdown__item {
    width: calc(50% - 20px);
    padding: 0;
  }

  .countdown__item::after {
    display: none;
  }

  .hero__title {
    font-size: 52px;
  }

  .hero__names {
    font-size: 28px;
  }

  .hero__date {
    letter-spacing: 0.1em;
    font-size: 11px;
  }

  .hero__content {
    padding: 0 16px;
  }
}

.form-conditional {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: max-height 0.6s ease, opacity 0.45s ease, transform 0.45s ease, visibility 0s linear 0.6s;
  pointer-events: none;
}

.form-conditional.show {
  max-height: 4600px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: all;
  transition: max-height 0.6s ease, opacity 0.45s ease, transform 0.45s ease, visibility 0s linear 0s;
}

.form-section {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.form-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 6px;
}

.form-section-desc {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 300;
  color: var(--grey-light);
  margin-bottom: 20px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.checkbox-option {
  position: relative;
}

.checkbox-option--single {
  max-width: 260px;
}

.checkbox-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-option label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 2px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--grey);
  transition: all var(--transition);
  user-select: none;
  min-height: 44px;
}

.checkbox-option label::before {
  content: '';
  width: 16px;
  height: 16px;
  min-width: 16px;
  border: 1.5px solid var(--border);
  border-radius: 2px;
  background: var(--white);
  transition: all var(--transition);
}

.checkbox-option input[type="checkbox"]:checked+label {
  border-color: var(--gold);
  background: rgba(201, 169, 110, 0.07);
  color: var(--dark);
}

.checkbox-option input[type="checkbox"]:checked+label::before {
  background: var(--gold);
  border-color: var(--gold);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1' stroke='white' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

.checkbox-option label:hover {
  border-color: var(--gold);
  color: var(--dark);
}

.checkbox-option input[type="checkbox"]:focus-visible+label {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.form-sub-conditional {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: max-height 0.45s ease, opacity 0.35s ease, transform 0.35s ease, visibility 0s linear 0.45s;
  pointer-events: none;
  margin-top: 0;
}

.form-sub-conditional.show {
  max-height: 300px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: all;
  transition: max-height 0.45s ease, opacity 0.35s ease, transform 0.35s ease, visibility 0s linear 0s;
  margin-top: 20px;
}

.bus-stop-wrap {
  display: none;
}

.bus-stop-wrap.show,
.bus-section:has(#quiere-bus:checked) .bus-stop-wrap {
  display: block;
  max-height: 300px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: all;
  margin-top: 20px;
}

.otra-alergia-wrap {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease;
  margin-top: 0;
}

.otra-alergia-wrap.show {
  max-height: 80px;
  opacity: 1;
  margin-top: 12px;
}

.rsvp-page {
  min-height: 100vh;
  background: var(--cream);
  padding-top: 100px;
  padding-bottom: 80px;
}

.rsvp-page__hero {
  text-align: center;
  padding: 60px 20px 48px;
}

.rsvp-page__title {
  font-family: var(--font-serif);
  font-size: clamp(40px, 6vw, 68px);
  color: var(--dark);
  margin-bottom: 12px;
}

.rsvp-page__subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  color: var(--gold);
  margin-bottom: 20px;
  display: block;
}

.rsvp-page__desc {
  font-size: 17px;
  color: var(--grey);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.75;
  font-weight: 300;
}

.form-card {
  background: var(--white);
  border-radius: 4px;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.07), 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 56px 60px;
  max-width: 680px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 28px;
}

.form-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 10px;
}

.form-label span {
  color: var(--gold);
  margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 300;
  color: var(--dark);
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: 0;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.12);
  background: var(--white);
}

.form-input:focus-visible,
.form-select:focus-visible,
.form-textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--grey-light);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236E6E73' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.attendance-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.attendance-option {
  position: relative;
}

.attendance-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.attendance-option label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border: 1px solid var(--border);
  border-radius: 2px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--grey);
  transition: all var(--transition);
  text-align: center;
}

.attendance-option label .option-icon {
  font-size: 18px;
}

.attendance-option input[type="radio"]:checked+label {
  border-color: var(--gold);
  background: rgba(201, 169, 110, 0.06);
  color: var(--dark);
}

.attendance-option label:hover {
  border-color: var(--gold);
  color: var(--dark);
}

.attendance-option input[type="radio"]:focus-visible+label {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.form-submit {
  margin-top: 40px;
  text-align: center;
}

.form-submit .btn {
  width: 100%;
  padding: 18px;
  font-size: 14px;
}

.form-privacy {
  font-size: 11px;
  color: var(--grey);
  line-height: 1.5;
  margin-bottom: 20px;
  background: var(--cream);
  border: 1px solid var(--beige);
  border-radius: 4px;
  padding: 10px 14px;
  text-align: left;
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.form-success__icon {
  font-size: 48px;
  margin-bottom: 24px;
  display: block;
}

.form-success__title {
  font-family: var(--font-serif);
  font-size: 32px;
  color: var(--dark);
  margin-bottom: 16px;
}

.form-success__message {
  font-size: 17px;
  color: var(--grey);
  line-height: 1.75;
  max-width: 440px;
  margin: 0 auto;
  font-weight: 300;
}

.form-error {
  display: none;
  background: #FFF2F2;
  border: 1px solid #FFCDD2;
  border-radius: 2px;
  padding: 14px 16px;
  font-size: 14px;
  color: #B71C1C;
  margin-bottom: 24px;
  font-family: var(--font-sans);
}

.btn--loading {
  opacity: 0.7;
  pointer-events: none;
}

.nav--page {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 24px var(--container-pad);
  box-shadow: 0 1px 0 var(--border);
}

.nav--page .nav__logo-img {
  filter: none;
}

.nav--page .nav__links a {
  color: var(--grey);
}

.nav--page .nav__hamburger span {
  background: var(--dark);
}

@media (max-width: 640px) {
  .form-card {
    padding: 36px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .attendance-options {
    grid-template-columns: 1fr;
  }

  .checkbox-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 400px) {
  .checkbox-grid {
    grid-template-columns: 1fr;
  }
}

.amp {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.spinbox {
  display: inline-flex;
  align-items: stretch;
  height: 50px;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--white);
  transition: border-color var(--transition);
}

.spinbox:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.12);
}

.spinbox__btn {
  width: 50px;
  border: none;
  background: transparent;
  color: var(--grey);
  font-size: 22px;
  font-weight: 300;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.spinbox__btn:hover:not(:disabled) {
  background: var(--cream);
  color: var(--gold);
}

.spinbox__btn:disabled {
  color: var(--grey-light);
  cursor: default;
}

.spinbox__input {
  width: 60px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  font-size: 18px;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--dark);
  background: var(--white);
  -moz-appearance: textfield;
  appearance: textfield;
  padding: 0;
}

.spinbox__input::-webkit-outer-spin-button,
.spinbox__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.spinbox__input:focus {
  outline: none;
}
