        html {
            scroll-behavior: smooth;
        }
  /* Payment Section Styles */
        .payment-section {
            margin-top: 25px;
            padding: 25px;
            background: #f8f9fa;
            border-radius: 12px;
            border: 1px solid #e0e0e0;
        }

        .payment-section h3 {
            color: #326984;
            margin-bottom: 15px;
            font-size: 1.3rem;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .payment-info {
            background: white;
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 20px;
            border-left: 4px solid #4a8fa8;
        }

        .payment-info p {
            margin: 0;
            color: #666;
            font-size: 0.95rem;
            line-height: 1.6;
        }

        #payment-element {
            margin: 20px 0;
            padding: 20px;
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }

        .payment-actions {
            display: flex;
            gap: 12px;
            margin-top: 25px;
            flex-wrap: wrap;
        }

        .payment-actions button {
            flex: 1;
            min-width: 150px;
        }

        .payment-badge {
            display: inline-block;
            padding: 5px 14px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
            margin-left: 10px;
            white-space: nowrap;
        }

        .payment-badge.paid {
            background: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }

        .payment-badge.refunded {
            background: #fff3cd;
            color: #856404;
            border: 1px solid #ffeaa7;
        }

        .payment-badge.pending {
            background: #cce5ff;
            color: #004085;
            border: 1px solid #b8daff;
        }

        .payment-badge.failed {
            background: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }

        /* Section visibility classes */
        .section-hidden {
            display: none;
        }

        .section-visible {
            display: block;
        }

        
        /* Reservation card enhancements for payment status */
        .reservation-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 15px;
            flex-wrap: wrap;
            gap: 10px;
        }

        .reservation-header h3 {
            margin: 0;
            flex: 1;
            min-width: 200px;
        }

        .badge-container {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            align-items: center;
        }

        /* Loading spinner for payment processing */
        .payment-processing {
            text-align: center;
            padding: 30px;
        }

        .payment-processing .spinner {
            width: 50px;
            height: 50px;
            margin: 0 auto 20px;
            border: 4px solid #f3f3f3;
            border-top: 4px solid #326984;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Security badge */
        .security-badge {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 12px 16px;
            background: #e8f5e9;
            border-radius: 8px;
            margin-top: 15px;
            font-size: 0.9rem;
            color: #2e7d32;
        }

        .security-badge::before {
            content: "🔒";
            font-size: 1.2rem;
        }

        /* Responsive adjustments */
        @media (max-width: 768px) {
            .payment-actions {
                flex-direction: column;
            }
            
            .payment-actions button {
                width: 100%;
                min-width: unset;
            }

            .reservation-header {
                flex-direction: column;
            }

            .badge-container {
                width: 100%;
            }
        }

        /* Enhanced modal content spacing */
        .modal-content h2 {
            color: #326984;
            margin-bottom: 20px;
        }

        .form-section-title {
            font-size: 1.1rem;
            font-weight: 600;
            color: #326984;
            margin: 25px 0 15px;
            padding-bottom: 10px;
            border-bottom: 2px solid #e0e0e0;
        }

        /* Payment amount highlight */
        .payment-amount {
            background: linear-gradient(135deg, #326984 0%, #4a8fa8 100%);
            color: white;
            padding: 20px;
            border-radius: 10px;
            text-align: center;
            margin: 20px 0;
        }

        .payment-amount .amount {
            font-size: 2.5rem;
            font-weight: 700;
            display: block;
            margin: 10px 0;
        }

        .payment-amount .label {
            font-size: 0.9rem;
            opacity: 0.9;
        }
        
        /*  =======================

        /* Updated responsive styles for row layout rooms */

/* Room cards in row layout */
.rooms-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 25px;
}

.room-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: visible;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 180px;
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(50, 105, 132, 0.2);
}

.room-image {
    flex-shrink: 0;
    width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    background: linear-gradient(135deg, #326984 0%, #4a8fa8 100%);
    position: relative;
}

.room-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.1), transparent);
}

.room-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.room-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.room-type {
    font-size: 1.4rem;
    font-weight: 700;
    color: #326984;
}

.room-number {
    background: #e8f4f8;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #326984;
    font-weight: 600;
}

.room-description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.room-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.amenity {
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #555;
    white-space: nowrap;
}

.room-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 2px solid #f0f0f0;
    flex-wrap: wrap;
    gap: 15px;
}

.room-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #326984;
}

.room-price span {
    font-size: 0.7rem;
    font-weight: 400;
    color: #000000;
}

.room-capacity {
    color: #666;
    font-size: 1rem;
}

/* Tablet responsive (768px - 1024px) */
@media (max-width: 1024px) {
    .room-card {
        min-height: 160px;
    }
    
    .room-image {
        width: 160px;
        font-size: 4rem;
    }
    
    .room-type {
        font-size: 1.2rem;
    }
    
    .room-price {
        font-size: 1.5rem;
    }
}

