/* ============================================================
   RTR Public — Modern Glassmorphism Reservation Form
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

/* ── Design Tokens ──────────────────────────────────────────── */
:root {
    --lux-bg: transparent;
    --lux-card: rgba(15, 15, 15, 0.75);
    --lux-card-inner: rgba(30, 30, 30, 0.6);
    --lux-gold: #FF7A00;
    /* Indian Saffron Orange */
    --lux-gold-soft: #FFB300;
    /* Indian Yellow */
    --lux-gold-dim: rgba(255, 122, 0, 0.25);
    --lux-gold-glow: rgba(255, 122, 0, 0.35);
    --lux-text: #F8F8F8;
    --lux-muted: #BBBBBB;
    --lux-faint: #888888;
    --lux-border: rgba(255, 255, 255, 0.15);
    --lux-input-bg: rgba(0, 0, 0, 0.4);
    --lux-green: #FF7A00;
    /* Mapped to primary orange */
    --lux-red: #FF4B4B;
    --lux-radius: 24px;
    --lux-radius-sm: 16px;
    --lux-radius-btn: 14px;
    --lux-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    --lux-transition: 0.3s cubic-bezier(.4, 0, .2, 1);
}

/* ── Page wrapper ──────────────────────────────────────────── */
.rtr-wrapper {
    font-family: 'Inter', -apple-system, sans-serif;
    max-width: 600px;
    margin: 40px auto;
    padding: 0;
    box-sizing: border-box;
    color: var(--lux-text);
    /* The Glass pane applied to the entire wrapper */
    background: var(--lux-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--lux-radius);
    box-shadow: var(--lux-shadow);
    border: 1px solid rgba(255, 255, 255, 0.4);
    overflow: hidden;
}

/* ── Card Elements ─────────────────────────────────────────── */
.rtr-wrapper form,
#rtr-form,
.rtr-cancel-card,
.rtr-card-outer {
    background: transparent;
    border: none;
    box-shadow: none;
}

/* ── Header ────────────────────────────────────────────────── */
.rtr-header {
    text-align: center;
    padding: 48px 40px 36px;
    background: transparent;
    border-bottom: 1px solid var(--lux-border);
    position: relative;
    overflow: hidden;
}

.rtr-header-icon {
    font-size: 2.6rem;
    display: block;
    margin-bottom: 14px;
    position: relative;
}

.rtr-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--lux-text);
    letter-spacing: 0.5px;
    margin: 0;
    position: relative;
}

/* ── Step Indicator ────────────────────────────────────────── */
.rtr-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 30px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--lux-border);
    gap: 0;
}

.rtr-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    opacity: .45;
    transition: opacity var(--lux-transition);
}

.rtr-step.rtr-step-active,
.rtr-step.rtr-step-done {
    opacity: 1;
}

.rtr-step-num {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all var(--lux-transition);
    color: var(--lux-text);
}

.rtr-step-active .rtr-step-num {
    background: linear-gradient(135deg, var(--lux-gold), var(--lux-gold-soft));
    border-color: var(--lux-gold);
    color: #fff;
    box-shadow: 0 0 18px var(--lux-gold-glow);
}

.rtr-step-done .rtr-step-num {
    background: var(--lux-green);
    border-color: var(--lux-green);
    color: #fff;
}

.rtr-step-done .rtr-step-num span {
    display: none;
}

.rtr-step-label {
    font-size: 0.68rem;
    color: var(--lux-faint);
    text-transform: uppercase;
    letter-spacing: .8px;
}

.rtr-step-line {
    flex: 1;
    height: 1px;
    background: var(--lux-border);
    margin: 0 10px 18px;
    max-width: 60px;
}

/* ── Form step area ────────────────────────────────────────── */
#rtr-form {
    background: var(--lux-card);
    border: 1px solid var(--lux-border);
    border-top: none;
    border-radius: 0 0 var(--lux-radius) var(--lux-radius);
}

.rtr-form-step {
    display: none;
    padding: 32px 36px;
}

.rtr-active-step {
    display: block;
    animation: lux-fade .35s ease;
}

@keyframes lux-fade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ── Field grid ────────────────────────────────────────────── */
.rtr-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.rtr-field-full {
    grid-column: 1 / -1;
}

.rtr-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--lux-gold);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.rtr-req {
    color: var(--lux-gold-soft);
}

