
/* ========== PREMIUM COLOR SCHEME ========== */
:root {
    --primary-red: #FC3323;
    --primary-red-hover: #e02a1a;
    --success-green: #10b981;
    --success-green-hover: #059669;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --border-gray: #e5e7eb;
    --bg-light: #f9fafb;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== DESKTOP SIDEBAR ========== */
.reservation-sidebar {
    background: #ffffff;
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    z-index: 100;
    border: 1px solid var(--border-gray);
}

.reservation-sidebar::-webkit-scrollbar {
    width: 6px;
}

.reservation-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.reservation-sidebar::-webkit-scrollbar-thumb {
    background: var(--border-gray);
    border-radius: 10px;
}

.reservation-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--text-gray);
}

@media (max-width: 991px) {
    .reservation-sidebar {
        display: none;
    }
}

/* ========== MOBILE FLOATING BUTTON ========== */
.mobile-book-button {
    display: none;
    position: fixed;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background: linear-gradient(135deg, var(--success-green) 0%, var(--success-green-hover) 100%);
    color: white;
    border: none;
    padding: 18px 48px;
    border-radius: 0px;
    font-size: 17px;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.3px;
    width: 100%;
    max-width: 400px;
}

.mobile-book-button:active {
    transform: translateX(-50%) scale(0.98);
}

.mobile-book-button i {
    margin-right: 10px;
    font-size: 18px;
}

@media (max-width: 991px) {
    .mobile-book-button {
        display: block;
    }
}

/* ========== MOBILE MODAL - FULL SCREEN ========== */
.reservation-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 10000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.reservation-modal.active {
    display: block;
    animation: slideUpModal 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUpModal {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reservation-modal-header {
    background: linear-gradient(135deg, var(--primary-red) 0%, #ff6b5b 100%);
    padding: 20px 20px 24px;
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.reservation-modal-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.reservation-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.reservation-modal-close:active {
    transform: scale(0.9);
    background: rgba(255,255,255,0.35);
}

.reservation-modal-body {
    padding: 24px 20px 100px;
}

/* ========== STEP PROGRESS - 4 STEPS ========== */
.step-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
    position: relative;
    padding: 0 8px;
}

.step-progress::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 8px;
    right: 8px;
    height: 4px;
    background: var(--bg-light);
    border-radius: 10px;
    z-index: 0;
}

.step-progress-bar {
    position: absolute;
    top: 22px;
    left: 8px;
    height: 4px;
    background: linear-gradient(90deg, var(--success-green) 0%, var(--primary-red) 100%);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    border-radius: 10px;
}

.step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.step-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--border-gray);
    color: var(--text-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.step.active .step-circle {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
    box-shadow: 0 0 0 6px rgba(252, 51, 35, 0.15);
    transform: scale(1.1);
}

.step.completed .step-circle {
    background: var(--success-green);
    border-color: var(--success-green);
    color: white;
    font-size: 18px;
}

.step.completed .step-circle::before {
    content: '✓';
    font-weight: 900;
}

.step.completed .step-circle span {
    display: none;
}

.step-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-gray);
    transition: var(--transition);
}

.step.active .step-label {
    color: var(--primary-red);
    font-weight: 700;
}

.step.completed .step-label {
    color: var(--success-green);
}

/* ========== STEP CONTAINERS ========== */
.step-container {
    display: none;
}

.step-container.active {
    display: block;
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-title {
    font-size: 24px;
    font-weight: 800;
    color: lightgray !important;
    margin-bottom: 8px;
}

.step-subtitle {
    font-size: 15px;
    color: var(--text-gray);
    margin-bottom: 24px;
}

/* ========== CALENDAR - PREMIUM DESIGN ========== */
.calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 0 4px;
}

