/* ============================================
   DELHI HOUSE RESERVATIONS PAGE - RESTORIA DESIGN
   Matching Home Page Style
   Brand Colors: Red #EA1C24, Gold #C9A35E, Blue #81B09C
   ============================================ */

:root {
    --brand-red: #EA1C24;
    --brand-gold: #C9A35E;
    --brand-blue: #81B09C;
    --dark-bg: #1A1A1A;
    --light-bg: #FAFAFA;
    --cream-bg: #FFF9F5;
    --text-dark: #222222;
    --text-light: #666666;
    --reservations-bg: rgb(24, 49, 46);
}

body {
    background-color: var(--reservations-bg) !important;
}

/* Hero Banner Section */
.reservations-hero-section {
    padding: 70px 0 40px;
    background: url('../images/banner-1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
}

.reservations-hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.reservations-hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 20%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 2;
}

.reservations-hero-section .container {
    position: relative;
    z-index: 3;
}

.reservations-hero-section .section-badge {
    display: inline-block;
    font-family: 'Jost', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--brand-gold);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    position: relative;
    padding: 0 60px;
}

.reservations-hero-section .section-badge::before,
.reservations-hero-section .section-badge::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45px;
    height: 1px;
    background: var(--brand-gold);
}

.reservations-hero-section .section-badge::before {
    left: 0;
}

.reservations-hero-section .section-badge::after {
    right: 0;
}

.reservations-hero-section .section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.25rem, 5vw, 2rem);
    font-weight: 600;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 1.5rem;
}

.reservations-hero-section .section-subtitle {
    font-family: 'Jost', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Content Section */
.reservations-content-section {
    padding: 80px 0 100px;
    background: var(--reservations-bg);
}

/* Reservation Form Styles */
.card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.card-body {
    padding: 2.5rem 2rem;
    background: transparent;
}

@media (min-width: 1200px) {
    .card-body {
        padding: 3rem 3rem;
    }
}


.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 1.5rem 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.step {
    display: flex;
    align-items: center;
    margin: 0 1rem;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    font-family: 'Jost', sans-serif;
    margin-right: 0.5rem;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.step span {
    font-family: 'Jost', sans-serif;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.step.active .step-number {
    background: var(--brand-gold);
    color: #18312e;
    border-color: var(--brand-gold);
    box-shadow: 0 0 15px rgba(201, 163, 94, 0.4);
}

.step.active span {
    color: #ffffff;
}

.step.completed .step-number {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.step.completed span {
    color: rgba(255, 255, 255, 0.9);
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
}

h4 {
    color: #ffffff;
}

/* Form Elements */
.form-label {
    font-weight: 500;
    font-family: 'Jost', sans-serif;
    font-size: 0.9375rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
}

.form-control {
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 0.75rem 1rem;
    transition: all 0.3s;
    font-size: 15px;
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    line-height: 1.6;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-control:focus {
    border-color: var(--brand-gold);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 0.2rem rgba(201, 163, 94, 0.25);
    color: #ffffff;
    outline: none;
}

input[type="datetime-local"].form-control {
    color-scheme: dark;
}

/* Select dropdown styling */
.form-control select,
select.form-control {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.form-control option,
select.form-control option {
    background: rgb(24, 49, 46);
    color: #ffffff;
    padding: 10px;
}

.form-control option:hover,
select.form-control option:hover {
    background: rgba(201, 163, 94, 0.3);
}

.form-control option:checked,
select.form-control option:checked {
    background: var(--brand-gold);
    color: #ffffff;
}

/* Table Layout Styles */
.table-layout {
    border-radius: 0;
    padding: 2rem;
    min-height: 450px;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
}

.table-layout h4 {
    font-family: 'Cormorant Garamond', serif;
    color: #ffffff;
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.table-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.table-item {
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.9) 0%, rgba(90, 98, 104, 0.9) 100%);
    border-radius: 12px;
    padding: 1.25rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.table-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.table-item:hover::before {
    opacity: 1;
}

.table-item.available {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.95) 0%, rgba(32, 134, 55, 0.95) 100%);
    cursor: pointer;
    border-color: rgba(255, 255, 255, 0.2);
}

.table-item.available:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 24px rgba(40, 167, 69, 0.4);
    border-color: var(--brand-gold);
    background: linear-gradient(135deg, rgba(40, 167, 69, 1) 0%, rgba(32, 134, 55, 1) 100%);
}

.table-item.reserved {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.75) 0%, rgba(185, 44, 58, 0.75) 100%);
    cursor: not-allowed;
    opacity: 0.65;
    position: relative;
}

.table-item.reserved:hover {
    opacity: 0.85;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(220, 53, 69, 0.3);
}

.table-item.reserved::after {
    content: '\f05e';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.15);
    pointer-events: none;
}

.table-item.selected {
    border-color: var(--brand-gold);
    box-shadow: 0 0 0 3px rgba(201, 163, 94, 0.3), 0 8px 16px rgba(201, 163, 94, 0.4);
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(40, 167, 69, 1) 0%, rgba(32, 134, 55, 1) 100%);
    position: relative;
}

.table-item.selected::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.875rem;
    color: var(--brand-gold);
    background: rgba(0, 0, 0, 0.3);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding-top: 2px;
}

.table-number {
    font-size: 1.125rem;
    font-weight: 700;
    font-family: 'Cormorant Garamond', serif;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.table-capacity {
    font-size: 0.875rem;
    font-family: 'Jost', sans-serif;
    opacity: 0.95;
    font-weight: 500;
    margin-bottom: 0.35rem;
}

.table-area {
    font-size: 0.75rem;
    font-family: 'Jost', sans-serif;
    opacity: 0.85;
    font-weight: 400;
}

.table-status-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
}