/* ── Inputs ────────────────────────────────────────────────── */
.rtr-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--lux-radius-sm);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    transition: all var(--lux-transition);
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    color-scheme: dark;
}

.rtr-input:focus {
    outline: none;
    border-color: var(--lux-gold);
    box-shadow: 0 0 0 2px var(--lux-gold-dim);
}

.rtr-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.rtr-input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.9;
    background: transparent;
    border-radius: 4px;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M19 4H5C3.89543 4 3 4.89543 3 6V20C3 21.1046 3.89543 22 5 22H19C20.1046 22 21 21.1046 21 20V6C21 4.89543 20.1046 4 19 4Z" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M16 2V6" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M8 2V6" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M3 10H21" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 20px;
    height: 20px;
}

.rtr-textarea {
    resize: vertical;
    min-height: 80px;
}

/* ── Guest counter ─────────────────────────────────────────── */
.rtr-guest-counter {
    display: flex;
    align-items: center;
    gap: 14px;
    background: transparent;
    border: none;
    padding: 10px 0;
}

.rtr-guest-counter #rtr-guests-display {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--lux-green);
    flex: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin: 0;
    padding: 0;
}

.rtr-counter-btn {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, var(--lux-green), var(--lux-gold-soft)) !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 1.4rem !important;
    font-family: Arial, sans-serif !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all var(--lux-transition);
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(255, 122, 0, 0.4);
}

#rtr-guests-minus {
    padding-bottom: 2px !important;
}

#rtr-guests-plus {
    padding-bottom: 2px !important;
}

.rtr-counter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 122, 0, 0.6);
}

.rtr-counter-btn:disabled {
    opacity: .3;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ── Time Slots ────────────────────────────────────────────── */
.rtr-slots-field {
    grid-column: 1 / -1;
}

.rtr-slots-hint {
    text-align: center;
    color: var(--lux-faint);
    font-size: 0.88rem;
    padding: 24px;
    border: 1px dashed rgba(104, 179, 131, 0.4);
    border-radius: var(--lux-radius-sm);
    letter-spacing: .5px;
}

.rtr-slots-loading {
    text-align: center;
    padding: 20px;
    color: var(--lux-muted);
    font-size: .9rem;
}

.rtr-slots-loading::after {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(200, 169, 106, .2);
    border-top-color: var(--lux-gold);
    border-radius: 50%;
    animation: lux-spin .7s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

@keyframes lux-spin {
    to {
        transform: rotate(360deg);
    }
}

.rtr-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
    gap: 10px;
}

.rtr-slot {
    padding: 12px 8px;
    border-radius: 20px;
    border: none;
    background: transparent;
    color: var(--lux-text);
    text-align: center;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--lux-transition);
    user-select: none;
}

.rtr-slot:hover {
    background: rgba(104, 179, 131, 0.1);
    color: var(--lux-green);
    transform: none;
}

.rtr-slot.rtr-slot-selected {
    border: none;
    background: var(--lux-green);
    color: #fff;
    font-weight: 600;
    box-shadow: none;
}

.rtr-slot-avail {
    font-size: 0.68rem;
    color: var(--lux-faint);
    margin-top: 3px;
}

.rtr-no-slots {
    text-align: center;
    padding: 20px;
    color: var(--lux-red);
    font-size: 0.88rem;
}

/* ── Summary box ───────────────────────────────────────────── */
.rtr-summary {
    background: var(--lux-card-inner);
    border-radius: var(--lux-radius-sm);
    padding: 20px;
    border: 1px solid var(--lux-border);
    margin-bottom: 20px;
    position: relative;
}

/* Accent line */
.rtr-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--lux-gold), transparent);
}

.rtr-summary-title {
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--lux-gold-soft);
    margin: 0 0 14px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--lux-border);
    letter-spacing: .5px;
}

.rtr-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.rtr-summary-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rtr-summary-row span {
    font-size: 0.72rem;
    color: var(--lux-faint);
    text-transform: uppercase;
    letter-spacing: .8px;
}

.rtr-summary-row strong {
    font-size: 0.92rem;
    color: var(--lux-text);
}

/* ── Terms ─────────────────────────────────────────────────── */
.rtr-terms {
    font-size: 0.82rem;
    color: var(--lux-muted);
    margin-bottom: 20px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, .5);
    border-radius: var(--lux-radius-sm);
    border: 1px solid rgba(255, 255, 255, .8);
}

