/* Presentation and dimensions only: preserve RSVP workflow and messages. */
html, body { height: auto; min-height: 0; margin: 0; overflow: visible; }
body { display: flow-root; padding: 0; }
body > .card {
  position: relative; inset: auto; width: 100% !important; max-width: 760px;
  height: auto !important; min-height: 0; max-height: none; overflow: visible;
  margin: 0 auto; padding: 0; border-width: 0;
}
body > .card form { height: auto !important; min-height: 0; max-height: none; }
.card .card-header, .card .card-body, .card .card-footer,
.card .couple-message, .card .couple-message p, .card .guest-confirm,
.card .guest-resume, .card .guests-message {
  height: auto; max-height: none; overflow: visible; overflow-wrap: anywhere;
}
.card .card-footer { flex-wrap: wrap; gap: 12px; width: 100%; }
.card .row { margin-left: 0; margin-right: 0; }
.card textarea { width: 100%; max-width: 100%; min-height: 180px; height: auto; resize: vertical; box-sizing: border-box; }
@media (max-width: 480px) {
  body > .card { padding: 0 4px; }
  .card .card-header { padding-left: 8px; padding-right: 8px; }
  .card .adults-guests, .card .children-guests { padding: 0 6px; }
  .card .card-footer { padding: 18px 10px; }
}
/* Inactive screens must not contribute height during Angular's fade transition. */
.card form.ng-hide { display: none !important; }
@media (prefers-reduced-motion: reduce) { .card .fade { transition: none; } }

.card[ng-cloak] { visibility: hidden; }

/* The form blends into the invitation's cream panel. */
:root { --card-bg-color: transparent; }
.card form > br { display: none; }
.card .card-header { padding-top: 0; padding-bottom: 16px; }
.card .card-instruction-lg { margin-bottom: 24px; }
.card .card-footer { padding: 20px 0; }
.card .card-footer:has(button:disabled):not(:has(button:not(:disabled))) { display: none; }
.card .padding-top-30 { padding-top: 24px; }
.card .instruccion { margin: 0; }

/* End each screen at its last control instead of adding a second bottom gap. */
.card .card-footer { margin: 0; padding: 16px 0 0; }
.card .card-footer .back-button, .card .card-footer .continue-button,
.card .card-footer .back-resume-button, .card .card-footer .continue-resume-button { padding-top: 0 !important; }
.card .card-footer .mobile-top-10 { margin-top: 0; }

/* RSVP actions use the invitation's warm palette. */
:root {
  --btn-bg-color: #78654f;
  --btn-border-color: #78654f;
  --btn-font-color: #f7f3ed;
  --btn-hover-bg-color: #62594d;
  --btn-hover-border-color: #62594d;
  --btn-hover-font-color: #f7f3ed;
  --btn-disabled-bg-color: #d3c6b5;
  --btn-disabled-border-color: #d3c6b5;
}

/* The iframe grows to fit alerts, including their confirmation button. */
.swal2-container { padding: 16px !important; overflow: visible !important; }
.swal2-popup { max-height: none !important; margin: 0 !important; }

/* Match the invitation's type hierarchy and warm ink. */
:root {
  --body-font-family: 'Baskervville', Georgia, serif;
  --titles-font-family: 'Cormorant Garamond', Georgia, serif;
  --simple-font-family: 'Baskervville', Georgia, serif;
  --body-color: #62594d;
  --titles-color: #62594d;
  --subtitles-color: #62594d;
  --guest-name-color: #62594d;
  --tickets-title-color: #62594d;
  --total-tickets-color: #62594d;
  --confirm-category-color: #62594d;
  --total-confirm-color: #62594d;
  --check-color: #62594d;
  --inputs-font-color: #62594d;
  --placeholder-color: #8a755c;
  --instruction-font-color: #62594d;
  --instruction-highlighted-font-color: #8a755c;
}
body { font-size: 13px; line-height: 1.8; }
.card .card-header, .card .card-header.sm { font-size: 26px; line-height: 1.3; font-weight: 400; letter-spacing: .075em; }
.card .card-header.micro { font-size: 20px; letter-spacing: .04em; }
.card .card-instruction-lg { font-size: 14px; line-height: 1.8; text-transform: none; }
.card .guest-header { font-size: 18px; line-height: 1.5; }
.card .guest-kind, .card .guest-kind.sm, .card h6 { font-size: 20px; font-weight: 400; line-height: 1.4; }
.card .guest-name, .card .guest-name.sm { font-family: var(--body-font-family); font-size: 13px; line-height: 1.8; text-transform: none; }
.card .instruccion { font-size: 13px; line-height: 1.8; }
.card input, .card textarea, .card select { font-size: 14px; line-height: 1.8; }
.card .btn-primary { font-size: 12px; letter-spacing: .09em; }
.swal2-title { font-family: var(--titles-font-family); font-size: 28px; font-weight: 400; color: #62594d; }
.swal2-content { font-family: var(--body-font-family); font-size: 14px; line-height: 1.8; color: #62594d; }
@media (max-width: 600px) {
  .card .card-header, .card .card-header.sm { font-size: 24px; }
  .card .card-header.micro { font-size: 20px; }
}

/* Inverted palette across all RSVP screens; inputs retain dark ink. */
:root {
  --body-color: #f7f3ed;
  --titles-color: #f7f3ed;
  --subtitles-color: #f7f3ed;
  --guest-name-color: #f7f3ed;
  --tickets-title-color: #f7f3ed;
  --total-tickets-color: #f7f3ed;
  --confirm-category-color: #f7f3ed;
  --total-confirm-color: #f7f3ed;
  --check-color: #f7f3ed;
  --instruction-font-color: #f7f3ed;
  --instruction-highlighted-font-color: #e5dbcd;
  --hr-color: rgba(247,243,237,.2);
  --inputs-bg-color: #f7f3ed;
  --inputs-border-color: #d3c6b5;
  --btn-bg-color: #f7f3ed;
  --btn-border-color: #d3c6b5;
  --btn-font-color: #62594d;
  --btn-hover-bg-color: #e5dbcd;
  --btn-hover-border-color: #e5dbcd;
  --btn-hover-font-color: #62594d;
}
.card { color: var(--body-color); }

/* Shared rows align category headings and pass counts on every viewport. */
.card .tickets-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 24px; width: 100%; padding: 0; }
.card .tickets-summary > div { width: 100%; max-width: none; margin: 0; padding: 0; }
.card .tickets-summary h6 { margin: 0 0 12px; padding: 0; line-height: 1.4; }
.card .tickets-summary .total { margin: 0; line-height: 1.8; }
@media (max-width: 480px) { .card .tickets-summary { gap: 16px; } }