.legend {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 2rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-family: 'Jost', sans-serif;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    margin-right: 0.625rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    z-index: 10;
}

.loading-overlay>div {
    text-align: center;
    color: #ffffff;
}

.loading-overlay p {
    margin-top: 1rem;
    font-family: 'Jost', sans-serif;
    font-size: 1rem;
}

.no-tables-message {
    text-align: center;
    padding: 3rem 2rem;
    color: rgba(255, 255, 255, 0.8);
}

.no-tables-message i {
    color: var(--brand-gold);
}

.no-tables-message p {
    font-family: 'Jost', sans-serif;
    margin-bottom: 0.5rem;
}

.no-tables-message p.small {
    color: rgba(255, 255, 255, 0.6);
}

/* Selected Table Details */
.selected-table-details {
    margin-bottom: 1.5rem;
    animation: slideDown 0.4s ease-out;
}

.selected-table-details .alert {
    border-radius: 12px;
    font-family: 'Jost', sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.selected-table-details p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.selected-table-details strong {
    color: rgba(255, 255, 255, 1);
    margin-right: 0.5rem;
    font-weight: 600;
}

.selected-table-details i {
    color: var(--brand-gold);
    width: 20px;
}

.selected-table-details h6 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.125rem;
    letter-spacing: 0.5px;
}

/* Alternative Suggestions */
.alternative-suggestions {
    animation: slideDown 0.5s ease-out;
}

.alternative-suggestions .alert {
    border-radius: 12px;
    font-family: 'Jost', sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(23, 162, 184, 0.3);
}

.alternative-suggestions h6 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.125rem;
    letter-spacing: 0.5px;
}

.alternative-suggestions ul li {
    font-size: 0.9rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.alternative-suggestions ul li:last-child {
    border-bottom: none;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Alternative Table Cards */
.alternative-table-card {
    transition: all 0.3s ease;
    font-family: 'Jost', sans-serif;
}

.alternative-table-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.alternative-table-card strong {
    font-size: 1rem;
}

.alternative-table-card .small {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}


/* Table Area Display */
.table-area {
    font-family: 'Jost', sans-serif;
    color: rgba(255, 255, 255, 0.8);
}

/* Navigation Buttons */
.btn-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    gap: 1rem;
}

.btn {
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 6px;
    padding: 12px 28px;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--brand-gold);
    border: none;
    color: #18312e;
}

.btn-primary:hover:not(:disabled) {
    background: #b89350;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(201, 163, 94, 0.4);
    color: #18312e;
}

.btn-primary:disabled {
    background: rgba(108, 117, 125, 0.5);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-success {
    background: #28a745;
    border: none;
    color: white;
}

.btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

/* Confirmation Section */
#step-3 p {
    font-family: 'Jost', sans-serif;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}

#step-3 h5 {
    font-family: 'Jost', sans-serif;
    color: var(--brand-gold);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

#step-3 strong {
    color: #ffffff;
}

#step-3 span {
    color: rgba(255, 255, 255, 0.85);
}

/* Alert Styles */
.alert {
    border-radius: 8px;
    border: none;
    padding: 15px 20px;
    margin-bottom: 25px;
    font-family: 'Jost', sans-serif;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.2);
    color: #ffffff;
    border-left: 4px solid #dc3545;
}

/* Button Styles */
.btn-update,
.btn-success {
    background: linear-gradient(135deg, #C9A35E 0%, #b08d4e 100%);
    border: none;
    color: #fff;
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 24px;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(201, 163, 94, 0.3);
}

.btn-update:hover,
.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 163, 94, 0.5);
    color: #fff;
    background: linear-gradient(135deg, #d4ae68 0%, #ba9858 100%);
}

.btn-cancel {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Jost', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 11px 24px;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 992px) {
    .reservations-hero-section {
        padding: 80px 0 60px;
    }

    .reservations-hero-section .section-badge::before,
    .reservations-hero-section .section-badge::after {
        width: 30px;
    }

    .reservations-content-section {
        padding: 60px 0 80px;
    }

    .card-body {
        padding: 2.5rem 2rem;
    }

    .table-layout {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .reservations-hero-section {
        padding: 60px 0 50px;
    }

    .reservations-hero-section .section-badge::before,
    .reservations-hero-section .section-badge::after {
        display: none;
    }

    .reservations-hero-section .section-badge {
        padding: 0;
    }

    .reservations-content-section {
        padding: 50px 0 60px;
    }

    .card-body {
        padding: 2rem 1.5rem;
    }

    .step-indicator {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem 0;
    }

    .step {
        margin: 0;
    }

    .table-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 0.875rem;
    }

    .table-item {
        padding: 1.125rem 0.875rem;
    }

    .table-number {
        font-size: 1rem;
    }

    .table-capacity {
        font-size: 0.8rem;
    }

    .table-layout {
        padding: 1.25rem;
    }

    .legend {
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .reservations-hero-section {
        padding: 50px 0 40px;
    }

    .reservations-content-section {
        padding: 40px 0 50px;
    }

    .card-body {
        padding: 1.75rem 1.25rem;
    }

    .table-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .table-item {
        padding: 1rem 0.75rem;
    }

    .table-number {
        font-size: 0.95rem;
    }

    .table-capacity,
    .table-area {
        font-size: 0.75rem;
    }

    .table-layout {
        padding: 1rem;
    }

    .btn-navigation {
        flex-direction: column;
    }

    .btn-navigation .btn {
        width: 100%;
    }

    .legend {
        gap: 1.25rem;
    }

    .legend-item {
        font-size: 0.85rem;
    }
}