/* ==========================================================================
   Restaurant Reserveringssysteem - Zusje Stijl Luxury Theme
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --bg-main: #110f0e;
    --bg-card: #171514;
    --bg-card-secondary: #1f1c1a;
    --bg-input: #12100f;
    --border-gold: #c5a059;
    --border-gold-subtle: rgba(197, 160, 89, 0.35);
    --border-gold-glow: rgba(197, 160, 89, 0.15);
    --gold-text: #dfc285;
    --gold-bright: #f3dfb0;
    --text-primary: #fcf9f2;
    --text-secondary: #b8b2a8;
    --text-muted: #807b73;
    --accent-red: #c94a4a;
    --accent-green: #48a97c;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-pill: 9999px;
    --shadow-luxury: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 40px rgba(197, 160, 89, 0.08);
    --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.res-standalone-body {
    background-color: #080707;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(197, 160, 89, 0.12) 0%, transparent 65%),
        linear-gradient(to bottom, #0e0d0c, #050505);
    min-height: 100vh;
    font-family: var(--font-sans);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    -webkit-font-smoothing: antialiased;
}

/* Modal / Card Container */
.res-card-wrapper {
    width: 100%;
    max-width: 480px;
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-luxury);
    border: 1px solid var(--border-gold-subtle);
    position: relative;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

/* Header Section with Image */
.res-header-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: #1a1715;
}

.res-header-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transition: transform 0.8s ease;
}

.res-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(23, 21, 20, 0.2) 50%,
        rgba(23, 21, 20, 0.95) 90%,
        var(--bg-card) 100%
    );
    pointer-events: none;
}

/* Close Button */
.res-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    border: none;
    color: #111;
    font-size: 22px;
    font-weight: 300;
    line-height: 36px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.res-close-btn:hover {
    background: #ffffff;
    transform: scale(1.08) rotate(90deg);
}

/* Pagination Dots */
.res-dots-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 12px 0 6px;
}

.res-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transition: var(--transition);
    cursor: pointer;
}

.res-dot.active {
    background: var(--border-gold);
    width: 24px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.5);
}

/* Content Body */
.res-body {
    padding: 20px 28px 32px;
    display: flex;
    flex-direction: column;
}

/* Step Typography */
.res-step-question {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.45rem;
    line-height: 1.35;
    font-weight: 400;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 24px;
}

.res-sub-question {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-primary);
    margin: 18px 0 10px 0;
}

/* Meal Type Buttons (Step 1) */
.res-meal-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 10px;
}

.res-btn-pill-gold {
    width: 100%;
    padding: 17px 24px;
    border-radius: var(--radius-pill);
    background: transparent;
    border: 1.5px solid var(--border-gold);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.res-btn-pill-gold::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.2), rgba(197, 160, 89, 0.05));
    opacity: 0;
    transition: var(--transition);
}

.res-btn-pill-gold:hover {
    border-color: var(--gold-bright);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(197, 160, 89, 0.25);
}

.res-btn-pill-gold:hover::before {
    opacity: 1;
}

.res-btn-pill-gold:active {
    transform: translateY(0);
}

/* Primary Filled Next Button */
.res-btn-primary {
    width: 100%;
    padding: 16px 24px;
    border-radius: var(--radius-pill);
    background: #0f0d0c;
    border: 1.5px solid var(--border-gold);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.res-btn-primary:hover:not(:disabled) {
    background: var(--border-gold);
    color: #0f0d0c;
    box-shadow: 0 8px 25px rgba(197, 160, 89, 0.4);
    transform: translateY(-2px);
}

.res-btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: #4a453f;
    color: #6d665e;
}

.res-btn-secondary {
    padding: 14px 20px;
    border-radius: var(--radius-pill);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.res-btn-secondary:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

/* Form Controls & Dropdowns */
.res-select-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 8px;
}

.res-select,
.res-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-input);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.98rem;
    outline: none;
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
}

.res-select {
    cursor: pointer;
    padding-right: 40px;
}

.res-select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--border-gold);
    font-size: 14px;
}

.res-select:focus,
.res-input:focus,
.res-textarea:focus {
    border-color: var(--gold-bright);
    box-shadow: 0 0 12px rgba(197, 160, 89, 0.25);
    background-color: #171514;
}

.res-date-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 8px;
}

.res-date-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-input);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.98rem;
    outline: none;
    transition: var(--transition);
    cursor: pointer;
}

/* In modern browsers, format calendar icon */
.res-date-input::-webkit-calendar-picker-indicator {
    filter: invert(0.8) sepia(0.8) saturate(2) hue-rotate(5deg);
    cursor: pointer;
    opacity: 0.9;
}

/* Person Counters */
.res-counter-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 12px 0 16px;
}

.res-counter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.res-counter-label {
    display: flex;
    flex-direction: column;
}

.res-counter-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.res-counter-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.res-counter-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.res-counter-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.res-counter-btn:hover:not(:disabled) {
    color: var(--gold-bright);
    transform: scale(1.2);
}

