/* ==========================================================================
   ARTIS Private Opening RSVP — Styles
   Version: 1.0.0
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design Tokens
   -------------------------------------------------------------------------- */
:root {
    --artis-bg: #eee9ae;
    --artis-red: #db321b;
    --artis-ink: #201b18;
    --artis-grey: #625d5c;
    --artis-white: #fff;
    --artis-cream: #faf8f3;
    --artis-border: rgba(32, 27, 24, 0.1);
    --artis-shadow: 0 4px 24px rgba(32, 27, 24, 0.08);
    --artis-radius: 2px;
    --artis-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --artis-font-label: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --artis-transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --------------------------------------------------------------------------
   Reset / Base
   -------------------------------------------------------------------------- */
.artis-rsvp-wrap,
.artis-rsvp-wrap *,
.artis-rsvp-checkin-wrap,
.artis-rsvp-checkin-wrap * {
    box-sizing: border-box;
}

.artis-rsvp-wrap {
    font-family: var(--artis-font-body);
    color: var(--artis-ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------------------------------
   Paused State
   -------------------------------------------------------------------------- */
.artis-rsvp-paused {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--artis-cream);
}

.artis-rsvp-paused__inner {
    text-align: center;
    padding: 60px 30px;
    max-width: 500px;
}

.artis-rsvp-paused__logo {
    font-family: var(--artis-font-label);
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 10px;
    margin: 0 0 30px;
    color: var(--artis-ink);
}

.artis-rsvp-paused__message {
    font-size: 16px;
    line-height: 1.8;
    color: var(--artis-grey);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.artis-rsvp-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    background-color: var(--artis-ink);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.artis-rsvp-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(32, 27, 24, 0.3) 0%,
        rgba(32, 27, 24, 0.6) 50%,
        rgba(32, 27, 24, 0.8) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
}

.artis-rsvp-hero__content {
    text-align: center;
    padding: 40px 24px;
    max-width: 600px;
    color: var(--artis-white);
    animation: artis-fade-up 1s var(--artis-transition) both;
}

.artis-rsvp-hero__eyebrow {
    font-family: var(--artis-font-label);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin: 0 0 20px;
    opacity: 0.8;
}

.artis-rsvp-hero__title {
    font-family: var(--artis-font-label);
    font-size: 36px;
    font-weight: 300;
    letter-spacing: 8px;
    margin: 0 0 24px;
    line-height: 1.2;
}

.artis-rsvp-hero__subtitle {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.7;
    margin: 0 0 24px;
    opacity: 0.9;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

.artis-rsvp-hero__date {
    font-family: var(--artis-font-label);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 2px;
    margin: 0 0 8px;
    opacity: 0.9;
}

.artis-rsvp-hero__access {
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 1px;
    margin: 0 0 40px;
    opacity: 0.6;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.artis-rsvp-btn {
    display: inline-block;
    font-family: var(--artis-font-label);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 16px 40px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    color: var(--artis-white);
    cursor: pointer;
    transition: all var(--artis-transition);
    border-radius: var(--artis-radius);
    line-height: 1;
    text-decoration: none;
}

.artis-rsvp-btn:hover {
    background: var(--artis-white);
    color: var(--artis-ink);
    border-color: var(--artis-white);
}

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

.artis-rsvp-btn--unlock {
    padding: 18px 48px;
    font-size: 13px;
}

/* --------------------------------------------------------------------------
   Key Input Section
   -------------------------------------------------------------------------- */
.artis-rsvp-key-section {
    background: var(--artis-cream);
    padding: 80px 24px;
    text-align: center;
    animation: artis-fade-in 0.6s ease both;
}

.artis-rsvp-key-inner {
    max-width: 400px;
    margin: 0 auto;
}

.artis-rsvp-key-inner label {
    display: block;
    font-family: var(--artis-font-label);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--artis-grey);
    margin-bottom: 16px;
}

.artis-rsvp-key-inner input[type="text"] {
    display: block;
    width: 100%;
    padding: 18px 20px;
    font-family: var(--artis-font-body);
    font-size: 18px;
    text-align: center;
    letter-spacing: 4px;
    text-transform: uppercase;
    border: 1px solid var(--artis-border);
    border-radius: var(--artis-radius);
    background: var(--artis-white);
    color: var(--artis-ink);
    outline: none;
    transition: border-color 0.3s ease;
    margin-bottom: 20px;
}

.artis-rsvp-key-inner input[type="text"]:focus {
    border-color: var(--artis-ink);
}

.artis-rsvp-key-section .artis-rsvp-btn {
    width: 100%;
    background: var(--artis-ink);
    color: var(--artis-white);
    border-color: var(--artis-ink);
    padding: 18px;
}

.artis-rsvp-key-section .artis-rsvp-btn:hover {
    background: var(--artis-red);
    border-color: var(--artis-red);
}

.artis-rsvp-key-error {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--artis-red);
    white-space: pre-line;
    min-height: 1em;
}

/* --------------------------------------------------------------------------
   RSVP Form Section
   -------------------------------------------------------------------------- */
.artis-rsvp-form-section {
    background: var(--artis-cream);
    padding: 60px 24px 80px;
    animation: artis-fade-in 0.6s ease both;
}

.artis-rsvp-form__inner {
    max-width: 520px;
    margin: 0 auto;
    background: var(--artis-white);
    padding: 48px 36px;
    box-shadow: var(--artis-shadow);
    border-radius: var(--artis-radius);
}

.artis-rsvp-form__event-details {
    text-align: center;
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--artis-border);
}

.artis-rsvp-form__event-label {
    font-family: var(--artis-font-label);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--artis-grey);
    margin: 0 0 8px;
}