/* Mobile responsive (max 767px) */
@media (max-width: 767px) {
    .room-card {
        flex-direction: column;
        min-height: auto;
    }
    
    .room-image {
        width: 100%;
        height: 120px;
        font-size: 4rem;
    }
    
    .room-content {
        padding: 15px;
    }
    
    .room-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .room-type {
        font-size: 1.3rem;
    }
    
    .room-description {
        font-size: 0.9rem;
    }
    
    .room-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .room-price {
        font-size: 1.6rem;
    }
    
    .amenity {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
}

/* Search form responsive */
.search-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 640px) {
    .search-form {
        grid-template-columns: 1fr;
    }
    
    .form-group {
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
}

/* Modal responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-width: none;
        margin: 20px auto;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .payment-actions {
        flex-direction: column;
    }
    
    .payment-actions .btn {
        width: 100%;
    }
}

/* Fee notice responsive */
.fee-notice {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

.fee-notice p {
    margin: 0;
    color: #856404;
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 640px) {
    .fee-notice {
        padding: 12px;
        font-size: 0.85rem;
    }
    
    .fee-notice p {
        font-size: 0.85rem;
    }
}

/* Reservation card responsive */
.reservation-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

@media (max-width: 640px) {
    .reservation-card {
        padding: 15px;
    }
    
    .reservation-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
    }
    
    .badge-container {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
}



/* Enhanced Calendar Styles with Blocked Dates Indicators */

/* Date input wrapper for blocked dates visualization */
.date-input-wrapper {
    position: relative;
    width: 100%;
}

/* Blocked dates tooltip/indicator */
.blocked-dates-tooltip {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: #fff;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    display: none;
    max-height: 200px;
    overflow-y: auto;
}

.date-input-wrapper:focus-within .blocked-dates-tooltip {
    display: block;
}

.blocked-dates-tooltip h4 {
    margin: 0 0 8px 0;
    color: #856404;
    font-size: 0.9rem;
    font-weight: 600;
}

.blocked-dates-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blocked-dates-list li {
    padding: 4px 8px;
    margin: 4px 0;
    background: #fff3cd;
    border-left: 3px solid #ffc107;
    font-size: 0.85rem;
    color: #856404;
    border-radius: 4px;
}

/* Calendar blocked dates warning banner */
.calendar-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe8a1 100%);
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 16px 20px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.calendar-warning-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.calendar-warning-content {
    flex: 1;
}

.calendar-warning-content h4 {
    margin: 0 0 6px 0;
    color: #856404;
    font-size: 1.1rem;
}

.calendar-warning-content p {
    margin: 0;
    color: #856404;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Availability status badge */
.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 10px;
}

.availability-badge.available {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.availability-badge.blocked {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.availability-badge.limited {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Date picker custom styling */
input[type="date"] {
    position: relative;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

input[type="date"]:hover {
    border-color: #4a8fa8;
}

input[type="date"]:focus {
    outline: none;
    border-color: #326984;
    box-shadow: 0 0 0 3px rgba(50, 105, 132, 0.1);
}

input[type="date"].has-blocked-dates {
    border-color: #ffc107;
    background: linear-gradient(to right, white 0%, #fffbf0 100%);
}

input[type="date"].has-blocked-dates:focus {
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2);
}

/* Calendar icon indicator for blocked dates */
input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    font-size: 1.3rem;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    background: rgba(50, 105, 132, 0.1);
}

input[type="date"].has-blocked-dates::-webkit-calendar-picker-indicator {
    background: rgba(255, 193, 7, 0.1);
}

/* Blocked dates legend */
.calendar-legend {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid #e0e0e0;
}

.legend-color.available {
    background: #d4edda;
    border-color: #c3e6cb;
}

.legend-color.blocked {
    background: #f8d7da;
    border-color: #f5c6cb;
}

.legend-color.selected {
    background: #cce5ff;
    border-color: #b8daff;
}

/* Animated striped pattern for blocked dates indicator */
.blocked-pattern {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 4px;
    background: repeating-linear-gradient(
        45deg,
        #ffc107,
        #ffc107 4px,
        #fff3cd 4px,
        #fff3cd 8px
    );
    border-radius: 0 6px 6px 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

input[type="date"].has-blocked-dates .blocked-pattern {
    opacity: 1;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .calendar-warning {
        flex-direction: column;
        text-align: center;
    }
    
    .calendar-legend {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .blocked-dates-tooltip {
        max-height: 150px;
    }
}

/* Loading state for calendar */
.calendar-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.calendar-loading::after {
    content: '⏳ Loading availability...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #666;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    white-space: nowrap;
}

/* Enhanced room card with availability indicator */
.room-card {
    position: relative;
}

.room-card.limited-availability::before {
    content: '⚠️ Limited Availability';
    position: absolute;
    top: 15px;
    right: 15px;
    background: #fff3cd;
    color: #856404;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid #ffc107;
    z-index: 10;
}

/* Availability calendar mini-view (optional enhancement) */
.mini-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 10px;
}

.mini-calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    background: white;
    transition: all 0.2s ease;
}

.mini-calendar-day.available {
    background: #d4edda;
    border-color: #c3e6cb;
}

.mini-calendar-day.blocked {
    background: #f8d7da;
    border-color: #f5c6cb;
    position: relative;
}

.mini-calendar-day.blocked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #721c24;
    transform: translateY(-50%) rotate(-45deg);
}

.mini-calendar-day.today {
    border: 2px solid #326984;
    font-weight: bold;
}

/* Pulse animation for availability warning */
@keyframes pulse-warning {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
    }
}

.date-input-wrapper.has-conflicts {
    animation: pulse-warning 2s infinite;
}

/* Tooltip for individual blocked dates */
.blocked-date-tooltip {
    position: relative;
    cursor: help;
}

.blocked-date-tooltip:hover::after {
    content: attr(data-reason);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    margin-bottom: 5px;
    z-index: 1000;
}

.blocked-date-tooltip:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
    z-index: 1000;
}