.calendar-month-year {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.calendar-nav-btn {
    background: white;
    color: var(--primary-red);
    border: 2px solid var(--border-gray);
    padding: 10px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.calendar-nav-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.calendar-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.calendar-day-name {
    text-align: center;
    font-weight: 700;
    font-size: 12px;
    color: var(--text-gray);
    padding: 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-day {
    aspect-ratio: 1;
    border: 2px solid var(--border-gray);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    background: white;
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
}

.calendar-day::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-red) 0%, #ff6b5b 100%);
    opacity: 0;
    transition: var(--transition);
}

.calendar-day span {
    position: relative;
    z-index: 1;
}

.calendar-day:active:not(.disabled):not(.other-month) {
    transform: scale(0.9);
}

.calendar-day.selected {
    border-color: var(--primary-red);
    color: white;
    box-shadow: 0 4px 15px rgba(252, 51, 35, 0.3);
}

.calendar-day.selected::before {
    opacity: 1;
}

.calendar-day.disabled {
    background: var(--bg-light);
    color: #d1d5db;
    cursor: not-allowed;
    border-color: transparent;
}

.calendar-day.other-month {
    color: #d1d5db;
    border-color: transparent;
    cursor: default;
}

.calendar-day.today {
    border-color: var(--success-green);
    font-weight: 800;
}

/* ========== TIME SLOTS - SLEEK DESIGN ========== */
.time-slots-container {
    margin-top: 24px;
}

.time-period {
    margin-bottom: 24px;
}

.time-period-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.time-period-label i {
    color: var(--primary-red);
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.time-slot {
    padding: 16px 12px;
    border: 2px solid var(--border-gray);
    border-radius: 14px;
    text-align: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    transition: var(--transition);
    background: white;
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
}

.time-slot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-red) 0%, #ff6b5b 100%);
    opacity: 0;
    transition: var(--transition);
}

.time-slot span {
    position: relative;
    z-index: 1;
}

.time-slot:active {
    transform: scale(0.95);
}

.time-slot.selected {
    border-color: var(--primary-red);
    color: white;
    box-shadow: 0 4px 15px rgba(252, 51, 35, 0.3);
}

.time-slot.selected::before {
    opacity: 1;
}

@media (min-width: 400px) {
    .time-slots-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.opening-hours-info {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-left: 4px solid var(--success-green);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #166534;
    font-weight: 600;
}

.opening-hours-info i {
    margin-right: 8px;
}

/* ========== PARTY SIZE SELECTION - MODERN GRID ========== */
.party-size-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.party-size-option {
    padding: 20px;
    border: 2px solid var(--border-gray);
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 18px;
    transition: var(--transition);
    background: white;
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
}

.party-size-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-red) 0%, #ff6b5b 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.party-size-option span {
    position: relative;
    z-index: 1;
}

.party-size-option:active {
    transform: scale(0.95);
}

.party-size-option.selected {
    border-color: var(--primary-red);
    color: white;
    box-shadow: 0 4px 15px rgba(252, 51, 35, 0.3);
}

.party-size-option.selected::before {
    opacity: 1;
}

@media (min-width: 400px) {
    .party-size-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ========== FORM ELEMENTS - MODERN STYLE ========== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
    font-size: 14px;
    letter-spacing: 0.3px;
}

.form-group label .required {
    color: var(--primary-red);
    margin-left: 3px;
}

.form-control {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--border-gray);
    border-radius: 12px;
    font-size: 15px;
    transition: var(--transition);
    font-family: inherit;
    font-weight: 500;
    color: var(--text-dark);
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px rgba(252, 51, 35, 0.1);
}

.form-control::placeholder {
    color: #9ca3af;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 576px) {
    .form-row.desktop-only {
        grid-template-columns: 1fr 1fr;
    }
    
    .form-row.mobile-single {
        grid-template-columns: 1fr;
    }
}

.form-hint {
    font-size: 13px;
    color: var(--text-gray);
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-hint i {
    color: var(--primary-red);
    font-size: 12px;
}

/* Phone input styling */
.iti {
    width: 100%;
    display: block !important;
}

.iti__flag-container {
    padding: 0;
    cursor: pointer !important;
}

.iti__selected-flag {
    padding: 0 8px 0 16px !important;
    height: 100%;
    display: flex;
    align-items: center;
    background: none !important;
    cursor: pointer !important;
}

.iti__selected-dial-code {
    margin-left: 6px;
    font-weight: 600;
    color: var(--text-dark);
}

.iti input {
    width: 100% !important;
    padding: 16px 16px 16px 95px !important;
    border: 2px solid var(--border-gray);
    border-radius: 5px;
    font-size: 15px;
    font-family: inherit;
    font-weight: 500;
    background: white;
}

.iti input:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px rgba(252, 51, 35, 0.1);
    outline: none;
}