.rtr-terms input[type="checkbox"] {
    margin-right: 8px;
    accent-color: var(--lux-gold);
}

/* ── Step nav ──────────────────────────────────────────────── */
.rtr-step-nav {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--lux-border);
}

.rtr-btn {
    padding: 13px 28px;
    border-radius: var(--lux-radius-btn);
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--lux-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: .5px;
}

.rtr-btn-primary {
    background: linear-gradient(135deg, var(--lux-green), var(--lux-gold-soft)) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(255, 122, 0, 0.2);
}

.rtr-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(255, 122, 0, 0.35);
}

.rtr-btn-outline {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--lux-text) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.rtr-btn-outline:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

/* Submit CTA */
.rtr-btn-submit {
    background: linear-gradient(135deg, var(--lux-green), var(--lux-gold-soft)) !important;
    color: #ffffff !important;
    font-size: 0.9rem;
    padding: 16px 32px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(255, 122, 0, 0.35);
    border-radius: var(--lux-radius-btn);
}

.rtr-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 45px rgba(255, 122, 0, 0.5);
}

.rtr-btn-submit:disabled {
    opacity: .6;
    cursor: wait;
    transform: none;
    box-shadow: none;
}

.rtr-btn-danger {
    background: var(--lux-red) !important;
    color: #fff !important;
    border: none !important;
}

/* ── Messages ──────────────────────────────────────────────── */
.rtr-msg {
    padding: 14px 16px;
    border-radius: var(--lux-radius-sm);
    font-size: 0.88rem;
    margin-top: 14px;
}

.rtr-msg-error {
    background: rgba(229, 115, 115, .1);
    color: #ff8a80;
    border: 1px solid rgba(229, 115, 115, .25);
}

.rtr-msg-success {
    background: rgba(76, 175, 128, .1);
    color: #80cbc4;
    border: 1px solid rgba(76, 175, 128, .25);
}

/* ── Success panel ─────────────────────────────────────────── */
.rtr-success-panel {
    text-align: center;
    padding: 52px 36px;
    animation: lux-fade .5s ease;
}

.rtr-success-icon {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 18px;
    animation: lux-glow 1s ease;
    filter: drop-shadow(0 0 14px var(--lux-gold-glow));
}

@keyframes lux-glow {
    0% {
        transform: scale(.8);
        opacity: 0;
    }

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

.rtr-success-panel h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--lux-gold-soft);
    margin: 0 0 14px 0;
}

#rtr-success-msg {
    color: var(--lux-muted);
    font-size: 0.93rem;
    margin-bottom: 28px;
    line-height: 1.7;
}

#rtr-success-msg strong {
    color: var(--lux-gold);
}

/* ── Cancel card ───────────────────────────────────────────── */
.rtr-cancel-card {
    background: var(--lux-card);
    border-radius: var(--lux-radius);
    padding: 52px 36px;
    text-align: center;
    border: 1px solid var(--lux-border);
    box-shadow: var(--lux-shadow);
}

.rtr-icon-big {
    font-size: 3.2rem;
    margin-bottom: 14px;
}

