/* K & A — rsvp.html page styles */

    /* ===== DEADLINE BANNER ===== */
    .deadline {
      display: inline-flex;
      align-items: center;
      gap: 14px;
      padding: 12px 24px;
      background: var(--pink);
      color: var(--cream);
      border-radius: 999px;
      margin-top: 28px;
      font-family: var(--sans);
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.22em;
      text-transform: uppercase;
      white-space: nowrap;
    }

    .deadline .dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--butter);
      animation: pulse 2s infinite;
    }

    @keyframes pulse {

      0%,
      100% {
        opacity: 1;
        transform: scale(1);
      }

      50% {
        opacity: 0.6;
        transform: scale(0.8);
      }
    }

    /* ===== RSVP SHELL ===== */
    .rsvp-shell {
      max-width: 920px;
      margin: 0 auto;
      padding: 80px 40px 80px;
    }

    /* ===== CARD & STEPS ===== */
    .rsvp-card {
      background: var(--cream);
      border: 1px solid var(--rule);
      border-radius: 6px;
      overflow: hidden;
    }

    .steps {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      background: var(--nav-active);
    }

    .step {
      padding: 20px 24px;
      position: relative;
      cursor: default;
      display: flex;
      flex-direction: column;
      gap: 4px;
      border-right: 1px solid rgba(42, 15, 28, 0.12);
      transition: background 0.18s;
    }

    .step:last-child {
      border-right: 0;
    }

    .step .n {
      font-family: var(--serif);
      font-style: italic;
      font-size: 13px;
      color: rgba(42, 15, 28, 0.5);
    }

    .step .l {
      font-family: var(--sans);
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: rgba(42, 15, 28, 0.65);
    }

    .step.is-active {
      background: var(--pink);
    }

    .step.is-active .n,
    .step.is-active .l {
      color: var(--cream);
    }

    .step.is-complete .n,
    .step.is-complete .l {
      color: var(--pink);
    }

    /* ===== FORM BODY ===== */
    .form-body {
      padding: 48px 56px 56px;
    }

    .step-pane {
      display: none;
    }

    .step-pane.is-active {
      display: block;
      animation: fadeUp 0.35s cubic-bezier(.22, .68, 0, 1);
    }

    .step-pane>h2 {
      font-family: var(--serif);
      font-weight: 900;
      font-size: 56px;
      line-height: 1;
      color: var(--pink);
      margin: 0 0 8px;
      letter-spacing: -0.02em;
    }

    .step-pane>h2 em {
      font-style: italic;
      font-weight: 400;
      color: var(--orange);
    }

    .step-sub {
      font-family: var(--serif);
      font-style: italic;
      font-size: 18px;
      color: var(--ink-2);
      margin: 0 0 36px;
    }

    /* ===== SEARCH FOUND / ERROR ===== */
    .search-found {
      display: none;
      margin-top: 20px;
      background: rgba(110, 138, 82, 0.1);
      border: 1.5px solid var(--green-deep);
      border-radius: 10px;
      padding: 18px 22px;
      display: none;
      align-items: center;
      gap: 16px;
    }

    .search-found.visible {
      display: flex;
    }

    .found-tick {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: var(--green-deep);
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: var(--sans);
      font-size: 18px;
      font-weight: 700;
      flex-shrink: 0;
    }

    .found-label {
      font-family: var(--sans);
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--green-deep);
      margin-bottom: 4px;
    }

    .found-names {
      font-family: var(--serif);
      font-size: 20px;
      font-weight: 700;
      color: var(--ink);
    }

    .search-error {
      display: none;
      margin-top: 16px;
      background: rgba(225, 29, 90, 0.08);
      border: 1.5px solid var(--pink);
      border-radius: 8px;
      padding: 14px 18px;
      font-family: var(--sans);
      font-size: 14px;
      color: var(--pink-2);
      line-height: 1.5;
    }

    .search-error.visible {
      display: block;
    }

    .search-error a {
      color: var(--pink-2);
      text-decoration: underline;
    }

    /* ===== ATTENDANCE CARDS ===== */
    .att-card {
      background: #fff;
      border: 1.5px solid var(--rule);
      border-radius: 12px;
      padding: 24px 28px;
      margin-bottom: 14px;
      display: flex;
      align-items: center;
      gap: 24px;
      flex-wrap: wrap;
    }

    .att-name {
      font-family: var(--serif);
      font-weight: 700;
      font-size: 22px;
      color: var(--ink);
      flex: 0 0 220px;
      line-height: 1.2;
    }

    .att-name .first {
      color: var(--pink);
      display: block;
    }

    .att-pills {
      flex: 1;
      min-width: 260px;
    }

    .att-pills .radio-pill .pill {
      padding: 14px 18px;
    }

    /* ===== ATTENDEE DETAIL SECTIONS ===== */
    .att-section {
      padding-top: 40px;
    }

    .att-section.has-rule {
      border-top: 1px solid var(--rule);
      margin-top: 40px;
    }

    .att-section-head {
      display: flex;
      align-items: baseline;
      gap: 16px;
      margin-bottom: 28px;
    }

    .att-num {
      font-family: var(--serif);
      font-style: italic;
      font-size: 14px;
      color: var(--ink-3);
      white-space: nowrap;
      flex-shrink: 0;
    }

    .att-section-name {
      font-family: var(--serif);
      font-weight: 700;
      font-size: 32px;
      color: var(--pink);
      margin: 0;
      line-height: 1;
    }

    .att-section-name em {
      font-style: italic;
      font-weight: 400;
      color: var(--orange);
    }

    /* Shuttle pills — don't force equal width so 3 pills sit comfortably */
    .shuttle-group {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }

    .shuttle-group .radio-pill {
      flex: 0 1 auto;
      min-width: 0;
    }

    .shuttle-group .radio-pill .pill {
      padding: 12px 16px;
      white-space: nowrap;
    }

    /* event toggle row (shuttle / BBQ) */
    .event-toggle {
      display: flex;
      align-items: center;
      gap: 16px;
      padding: 18px 22px;
      background: #fff;
      border: 1.5px solid var(--rule);
      border-radius: 12px;
      cursor: pointer;
      transition: all 0.18s cubic-bezier(.22, .68, 0, 1);
      margin-bottom: 10px;
    }

    .event-toggle:hover {
      border-color: var(--ink-2);
    }

    .event-toggle.is-on {
      border-color: var(--pink);
      background: rgba(225, 29, 90, 0.04);
    }

    .event-toggle .ev-date {
      font-family: var(--serif);
      font-weight: 900;
      font-size: 28px;
      color: var(--green-deep);
      line-height: 1;
    }

    .event-toggle .ev-date .dn {
      display: block;
      font-family: var(--sans);
      font-size: 9px;
      letter-spacing: 0.24em;
      text-transform: uppercase;
      color: var(--ink-3);
      font-weight: 600;
      margin-bottom: 4px;
    }

    .event-toggle .ev-body {
      flex: 1;
    }

    .event-toggle .ev-body h4 {
      font-family: var(--serif);
      font-weight: 900;
      font-size: 20px;
      margin: 0;
      color: var(--pink);
    }

    .event-toggle .ev-body h4 em {
      font-style: italic;
      font-weight: 400;
      color: var(--orange);
    }

    .event-toggle .ev-body .meta {
      font-family: var(--sans);
      font-size: 13px;
      color: var(--ink-3);
      margin-top: 3px;
    }

    .switch {
      width: 48px;
      height: 28px;
      background: var(--rule);
      border-radius: 999px;
      position: relative;
      transition: background 0.18s;
    }

    .switch::after {
      content: "";
      position: absolute;
      top: 3px;
      left: 3px;
      width: 22px;
      height: 22px;
      border-radius: 50%;
      background: #fff;
      transition: transform 0.22s cubic-bezier(.22, .68, 0, 1);
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    }

    .event-toggle.is-on .switch {
      background: var(--pink);
    }

    .event-toggle.is-on .switch::after {
      transform: translateX(20px);
    }

    /* ===== CONFIRM BLOCKS ===== */
    .confirm-block {
      background: var(--butter-2);
      border: 1px solid var(--rule);
      border-radius: 8px;
      padding: 20px 24px;
      margin-bottom: 16px;
    }

    .confirm-block-label {
      font-family: var(--sans);
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.24em;
      text-transform: uppercase;
      color: var(--pink);
      margin-bottom: 12px;
    }

    .confirm-person {
      margin-bottom: 14px;
    }

    .confirm-person:last-child {
      margin-bottom: 0;
    }

    .confirm-name {
      font-family: var(--serif);
      font-weight: 700;
      font-size: 18px;
      color: var(--ink);
      margin-bottom: 4px;
    }

    .confirm-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 6px;
    }

    .confirm-chip {
      font-family: var(--sans);
      font-size: 11px;
      font-weight: 600;
      padding: 4px 10px;
      border-radius: 999px;
      background: var(--cream);
      border: 1px solid var(--rule);
      color: var(--ink-2);
    }

    .confirm-chip.song {
      border-color: var(--pink);
      color: var(--pink);
    }

    .confirm-notes {
      font-family: var(--serif);
      font-style: italic;
      font-size: 14px;
      color: var(--ink-3);
      margin-top: 4px;
    }

    .hashtag-callout {
      margin-top: 24px;
      padding: 16px 20px;
      border: 1.5px dashed var(--rule);
      border-radius: 8px;
      text-align: center;
    }

    .hashtag-callout .hashtag {
      font-family: var(--serif);
      font-style: italic;
      font-size: 22px;
      color: var(--pink);
    }

    .hashtag-callout p {
      font-size: 13px;
      color: var(--ink-3);
      margin: 6px 0 0;
    }

    /* ===== FORM FOOTER ===== */
    .form-foot {
      margin-top: 40px;
      padding-top: 28px;
      border-top: 1px solid var(--rule);
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
    }

    .step-progress {
      font-family: var(--sans);
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.22em;
      text-transform: uppercase;
      color: var(--ink-3);
    }

    .step-progress strong {
      color: var(--ink);
    }

    .form-buttons {
      display: flex;
      gap: 12px;
    }

    /* ===== SUCCESS (done) ===== */
    #pane-done {
      text-align: center;
      padding: 24px 0;
    }

    .seal {
      width: 120px;
      height: 120px;
      margin: 0 auto 28px;
      border-radius: 50%;
      background: var(--pink);
      color: var(--cream);
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: var(--serif);
      font-style: italic;
      font-weight: 700;
      font-size: 20px;
      line-height: 1.1;
      transform: rotate(-6deg);
      box-shadow: 0 6px 24px rgba(225, 29, 90, 0.35);
    }

    #pane-done h2 {
      font-size: 56px;
      margin-bottom: 8px;
    }

    #pane-done .step-sub {
      max-width: 50ch;
      margin: 0 auto 28px;
    }

    .done-summary {
      background: var(--butter-2);
      border: 1.5px solid var(--rule);
      border-radius: 10px;
      padding: 24px 28px;
      max-width: 480px;
      margin: 0 auto;
      text-align: left;
    }

    .done-summary h4 {
      font-family: var(--sans);
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.24em;
      text-transform: uppercase;
      color: var(--pink);
      margin: 0 0 14px;
    }

    .done-summary dl {
      margin: 0;
      display: grid;
      grid-template-columns: 1fr 1.6fr;
      row-gap: 10px;
    }

    .done-summary dt {
      font-family: var(--sans);
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--ink-3);
    }

    .done-summary dd {
      margin: 0;
      font-family: var(--serif);
      font-style: italic;
      font-size: 16px;
      color: var(--green-deep);
    }

    /* ===== BELOW CARD ===== */
    .below-card {
      margin-top: 40px;
      text-align: center;
    }

    .below-card p {
      font-family: var(--serif);
      font-style: italic;
      font-size: 17px;
      color: var(--ink-2);
    }

    /* ===== INLINE-STYLE EXTRACTIONS (formerly style="" in the row/confirm templates) ===== */
    .child-badge {
      display: inline-block;
      font-family: var(--sans);
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      padding: 3px 10px;
      border-radius: 999px;
      background: var(--green-pale);
      color: var(--green-text);
      margin-left: 12px;
    }

    .confirm-chip.is-child {
      background: var(--green-pale);
      color: var(--green-text);
      border-color: var(--green-mid);
    }

    .confirm-notes.is-decline {
      font-size: 15px;
      color: var(--ink-2);
    }

    .couple-note-field {
      margin-top: 24px;
    }

    /* ===== RESPONSIVE ===== */
    @media (max-width: 768px) {
      .rsvp-shell {
        padding: 0 16px 72px;
      }

      .form-body {
        padding: 36px 28px 40px;
      }

      .step-pane>h2 {
        font-size: 44px;
      }

      .steps {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
      }

      .step {
        flex: 1 0 auto;
        padding: 16px 18px;
        min-width: 0;
      }

      .step .l {
        font-size: 10px;
      }
    }

    @media (max-width: 600px) {
      .rsvp-shell {
        padding: 0 12px 56px;
      }

      .form-body {
        padding: 28px 20px 32px;
      }

      .step-pane>h2 {
        font-size: 36px;
      }

      .step-sub {
        font-size: 16px;
      }

      .steps {
        border-radius: 0;
      }

      .step {
        padding: 14px 14px;
      }

      .step .l {
        display: none;
      }

      .step .n {
        font-size: 15px;
      }

      .att-card {
        gap: 16px;
        padding: 20px;
      }

      .att-name {
        flex: 0 0 auto;
      }

      .att-pills {
        min-width: 0;
        width: 100%;
      }

      .form-foot {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
      }

      .form-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
      }

      .form-buttons .btn {
        justify-content: center;
      }

      #btn-back[style*="display:none"]~.btn,
      .form-buttons:has(#btn-back[style*="display:none"]) .btn {
        grid-column: 1 / -1;
      }

      .step-progress {
        text-align: center;
      }

      .event-toggle {
        gap: 12px;
        padding: 14px 16px;
      }

      .event-toggle .ev-date {
        font-size: 22px;
      }

      .shuttle-group {
        gap: 8px;
      }

      .shuttle-group .radio-pill .pill {
        padding: 10px 12px;
        font-size: 13px;
      }

      .confirm-block {
        padding: 16px 18px;
      }
    }

    @media (max-width: 480px) {
      .step-pane>h2 {
        font-size: 30px;
      }

      .done-summary dl {
        grid-template-columns: 1fr;
      }

      .done-summary dt {
        margin-top: 8px;
      }

      .done-summary dd {
        margin-left: 0;
      }
    }