.iti input::placeholder {
    color: #9ca3af !important;
}

/* Mobile phone dropdown - SIMPLIFIED */
.iti__country-list {
    border-radius: 12px !important;
    box-shadow: var(--shadow-lg) !important;
    z-index: 10001 !important;
}

/* Force dropdown to be visible on mobile */
.iti--container {
    z-index: 10002 !important;
}

/* Ensure flag container is tappable */
.iti__flag-container:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

/* Mobile specific fixes */
@media (max-width: 768px) {
    .iti__country-list {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 90% !important;
        max-width: 400px !important;
        max-height: 70vh !important;
        border-radius: 16px !important;
    }
    
    .iti__selected-flag {
        padding: 0 12px !important;
    }
    
    /* Make the entire flag area clickable */
    .iti__flag-container {
        padding: 0 8px !important;
    }
}


/* ========== BUTTONS - PREMIUM STYLE ========== */
.btn-step {
    padding: 16px 32px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 0.3px;
    box-shadow: var(--shadow-sm);
}

.btn-primary-step {
    background: linear-gradient(135deg, var(--success-green) 0%, var(--success-green-hover) 100%);
    color: white;
}

.btn-primary-step:active:not(:disabled) {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-secondary-step {
    background: white;
    color: var(--text-dark);
    border: 2px solid var(--border-gray);
}

.btn-secondary-step:active {
    transform: scale(0.98);
}

.btn-step:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-step-container {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.btn-step-container .btn-primary-step {
    flex: 1;
}

/* ========== SUMMARY BOX - ELEGANT DESIGN ========== */
.summary-box {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 2px solid #fecaca;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.summary-box h4 {
    margin: 0 0 20px 0;
    color: var(--primary-red);
    font-size: 19px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.3px;
}

.summary-item {
    margin: 12px 0;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #fecaca;
}

.summary-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.summary-item strong {
    color: var(--text-dark);
    font-weight: 700;
}

.summary-item span {
    color: var(--text-gray);
    font-weight: 700;
    text-align: right;
}

/* ========== ALERTS - MODERN DESIGN ========== */
.alert {
    padding: 16px 20px;
    border-radius: 14px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
}

.alert i {
    font-size: 18px;
}

.alert-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border: 2px solid #93c5fd;
}

.alert-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 2px solid #fca5a5;
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 2px solid #6ee7b7;
}

/* ========== LOADING SPINNER ========== */
.loading-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== MAIN TITLE ========== */
.reservation-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.5px;
}

.reservation-title i {
    color: var(--primary-red);
    font-size: 28px;
}

/* ========== MOBILE OPTIMIZATIONS ========== */
@media (max-width: 991px) {
    .step-title {
        font-size: 22px;
    }
    
    .party-size-option {
        padding: 18px;
        font-size: 16px;
    }
    
    .calendar-day {
        font-size: 14px;
    }
    
    .time-slot {
        padding: 14px 10px;
        font-size: 14px;
    }
    
    /* Hide title in mobile modal */
    .reservation-modal-body .reservation-title {
        display: none;
    }
}

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
@media (max-width: 500px) {
    .iti--flexible-dropdown-width .iti__country-list {
        white-space: normal;
        background-color: white;
    }
}
.iti--fullscreen-popup.iti--container
{
    padding: 0px;
}
[type=button]:not(:disabled), [type=reset]:not(:disabled), [type=submit]:not(:disabled), button:not(:disabled)
{
    gap:0px;
}
/* Closed days styling */
.calendar-day.closed {
    background-color: #ffe6e6 !important;
    color: #dc3545 !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

.calendar-day.closed:hover {
    background-color: #ffcccc !important;
    transform: none !important;
}

.calendar-day.closed span {
    text-decoration: line-through;
    color: #dc3545;
}

.calendar-day.disabled.closed {
    background-color: #ffe6e6 !important;
    color: #dc3545 !important;
}