:root {
    --bg-color: #0d0d0d;
    --text-color: #ffffff;
    --primary-color: #d4a373;
    --accent-color: #bc8a5f;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --input-bg: rgba(255, 255, 255, 0.08);
    --hover-bg: rgba(255, 255, 255, 0.15);
    --error-color: #ff6b6b;
    --success-color: #51cf66;
    --font-main: 'Outfit', sans-serif;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: radial-gradient(circle at 50% 0%, #1a1a1a 0%, #0d0d0d 100%);
    padding: 20px 0;
    /* Add padding for vertical scroll on small screens */
}

.app-container {
    width: 100%;
    max-width: 480px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Logo */
.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.logo {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 50px;
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    /* Safari Fix */
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 30px 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    min-height: 400px;
    /* Min height to avoid jumpy resizing */
    display: flex;
    flex-direction: column;
}

.header {
    text-align: center;
    margin-bottom: 25px;
}

.header h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #fff;
}

.header p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* STEPS Logic */
.step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Calendar Grid */
.calendar-header {
    text-align: center;
    margin-bottom: 15px;
    font-weight: 500;
    font-size: 18px;
    color: var(--primary-color);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 25px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--input-bg);
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.calendar-day.empty {
    background: transparent;
    cursor: default;
}

.calendar-day:not(.empty):hover {
    background: var(--hover-bg);
}

.calendar-day.selected {
    background: var(--primary-color);
    color: #121212;
    font-weight: 600;
}

.calendar-day.disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* Time Slots & Slider */
.section-hidden {
    display: none;
    animation: fadeIn 0.4s ease;
}

.time-toggle-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.time-toggle {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 4px;
    display: flex;
    position: relative;
    width: 100%;
    /* Use full available width up to max */
    max-width: 240px;
    /* Limit max width */
    margin: 0 auto;
    /* Center it */
}

.time-toggle input {
    display: none;
}

.time-toggle label {
    flex: 1;
    text-align: center;
    z-index: 2;
    padding: 8px 0;
    font-size: 14px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s;
    font-weight: 500;
}

.time-toggle input:checked+label {
    color: #121212;
}

.toggle-bg {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 50%;
    height: calc(100% - 8px);
    background: var(--primary-color);
    border-radius: 50px;
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 1;
    width: calc(50% - 4px);
    /* Adjust width to fit perfectly */
}

/* Slider Logic */
#lunchOption:checked~.toggle-bg {
    transform: translateX(0);
}

#dinnerOption:checked~.toggle-bg {
    transform: translateX(100%);
    /* margin-left removed for perfect alignment */
}

.section-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.time-slots-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.time-group span {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 slots per row */
    gap: 8px;
    margin-bottom: 10px;
}

.slots-grid.hidden {
    display: none;
}

.slots-grid.active {
    display: grid;
    animation: fadeIn 0.3s ease;
}

.time-slot {
    padding: 10px 0;
    text-align: center;
    background: var(--input-bg);
    border-radius: var(--radius-sm);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.time-slot:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.time-slot.selected {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(212, 163, 115, 0.1);
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
    margin-left: 4px;
}

.form-group input:not([type="checkbox"]),
.form-group select {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    padding: 14px 16px;
    font-family: var(--font-main);
    font-size: 16px;
    color: white;
    outline: none;
    color: white;
    outline: none;
    transition: border-color 0.3s;
    /* Strict Reset for "Browser Defaults" */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: none;
    /* Remove default gradients/arrows if any (except custom Select arrow) */
}

/* Custom Arrow for Select */
.form-group select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary-color);
}

.form-group input.error-border {
    border-color: var(--error-color);
}

.error-message {
    color: var(--error-color);
    font-size: 12px;
    margin-top: 6px;
    display: block;
}

/* Buttons */
.center-button-container {
    display: flex;
    justify-content: center;
    margin-top: 25px;
}

.center-button-container .cta-button {
    width: 100%;
    /* Or keep full width but centered context */
}

.buttons-row {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.cta-button,
.secondary-button {
    flex: 1;
    padding: 16px;
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.cta-button {
    background: var(--primary-color);
    color: #121212;
}

.cta-button:disabled,
.cta-button.disabled-btn {
    opacity: 0.5;
    background: #555;
    /* Visibly gray */
    color: #aaa;
    cursor: not-allowed;
}

.secondary-button {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Summary Card */
.summary-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

.summary-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.summary-item .label {
    color: rgba(255, 255, 255, 0.5);
}

.summary-item .value {
    color: #fff;
    font-weight: 500;
}

.info-box {
    background: rgba(212, 163, 115, 0.1);
    border-left: 3px solid var(--primary-color);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.info-box p {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

/* Utilities */
.hidden {
    display: none;
}

.business-cta {
    text-align: center;
    margin-top: auto;
}

.business-cta p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.business-cta a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Privacy Row & Checkbox */
.privacy-row {
    display: flex;
    align-items: center;
    /* Vertical Center */
    gap: 12px;
    margin-bottom: 25px;
}

.privacy-row input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
    /* Reset margins */
}

.privacy-row label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    margin: 0;
    /* Override default label margin */
    line-height: 1.4;
}

.privacy-row label a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

/* Success View */
.success-message {
    text-align: center;
    padding: 20px 0;
    animation: fadeIn 0.5s ease;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: var(--success-color);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(81, 207, 102, 0.3);
}

.success-icon svg {
    width: 32px;
    height: 32px;
    stroke: #fff;
    stroke-width: 3;
}

.success-message h2 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #fff;
}

.success-message p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin-bottom: 30px;
}

/* MODAL STYLES */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.modal-card {
    background: #1a1a1a;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--primary-color);
}

.close-modal {
    background: transparent;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0 10px;
}

.modal-content {
    padding: 20px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.modal-overlay.hidden {
    display: none;
}