:root {
  color-scheme: light;
  --ink: #212026;
  --muted: #6d6875;
  --paper: #fff9f3;
  --rose: #f26d7d;
  --rose-dark: #c9435a;
  --mint: #2fbf8f;
  --mint-dark: #158866;
  --gold: #f5bd4f;
  --shadow: 0 24px 70px rgba(72, 48, 56, 0.2);
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 700;
  color: var(--ink);
  background: #fff7fa;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  inset: -20%;
  pointer-events: none;
  background-repeat: repeat;
  will-change: transform;
}

body::before {
  opacity: 0.1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cpath fill='%23f26d7d' d='M90 119C77 107 60 96 60 78c0-11 8-19 19-19 6 0 10 3 11 7 2-4 6-7 12-7 11 0 19 8 19 19 0 18-18 29-31 41Z'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  animation: float-hearts-up 26s linear infinite;
}

body::after {
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'%3E%3Cpath fill='%23c9435a' d='M130 166C112 150 89 134 89 111c0-14 11-25 25-25 8 0 14 4 16 10 2-6 8-10 16-10 14 0 25 11 25 25 0 23-23 39-41 55Z'/%3E%3C/svg%3E");
  background-size: 260px 260px;
  animation: float-hearts-side 34s linear infinite;
}

.page {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  place-items: center;
  overflow: hidden;
  padding: 28px;
}

@keyframes float-hearts-up {
  from {
    transform: translate3d(0, 0, 0) rotate(0.001deg);
  }

  to {
    transform: translate3d(90px, -180px, 0) rotate(0.001deg);
  }
}