.artis-rsvp-form__event-info {
    font-size: 14px;
    color: var(--artis-ink);
    margin: 0;
    letter-spacing: 0.5px;
}

.artis-rsvp-form__title {
    font-family: var(--artis-font-label);
    font-size: 20px;
    font-weight: 400;
    text-align: center;
    margin: 0 0 32px;
    color: var(--artis-ink);
    letter-spacing: 1px;
}

.artis-rsvp-form__field {
    margin-bottom: 24px;
}

.artis-rsvp-form__label {
    display: block;
    font-family: var(--artis-font-label);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--artis-grey);
    margin-bottom: 8px;
}

.artis-rsvp-form__optional {
    font-weight: 300;
    text-transform: none;
    letter-spacing: 0;
    opacity: 0.7;
}

.artis-rsvp-form__inner input[type="text"],
.artis-rsvp-form__inner input[type="email"],
.artis-rsvp-form__inner input[type="tel"],
.artis-rsvp-form__inner textarea {
    display: block;
    width: 100%;
    padding: 14px 16px;
    font-family: var(--artis-font-body);
    font-size: 15px;
    color: var(--artis-ink);
    border: 1px solid var(--artis-border);
    border-radius: var(--artis-radius);
    background: var(--artis-white);
    outline: none;
    transition: border-color 0.3s ease;
}

.artis-rsvp-form__inner input:focus,
.artis-rsvp-form__inner textarea:focus {
    border-color: var(--artis-ink);
}

.artis-rsvp-form__inner textarea {
    resize: vertical;
    min-height: 80px;
}

/* Toggle Group (Yes/No) */
.artis-rsvp-form__toggle-group {
    display: flex;
    gap: 0;
    border: 1px solid var(--artis-border);
    border-radius: var(--artis-radius);
    overflow: hidden;
}

.artis-rsvp-form__toggle-option {
    flex: 1;
    position: relative;
    cursor: pointer;
    margin: 0;
}

.artis-rsvp-form__toggle-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.artis-rsvp-form__toggle-option span {
    display: block;
    padding: 14px;
    text-align: center;
    font-family: var(--artis-font-label);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--artis-grey);
    background: var(--artis-white);
    transition: all 0.3s ease;
    border-right: 1px solid var(--artis-border);
}

.artis-rsvp-form__toggle-option:last-child span {
    border-right: none;
}

.artis-rsvp-form__toggle-option input:checked + span {
    background: var(--artis-ink);
    color: var(--artis-white);
}

