/* ============================================================
   ROYAL HERITAGE THEME - RSVP STYLES
   ============================================================ */

.rsvp-body {
    background-color: var(--bg-color);
    color: var(--text-dark);
}

/* ========================================= */
/* RSVP HEADER                               */
/* ========================================= */

.rsvp-header {
    position: relative;
    width: 100%;
    min-height: clamp(320px, 46svh, 480px);
    background: url('../images/bg-rsvp-palace-invite.webp') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rsvp-header .overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 38%, rgba(212, 175, 55, 0.12), transparent 25rem),
        linear-gradient(to bottom, rgba(12,4,4,0.18), rgba(12,4,4,0.92));
}

.header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 6.5rem 1rem 4rem;
}

.header-content h1 {
    color: var(--ivory);
    font-family: var(--font-display);
    font-size: clamp(3.2rem, 11vw, 7.5rem);
    font-weight: 500;
    letter-spacing: 0.12em;
    line-height: 0.9;
    text-shadow: 0 18px 58px rgba(0, 0, 0, 0.72), 0 0 32px rgba(212, 175, 55, 0.18);
}

.header-content p {
    color: var(--text-light);
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    margin-top: 0.9rem;
}

.rsvp-eyebrow {
    color: var(--gold-accent) !important;
    font-family: var(--font-body);
    font-size: 0.74rem !important;
    font-weight: 900;
    letter-spacing: 0.22em;
    margin-bottom: 0.9rem;
    text-transform: uppercase;
}

/* ========================================= */
/* MAIN FORM CONTAINER                       */
/* ========================================= */

.main-container {
    max-width: 700px;
    margin: -58px auto 88px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.form-card {
    background: rgba(26, 8, 8, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 50px 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    position: relative;
}

.form-card::before {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(212,175,55,0.1);
    pointer-events: none;
    border-radius: calc(var(--radius) - 2px);
}

.form-heading {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--text-dark);
}

/* ========================================= */
/* FORM INPUTS                               */
/* ========================================= */

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    font-size: 1.2rem;
}

.input-styled {
    width: 100%;
    padding: 15px 20px;
    background: #1A0808;
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: var(--radius);
    color: var(--text-dark);
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-styled:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(212,175,55,0.15);
    background: #2A0808;
}

.input-styled::placeholder {
    color: rgba(211, 196, 163, 0.5);
}

/* Phone Input Special Layout */
.phone-wrapper {
    display: flex;
    gap: 10px;
}

.code-select {
    flex: 0 0 120px;
    cursor: pointer;
}

.phone-input {
    flex: 1;
}

/* ========================================= */
/* ATTENDANCE TOGGLES                        */
/* ========================================= */

.pill-group {
    display: flex;
    gap: 15px;
}

.pill-btn {
    flex: 1;
    cursor: pointer;
}

.pill-btn input {
    display: none;
}

.pill-content {
    display: block;
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 50px;
    color: var(--text-light);
    font-weight: 700;
    transition: all 0.3s ease;
}

.pill-btn input:checked + .pill-content {
    background: rgba(212,175,55,0.15);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 5px 15px rgba(212,175,55,0.2);
    transform: translateY(-2px);
}

.decline-pill input:checked + .pill-content {
    background: rgba(139,26,26,0.15);
    border-color: var(--ruby);
    color: #ff8c8c;
    box-shadow: 0 5px 15px rgba(139,26,26,0.2);
}

/* ========================================= */
/* EVENT CARDS                               */
/* ========================================= */

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.event-option-card {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #1A0808;
    border: 1px solid rgba(212,175,55,0.2);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
}

