/* Baptism model "Caruselul cu căluți": a carousel with a striped roof, warm bulbs and two horses.
   The color theme sets --accent (stripes, titles, buttons) and --second (the second pastel color). */
.carousel-baptism {
  --gold: #d9a63f;
  --gold-light: #f6dc9a;
  --bulb: #ffd66b;
  --cream: #fff8ee;
  --ivory: #fffdf8;
  --stripe-light: #fffaf2;
  --ink: #4a3a37;
  --ink-soft: #7b6b68;
  --accent-deep: color-mix(in srgb, var(--accent) 74%, #3a1c28);
  --accent-soft: color-mix(in srgb, var(--accent) 15%, #fff);
  --second-soft: color-mix(in srgb, var(--second) 30%, #fff);
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.7 "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.carousel-baptism *, .carousel-baptism *::before, .carousel-baptism *::after { box-sizing: border-box; }
.carousel-baptism h1, .carousel-baptism h2, .carousel-baptism h3, .carousel-baptism p, .carousel-baptism figure { margin: 0; }
.carousel-baptism .skip-link { position: absolute; z-index: 10; top: 8px; left: 8px; padding: 12px 16px; border-radius: 12px; background: #fff; color: var(--ink); transform: translateY(-220%); }
.carousel-baptism .skip-link:focus { transform: translateY(0); }
.carousel-baptism .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.carousel-baptism .container { width: min(100% - 40px, 880px); margin-inline: auto; }
.carousel-baptism .section { padding: clamp(52px, 8vw, 84px) 0; }
.carousel-baptism h2 { color: var(--accent-deep); font: 700 clamp(30px, 4.8vw, 44px)/1.15 "Sansita Swashed", Georgia, serif; text-align: center; text-wrap: balance; }
.carousel-baptism .section-eyebrow { color: var(--accent-deep); font: 700 clamp(13px, 1.6vw, 15px)/1.5 "Josefin Sans", system-ui, sans-serif; letter-spacing: .2em; text-transform: uppercase; }

/* Horse */
.carousel-baptism .horse { display: block; height: auto; overflow: visible; filter: drop-shadow(0 6px 7px rgba(74, 58, 55, .2)); }
.carousel-baptism .horse-body { fill: #fffdf8; stroke: #ecdcc8; stroke-width: 1.2; }
.carousel-baptism .horse-neck { fill: none; stroke: #fffdf8; stroke-width: 34; stroke-linecap: round; }
.carousel-baptism .horse-leg { fill: none; stroke: #fffdf8; stroke-width: 15; stroke-linecap: round; }
.carousel-baptism .horse-leg--far { stroke: #f3e6d6; }
.carousel-baptism .horse-hoof { fill: none; stroke: var(--gold); stroke-width: 13; stroke-linecap: round; }
.carousel-baptism .horse-mane { fill: var(--gold); }
.carousel-baptism .horse-eye { fill: #3b2c2a; }
.carousel-baptism .horse-cheek { fill: #f9b3b3; opacity: .7; }
.carousel-baptism .horse-bridle { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; }
.carousel-baptism .horse-blanket { fill: var(--second); }
.carousel-baptism .horse-blanket-trim { fill: none; stroke: var(--gold); stroke-width: 4; stroke-linecap: round; }
.carousel-baptism .horse-saddle { fill: var(--accent); }
.carousel-baptism .horse-star { fill: var(--gold-light); }
.carousel-baptism .horse-ring { fill: var(--gold); }

/* Hero: the carousel */
.carousel-baptism .hero {
  overflow: hidden;
  padding: clamp(30px, 5vw, 56px) 16px clamp(48px, 7vw, 76px);
  background:
    radial-gradient(circle at 9% 22%, rgba(255, 255, 255, .85) 0 3%, transparent 9%),
    radial-gradient(circle at 92% 30%, rgba(255, 255, 255, .8) 0 2.5%, transparent 8%),
    radial-gradient(circle at 16% 78%, rgba(255, 255, 255, .7) 0 2%, transparent 7%),
    radial-gradient(circle at 86% 82%, rgba(255, 255, 255, .75) 0 3%, transparent 9%),
    linear-gradient(180deg, var(--accent-soft) 0%, var(--cream) 100%);
}
.carousel-baptism .carousel { position: relative; width: min(100%, 1040px); margin: 0 auto; }
.carousel-baptism .carousel-finial { position: relative; z-index: 2; display: block; width: clamp(36px, 5vw, 50px); margin: 0 auto -5px; overflow: visible; }
.carousel-baptism .finial-pole { fill: none; stroke: var(--gold); stroke-width: 4; stroke-linecap: round; }
.carousel-baptism .finial-flag { fill: var(--accent); }
.carousel-baptism .finial-ball { fill: var(--gold); }
.carousel-baptism .carousel-roof { display: block; width: 100%; height: clamp(56px, 9.5vw, 108px); filter: drop-shadow(0 6px 10px rgba(74, 58, 55, .12)); }
.carousel-baptism .roof-stripe--a { fill: var(--accent); }
.carousel-baptism .roof-stripe--b { fill: var(--stripe-light); }
.carousel-baptism .roof-stripe--c { fill: var(--second); }
/* The edge of the roof: stripes, a scalloped edge and two rows of bulbs that twinkle in turn */
.carousel-baptism .carousel-valance { position: relative; z-index: 2; height: 30px; margin: 0 -8px; border-top: 5px solid var(--gold); border-radius: 3px; background: linear-gradient(90deg, var(--accent) 50%, var(--stripe-light) 50%) 50% 0 / 88px 100% repeat-x; }
.carousel-baptism .carousel-valance::after { position: absolute; top: 100%; right: 0; left: 0; height: 22px; background: radial-gradient(circle at 22px 0, var(--accent) 21.5px, transparent 22px) 50% 0 / 88px 22px repeat-x, radial-gradient(circle at 66px 0, var(--stripe-light) 21.5px, transparent 22px) 50% 0 / 88px 22px repeat-x; content: ""; filter: drop-shadow(0 4px 4px rgba(74, 58, 55, .12)); }
.carousel-baptism .carousel-bulbs { position: absolute; z-index: 1; top: 100%; right: 0; left: 0; height: 14px; margin-top: -7px; background: radial-gradient(circle at 50% 50%, #fffbe6 0 3px, var(--bulb) 3.5px 5.5px, transparent 6.5px) 50% 0 / 88px 14px repeat-x; filter: drop-shadow(0 0 5px rgba(255, 205, 86, .95)); animation: bulbs-twinkle 2.4s ease-in-out infinite; }
.carousel-baptism .carousel-bulbs--second { background-position: calc(50% + 44px) 0; animation-delay: -1.2s; }

.carousel-baptism .carousel-stage { position: relative; display: grid; grid-template-columns: minmax(150px, 1fr) minmax(0, 2.3fr) minmax(150px, 1fr); align-items: stretch; min-height: clamp(380px, 41vw, 450px); padding: 34px 10px 0; }
/* Each horse is on a gold pole that goes from the roof to the platform. */
.carousel-baptism .carousel-horse { position: relative; display: flex; align-items: center; justify-content: center; }
.carousel-baptism .carousel-horse::before { position: absolute; top: -34px; bottom: 0; left: 50%; width: 12px; margin-left: -6px; border-radius: 6px; background: repeating-linear-gradient(135deg, var(--gold) 0 7px, var(--gold-light) 7px 13px); content: ""; }
.carousel-baptism .carousel-horse .horse { position: relative; width: min(100%, 236px); animation: horse-ride 4.4s ease-in-out infinite; }
.carousel-baptism .carousel-horse--right .horse { transform: scaleX(-1); animation-delay: -2.2s; }

.carousel-baptism .hero-content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px 8px 44px; text-align: center; }
.carousel-baptism .hero-eyebrow { color: var(--accent-deep); font: 700 clamp(12.5px, 1.5vw, 15px)/1.5 "Josefin Sans", system-ui, sans-serif; letter-spacing: .2em; text-transform: uppercase; }
.carousel-baptism h1 { margin: 10px 0 14px; color: var(--accent-deep); font: 700 clamp(58px, 9.4vw, 112px)/1.02 "Sansita Swashed", Georgia, serif; overflow-wrap: anywhere; }
/* Two children: the two first names stay whole, and the line breaks between them. */
.carousel-baptism .hero-title--two { font-size: clamp(44px, 6.4vw, 78px); line-height: 1.1; overflow-wrap: normal; }
.carousel-baptism .hero-name { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
.carousel-baptism .hero-and { color: var(--gold); font-size: .8em; }
.carousel-baptism .hero-date { display: inline-block; padding: 9px 22px 7px; border: 1.5px solid var(--gold); border-radius: 999px; background: var(--ivory); color: var(--ink); font: 700 clamp(12.5px, 1.5vw, 15px)/1.4 "Josefin Sans", system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; }

.carousel-baptism .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  margin-top: 24px;
  padding: 15px 36px 12px;
  border: 0;
  border-radius: 999px;
  outline: 2px dotted var(--gold-light);
  outline-offset: -7px;
  background: var(--accent-deep);
  box-shadow: 0 12px 24px color-mix(in srgb, var(--accent) 30%, transparent);
  color: #fff;
  cursor: pointer;
  font: 700 15px/1.3 "Josefin Sans", system-ui, sans-serif;
  letter-spacing: .14em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .15s ease, background-color .15s ease;
}
.carousel-baptism .button:hover { background: color-mix(in srgb, var(--accent-deep) 88%, #000); transform: translateY(-2px); }
.carousel-baptism .button:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }

/* The platform of the carousel */
.carousel-baptism .carousel-base { position: relative; height: 34px; margin: 0 -14px; border-top: 5px solid var(--gold); border-bottom: 5px solid var(--gold); border-radius: 4px 4px 12px 12px; background: linear-gradient(90deg, var(--accent) 50%, var(--stripe-light) 50%) 50% 0 / 88px 100% repeat-x; box-shadow: 0 14px 22px rgba(74, 58, 55, .14); }
.carousel-baptism .carousel-base::after { position: absolute; top: 100%; right: 7%; left: 7%; height: 12px; margin-top: 5px; border-radius: 0 0 14px 14px; background: var(--gold-light); content: ""; }

/* Message and photos */
.carousel-baptism .story { padding-top: clamp(40px, 6vw, 60px); }
.carousel-baptism .story-inner { max-width: 680px; text-align: center; }
.carousel-baptism .story-message { margin-top: 16px; color: var(--ink-soft); font-size: 18px; }
.carousel-baptism .story-message p + p { margin-top: 12px; }
.carousel-baptism .medallions { display: flex; align-items: flex-start; justify-content: center; gap: clamp(12px, 4vw, 40px); margin-bottom: 30px; }
.carousel-baptism .medallion { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.carousel-baptism .medallion-frame { position: relative; width: clamp(200px, 44vw, 270px); aspect-ratio: 1; padding: 17px; }
.carousel-baptism .medallion-frame img { display: block; width: 100%; height: 100%; border: 5px solid var(--ivory); border-radius: 50%; box-shadow: 0 0 0 3px var(--accent), 0 18px 34px rgba(74, 58, 55, .16); object-fit: cover; }
/* A ring of bulbs around the photo */
.carousel-baptism .medallion-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.carousel-baptism .medallion-ring circle { fill: none; stroke: var(--bulb); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 0 1; filter: drop-shadow(0 0 3px rgba(255, 205, 86, .9)); }
.carousel-baptism .medallions--two .medallion-frame { width: clamp(144px, 40vw, 224px); padding: 13px; }
.carousel-baptism .medallions--two .medallion-ring circle { stroke-width: 8; }
.carousel-baptism .medallion figcaption { margin-top: 8px; color: var(--accent-deep); font: 700 clamp(22px, 4.6vw, 28px)/1.2 "Sansita Swashed", Georgia, serif; overflow-wrap: anywhere; }

/* Parents and godparents: two tickets */
.carousel-baptism .tickets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 24px 30px; }
.carousel-baptism .ticket { position: relative; padding: 28px 36px 26px; border: 2px solid var(--accent); border-radius: 14px; outline: 1.5px dashed color-mix(in srgb, var(--accent) 45%, #fff); outline-offset: -9px; background: var(--ivory); text-align: center; }
.carousel-baptism .ticket::before, .carousel-baptism .ticket::after { position: absolute; top: 50%; width: 28px; height: 28px; margin-top: -14px; border: 2px solid var(--accent); border-radius: 50%; background: var(--cream); content: ""; }
.carousel-baptism .ticket::before { left: -16px; clip-path: inset(-2px -2px -2px 50%); }
.carousel-baptism .ticket::after { right: -16px; clip-path: inset(-2px 50% -2px -2px); }
.carousel-baptism .ticket--second { background: color-mix(in srgb, var(--second) 16%, #fffdf8); }
.carousel-baptism .ticket h3 { margin-bottom: 4px; color: var(--ink-soft); font: 700 13px/1.5 "Josefin Sans", system-ui, sans-serif; letter-spacing: .24em; text-transform: uppercase; }
.carousel-baptism .ticket p { color: var(--accent-deep); font: 500 clamp(23px, 3.3vw, 29px)/1.25 "Sansita Swashed", Georgia, serif; overflow-wrap: anywhere; text-wrap: balance; }

/* A small striped awning at the top of a card */
.carousel-baptism .awning { position: relative; display: block; height: 16px; border-radius: 12px 12px 0 0; background: linear-gradient(90deg, var(--accent) 50%, var(--stripe-light) 50%) 50% 0 / 36px 100% repeat-x; }
.carousel-baptism .awning::after { position: absolute; top: 100%; right: 0; left: 0; height: 9px; background: radial-gradient(circle at 9px 0, var(--accent) 8.6px, transparent 9px) 50% 0 / 36px 9px repeat-x, radial-gradient(circle at 27px 0, var(--stripe-light) 8.6px, transparent 9px) 50% 0 / 36px 9px repeat-x; content: ""; filter: drop-shadow(0 2px 2px rgba(74, 58, 55, .16)); }

/* Countdown */
.carousel-baptism .countdown { padding-right: 20px; padding-left: 20px; text-align: center; }
.carousel-baptism .countdown-parts { display: flex; align-items: stretch; justify-content: center; gap: clamp(8px, 2vw, 18px); margin-top: 20px; }
.carousel-baptism .countdown-part { width: clamp(72px, 19vw, 114px); padding-bottom: 12px; border-radius: 12px; background: var(--ivory); box-shadow: 0 12px 26px rgba(74, 58, 55, .1); }
.carousel-baptism .countdown-part strong { display: block; padding-top: 18px; color: var(--accent-deep); font: 700 clamp(28px, 6.4vw, 42px)/1.1 "Sansita Swashed", Georgia, serif; font-variant-numeric: tabular-nums; }
.carousel-baptism .countdown-part span:not(.awning) { color: var(--ink-soft); font: 700 clamp(10.5px, 2.5vw, 12.5px)/1.4 "Josefin Sans", system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; }

/* Schedule */
.carousel-baptism .events { padding-top: 0; }
.carousel-baptism .events-date { margin-top: 8px; color: var(--ink-soft); text-align: center; }
.carousel-baptism .hero-date::first-letter, .carousel-baptism .events-date::first-letter, .carousel-baptism .footer-date::first-letter { text-transform: uppercase; }
.carousel-baptism .event-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 26px; margin-top: 34px; }
.carousel-baptism .event-card { border-radius: 14px 14px 18px 18px; background: var(--ivory); box-shadow: 0 16px 36px rgba(74, 58, 55, .1); }
.carousel-baptism .event-body { padding: 34px 22px 28px; text-align: center; }
.carousel-baptism .event-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 10px; border: 1.5px solid var(--gold); border-radius: 50%; background: var(--second-soft); }
.carousel-baptism .event-icon svg { width: 34px; height: 34px; fill: none; stroke: var(--accent-deep); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.carousel-baptism .event-card h3 { color: var(--accent-deep); font: 700 26px/1.25 "Sansita Swashed", Georgia, serif; }
.carousel-baptism .event-time { display: block; margin-top: 4px; color: var(--ink); font: 700 36px/1.2 "Josefin Sans", system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.carousel-baptism .event-date { color: var(--ink-soft); font-size: 15px; }
.carousel-baptism .event-location { margin-top: 10px; font-weight: 700; }
.carousel-baptism .event-address, .carousel-baptism .event-description { color: var(--ink-soft); font-size: 15.5px; }
.carousel-baptism .event-description { margin-top: 8px; }
.carousel-baptism .invitation-navigation a { border-color: color-mix(in srgb, var(--accent) 50%, #fff); border-radius: 999px; color: var(--accent-deep); font-weight: 700; }

/* Gallery */
.carousel-baptism .gallery { padding-top: 0; }
.carousel-baptism .invitation-story-gallery__photo { border-radius: 16px; }

/* RSVP: a card with a border of bulbs */
.carousel-baptism .rsvp { padding: clamp(40px, 6vw, 64px) 26px clamp(70px, 9vw, 100px); background: linear-gradient(180deg, var(--cream) 0%, var(--accent-soft) 100%); }
.carousel-baptism .rsvp-card { width: min(100%, 680px); margin: 0 auto; padding: clamp(24px, 5vw, 44px); border: 6px dotted var(--bulb); border-radius: 28px; background: var(--ivory); box-shadow: 0 0 0 10px var(--ivory), 0 26px 50px rgba(74, 58, 55, .14); }
.carousel-baptism .rsvp-intro { margin-top: 10px; color: var(--ink-soft); text-align: center; }
.carousel-baptism .rsvp-deadline { text-align: center; }
.carousel-baptism #rsvp .invitation-rsvp-information { --rsvp-info-radius: 14px; }
.carousel-baptism .guest-greeting { margin-top: 16px; text-align: center; }
.carousel-baptism .form-status { margin-top: 16px; padding: 12px 16px; border-radius: 12px; background: #e6f5ec; color: #1f6b43; text-align: center; }
.carousel-baptism .form-status--error { background: #fde9e9; color: #9b2c2c; }
.carousel-baptism .rsvp-form { margin-top: 24px; }
.carousel-baptism .attendance-field { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 20px; padding: 0; border: 0; }
.carousel-baptism .attendance-field label { position: relative; display: block; cursor: pointer; }
.carousel-baptism .attendance-field input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.carousel-baptism .attendance-field span { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 10px 12px; border: 2px solid var(--accent-deep); border-radius: 999px; background: #fff; color: var(--accent-deep); font: 700 16px/1.3 "Mulish", system-ui, sans-serif; text-align: center; transition: background-color .15s ease, color .15s ease; }
.carousel-baptism .attendance-field input:checked + span { background: var(--accent-deep); color: #fff; }
.carousel-baptism .attendance-field input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.carousel-baptism .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.carousel-baptism .form-field--full { grid-column: 1 / -1; }
.carousel-baptism .form-field[hidden] { display: none; }
.carousel-baptism .form-field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; }
.carousel-baptism .form-field input, .carousel-baptism .form-field textarea { width: 100%; min-height: 50px; padding: 12px 16px; border: 1.5px solid color-mix(in srgb, var(--accent) 30%, #e6ddd6); border-radius: 14px; background: #fff; color: var(--ink); font: inherit; }
.carousel-baptism .form-field textarea { resize: vertical; }
.carousel-baptism .form-field input:focus, .carousel-baptism .form-field textarea:focus { border-color: var(--accent); outline: 0; box-shadow: 0 0 0 3px var(--accent-soft); }
.carousel-baptism .button--submit { width: 100%; margin-top: 24px; }
.carousel-baptism .form-feedback { min-height: 1.5em; margin-top: 14px; color: var(--accent-deep); font-weight: 700; text-align: center; }

/* Footer */
.carousel-baptism .invitation-footer { padding: 40px 20px 42px; background: var(--accent-soft); text-align: center; }
.carousel-baptism .footer-horse { width: 104px; margin: 0 auto; }
.carousel-baptism .footer-horse .horse { width: 100%; animation: horse-ride 4.4s ease-in-out infinite; }
.carousel-baptism .footer-message { margin-top: 4px; color: var(--accent-deep); font: 700 clamp(30px, 5.4vw, 44px)/1.15 "Sansita Swashed", Georgia, serif; text-wrap: balance; }
.carousel-baptism .footer-name { margin-top: 8px; color: var(--ink); font: 700 15px/1.5 "Josefin Sans", system-ui, sans-serif; letter-spacing: .2em; text-transform: uppercase; overflow-wrap: anywhere; }
.carousel-baptism .footer-date { color: var(--ink-soft); }
.carousel-baptism .wedday-credit { display: inline-block; margin-top: 18px; color: var(--ink-soft); font-size: 13px; }

@keyframes bulbs-twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}
@keyframes horse-ride {
  0%, 100% { translate: 0 -12px; }
  50% { translate: 0 12px; }
}

@media (max-width: 720px) {
  /* On a small screen the two horses are under the roof, and the text is under the horses. */
  .carousel-baptism .carousel-stage { grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 0; padding: 30px 0 0; }
  .carousel-baptism .hero-content { grid-column: 1 / -1; padding: 22px 6px 34px; }
  .carousel-baptism .carousel-horse { order: -1; height: 172px; }
  .carousel-baptism .carousel-horse::before { top: -30px; bottom: 10px; }
  .carousel-baptism .carousel-horse::after { position: absolute; bottom: 0; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--gold); content: ""; }
  .carousel-baptism .carousel-horse .horse { width: 138px; }
  .carousel-baptism .carousel-valance { margin: 0 -4px; }
  .carousel-baptism .carousel-base { margin: 0 -6px; }
  @keyframes horse-ride {
    0%, 100% { translate: 0 -7px; }
    50% { translate: 0 7px; }
  }
}

@media (max-width: 560px) {
  .carousel-baptism .form-grid { grid-template-columns: minmax(0, 1fr); }
  .carousel-baptism .attendance-field { gap: 8px; }
  .carousel-baptism .attendance-field span { padding: 10px 6px; font-size: 15px; }
  .carousel-baptism .rsvp { padding-right: 20px; padding-left: 20px; }
  .carousel-baptism .rsvp-card { border-width: 5px; box-shadow: 0 0 0 7px var(--ivory), 0 20px 40px rgba(74, 58, 55, .14); }
  .carousel-baptism .ticket { padding: 24px 30px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-baptism .horse, .carousel-baptism .carousel-bulbs { animation: none; }
  .carousel-baptism .button { transition: none; }
}