/* Submit Button */
.artis-rsvp-btn--submit {
    width: 100%;
    margin-top: 12px;
    background: var(--artis-ink);
    color: var(--artis-white);
    border-color: var(--artis-ink);
    padding: 18px;
    font-size: 12px;
}

.artis-rsvp-btn--submit:hover {
    background: var(--artis-red);
    border-color: var(--artis-red);
    color: var(--artis-white);
}

/* Plus One Name - animated reveal */
.artis-rsvp-form__plus-one-name {
    overflow: hidden;
    transition: all 0.3s ease;
}

/* --------------------------------------------------------------------------
   Confirmation Section
   -------------------------------------------------------------------------- */
.artis-rsvp-confirmation {
    background: var(--artis-cream);
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    animation: artis-fade-in 0.6s ease both;
}

.artis-rsvp-confirmation__inner {
    text-align: center;
    max-width: 480px;
    padding: 60px 30px;
}

.artis-rsvp-confirmation__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--artis-ink);
    color: var(--artis-white);
    font-size: 24px;
    line-height: 56px;
    margin: 0 auto 32px;
}

.artis-rsvp-confirmation__title {
    font-family: var(--artis-font-label);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 1px;
    margin: 0 0 24px;
    color: var(--artis-ink);
    line-height: 1.4;
}

.artis-rsvp-confirmation__text {
    font-size: 15px;
    line-height: 1.8;
    color: var(--artis-grey);
    margin: 0 0 20px;
}

.artis-rsvp-confirmation__footer {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--artis-border);
}

.artis-rsvp-confirmation__brand {
    font-family: var(--artis-font-label);
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 8px;
    margin: 0 0 6px;
    color: var(--artis-ink);
}

.artis-rsvp-confirmation__tagline {
    font-size: 12px;
    color: var(--artis-grey);
    letter-spacing: 1px;
    margin: 0;
}

/* --------------------------------------------------------------------------
   Check-in (Frontend shortcode)
   -------------------------------------------------------------------------- */
.artis-rsvp-checkin-wrap {
    font-family: var(--artis-font-body);
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 24px;
}

.artis-rsvp-checkin__title {
    font-family: var(--artis-font-label);
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 4px;
    margin: 0 0 30px;
    text-align: center;
}

