@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap");

:root {
  --ink: #2c2630;
  --muted: #746b73;
  --cream: #f6f0e6;
  --pink: #f3bfd1;
  --pink-deep: #b92f68;
  --pink-dark: #8c224f;
  --gold: #d69b32;
  --white: #fffdfa;
  --line: #e8dfe1;
  --shadow: 0 24px 60px rgba(94, 47, 70, 0.18), 0 6px 16px rgba(94, 47, 70, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--cream);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "DM Sans", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

.invitation-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(460px, 0.96fr);
  min-height: 100svh;
  overflow: hidden;
}

.celebration-panel,
.rsvp-panel {
  position: relative;
  min-width: 0;
}

.celebration-panel {
  display: grid;
  grid-template-columns: minmax(270px, 0.78fr) minmax(290px, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 72px);
  padding: clamp(46px, 6vw, 94px) clamp(36px, 6.5vw, 110px);
  padding-right: clamp(32px, 4.5vw, 76px);
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 255, 255, 0.94), transparent 27%),
    linear-gradient(135deg, #faf7f1 0%, var(--cream) 67%, #eee4d6 100%);
  isolation: isolate;
}

.celebration-panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -58px;
  bottom: -160px;
  width: 410px;
  height: 410px;
  border: 52px solid rgba(215, 155, 50, 0.12);
  border-radius: 50%;
}

.event-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--pink-deep);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
}

h1 {
  margin: 0;
  font-size: clamp(3.15rem, 5.1vw, 5.7rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.88;
}

h1 span {
  color: var(--pink-deep);
  font-size: 0.83em;
  font-style: italic;
}

h1 em {
  display: block;
  margin-top: 17px;
  color: var(--gold);
  font-size: 0.36em;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.event-details {
  display: grid;
  gap: 18px;
  margin: clamp(36px, 5vh, 58px) 0 0;
}

.event-details > div {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 15px;
  align-items: start;
}

.event-details dt {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--pink-deep);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
}

.event-details svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.event-details dd {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1rem, 1.4vw, 1.22rem);
  font-weight: 600;
  line-height: 1.45;
}

.map-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
}

.map-links a {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid rgba(185, 47, 104, 0.22);
  border-radius: 8px;
  color: var(--pink-dark);
  background: rgba(255, 255, 255, 0.65);
  font-family: "DM Sans", "Segoe UI", sans-serif;
  font-size: 0.69rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.map-links a::after {
  content: "↗";
  margin-left: 5px;
  font-size: 0.76rem;
}

.map-links a:hover {
  border-color: var(--pink-deep);
  background: #fff;
  transform: translateY(-1px);
}

.photo-wrap {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  justify-self: end;
  transform: rotate(1.25deg);
}

.photo-frame {
  padding: clamp(9px, 1vw, 14px);
  background: var(--white);
  box-shadow: 0 28px 60px rgba(69, 46, 36, 0.22);
}

.photo-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 0.71;
  object-fit: cover;
  object-position: center;
}

.photo-note {
  width: max-content;
  max-width: 90%;
  margin: -19px auto 0;
  padding: 13px 24px 14px;
  position: relative;
  color: #584129;
  background: #f8dfa8;
  box-shadow: 0 7px 12px rgba(69, 46, 36, 0.13);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1rem, 1.5vw, 1.28rem);
  font-style: italic;
  font-weight: 600;
  text-align: center;
  transform: rotate(-3deg);
}

.confetti {
  position: absolute;
  z-index: 0;
  width: 12px;
  height: 28px;
  border-radius: 2px;
}

.confetti-one {
  top: 7%;
  left: 9%;
  background: #edb72f;
  box-shadow: 36px 74px 0 #d9417c, 168px -11px 0 #378f90, 421px 22px 0 #f08b40;
  transform: rotate(24deg);
}

.confetti-two {
  right: 9%;
  bottom: 8%;
  background: #3d9494;
  box-shadow: -48px -34px 0 #d9417c, -231px 30px 0 #e5a92c;
  transform: rotate(-31deg);
}