.res-counter-btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.res-counter-value-box {
    min-width: 54px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #110f0e;
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-sm);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
}

.res-total-guests-summary {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--gold-text);
    margin: 12px 0 4px;
    text-align: left;
}

.res-total-guests-count {
    color: var(--gold-bright);
    font-weight: 600;
}

/* Step 3: Slots Grid */
.res-slots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 16px 0;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 4px;
}

/* Custom scrollbar */
.res-slots-grid::-webkit-scrollbar {
    width: 5px;
}
.res-slots-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}
.res-slots-grid::-webkit-scrollbar-thumb {
    background: var(--border-gold-subtle);
    border-radius: 4px;
}

.res-slot-chip {
    padding: 12px 8px;
    border-radius: var(--radius-sm);
    background: var(--bg-card-secondary);
    border: 1px solid rgba(197, 160, 89, 0.3);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.res-slot-chip:hover:not(.disabled) {
    border-color: var(--border-gold);
    background: rgba(197, 160, 89, 0.15);
    transform: translateY(-2px);
}

.res-slot-chip.selected {
    background: var(--border-gold);
    color: #12100f;
    border-color: var(--gold-bright);
    font-weight: 700;
    box-shadow: 0 0 16px rgba(197, 160, 89, 0.4);
}

.res-slot-chip.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.1);
    text-decoration: line-through;
}

.res-slot-badge-full {
    font-size: 0.65rem;
    font-weight: 400;
    color: #e57373;
}

/* Seating chips */
.res-seating-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 12px 0;
}

.res-seating-chip {
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.res-seating-chip:hover {
    border-color: var(--border-gold-subtle);
    color: var(--text-primary);
}

.res-seating-chip.selected {
    border-color: var(--border-gold);
    color: var(--gold-bright);
    background: rgba(197, 160, 89, 0.1);
}

/* Step 4: Contact Form Inputs */
.res-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.res-form-grid.full {
    grid-template-columns: 1fr;
}

.res-label {
    display: block;
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-weight: 500;
}

.res-textarea {
    width: 100%;
    min-height: 70px;
    padding: 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    resize: vertical;
    outline: none;
    transition: var(--transition);
}

/* Quick Diet Tags */
.res-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 12px;
}

.res-tag-pill {
    padding: 6px 11px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
    font-size: 0.78rem;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.res-tag-pill:hover {
    border-color: var(--border-gold-subtle);
    color: var(--text-primary);
}

.res-tag-pill.active {
    background: rgba(197, 160, 89, 0.18);
    border-color: var(--border-gold);
    color: var(--gold-bright);
}

/* Checkbox Row */
.res-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 14px 0 6px;
    cursor: pointer;
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.res-checkbox-row input[type="checkbox"] {
    accent-color: var(--border-gold);
    width: 16px;
    height: 16px;
    margin-top: 2px;
    cursor: pointer;
}

/* Step 5: Confirmation Success Card */
.res-success-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 0;
}

.res-success-badge {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.3) 0%, rgba(197, 160, 89, 0.05) 70%);
    border: 2px solid var(--border-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-bright);
    font-size: 32px;
    margin-bottom: 16px;
    box-shadow: 0 0 30px rgba(197, 160, 89, 0.3);
    animation: resPulse 2s infinite ease-in-out;
}

@keyframes resPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(197, 160, 89, 0.25); }
    50% { transform: scale(1.04); box-shadow: 0 0 32px rgba(197, 160, 89, 0.45); }
}

.res-ticket-card {
    width: 100%;
    background: var(--bg-card-secondary);
    border: 1px solid var(--border-gold-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
    margin: 18px 0;
    text-align: left;
    position: relative;
}

.res-ticket-code {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    background: rgba(197, 160, 89, 0.15);
    border: 1px solid var(--border-gold);
    color: var(--gold-bright);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.res-ticket-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.res-ticket-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    padding-bottom: 6px;
}

.res-ticket-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.res-ticket-val {
    color: var(--text-primary);
    font-weight: 600;
}

/* Action Buttons in Step 5 */
.res-actions-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 14px;
}

.res-nav-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.res-nav-buttons .res-btn-secondary {
    flex: 1;
}

.res-nav-buttons .res-btn-primary {
    flex: 2;
    margin-top: 0;
}

/* Alerts / Error Messages */
.res-alert-error {
    background: rgba(201, 74, 74, 0.15);
    border: 1px solid rgba(201, 74, 74, 0.4);
    color: #ff9999;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    margin-bottom: 16px;
    text-align: center;
}

/* Loading Spinner */
.res-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--border-gold);
    animation: resSpin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes resSpin {
    to { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    body.res-standalone-body {
        padding: 0;
        background: var(--bg-card);
    }
    .res-card-wrapper {
        border-radius: 0;
        border: none;
        box-shadow: none;
        max-width: 100%;
        min-height: 100vh;
    }
    .res-body {
        padding: 16px 20px 28px;
    }
    .res-header-image {
        height: 210px;
    }
    .res-step-question {
        font-size: 1.3rem;
    }
}