@keyframes float-hearts-side {
  from {
    transform: translate3d(-40px, -20px, 0) rotate(0.001deg);
  }

  to {
    transform: translate3d(130px, -260px, 0) rotate(0.001deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after {
    animation: none;
  }
}

.invite-panel,
.success-panel,
.choice-panel,
.schedule-panel,
.meeting-panel,
.summary-panel {
  width: min(100%, 920px);
  padding: clamp(28px, 7vw, 64px);
  text-align: center;
}

.eyebrow {
  max-width: 100%;
  margin: 0 auto 12px;
  color: var(--rose-dark);
  font-size: clamp(2rem, 6.2vw, 5.4rem);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: 0;
  white-space: nowrap;
}

h1 {
  max-width: 100%;
  margin: 0 auto;
  font-size: clamp(2rem, 6.2vw, 5.4rem);
  line-height: 0.94;
  letter-spacing: 0;
  white-space: nowrap;
}

.subtitle {
  max-width: 42rem;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  line-height: 1.55;
}

.button-zone {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 172px;
  margin-top: 28px;
  gap: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 116px;
  min-height: 54px;
  padding: 0 26px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 1.04rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-yes {
  color: #fff;
  background: var(--mint);
  box-shadow: 0 14px 28px rgba(47, 191, 143, 0.28);
}

.button-yes:hover {
  background: var(--mint-dark);
}

.button-no {
  position: relative;
  color: #fff;
  background: var(--rose);
  box-shadow: 0 14px 28px rgba(242, 109, 125, 0.28);
}

.button-no.is-running {
  position: absolute;
  z-index: 2;
}

.button-no:hover {
  background: var(--rose-dark);
}

.farewell-message {
  max-width: 760px;
  margin: 0 auto;
  color: var(--rose-dark);
  font-size: clamp(1.7rem, 4vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.success-panel h1 {
  max-width: 100%;
  white-space: normal;
}

.name-field {
  display: block;
  width: min(100%, 520px);
  margin: 36px auto 0;
}

.name-field input {
  width: 100%;
  min-height: 62px;
  padding: 0 24px;
  border: 2px solid rgba(201, 67, 90, 0.26);
  border-radius: 8px;
  outline: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.34);
  font: inherit;
  font-size: clamp(1.35rem, 3vw, 2rem);
  text-align: center;
  box-shadow: 0 14px 30px rgba(201, 67, 90, 0.08);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.name-field input::placeholder {
  color: rgba(33, 32, 38, 0.32);
}

.name-field input:focus {
  border-color: rgba(201, 67, 90, 0.58);
  background: rgba(255, 255, 255, 0.54);
  box-shadow: 0 18px 36px rgba(201, 67, 90, 0.14);
}

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

.button-secondary {
  margin-top: 30px;
  color: #fff;
  background: var(--rose);
  box-shadow: 0 14px 28px rgba(242, 109, 125, 0.22);
}

.name-form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.button-next {
  margin-top: 24px;
  color: #fff;
  background: var(--rose);
  box-shadow: 0 14px 28px rgba(242, 109, 125, 0.22);
}

.button-whatsapp {
  margin-top: 30px;
  color: #fff;
  background: #25d366;
  box-shadow: 0 14px 28px rgba(37, 211, 102, 0.22);
}

.button-whatsapp:hover {
  background: #1fad54;
}

.summary-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 30px;
  gap: 12px;
}

.summary-actions .button {
  margin-top: 0;
}

.button-form {
  color: #fff;
  background: var(--rose);
  box-shadow: 0 14px 28px rgba(242, 109, 125, 0.22);
}

.button-form:hover {
  background: var(--rose-dark);
}

.form-status {
  min-height: 1.4em;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  line-height: 1.35;
}

.choice-panel h1 {
  max-width: 860px;
  white-space: normal;
}

.schedule-panel h1 {
  max-width: 900px;
  white-space: normal;
}

.meeting-panel h1 {
  max-width: 820px;
  font-size: clamp(1.55rem, 3.6vw, 3.1rem);
  line-height: 1.06;
  white-space: normal;
}

.meeting-field {
  display: block;
  width: min(100%, 620px);
  margin: 34px auto 0;
}

.meeting-field textarea {
  width: 100%;
  min-height: 132px;
  padding: 18px 22px;
  resize: vertical;
  border: 2px solid rgba(201, 67, 90, 0.26);
  border-radius: 8px;
  outline: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.34);
  font: inherit;
  font-size: clamp(1.2rem, 2.6vw, 1.8rem);
  line-height: 1.25;
  box-shadow: 0 14px 30px rgba(201, 67, 90, 0.08);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.meeting-field textarea::placeholder {
  color: rgba(33, 32, 38, 0.32);
}

.meeting-field textarea:focus {
  border-color: rgba(201, 67, 90, 0.58);
  background: rgba(255, 255, 255, 0.54);
  box-shadow: 0 18px 36px rgba(201, 67, 90, 0.14);
}

.meeting-form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.summary-panel h1 {
  max-width: 900px;
  font-size: clamp(1.7rem, 4.2vw, 3.8rem);
  line-height: 1.08;
  white-space: normal;
}

.choice-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 860px);
  margin: 32px auto 0;
  gap: 12px;
}

.choice-option {
  min-height: 76px;
  padding: 10px 12px;
  border: 2px solid rgba(201, 67, 90, 0.18);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.42);
  font: inherit;
  font-size: clamp(0.95rem, 1.7vw, 1.2rem);
  line-height: 1.15;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(201, 67, 90, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.choice-option:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 67, 90, 0.42);
  background: rgba(255, 255, 255, 0.66);
}

.schedule-form {
  display: grid;
  width: min(100%, 620px);
  margin: 36px auto 0;
  gap: 16px;
}

.calendar-field {
  display: grid;
  gap: 8px;
  color: var(--rose-dark);
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  text-align: left;
}

.calendar-field input,
.calendar-field select {
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  border: 2px solid rgba(201, 67, 90, 0.24);
  border-radius: 8px;
  outline: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.5);
  font: inherit;
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  box-shadow: 0 14px 30px rgba(201, 67, 90, 0.08);
}

.calendar-field input:focus,
.calendar-field select:focus {
  border-color: rgba(201, 67, 90, 0.58);
  background: rgba(255, 255, 255, 0.7);
}

.schedule-note {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  line-height: 1.35;
}

@media (max-width: 540px) {
  .page {
    padding: 18px;
  }

  .invite-panel,
  .success-panel,
  .choice-panel,
  .schedule-panel,
  .meeting-panel,
  .summary-panel {
    padding: 30px 18px;
  }

  .button-zone {
    min-height: 210px;
    gap: 12px;
  }

  .button {
    min-width: 104px;
    padding: 0 20px;
  }

  .choice-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 24px;
    gap: 7px;
  }

  .choice-option {
    min-height: 72px;
    padding: 8px 6px;
    font-size: 0.78rem;
  }

  .schedule-form {
    margin-top: 24px;
  }

}
