﻿/* =============================================
   MULTI-STEP BOOKING WIZARD - COMPLETE STYLES
   Colors: #E23428 (Primary Red), #135846 (Secondary Green)
   ============================================= */

:root {
    --primary-color: #E23428;
    --secondary-color: #135846;
    --primary-hover: #c72820;
    --secondary-hover: #0f4535;
}

/* Wizard Container */
.booking-wizard-container {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0,0,0,0.1);
    padding: 40px;
    position: relative;
}

.counter-step-status {
    position: fixed;
    right: 24px;
    top: 155px;
    width: 230px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(0,0,0,.12);
    z-index: 80;
    overflow: hidden;
}

.counter-status-head {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f3f5;
}

.counter-status-title {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #1f2937;
}

.counter-status-sub {
    font-size: 12px;
    color: #6c757d;
    margin-top: 2px;
}

.counter-status-list {
    padding: 10px 12px 12px;
}

.counter-status-item {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    align-items: center;
    gap: 9px;
    padding: 8px 0;
}

.counter-status-item span {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f3f5;
    color: #98a1ab;
    font-size: 12px;
    font-weight: 800;
}

.counter-status-item strong {
    color: #6c757d;
    font-size: 12px;
}

.counter-status-item em {
    color: #9aa3ad;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
}

.counter-status-item.completed span {
    background: var(--secondary-color);
    color: #fff;
}

.counter-status-item.completed strong,
.counter-status-item.completed em {
    color: var(--secondary-color);
}

.counter-status-item.active span {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(226,52,40,.12);
}

.counter-status-item.active strong,
.counter-status-item.active em {
    color: var(--primary-color);
}

/* Progress Steps */
.wizard-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    position: relative;
    padding: 0 20px;
}

    .wizard-progress::before {
        content: '';
        position: absolute;
        top: 25px;
        left: 10%;
        right: 10%;
        height: 4px;
        background: #e0e0e0;
        z-index: 0;
    }

.wizard-step {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
}

.wizard-step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.4s ease;
    border: 4px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.wizard-step.active .wizard-step-circle {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 0 0 6px rgba(226, 52, 40, 0.15);
    transform: scale(1.15);
}

.wizard-step.completed .wizard-step-circle {
    background: var(--secondary-color);
    color: white;
}

    .wizard-step.completed .wizard-step-circle::before {
        content: '\f00c';
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
    }

.wizard-step-label {
    font-size: 13px;
    color: #666;
    font-weight: 600;
    margin-top: 8px;
}

.wizard-step.active .wizard-step-label {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 14px;
}

.wizard-step.completed .wizard-step-label {
    color: var(--secondary-color);
}

/* Step Content */
.wizard-content {
    min-height: 550px;
    padding: 20px 0;
}

.wizard-step-content {
    display: none;
}

    .wizard-step-content.active {
        display: block;
        animation: fadeInUp 0.4s ease;
    }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Navigation Buttons */
.wizard-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 3px solid #f0f0f0;
}

.btn-wizard {
    min-width: 140px;
    padding: 14px 35px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-wizard-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

    .btn-wizard-primary:hover {
        background-color: var(--primary-hover);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(226, 52, 40, 0.3);
    }

.btn-wizard-success {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

    .btn-wizard-success:hover {
        background-color: var(--secondary-hover);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(19, 88, 70, 0.3);
    }

/* Section Headers */
.wizard-section-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    padding: 18px 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(226, 52, 40, 0.2);
}

    .wizard-section-header h5 {
        margin: 0;
        font-weight: 600;
        font-size: 18px;
    }

    .wizard-section-header i {
        margin-right: 10px;
    }

/* Guest Search Results */
.guest-search-result {
    cursor: pointer;
    padding: 18px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    background: white;
}

    .guest-search-result:hover {
        border-color: var(--primary-color);
        background: #fff5f5;
        transform: translateX(8px);
        box-shadow: 0 4px 12px rgba(226, 52, 40, 0.15);
    }

    .guest-search-result.selected {
        border-color: var(--secondary-color);
        background: #e8f5e9;
        border-width: 3px;
    }

/* Room Cards with Images */
.room-card {
    cursor: pointer;
    border: 3px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
}

    .room-card:hover {
        border-color: var(--primary-color);
        box-shadow: 0 8px 24px rgba(226, 52, 40, 0.2);
        transform: translateY(-8px);
    }

    .room-card.selected {
        border-color: var(--secondary-color);
        border-width: 4px;
        box-shadow: 0 12px 30px rgba(19, 88, 70, 0.25);
    }

    .room-card.room-card-booked {
        cursor: not-allowed;
        border-color: #dc3545;
        background: #fff8f8;
        opacity: .78;
    }

    .room-card.room-card-booked:hover {
        transform: none;
        box-shadow: none;
        border-color: #dc3545;
    }

.room-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f0f0f0;
}