.confetti-three {
  top: 13%;
  right: 6%;
  width: 17px;
  height: 17px;
  background: #d9417c;
  clip-path: polygon(50% 0%, 61% 35%, 100% 50%, 61% 63%, 50% 100%, 37% 63%, 0 50%, 37% 35%);
}

.rsvp-panel {
  display: grid;
  place-items: center;
  padding: clamp(36px, 6vw, 96px);
  background:
    radial-gradient(circle at 85% 8%, rgba(255, 255, 255, 0.25), transparent 23%),
    linear-gradient(145deg, #f6cada 0%, var(--pink) 100%);
}

.rsvp-panel::before,
.rsvp-panel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.rsvp-panel::before {
  top: -100px;
  right: -110px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255, 255, 255, 0.44);
}

.rsvp-panel::after {
  right: 7%;
  bottom: 7%;
  width: 13px;
  height: 13px;
  background: rgba(185, 47, 104, 0.35);
  box-shadow: 28px -43px 0 rgba(255, 255, 255, 0.5), -22px -93px 0 rgba(214, 155, 50, 0.65);
}

.rsvp-card {
  position: relative;
  z-index: 1;
  width: min(100%, 540px);
  padding: clamp(30px, 4vw, 52px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 34px;
  background: rgba(255, 253, 250, 0.96);
  box-shadow: var(--shadow);
}

.card-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 3rem);
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.card-heading .heading-intro {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.card-heading .personalized-invite {
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--pink-dark);
  background: #fff0f5;
  font-size: 0.82rem;
  font-weight: 700;
}

form {
  margin-top: 30px;
}

.attendance-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 25px;
  padding: 0;
  border: 0;
}

.choice-card {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 15px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  color: #50474e;
  background: #fff;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.choice-card:hover {
  border-color: #d9a2b7;
  transform: translateY(-1px);
}

.choice-card:has(input:checked) {
  border-color: var(--pink-deep);
  color: var(--pink-dark);
  background: #fff5f8;
  box-shadow: 0 0 0 3px rgba(185, 47, 104, 0.08);
}

.choice-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.choice-card:has(input:focus-visible) {
  outline: 3px solid rgba(185, 47, 104, 0.25);
  outline-offset: 2px;
}

.choice-indicator {
  display: grid;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  place-items: center;
  border: 1.5px solid #b5aab0;
  border-radius: 50%;
  background: #fff;
}

.choice-card input:checked + .choice-indicator {
  border: 5px solid var(--pink-deep);
}

.field-group {
  display: grid;
  gap: 8px;
  color: #463e44;
  font-size: 0.83rem;
  font-weight: 700;
}

.field-group > input,
.field-group textarea,
.field-group select {
  width: 100%;
  height: 54px;
  border: 1.5px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: #fff;
  outline: none;
  font-size: 0.93rem;
  font-weight: 500;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.field-group > input {
  padding: 0 17px;
}

.field-group > span small {
  margin-left: 5px;
  color: #9c9297;
  font-size: 0.7rem;
  font-weight: 500;
}

.comments-field {
  margin-top: 20px;
}

.field-group textarea {
  min-height: 96px;
  height: auto;
  padding: 13px 17px;
  line-height: 1.45;
  resize: vertical;
}

.field-group > input::placeholder,
.field-group textarea::placeholder {
  color: #a79da2;
}

.field-group > input:focus,
.field-group textarea:focus,
.field-group select:focus {
  border-color: var(--pink-deep);
  box-shadow: 0 0 0 4px rgba(185, 47, 104, 0.09);
}

.guest-counts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
  opacity: 1;
  transition: opacity 170ms ease, transform 170ms ease;
}

.guest-counts[hidden] {
  display: none;
}

.waiver-card {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 20px 1fr;
  gap: 11px;
  align-items: start;
  margin-top: 3px;
  padding: 15px 16px;
  border: 1px solid #ead8df;
  border-radius: 13px;
  color: #5d5158;
  background: #fff8fa;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.45;
}

