/* Fundos e camadas por seção */

.hero-bg-photo {
  background-image: url(../assets/bg-01.png);
  background-size: cover;
  background-position: center;
}

.hero-bg-veil {
  background: hsl(205.4deg 100% 97% / 75%);
}

.hero-damask-layer {
  background-image: url(../assets/damask-bg-DqEQXggW.jpg);
  background-size: 600px;
  background-repeat: repeat;
}

/* Tom A — rosado claro */
.section-countdown {
  background-color: var(--section-blush-a-bottom);
  background-image: linear-gradient(
      var(--section-blush-a-top),
      var(--section-blush-a-mid) 48%,
      var(--section-blush-a-bottom)
    ),
    url(../assets/damask-bg-DqEQXggW.jpg);
  background-size: cover, cover;
  background-position: center, center;
}

.section-invite {
  background-color: var(--section-blush-a-bottom);
  background-image: linear-gradient(
      var(--section-blush-a-top),
      var(--section-blush-a-mid) 50%,
      var(--section-blush-a-bottom)
    ),
    url(../assets/ballroom-bg-CBDXM_Fx.jpg);
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}

.section-gifts {
  background-color: var(--section-blush-a-bottom);
  background-image: linear-gradient(
      var(--section-blush-a-top),
      var(--section-blush-a-mid) 50%,
      var(--section-blush-a-bottom)
    ),
    url(../assets/ballroom-bg-CBDXM_Fx.jpg);
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}

/* Tom B — rosado levemente mais quente */
.section-debutante {
  background-color: var(--section-blush-b-bottom);
  background-image: linear-gradient(
    var(--section-blush-b-top),
    var(--section-blush-b-mid) 55%,
    var(--section-blush-b-bottom)
  );
}

.section-debutante-damask {
  background-image: url(../assets/damask-bg-DqEQXggW.jpg);
  background-size: 500px;
  background-repeat: repeat;
}

.section-details {
  background-color: var(--section-blush-b-bottom);
  background-image: linear-gradient(
      var(--section-blush-b-top),
      var(--section-blush-b-mid) 48%,
      var(--section-blush-b-bottom)
    ),
    url(../assets/damask-bg-DqEQXggW.jpg);
  background-size: 800px, 800px;
  background-repeat: repeat, repeat;
}

.section-closing {
  background-color: var(--section-blush-b-bottom);
  background-image: linear-gradient(
      var(--section-blush-b-top),
      var(--section-blush-b-mid) 50%,
      var(--section-blush-b-bottom)
    ),
    url(../assets/mask-hero-Bspl5Uuw.jpg);
  background-size: cover;
  background-position: center;
}

.section-gifts-damask {
  background-image: url(../assets/damask-bg-DqEQXggW.jpg);
  background-size: 500px;
}

.debutante-photo {
  filter: saturate(0.85) contrast(1.05);
}

.debutante-photo-overlay-soft {
  background: linear-gradient(180deg, rgba(168, 200, 232, 0.16), rgba(232, 180, 200, 0.28));
}

.debutante-photo-overlay-vignette {
  background: radial-gradient(ellipse at center, transparent 48%, rgba(210, 226, 244, 0.65) 100%);
}

.invite-card {
  background-image: linear-gradient(rgba(248, 252, 255, 0.94), rgba(242, 236, 248, 0.97)),
    url(../assets/parchment-C2OGoWKH.jpg);
  background-size: cover;
  background-position: center;
  color: #4a5d72;
}

.invite-title {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rsvp-form {
  font-size: 1.0625rem;
}

.rsvp-form > p:first-of-type {
  font-size: 0.875rem;
  letter-spacing: 0.35em;
}

.rsvp-form > p:nth-of-type(2) {
  font-size: 1.125rem;
  line-height: 1.55;
}

.rsvp-form__label {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.875rem;
  letter-spacing: 0.28em;
}

.rsvp-form__input {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(248, 252, 255, 0.85);
  color: var(--foreground);
  font-family: inherit;
  font-size: 1.125rem;
  line-height: 1.45;
  min-height: 3rem;
}

.rsvp-form__input:focus {
  outline: none;
  border-color: var(--rose-gold);
  box-shadow: 0 0 0 2px var(--ring);
}

.rsvp-form__check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
}

.rsvp-form__check input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  accent-color: var(--rose-gold);
  flex-shrink: 0;
}

.rsvp-form__check span {
  font-size: 1.125rem;
  line-height: 1.5;
}

.rsvp-form__acompanhantes[hidden] {
  display: none;
}

.rsvp-form__convidados-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.rsvp-form__convidado-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.35rem 0.5rem;
  align-items: center;
}

.rsvp-form__convidado-row .rsvp-form__label {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.rsvp-form__convidado-row .rsvp-form__input {
  grid-column: 1;
}

.rsvp-form__remove {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  padding: 0.5rem 0;
  border: none;
  background: none;
  color: var(--muted-foreground);
  font-family: inherit;
  font-size: 0.9375rem;
  font-style: italic;
  text-decoration: underline;
  cursor: pointer;
}

.rsvp-form__remove:hover {
  color: var(--deep-rose);
}

.rsvp-form__add {
  margin-top: 1rem;
  padding: 0.65rem 0;
  border: none;
  background: none;
  color: var(--rose-gold);
  font-family: inherit;
  font-size: 0.875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
}

.rsvp-form__add:hover:not(:disabled) {
  color: var(--deep-rose);
}

.rsvp-form__add:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.rsvp-form__submit {
  padding: 1rem 1.5rem;
  min-height: 3.25rem;
  border: 1px solid var(--rose-gold);
  background: transparent;
  color: var(--rose-gold);
  font-family: inherit;
  font-size: 0.875rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}

.rsvp-form__feedback {
  font-size: 1.0625rem;
  line-height: 1.5;
}

.rsvp-form__submit:hover:not(:disabled) {
  background: var(--rose-gold);
  color: var(--primary-foreground);
}

.rsvp-form__submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.rsvp-form__feedback--success {
  color: var(--deep-rose);
}

.rsvp-form__feedback--error {
  color: #8b3a34;
}

.rsvp-form__feedback--pending {
  color: var(--muted-foreground);
}

#presenca-fields[hidden],
#presenca-instrucoes[hidden] {
  display: none;
}

.rsvp-form__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem 1rem;
  text-align: center;
  border: 1px solid var(--rose-gold);
  border-radius: var(--radius);
  background: rgba(248, 252, 255, 0.95);
}

.rsvp-form__success[hidden] {
  display: none;
}

.rsvp-form__success-icon {
  width: 3.5rem;
  height: 3.5rem;
  color: var(--rose-gold);
}

.rsvp-form__success-title {
  margin: 0;
  font-size: 1.125rem;
  letter-spacing: 0.28em;
  color: var(--rose-gold);
}

.rsvp-form__success-text {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--foreground);
}