.event-option-card:hover {
    transform: translateY(-2px);
    border-color: rgba(212,175,55,0.5);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.event-option-card:has(input:checked) {
    border-color: var(--primary);
    background: rgba(212,175,55,0.05);
}

.card-icon-container {
    flex: 0 0 70px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.event-svg-small {
    width: 55px;
    height: auto;
    filter: drop-shadow(0 2px 5px rgba(212,175,55,0.3));
}

.card-text-container {
    flex: 1;
    padding-left: 15px;
}

.evt-title {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.evt-date {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
}

.evt-loc {
    display: inline-block;
    margin-top: 5px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-dark);
}

.check-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(212,175,55,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0C0404;
    color: transparent;
    transition: all 0.3s ease;
}

.event-check:checked ~ .check-icon {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
}

.select-all-btn {
    float: right;
    font-size: 0.85rem;
    font-family: 'Lato', sans-serif;
    color: var(--text-light);
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0;
}

.select-all-circle {
    display: inline-block;
    width: 12px; height: 12px;
    border-radius: 50%;
    border: 1px solid var(--primary);
    margin-right: 5px;
    vertical-align: middle;
}

/* ========================================= */
/* DATE TIME ROW                             */
/* ========================================= */

.date-time-row {
    display: flex;
    gap: 20px;
}

input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.5;
    cursor: pointer;
}

/* ========================================= */
/* VIP SUMMARY CARD                          */
/* ========================================= */

.vip-pass {
    background: #1A0808;
    border-radius: var(--radius);
    padding: 40px;
    border-top: 5px solid var(--primary);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    position: relative;
}

.summary-icon {
    width: 70px; height: 70px;
    background: rgba(212,175,55,0.15);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: -75px auto 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    border: 2px solid #1A0808;
}

.summary-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.summary-subtitle {
    color: var(--text-light);
    margin-bottom: 30px;
}

.highlight-text {
    color: var(--primary);
    font-weight: 700;
}

.summary-details {
    background: rgba(12,4,4,0.5);
    border-radius: 8px;
    padding: 25px;
    text-align: left;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(212,175,55,0.1);
}

.detail-row:last-child {
    border-bottom: none;
    flex-direction: column;
    align-items: flex-start;
}

.detail-label {
    font-size: 0.8rem;
    color: var(--text-light);
    letter-spacing: 1px;
}

.detail-value {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--text-dark);
}

.events-pill-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.event-pill {
    background: rgba(212,175,55,0.15);
    color: var(--primary);
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    border: 1px solid rgba(212,175,55,0.3);
}

.reset-container {
    margin-top: 25px;
}

.reset-link {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.reset-link:hover {
    color: var(--ruby);
}

/* ========================================= */
/* POPUP MODAL                               */
/* ========================================= */

.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.popup-content {
    background: #1A0808;
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: var(--radius);
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: scale(0.9);
    opacity: 0;
}

.popup-icon {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: rgba(212,175,55,0.15);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
}

/* ========================================= */
/* SUB-GUESTS                                */
/* ========================================= */

.sub-guest-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(212,175,55,0.2);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* ========================================= */
/* FLOATING MOBILE BUTTON                    */
/* ========================================= */

.floating-next-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: #000;
    border: none;
    font-size: 1.5rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    z-index: 999;
    cursor: pointer;
}

/* ========================================= */
/* RESPONSIVE                                */
/* ========================================= */

@media (max-width: 768px) {
    .date-time-row { flex-direction: column; gap: 0; }
    .form-card { padding: 30px 20px; }
    .pill-group { flex-direction: column; gap: 10px; }
}

@media (max-width: 600px) {
    .floating-next-btn { display: flex; align-items: center; justify-content: center; }
    .main-container { margin-top: -38px; }
    .rsvp-header { min-height: 360px; }
    .form-title-rsvp { font-size: 2rem; }
    .event-option-card { padding: 15px; }
    .card-icon-container { flex: 0 0 50px; }
    .event-svg-small { width: 40px; }
}

/* ============================================================
   ROYAL RSVP REFINEMENT
   ============================================================ */

.rsvp-body {
    background:
        linear-gradient(90deg, rgba(8, 2, 2, 0.92), rgba(18, 6, 6, 0.74)),
        url("../images/bg-rsvp-palace-invite.webp") center/cover fixed;
}

.form-card {
    background:
        linear-gradient(145deg, rgba(255, 247, 232, 0.07), rgba(255, 247, 232, 0.018)),
        rgba(18, 5, 5, 0.9);
    box-shadow:
        0 34px 100px rgba(0, 0, 0, 0.58),
        inset 0 1px 0 rgba(255, 247, 232, 0.07);
}

.checkbox-group {
    gap: 1rem;
}

.event-selection-label {
    align-items: center;
    display: flex !important;
    gap: 1rem;
    justify-content: space-between;
}

.select-all-btn {
    align-items: center;
    background: rgba(255, 247, 232, 0.055);
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 999px;
    display: inline-flex;
    float: none;
    font-weight: 900;
    gap: 0.35rem;
    padding: 0.45rem 0.7rem;
}