.room-card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
}

.room-selection-checkbox {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

/* Guest Count Boxes */
.guest-count-box {
    text-align: center;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    border: 3px solid #dee2e6;
    transition: all 0.3s ease;
}

    .guest-count-box:hover {
        border-color: var(--primary-color);
        box-shadow: 0 6px 16px rgba(0,0,0,0.1);
        transform: scale(1.05);
    }

    .guest-count-box i {
        font-size: 3rem;
        margin-bottom: 15px;
        display: block;
    }

    .guest-count-box select {
        font-size: 1.4rem;
        font-weight: 700;
        text-align: center;
        border: 2px solid #dee2e6;
        border-radius: 8px;
    }

/* Price Breakdown */
.price-breakdown {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed #dee2e6;
}

    .price-row.total {
        border-top: 3px solid var(--primary-color);
        border-bottom: none;
        font-size: 1.3rem;
        font-weight: 700;
        padding-top: 18px;
        margin-top: 12px;
        color: var(--secondary-color);
    }

    .price-row.subtotal {
        font-weight: 600;
        border-bottom: 2px solid #adb5bd;
    }

/* Multi-Room Summary */
.selected-rooms-list {
    max-height: 400px;
    overflow-y: auto;
}

.selected-room-item {
    padding: 15px;
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    margin-bottom: 10px;
    background: #e8f5e9;
}

    .selected-room-item .remove-room {
        cursor: pointer;
        color: var(--primary-color);
        font-weight: 700;
    }

        .selected-room-item .remove-room:hover {
            color: var(--primary-hover);
        }

/* Room Counter Badge */
.room-counter-badge {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--secondary-color);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(19, 88, 70, 0.4);
    z-index: 1000;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .room-counter-badge:hover {
        transform: scale(1.1);
        box-shadow: 0 8px 25px rgba(19, 88, 70, 0.5);
    }

/* Alert Styles */
.alert-custom {
    border-radius: 10px;
    padding: 18px;
    border-width: 2px;
}

/* Sticky Summary */
.sticky-summary {
    position: sticky;
    top: 20px;
    z-index: 10;
}

/* Loading State */
.loading-spinner {
    text-align: center;
    padding: 60px 20px;
}

    .loading-spinner i {
        font-size: 3rem;
        color: var(--primary-color);
        animation: spin 1s linear infinite;
    }

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

    100% {
        transform: rotate(360deg);
    }
}

/* Form Validation */
.is-invalid {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.25rem rgba(226, 52, 40, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .counter-step-status {
        position: static;
        width: 100%;
        margin-bottom: 20px;
        box-shadow: 0 4px 16px rgba(0,0,0,.08);
    }

    .wizard-progress {
        flex-wrap: wrap;
    }

    .wizard-step {
        flex: 0 0 33.333%;
        margin-bottom: 20px;
    }

    .wizard-step-label {
        font-size: 11px;
    }

    .room-card-image {
        height: 150px;
    }


    .btn-wizard {
        width: 100%;
        margin-bottom: 10px;
    }

    .room-counter-badge {
        bottom: 10px;
        right: 10px;
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Image Placeholder */
.no-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 3rem;
}

/* Success Checkmark Animation */
@keyframes checkmark {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.success-checkmark {
    animation: checkmark 0.5s ease;
}

/* Custom Scrollbar */
.selected-rooms-list::-webkit-scrollbar {
    width: 8px;
}

.selected-rooms-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.selected-rooms-list::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 10px;
}

    .selected-rooms-list::-webkit-scrollbar-thumb:hover {
        background: var(--secondary-hover);
    }