.rtr-cancel-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--lux-text);
    margin: 0 0 12px 0;
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE LUXURY — Full-screen booking panel
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 600px) {

    /* ── Full-viewport wrapper ───────────────────────── */
    .rtr-wrapper {
        max-width: 100%;
        margin: 0;
        padding: 0;
        background: transparent;
        min-height: 100vh;
        border-radius: 0;
        border: none;
        backdrop-filter: none;
        box-shadow: none;
    }

    /* Full-width card, no rounded top on mobile */
    #rtr-form,
    .rtr-cancel-card,
    .rtr-card-outer {
        border-radius: 0;
        background: var(--lux-card);
        backdrop-filter: blur(20px);
        min-height: 100vh;
    }

    /* ── Header ─────────────────────────────────────── */
    .rtr-header {
        padding: 44px 24px 32px;
        border-radius: 0;
        /* edge-to-edge on mobile */
    }

    .rtr-title {
        font-size: 1.75rem;
        letter-spacing: .3px;
    }

    .rtr-subtitle {
        font-size: 0.75rem;
        letter-spacing: 1.8px;
    }

    .rtr-header-icon {
        font-size: 2.2rem;
    }

    /* ── Step indicator ─────────────────────────────── */
    .rtr-steps {
        padding: 16px 16px;
    }

    .rtr-step-label {
        display: none;
    }

    .rtr-step-line {
        max-width: 28px;
    }

    /* ── Form fields ─────────────────────────────────── */
    .rtr-form-step {
        padding: 24px 20px;
        /* Extra bottom padding so sticky button never overlaps content */
        padding-bottom: 96px;
    }

    .rtr-fields-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .rtr-summary-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    /* iOS keyboard safety — prevents auto-zoom on focus */
    .rtr-input {
        font-size: 16px !important;
        padding: 15px 16px;
        border-radius: 14px;
    }

    .rtr-textarea {
        min-height: 90px;
    }

    /* ── Guest counter — large thumb targets ─────────── */
    .rtr-guest-counter {
        padding: 12px 20px;
        border-radius: 16px;
    }

    .rtr-guest-counter #rtr-guests-display {
        font-size: 1.7rem;
    }

    .rtr-counter-btn {
        width: 44px !important;
        height: 44px !important;
        font-size: 1.6rem !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* ── Time slots — pill buttons ───────────────────── */
    .rtr-slots-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .rtr-slot {
        flex: 0 0 auto;
        /* Pill shape on mobile */
        border-radius: 999px;
        padding: 12px 18px;
        font-size: 0.9rem;
        /* Larger, touch-friendly */
        min-width: 80px;
        text-align: center;
    }

    .rtr-slot-avail {
        font-size: 0.65rem;
    }

    /* Selected pill glow */
    .rtr-slot.rtr-slot-selected {
        box-shadow: 0 6px 20px var(--lux-gold-glow);
    }

    /* ── Summary ─────────────────────────────────────── */
    .rtr-summary {
        padding: 16px;
    }

    .rtr-summary-grid {
        gap: 8px;
    }

    /* ── Step nav — hide inline submit, sticky handles it */
    .rtr-step-nav {
        flex-wrap: wrap;
        gap: 8px;
    }

    .rtr-btn {
        flex: 1;
        justify-content: center;
        font-size: 0.85rem;
        padding: 13px 14px;
    }

    /* Hide the in-form submit on mobile — sticky button takes over */
    #rtr-step-3 .rtr-btn-submit {
        display: none;
    }

    /* ── Success / cancel ────────────────────────────── */
    .rtr-success-panel {
        padding: 48px 24px;
    }

    .rtr-cancel-card {
        padding: 44px 24px;
    }
}


/* ═══════════════════════════════════════════════════════════════
   STICKY CONFIRM BUTTON (mobile only)
   Shown only on step 3 (submit step); JS adds .rtr-sticky-visible
   ═══════════════════════════════════════════════════════════════ */

.rtr-sticky-btn {
    display: none;
    /* hidden by default; JS + media query enable */
}

@media (max-width: 600px) {
    .rtr-sticky-btn {
        display: block;
        position: fixed;
        bottom: 18px;
        left: 16px;
        right: 16px;
        background: linear-gradient(135deg, var(--lux-gold), var(--lux-gold-soft)) !important;
        color: #ffffff !important;
        padding: 18px 24px;
        border-radius: 16px;
        text-align: center;
        font-family: 'Inter', sans-serif;
        font-weight: 700;
        font-size: 0.88rem;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        box-shadow: 0 15px 40px rgba(200, 169, 106, .5);
        z-index: 9999;
        border: none;
        cursor: pointer;
        transition: all 0.25s ease;
        /* Hidden until JS activates it */
        opacity: 0;
        pointer-events: none;
        transform: translateY(12px);
    }

    .rtr-sticky-btn.rtr-sticky-visible {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .rtr-sticky-btn:disabled {
        opacity: .6;
        cursor: wait;
    }

    /* Slide out when success shown */
    .rtr-sticky-btn.rtr-sticky-hidden {
        opacity: 0;
        pointer-events: none;
        transform: translateY(20px);
    }
}


/* ═══════════════════════════════════════════════════════════════
   GLASS CARD UTILITY (.lux-glass)
   ═══════════════════════════════════════════════════════════════ */
.lux-glass {
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 18px;
    padding: 20px;
    border: 1px solid rgba(200, 169, 106, .15);
}