.rsvp-experience {
    --rsvp-accent: var(--primary-color, #6d5dfc);
    --rsvp-accent-strong: color-mix(in srgb, var(--rsvp-accent) 82%, #000);
    --rsvp-border: rgba(148, 163, 184, 0.24);
    --rsvp-muted: #64748b;
    --rsvp-surface: rgba(255, 255, 255, 0.92);
    --rsvp-surface-soft: rgba(248, 250, 252, 0.9);
    --rsvp-text: #172033;
    overflow: hidden;
    padding: clamp(4.5rem, 9vw, 8rem) 0;
    position: relative;
}

.rsvp-experience::before,
.rsvp-experience::after {
    border-radius: 999px;
    content: "";
    pointer-events: none;
    position: absolute;
}

.rsvp-experience::before {
    background: color-mix(in srgb, var(--rsvp-accent) 18%, transparent);
    filter: blur(4px);
    height: 22rem;
    right: -10rem;
    top: -11rem;
    width: 22rem;
}

.rsvp-experience::after {
    background: color-mix(in srgb, var(--rsvp-accent) 10%, transparent);
    bottom: -8rem;
    height: 18rem;
    left: -9rem;
    width: 18rem;
}

.rsvp-experience--dark {
    --rsvp-border: rgba(255, 255, 255, 0.14);
    --rsvp-muted: rgba(255, 255, 255, 0.68);
    --rsvp-surface: rgba(20, 26, 43, 0.82);
    --rsvp-surface-soft: rgba(255, 255, 255, 0.07);
    --rsvp-text: #fff;
}

.rsvp-experience__shell {
    margin: 0 auto;
    max-width: 920px;
    position: relative;
    text-align: center;
    z-index: 1;
}

.rsvp-experience__eyebrow {
    align-items: center;
    background: color-mix(in srgb, var(--rsvp-accent) 13%, transparent);
    border: 1px solid color-mix(in srgb, var(--rsvp-accent) 28%, transparent);
    border-radius: 999px;
    color: var(--rsvp-text);
    display: inline-flex;
    font-family: "Inter", "Outfit", sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    gap: 0.45rem;
    letter-spacing: 0.12em;
    margin-bottom: 1.25rem;
    padding: 0.55rem 0.9rem;
    text-transform: uppercase;
}

.rsvp-experience__title {
    color: var(--rsvp-text);
    margin-bottom: 0.8rem;
}

.rsvp-experience__lead {
    color: var(--rsvp-muted);
    font-size: clamp(1rem, 2vw, 1.16rem);
    line-height: 1.7;
    margin: 0 auto 2rem;
    max-width: 650px;
}

.rsvp-guest-summary {
    align-items: center;
    background: var(--rsvp-surface);
    border: 1px solid var(--rsvp-border);
    border-radius: 20px;
    box-shadow: 0 20px 55px rgba(15, 23, 42, 0.1);
    color: var(--rsvp-text);
    display: flex;
    gap: 1rem;
    margin: 0 auto 1.25rem;
    max-width: 690px;
    padding: 1rem 1.15rem;
    text-align: left;
}

.rsvp-experience--dark .rsvp-guest-summary {
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.rsvp-guest-summary__avatar {
    align-items: center;
    background: color-mix(in srgb, var(--rsvp-accent) 16%, transparent);
    border: 1px solid color-mix(in srgb, var(--rsvp-accent) 28%, transparent);
    border-radius: 15px;
    color: var(--rsvp-accent);
    display: inline-flex;
    flex: 0 0 48px;
    font-size: 1.3rem;
    height: 48px;
    justify-content: center;
}

.rsvp-guest-summary__content {
    min-width: 0;
}

.rsvp-guest-summary__label {
    color: var(--rsvp-muted);
    display: block;
    font-family: "Inter", "Outfit", sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 0.15rem;
    text-transform: uppercase;
}

.rsvp-guest-summary__name {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.rsvp-guest-summary__passes {
    align-items: center;
    background: var(--rsvp-surface-soft);
    border: 1px solid var(--rsvp-border);
    border-radius: 14px;
    display: inline-flex;
    flex: 0 0 auto;
    font-family: "Inter", "Outfit", sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    gap: 0.4rem;
    margin-left: auto;
    padding: 0.65rem 0.8rem;
    white-space: nowrap;
}

.rsvp-state-card,
.rsvp-deadline-panel {
    background: var(--rsvp-surface);
    border: 1px solid var(--rsvp-border);
    border-radius: 24px;
    color: var(--rsvp-text);
    margin: 0 auto 1.25rem;
    max-width: 690px;
}

.rsvp-state-card {
    align-items: center;
    display: flex;
    gap: 1rem;
    padding: 1.15rem 1.3rem;
    text-align: left;
}

.rsvp-state-card__icon {
    align-items: center;
    border-radius: 16px;
    display: inline-flex;
    flex: 0 0 52px;
    font-size: 1.35rem;
    height: 52px;
    justify-content: center;
}

.rsvp-state-card h3,
.rsvp-state-card h4 {
    color: inherit;
    font-family: "Inter", "Outfit", sans-serif;
    font-size: 1rem;
    font-weight: 750;
    letter-spacing: normal;
    margin: 0 0 0.2rem;
    text-transform: none;
}

.rsvp-state-card p {
    color: var(--rsvp-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.rsvp-state-card--success {
    border-color: rgba(22, 163, 74, 0.3);
}

.rsvp-state-card--success .rsvp-state-card__icon {
    background: rgba(22, 163, 74, 0.12);
    color: #16a34a;
}

.rsvp-state-card--declined {
    border-color: rgba(100, 116, 139, 0.3);
}

.rsvp-state-card--declined .rsvp-state-card__icon,
.rsvp-state-card--closed .rsvp-state-card__icon {
    background: rgba(100, 116, 139, 0.13);
    color: #64748b;
}

.rsvp-deadline-panel {
    padding: 1.25rem;
}

.rsvp-deadline-panel__label {
    align-items: center;
    color: var(--rsvp-text);
    display: flex;
    font-family: "Inter", "Outfit", sans-serif;
    font-size: 0.9rem;
    font-weight: 650;
    gap: 0.5rem;
    justify-content: center;
    margin: 0 0 1rem;
}

.rsvp-deadline-panel__label i {
    color: var(--rsvp-accent);
}

.rsvp-countdown {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0 auto;
    max-width: 430px;
}

.rsvp-countdown__item {
    background: var(--rsvp-surface-soft);
    border: 1px solid var(--rsvp-border);
    border-radius: 16px;
    color: var(--rsvp-text);
    min-width: 0;
    padding: 0.75rem 0.4rem;
}

.rsvp-countdown__value {
    display: block;
    font-family: "Inter", "Outfit", sans-serif;
    font-size: clamp(1.2rem, 4vw, 1.55rem);
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    line-height: 1;
}

.rsvp-countdown__unit {
    color: var(--rsvp-muted);
    display: block;
    font-family: "Inter", "Outfit", sans-serif;
    font-size: 0.68rem;
    margin-top: 0.35rem;
    text-transform: uppercase;
}

.rsvp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.rsvp-actions .btn {
    align-items: center;
    border-radius: 14px;
    display: inline-flex;
    font-family: "Inter", "Outfit", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    gap: 0.4rem;
    justify-content: center;
    min-height: 50px;
    padding: 0.75rem 1.35rem;
}

.rsvp-modal-card {
    background: #fff;
    border: 0;
    border-radius: 24px;
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.24);
    color: #172033;
    overflow: hidden;
}

.rsvp-modal-card--dark {
    background: #151b2c;
    color: #f8fafc;
}

.rsvp-modal-card .modal-header {
    align-items: flex-start;
    border: 0;
    padding: 1.35rem 1.35rem 0;
}

.rsvp-modal-title {
    align-items: center;
    display: flex;
    font-family: "Inter", "Outfit", sans-serif;
    gap: 0.7rem;
    letter-spacing: normal;
    text-transform: none;
}

.rsvp-modal-title__icon {
    align-items: center;
    background: color-mix(in srgb, var(--rsvp-accent) 14%, transparent);
    border-radius: 12px;
    color: var(--rsvp-accent);
    display: inline-flex;
    flex: 0 0 42px;
    height: 42px;
    justify-content: center;
}

.rsvp-modal-title strong,
.rsvp-modal-title small {
    display: block;
}

.rsvp-modal-title strong {
    font-size: 1rem;
}

.rsvp-modal-title small {
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 500;
    margin-top: 0.1rem;
}

.rsvp-modal-card--dark .rsvp-modal-title small {
    color: rgba(255, 255, 255, 0.62);
}

.rsvp-modal-card .modal-body {
    padding: 1.25rem 1.35rem 1.4rem;
}

.rsvp-form-guest {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.15rem;
    padding: 0.85rem;
}

.rsvp-modal-card--dark .rsvp-form-guest {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.rsvp-form-guest__icon {
    align-items: center;
    background: color-mix(in srgb, var(--rsvp-accent) 14%, transparent);
    border-radius: 12px;
    color: var(--rsvp-accent);
    display: inline-flex;
    flex: 0 0 40px;
    height: 40px;
    justify-content: center;
}

.rsvp-form-guest strong,
.rsvp-form-guest small {
    display: block;
}

.rsvp-form-guest strong {
    font-family: "Inter", "Outfit", sans-serif;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.rsvp-form-guest small {
    color: #64748b;
    font-size: 0.75rem;
    margin-top: 0.1rem;
}

.rsvp-modal-card--dark .rsvp-form-guest small {
    color: rgba(255, 255, 255, 0.62);
}

.rsvp-field {
    margin-bottom: 1rem;
}

.rsvp-field .form-label {
    color: inherit;
    font-family: "Inter", "Outfit", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.rsvp-field .form-label i {
    color: var(--rsvp-accent);
    margin-right: 0.35rem;
}

.rsvp-field .form-control,
.rsvp-field .form-select {
    background-color: #fff;
    border: 1px solid #dbe2ea;
    border-radius: 13px;
    box-shadow: none;
    color: #172033;
    font-family: "Inter", "Outfit", sans-serif;
    min-height: 48px;
    padding: 0.7rem 0.85rem;
}

.rsvp-field textarea.form-control {
    min-height: 88px;
}

.rsvp-field .form-control:focus,
.rsvp-field .form-select:focus {
    border-color: var(--rsvp-accent);
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--rsvp-accent) 16%, transparent);
}

.rsvp-field .form-control[readonly] {
    background: #f8fafc;
    color: #475569;
}

.rsvp-pass-stepper {
    align-items: stretch;
    background: #fff;
    border: 1px solid #dbe2ea;
    border-radius: 14px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    overflow: hidden;
}

.rsvp-pass-stepper:focus-within {
    border-color: var(--rsvp-accent);
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--rsvp-accent) 16%, transparent);
}

.rsvp-pass-stepper__button {
    align-items: center;
    background: #f8fafc;
    border: 0;
    color: #334155;
    display: inline-flex;
    font-size: 1.1rem;
    justify-content: center;
}

.rsvp-pass-stepper__button:first-child {
    border-right: 1px solid #e2e8f0;
}

.rsvp-pass-stepper__button:last-child {
    border-left: 1px solid #e2e8f0;
}

.rsvp-pass-stepper__button:hover {
    background: color-mix(in srgb, var(--rsvp-accent) 10%, #fff);
    color: var(--rsvp-accent);
}

.rsvp-pass-stepper .form-control {
    border: 0;
    border-radius: 0;
    font-size: 1.05rem;
    font-weight: 800;
    min-width: 0;
    text-align: center;
}

.rsvp-pass-stepper .form-control:focus {
    box-shadow: none;
}

.rsvp-pass-hint {
    align-items: center;
    color: #64748b;
    display: flex;
    font-family: "Inter", "Outfit", sans-serif;
    font-size: 0.72rem;
    gap: 0.35rem;
    margin-top: 0.4rem;
}

.rsvp-submit {
    border-radius: 14px;
    font-family: "Inter", "Outfit", sans-serif;
    font-size: 0.9rem;
    font-weight: 750;
    min-height: 50px;
}

.rsvp-submit:disabled {
    cursor: wait;
}

.rsvp-qr-card {
    text-align: center;
}

.rsvp-qr-card__badge {
    align-items: center;
    background: rgba(22, 163, 74, 0.1);
    border-radius: 999px;
    color: #15803d;
    display: inline-flex;
    font-family: "Inter", "Outfit", sans-serif;
    font-size: 0.75rem;
    font-weight: 750;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
    padding: 0.45rem 0.7rem;
}

#guestQrCode.rsvp-qr-code {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.1);
    display: inline-block;
    padding: 0.8rem;
}

#guestQrCode.rsvp-qr-code img {
    height: auto !important;
    max-width: min(220px, 66vw);
}

@media (max-width: 575.98px) {
    .rsvp-experience {
        padding: 4.25rem 0;
    }

    .rsvp-experience__shell {
        padding: 0 0.2rem;
    }

    .rsvp-guest-summary {
        align-items: flex-start;
        border-radius: 18px;
        flex-wrap: wrap;
        padding: 0.9rem;
    }

    .rsvp-guest-summary__content {
        flex: 1;
    }

    .rsvp-guest-summary__passes {
        flex-basis: 100%;
        justify-content: center;
        margin-left: 0;
    }

    .rsvp-state-card {
        align-items: flex-start;
        border-radius: 18px;
        padding: 1rem;
    }

    .rsvp-state-card__icon {
        flex-basis: 44px;
        height: 44px;
    }

    .rsvp-deadline-panel {
        border-radius: 18px;
        padding: 1rem 0.75rem;
    }

    .rsvp-countdown {
        gap: 0.45rem;
    }

    .rsvp-countdown__item {
        border-radius: 12px;
        padding: 0.65rem 0.2rem;
    }

    .rsvp-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .rsvp-actions .btn {
        width: 100%;
    }

    .rsvp-modal-card {
        border-radius: 22px 22px 0 0;
    }

    #rsvpModal .modal-dialog,
    #guestQrModal .modal-dialog {
        align-items: flex-end;
        margin: 0;
        min-height: 100%;
    }

    #rsvpModal .modal-content,
    #guestQrModal .modal-content {
        max-height: 92vh;
        overflow-y: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rsvp-experience *,
    .rsvp-experience *::before,
    .rsvp-experience *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