.waiver-card input {
  width: 19px;
  height: 19px;
  margin: 0;
  accent-color: var(--pink-deep);
  cursor: pointer;
}

.waiver-card a {
  color: var(--pink-dark);
  font-weight: 700;
  text-underline-offset: 2px;
}

.waiver-card:has(input:focus-visible) {
  outline: 3px solid rgba(185, 47, 104, 0.18);
  outline-offset: 2px;
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: "";
  position: absolute;
  top: 21px;
  right: 18px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #655b60;
  border-bottom: 1.5px solid #655b60;
  pointer-events: none;
  transform: rotate(45deg);
}

.field-group select {
  padding: 0 42px 0 17px;
  appearance: none;
  cursor: pointer;
}

.send-button {
  display: flex;
  width: 100%;
  height: 58px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
  border: 0;
  border-radius: 15px;
  color: #fff;
  background: var(--pink-deep);
  box-shadow: 0 11px 22px rgba(185, 47, 104, 0.24);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.send-button:hover {
  background: var(--pink-dark);
  box-shadow: 0 13px 25px rgba(140, 34, 79, 0.28);
  transform: translateY(-2px);
}

.send-button:active {
  transform: translateY(0);
}

.send-button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.send-button:focus-visible {
  outline: 3px solid rgba(185, 47, 104, 0.26);
  outline-offset: 3px;
}

.send-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.form-status {
  min-height: 0;
  margin: 0;
  overflow: hidden;
  color: #526b55;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}

.form-status:not(:empty) {
  min-height: 22px;
  margin-top: 17px;
}

.form-status.error {
  color: #9c3755;
}

.success-panel {
  padding: clamp(22px, 4vw, 42px) 0;
  text-align: center;
  outline: none;
}

.success-panel[hidden],
.card-heading[hidden],
#rsvp-form[hidden],
.sock-reminder[hidden] {
  display: none;
}

.success-panel h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.35rem);
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.success-panel h2 span {
  color: var(--pink-deep);
}

.success-message {
  margin: 16px 0 0;
  color: var(--muted);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.08rem;
  font-style: italic;
  line-height: 1.5;
}

.sock-reminder {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
  padding: 17px 18px;
  border: 1px solid #ead8df;
  border-radius: 14px;
  color: #5d5158;
  background: #fff5f8;
  font-size: 0.86rem;
  line-height: 1.5;
  text-align: left;
}

.sock-reminder > span {
  font-size: 1.55rem;
}

.sock-reminder p {
  margin: 0;
}

.sock-reminder strong {
  color: var(--pink-dark);
}

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

@media (max-width: 1120px) {
  .invitation-shell {
    grid-template-columns: minmax(0, 1fr) minmax(410px, 0.78fr);
  }

  .celebration-panel {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .event-copy {
    display: grid;
    justify-items: center;
    text-align: center;
  }

  .event-details {
    width: min(100%, 390px);
    text-align: left;
  }

  .photo-wrap {
    width: min(100%, 360px);
    justify-self: center;
  }
}

@media (max-width: 820px) {
  .invitation-shell {
    display: block;
  }

  .celebration-panel {
    min-height: auto;
    padding: 62px 24px 70px;
  }

  .rsvp-panel {
    min-height: auto;
    padding: 64px 24px;
  }

  .rsvp-card {
    width: min(100%, 560px);
  }
}

@media (max-width: 520px) {
  .celebration-panel {
    gap: 35px;
    padding: 48px 18px 55px;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 4.4rem);
  }

  .event-details {
    margin-top: 36px;
  }

  .event-details > div {
    grid-template-columns: 73px 1fr;
  }

  .photo-wrap {
    width: min(88vw, 350px);
  }

  .rsvp-panel {
    padding: 42px 14px;
  }

  .rsvp-card {
    padding: 29px 20px 27px;
    border-radius: 25px;
  }

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

  .choice-card {
    justify-content: flex-start;
    padding-left: 20px;
  }

  .guest-counts {
    gap: 17px;
  }
}

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