.royal-rsvp-event {
    --event-accent: var(--primary);
    align-items: center;
    background:
        radial-gradient(circle at 82% 50%, color-mix(in srgb, var(--event-accent), transparent 74%), transparent 10rem),
        linear-gradient(135deg, rgba(255, 247, 232, 0.055), rgba(255, 247, 232, 0.012)),
        rgba(13, 4, 4, 0.9);
    border: 1px solid color-mix(in srgb, var(--event-accent), #d4af37 35%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 247, 232, 0.035),
        0 18px 42px rgba(0, 0, 0, 0.32);
    display: grid;
    gap: 1.05rem;
    grid-template-columns: 34px 92px minmax(0, 1fr);
    min-height: 122px;
    overflow: hidden;
    padding: 0.95rem 1.05rem;
    position: relative;
}

.royal-rsvp-event::before {
    background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--event-accent), transparent 58%), transparent);
    content: "";
    height: 140%;
    left: 0;
    opacity: 0.64;
    position: absolute;
    top: -20%;
    width: 3px;
}

.royal-rsvp-event:hover {
    border-color: color-mix(in srgb, var(--event-accent), white 26%);
    box-shadow:
        0 24px 62px rgba(0, 0, 0, 0.46),
        0 0 32px color-mix(in srgb, var(--event-accent), transparent 76%);
}

.royal-rsvp-event:not(:has(.event-check:checked)) {
    background:
        radial-gradient(circle at 18% 50%, color-mix(in srgb, var(--event-accent), transparent 86%), transparent 8rem),
        linear-gradient(135deg, rgba(255, 247, 232, 0.045), rgba(255, 247, 232, 0.01)),
        rgba(13, 4, 4, 0.9);
}

.royal-rsvp-event .event-check {
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: absolute;
}

.rsvp-check-mark {
    align-items: center;
    background: rgba(5, 1, 1, 0.62);
    border: 1px solid rgba(212, 175, 55, 0.46);
    border-radius: 999px;
    color: transparent;
    display: flex;
    height: 28px;
    justify-content: center;
    position: relative;
    transition: all 0.25s ease;
    width: 28px;
    z-index: 1;
}

.royal-rsvp-event:has(.event-check:checked) {
    background:
        radial-gradient(circle at 82% 50%, color-mix(in srgb, var(--event-accent), transparent 58%), transparent 11rem),
        linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(255, 247, 232, 0.02)),
        rgba(18, 5, 5, 0.94);
}

.royal-rsvp-event:has(.event-check:checked) .rsvp-check-mark {
    background: var(--primary);
    color: #160606;
    transform: scale(1.05);
}

.royal-rsvp-event .card-content {
    min-width: 0;
    padding: 0;
    position: relative;
    z-index: 1;
}

.royal-rsvp-event .evt-title {
    color: var(--ivory);
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    line-height: 1.05;
    text-wrap: balance;
}

.royal-rsvp-event .evt-date,
.royal-rsvp-event .evt-loc {
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.royal-rsvp-event .evt-date {
    margin-top: 0.6rem;
}

.royal-rsvp-event .evt-loc {
    color: var(--gold-accent);
}

.royal-rsvp-event .card-icon-container {
    align-items: center;
    background:
        radial-gradient(circle, rgba(255, 247, 232, 0.12), rgba(212, 175, 55, 0.07), transparent 70%);
    display: flex;
    height: 92px;
    justify-content: center;
    position: relative;
    width: 92px;
    z-index: 1;
}

.royal-rsvp-event .event-svg-small {
    filter:
        drop-shadow(0 12px 22px rgba(0, 0, 0, 0.35))
        drop-shadow(0 0 20px color-mix(in srgb, var(--event-accent), transparent 50%));
    height: 84px;
    object-fit: contain;
    width: 84px;
}

@media (max-width: 600px) {
    .event-selection-label {
        align-items: flex-start;
        flex-direction: column;
    }

    .royal-rsvp-event {
        gap: 0.75rem;
        grid-template-columns: 30px 66px minmax(0, 1fr);
        min-height: 104px;
        padding: 0.8rem;
    }

    .royal-rsvp-event .card-icon-container {
        height: 66px;
        width: 66px;
    }

    .royal-rsvp-event .event-svg-small {
        height: 62px;
        width: 62px;
    }

    .rsvp-check-mark {
        height: 24px;
        width: 24px;
    }

    .royal-rsvp-event .evt-title {
        font-size: clamp(1.05rem, 5vw, 1.35rem);
    }
}