.artis-rsvp-checkin__search {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.artis-rsvp-checkin__search input {
    flex: 1;
    padding: 14px 16px;
    font-family: var(--artis-font-body);
    font-size: 15px;
    border: 1px solid var(--artis-border);
    border-radius: var(--artis-radius);
    outline: none;
}

.artis-rsvp-checkin__search input:focus {
    border-color: var(--artis-ink);
}

.artis-rsvp-checkin__search .artis-rsvp-btn {
    background: var(--artis-ink);
    color: var(--artis-white);
    border-color: var(--artis-ink);
    padding: 14px 28px;
}

.artis-rsvp-checkin__card {
    background: var(--artis-white);
    border: 1px solid var(--artis-border);
    border-radius: var(--artis-radius);
    padding: 24px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.artis-rsvp-checkin__card--checked {
    border-color: #2e7d32;
    background: #f5faf5;
}

.artis-rsvp-checkin__card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.artis-rsvp-checkin__guest-name {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    color: var(--artis-ink);
}

.artis-rsvp-checkin__priority {
    font-family: var(--artis-font-label);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 3px;
    color: var(--artis-white);
}

.artis-rsvp-checkin__priority--a { background: var(--artis-red); }
.artis-rsvp-checkin__priority--b { background: #e88b00; }
.artis-rsvp-checkin__priority--c { background: var(--artis-grey); }

.artis-rsvp-checkin__card-body p {
    font-size: 14px;
    margin: 4px 0;
    color: var(--artis-grey);
}

.artis-rsvp-checkin__card-body p strong {
    color: var(--artis-ink);
}

.artis-rsvp-checkin__card-actions {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--artis-border);
}

.artis-rsvp-btn--checkin {
    background: #2e7d32;
    color: var(--artis-white);
    border-color: #2e7d32;
    padding: 12px 24px;
    font-size: 11px;
}

.artis-rsvp-btn--checkin:hover {
    background: #1b5e20;
    border-color: #1b5e20;
    color: var(--artis-white);
}

.artis-rsvp-checkin__checked-time {
    font-size: 13px;
    color: #2e7d32;
    font-weight: 500;
    margin: 0;
}

.artis-rsvp-checkin__no-results {
    text-align: center;
    color: var(--artis-grey);
    padding: 40px 0;
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes artis-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes artis-fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .artis-rsvp-hero__content,
    .artis-rsvp-key-section,
    .artis-rsvp-form-section,
    .artis-rsvp-confirmation {
        animation: none;
    }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (min-width: 600px) {
    .artis-rsvp-hero__title {
        font-size: 44px;
        letter-spacing: 12px;
    }

    .artis-rsvp-hero__subtitle {
        font-size: 17px;
    }

    .artis-rsvp-form__inner {
        padding: 56px 48px;
    }

    .artis-rsvp-key-section {
        padding: 100px 24px;
    }
}

@media (min-width: 900px) {
    .artis-rsvp-hero__title {
        font-size: 52px;
        letter-spacing: 16px;
    }

    .artis-rsvp-hero__eyebrow {
        font-size: 12px;
        letter-spacing: 6px;
    }

    .artis-rsvp-btn--unlock {
        padding: 20px 56px;
    }
}

/* --------------------------------------------------------------------------
   Admin Styles
   -------------------------------------------------------------------------- */
.artis-admin-wrap {
    max-width: 1200px;
}

/* Stats bar */
.artis-admin-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.artis-admin-stat {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 16px 24px;
    text-align: center;
    min-width: 100px;
    flex: 1;
}

.artis-admin-stat__number {
    display: block;
    font-size: 28px;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 4px;
    color: #201b18;
}

.artis-admin-stat__label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
}

.artis-admin-stat--confirmed .artis-admin-stat__number { color: #2e7d32; }
.artis-admin-stat--declined .artis-admin-stat__number { color: #db321b; }
.artis-admin-stat--pending .artis-admin-stat__number { color: #e88b00; }
.artis-admin-stat--checkedin .artis-admin-stat__number { color: #1565c0; }

/* Toggle switch */
.artis-admin-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.artis-admin-toggle input[type="checkbox"] {
    display: none;
}

.artis-admin-toggle__slider {
    position: relative;
    width: 56px;
    height: 30px;
    background: #ccc;
    border-radius: 15px;
    transition: background 0.3s ease;
}

.artis-admin-toggle__slider::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.artis-admin-toggle input:checked + .artis-admin-toggle__slider {
    background: #2e7d32;
}

.artis-admin-toggle input:checked + .artis-admin-toggle__slider::before {
    transform: translateX(26px);
}

.artis-admin-toggle__label {
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
}

/* Admin card */
.artis-admin-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 24px;
    margin-bottom: 20px;
}

.artis-admin-card h2 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

/* Admin check-in */
.artis-admin-checkin-search {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.artis-admin-checkin-search input {
    flex: 1;
}

/* Admin form */
.artis-admin-form .form-table th {
    width: 150px;
}

/* =========================================================
   PUBLIC INVITATION REQUEST SECTION
   ========================================================= */
.artis-request-section {
    background: #faf8f3;
    border-top: 1px solid #eee9ae;
    padding: clamp(60px, 10vw, 120px) 24px;
}

.artis-request-section__inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.artis-request-section__eyebrow {
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #db321b;
    margin: 0 0 16px;
    font-weight: 500;
}

.artis-request-section__title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 300;
    letter-spacing: 2px;
    color: #201b18;
    margin: 0 0 24px;
}

.artis-request-section__intro {
    font-size: 16px;
    line-height: 1.7;
    color: #625d5c;
    margin: 0 0 48px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

.artis-request-form {
    text-align: left;
}

.artis-request-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 640px) {
    .artis-request-form__row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.artis-request-form__field {
    display: flex;
    flex-direction: column;
}

.artis-request-form__field {
    margin-bottom: 20px;
}

.artis-request-form__row .artis-request-form__field {
    margin-bottom: 0;
}

.artis-request-form__label {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #625d5c;
    margin-bottom: 8px;
    font-weight: 500;
}

.artis-request-form__optional {
    text-transform: none;
    letter-spacing: 0;
    color: #999;
    font-size: 11px;
}

.artis-request-form input[type="text"],
.artis-request-form input[type="email"],
.artis-request-form input[type="tel"],
.artis-request-form select,
.artis-request-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d8d3c5;
    background: #fff;
    font-size: 15px;
    font-family: inherit;
    color: #201b18;
    border-radius: 0;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.artis-request-form input:focus,
.artis-request-form select:focus,
.artis-request-form textarea:focus {
    outline: none;
    border-color: #201b18;
}

.artis-request-form select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3e%3cpath fill='%23201b18' d='M6 8L0 0h12z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 44px;
    cursor: pointer;
}

.artis-request-form textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.artis-request-form__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.artis-request-form__actions {
    text-align: center;
    margin-top: 32px;
}

.artis-request-form__actions .artis-rsvp-btn {
    min-width: 240px;
}

.artis-request-form__legal {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin: 20px 0 0;
    line-height: 1.6;
}

.artis-request-form__error {
    background: #fdebe7;
    border-left: 3px solid #db321b;
    padding: 12px 16px;
    color: #db321b;
    font-size: 14px;
    margin-bottom: 20px;
}

/* Success state */
.artis-request-success {
    text-align: center;
    padding: 40px 24px;
    animation: artis-fade-in 0.5s ease;
}

@keyframes artis-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.artis-request-success__icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #2e7d32;
    color: #fff;
    font-size: 28px;
    line-height: 60px;
    margin: 0 auto 24px;
    display: block;
}

.artis-request-success__title {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 2px;
    color: #201b18;
    margin: 0 0 12px;
}

.artis-request-success__text {
    font-size: 15px;
    line-height: 1.7;
    color: #625d5c;
    margin: 0 0 32px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.artis-request-success__brand {
    font-size: 11px;
    letter-spacing: 6px;
    color: #201b18;
    margin: 0;
}

/* =========================================================
   ADMIN: REQUESTS MODALS & STYLES
   ========================================================= */
.artis-req-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.artis-req-actions .button {
    font-size: 12px;
    padding: 4px 10px;
    height: auto;
    line-height: 1.6;
}

.artis-req-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
}

.artis-req-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(32, 27, 24, 0.6);
}

.artis-req-modal__box {
    position: relative;
    max-width: 560px;
    margin: 80px auto 0;
    background: #fff;
    padding: 32px;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.artis-req-modal__box h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.artis-req-modal__sub {
    color: #625d5c;
    margin: 0 0 20px;
    font-size: 14px;
}

.artis-req-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.artis-req-modal .form-table th {
    width: 140px;
    padding: 12px 0;
}

.artis-req-modal .form-table td {
    padding: 12px 0;
}

/* =========================================================
   UX & RESPONSIVE AUDIT FIXES (v1.1.1)
   - Fluid spacing (clamp)
   - Better max-widths
   - Scroll hint in hero
   - Touch targets >= 44px
   - Anti-overflow on small screens
   ========================================================= */

/* HERO content — fluid padding + safer letter-spacing */
.artis-rsvp-hero__content {
    padding: clamp(80px, 14vw, 120px) clamp(20px, 5vw, 40px) clamp(60px, 10vw, 80px);
    max-width: 640px;
    width: 100%;
}

.artis-rsvp-hero__title {
    /* fluid title prevents overflow on <360px screens */
    font-size: clamp(28px, 7vw, 52px);
    letter-spacing: clamp(4px, 1.2vw, 16px);
    line-height: 1.15;
    margin-bottom: clamp(20px, 3vw, 28px);
}

.artis-rsvp-hero__subtitle {
    font-size: clamp(15px, 1.8vw, 17px);
    max-width: 480px;
}

.artis-rsvp-hero__date {
    font-size: clamp(13px, 1.4vw, 15px);
}

.artis-rsvp-hero__access {
    margin-bottom: clamp(28px, 5vw, 40px);
}

/* Scroll hint (when public requests are enabled) */
.artis-rsvp-hero__scroll-hint {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: clamp(40px, 7vw, 64px);
    color: rgba(255, 255, 255, 0.65);
    font-family: var(--artis-font-label);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    padding: 8px 16px;
    border-radius: 4px;
}

.artis-rsvp-hero__scroll-hint:hover,
.artis-rsvp-hero__scroll-hint:focus {
    color: rgba(255, 255, 255, 0.95);
    transform: translateY(2px);
    outline: none;
}

.artis-rsvp-hero__scroll-arrow {
    font-size: 18px;
    line-height: 1;
    animation: artis-scroll-pulse 2.4s ease-in-out infinite;
    opacity: 0.85;
}

@keyframes artis-scroll-pulse {
    0%, 100%   { transform: translateY(0);   opacity: 0.6; }
    50%        { transform: translateY(6px); opacity: 1;   }
}

@media (prefers-reduced-motion: reduce) {
    .artis-rsvp-hero__scroll-arrow { animation: none; }
}

/* Hide scroll hint on landscape mobile to save vertical space */
@media (max-height: 600px) and (orientation: landscape) {
    .artis-rsvp-hero__scroll-hint { display: none; }
}

/* Unlock button — bigger touch target on mobile, full width below 480 */
.artis-rsvp-btn--unlock {
    min-height: 52px;
}

@media (max-width: 480px) {
    .artis-rsvp-btn--unlock {
        width: 100%;
        max-width: 320px;
    }
}

/* KEY SECTION — fluid padding for proper breathing room */
.artis-rsvp-key-section {
    padding: clamp(72px, 12vw, 120px) clamp(20px, 5vw, 48px);
}

/* REQUEST SECTION — full rebuild of paddings */
.artis-request-section {
    padding:
        clamp(80px, 12vw, 140px)
        clamp(20px, 5vw, 56px)
        clamp(96px, 14vw, 160px);
    /* asymmetric: bottom > top, to separate visually from footer */
}

.artis-request-section__inner {
    max-width: 760px;
}

.artis-request-section__title {
    margin-bottom: clamp(18px, 2.5vw, 28px);
}

.artis-request-section__intro {
    margin-bottom: clamp(36px, 5vw, 56px);
    font-size: clamp(15px, 1.6vw, 17px);
}

/* Form rows — switch to single column earlier (768) so tablets breathe */
@media (max-width: 768px) {
    .artis-request-form__row {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

/* Input fields — increase mobile touch target */
.artis-request-form input[type="text"],
.artis-request-form input[type="email"],
.artis-request-form input[type="tel"],
.artis-request-form select,
.artis-request-form textarea {
    padding: 15px 16px;
    min-height: 50px;
    border-radius: 2px;
}

.artis-request-form textarea {
    min-height: 120px;
}

/* Submit button — full width on mobile for thumb reach */
@media (max-width: 600px) {
    .artis-request-form__actions .artis-rsvp-btn {
        width: 100%;
        max-width: 360px;
        min-height: 54px;
    }
}

/* Submit button — recolour for crema section (was white-on-white) */
.artis-request-section .artis-rsvp-btn--submit,
.artis-request-form__actions .artis-rsvp-btn {
    background: #201b18;
    color: #eee9ae;
    border-color: #201b18;
    padding: 18px 44px;
}

.artis-request-section .artis-rsvp-btn--submit:hover,
.artis-request-form__actions .artis-rsvp-btn:hover {
    background: #db321b;
    color: #fff;
    border-color: #db321b;
}

/* Better spacing rhythm in form */
.artis-request-form__legal {
    margin-top: 24px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* Decorative divider line at top of request section (premium feel) */
.artis-request-section__inner::before {
    content: "";
    display: block;
    width: 40px;
    height: 1px;
    background: #db321b;
    margin: 0 auto clamp(28px, 4vw, 40px);
}

/* Remove eyebrow when divider already separates (cleaner hierarchy) */
.artis-request-section__eyebrow {
    margin-bottom: clamp(14px, 2vw, 20px);
}

/* Form section (after key validation) — fluid padding */
.artis-rsvp-form-section {
    padding: clamp(48px, 8vw, 80px) clamp(16px, 4vw, 32px);
}

.artis-rsvp-form__inner {
    padding: clamp(32px, 6vw, 56px) clamp(20px, 5vw, 48px);
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #eee9ae;
}

/* Confirmation — fluid padding */
.artis-rsvp-confirmation {
    padding: clamp(60px, 12vw, 120px) clamp(20px, 5vw, 48px);
}

/* Anti-overflow safety net */
.artis-rsvp-wrap,
.artis-request-section {
    overflow-x: clip;
}

/* Improve key input touch target on mobile */
.artis-rsvp-key-inner input[type="text"] {
    min-height: 56px;
    padding: 16px 20px;
    font-size: 17px; /* >=16px prevents iOS zoom on focus */
}

.artis-rsvp-key-section .artis-rsvp-btn {
    min-height: 52px;
}

/* Tablet-specific tuning (640-900) */
@media (min-width: 640px) and (max-width: 900px) {
    .artis-rsvp-hero__title {
        letter-spacing: 8px;
    }
    .artis-request-section__inner {
        max-width: 640px;
    }
}

/* Very narrow viewports (<360px) — final safety */
@media (max-width: 360px) {
    .artis-rsvp-hero__title {
        letter-spacing: 3px;
        font-size: 26px;
    }
    .artis-request-section__title {
        font-size: 24px;
        letter-spacing: 1px;
    }
}

/* =========================================================
   HEADER OVERLAP + HERO BREATHING FIX (v1.1.2)
   Theme has a transparent sticky header that overlaps the hero
   top. Add safe top padding and rebalance vertical rhythm so
   "Unlock Invitation" doesn't glue to the next section.
   ========================================================= */
.artis-rsvp-hero {
    /* Allow the hero to be at least full viewport but grow with content */
    min-height: 100vh;
    min-height: 100dvh;
    /* Outer padding handles both: clearing sticky header AND breathing bottom */
    padding:
        clamp(110px, 16vh, 180px)   /* top — clears sticky header */
        clamp(20px, 5vw, 40px)
        clamp(72px, 10vh, 110px);   /* bottom — keeps Unlock button away from next section */
    /* Keep vertical centering when content is short, but allow scroll when content overflows */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Reset previous double-padding on inner content */
.artis-rsvp-hero__content {
    padding: 0 !important;
    max-width: 660px;
    width: 100%;
}

/* Calmer typographic scale — prevents 3-line wrapping at common breakpoints */
.artis-rsvp-hero__title {
    font-size: clamp(28px, 5.2vw, 44px);
    letter-spacing: clamp(3px, 0.8vw, 10px);
    line-height: 1.15;
    margin-bottom: clamp(20px, 3vw, 28px);
}

/* Tighter rhythm between elements inside hero */
.artis-rsvp-hero__eyebrow {
    margin-bottom: clamp(14px, 2vw, 20px);
}

.artis-rsvp-hero__subtitle {
    margin-bottom: clamp(18px, 2.5vw, 24px);
}

.artis-rsvp-hero__date {
    margin-bottom: clamp(6px, 1vw, 10px);
}

.artis-rsvp-hero__access {
    margin-bottom: clamp(24px, 4vw, 36px);
}

/* Scroll-hint — slightly less margin so it doesn't push content beyond viewport */
.artis-rsvp-hero__scroll-hint {
    margin-top: clamp(28px, 5vw, 48px);
}

/* On short screens (landscape mobile, laptops with toolbars) reduce padding */
@media (max-height: 720px) {
    .artis-rsvp-hero {
        padding-top: clamp(90px, 13vh, 130px);
        padding-bottom: clamp(48px, 7vh, 80px);
    }
    .artis-rsvp-hero__title {
        font-size: clamp(26px, 4.5vw, 40px);
    }
}
@media (max-height: 600px) and (orientation: landscape) {
    .artis-rsvp-hero { min-height: auto; }
}

/* =========================================================
   HERO LAYOUT FIX (v1.1.3)
   - Title fits in 2 lines max at every viewport
   - Scroll hint pinned to bottom (absolute), out of content flow
   - Unlock button never glued to next section
   ========================================================= */
.artis-rsvp-hero {
    position: relative;
    padding-top: clamp(100px, 15vh, 160px);
    padding-bottom: clamp(110px, 16vh, 160px); /* room for absolute scroll hint */
}

/* Title: gentler scale + less letter-spacing → fits in 1-2 lines */
.artis-rsvp-hero__title {
    font-size: clamp(28px, 4.5vw, 40px);
    letter-spacing: clamp(2px, 0.45vw, 6px);
    line-height: 1.2;
    max-width: 18ch; /* keep title compact, never very wide */
    margin-left: auto;
    margin-right: auto;
}

/* Scroll-hint pinned to bottom of hero, doesn't push content */
.artis-rsvp-hero__scroll-hint {
    position: absolute;
    bottom: clamp(20px, 4vh, 40px);
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0;
    white-space: nowrap;
}

.artis-rsvp-hero__scroll-hint:hover,
.artis-rsvp-hero__scroll-hint:focus {
    transform: translateX(-50%) translateY(2px);
}

/* Short screens: tighter padding so unlock button stays in view */
@media (max-height: 760px) {
    .artis-rsvp-hero {
        padding-top: clamp(90px, 12vh, 120px);
        padding-bottom: clamp(90px, 13vh, 120px);
    }
    .artis-rsvp-hero__title {
        font-size: clamp(26px, 4vw, 36px);
    }
}

/* Very narrow: extra-tight letter-spacing for safety */
@media (max-width: 420px) {
    .artis-rsvp-hero__title {
        letter-spacing: 1.5px;
    }
    .artis-rsvp-hero__scroll-hint {
        font-size: 10px;
        letter-spacing: 2px;
    }
}

/* =========================================================
   HERO STRUCTURAL FIX (v1.1.4)
   Root cause: overlay was position:absolute inset:0, so the
   centered content could not push the hero to grow. When the
   content height exceeded 100vh, it overflowed into the next
   section. Fix: keep the gradient on ::after, make the overlay
   a normal flex column with padding. The hero now grows
   naturally with its content while still being at least 100vh.
   ========================================================= */
.artis-rsvp-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    background-color: var(--artis-ink);
    background-size: cover;
    background-position: center;
    display: block;
    padding: 0;
    overflow: hidden; /* contain ::after */
}

.artis-rsvp-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(32, 27, 24, 0.30) 0%,
        rgba(32, 27, 24, 0.60) 50%,
        rgba(32, 27, 24, 0.85) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* Overlay -> normal block, flex column centered, owns the padding */
.artis-rsvp-hero__overlay {
    position: relative;
    inset: auto;
    background: transparent;
    min-height: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding:
        clamp(130px, 18vh, 200px)
        clamp(20px, 5vw, 40px)
        clamp(160px, 20vh, 220px); /* generous bottom padding so Unlock has air */
    z-index: 2;
}

/* Content: simple wrapper, no own padding (parent handles) */
.artis-rsvp-hero__content {
    padding: 0 !important;
    max-width: 660px;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* Scroll-hint pinned to hero bottom — never inside content flow */
.artis-rsvp-hero__scroll-hint {
    position: absolute;
    bottom: clamp(28px, 5vh, 56px);
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    z-index: 3;
    white-space: nowrap;
}

.artis-rsvp-hero__scroll-hint:hover,
.artis-rsvp-hero__scroll-hint:focus {
    transform: translateX(-50%) translateY(2px);
}

/* Short screens: tighter top/bottom */
@media (max-height: 760px) {
    .artis-rsvp-hero__overlay {
        padding-top: clamp(110px, 14vh, 150px);
        padding-bottom: clamp(120px, 16vh, 160px);
    }
}

/* =========================================================
   SCROLL-HINT ANCHOR FIX (v1.1.5)
   The scroll-hint was anchoring to .artis-rsvp-hero__content
   (because we set position:relative on it). Make content static
   so the hint anchors to .artis-rsvp-hero__overlay instead,
   placing it correctly at the very bottom of the hero.
   ========================================================= */
.artis-rsvp-hero__content {
    position: static !important;
    z-index: auto !important;
}

/* Defensive: explicit re-anchor for the hint to the overlay */
.artis-rsvp-hero__overlay { position: relative; }
