﻿/* Màu sắc chính */
:root {
    --golden-color: #A47B3B;
    --dark-button-color: #333;
    --inactive-text-color: #999;
}

/* ⭐ QUY TẮC GỐC BODY BỊ BỎ: Nếu bạn chạy form này trực tiếp, 
   hãy đảm bảo trang HTML gốc của bạn có các quy tắc căn giữa. */

.wizard-container {
    background: #fff;
    width: 100%;
    margin-top:0px;
    max-width: 1000px; /* ĐÃ SỬA: Mở rộng chiều rộng */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    padding-bottom: 50px; /* Khoảng cách cho footer bản quyền */
    
}

/* HEADER */
.wizard-header {
    padding: 20px 50px 5px 50px; /* Giảm padding dưới */
    text-align: center;
    border-bottom: none;
}

.logo-area {
    margin-bottom: 20px;
}

.logo-image {
    width: 250px;
    height: auto;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 30px;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
}

.main-title {
    color: var(--golden-color);
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1.4;
    padding: 0 50px 5px 50px; /* ĐÃ SỬA: Giảm padding dưới */
}

/* BỔ SUNG: PROGRESS INDICATOR STYLE */
.progress-indicator {
    text-align: center;
    padding: 0 50px 20px 50px;
    font-size: 0.9rem;
    color: var(--inactive-text-color);
    font-weight: bold;
    border-bottom: 1px solid #eee; /* Thêm đường kẻ dưới Progress Indicator */
}

/* FORM BODY */
.wizard-form {
    padding: 0 50px;
}

.wizard-step {
    display: none;
    padding: 25px 0 30px 0; /* ĐÃ SỬA: Thêm padding trên để tách khỏi đường kẻ */
}

    .wizard-step.current-step {
        display: block;
    }

    .wizard-step h2 {
        font-size: 1.3rem;
        font-weight: bold;
        margin-bottom: 25px;
        color: var(--dark-button-color);
    }

/* INPUT/SELECT/TEXTAREA STYLES */
.form-group {
    margin-bottom: 20px;
}

.large-input, .standard-input, textarea, select {
    width: 100%;
    padding: 15px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1rem;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.name-row {
    display: flex;
    gap: 20px;
}

    .name-row .form-group {
        flex: 1;
    }

.phone-input-group {
    display: flex;
    gap: 5px;
}

.country-code-select {
    width: auto;
    flex-grow: 0;
}

.phone-number-input {
    flex-grow: 1;
}

/* Ẩn dấu mũi tên mặc định của dropdown */
.wizard-step select.large-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23333333%22%20d%3D%22M287%2069.4L146.2%20205.9%205.4%2069.4h281.2z%22%2F%3E%3C%2Fsvg%3E') no-repeat right 15px center / 12px 12px;
    padding-right: 40px;
}

/* STEP 1 SPECIFIC STYLES */
.personalisation-steps {
    display: flex;
    justify-content: space-between;
    text-align: center;
    margin-top: -40px;
    padding-top: 30px;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.step-info {
    flex: 1;
    padding: 0 10px;
}

    .step-info .circle {
        width: 35px;
        height: 35px;
        border: 2px solid var(--golden-color);
        border-radius: 50%;
        line-height: 31px;
        font-size: 1.1rem;
        font-weight: bold;
        color: var(--golden-color);
        margin: 0 auto 10px auto;
    }

    .step-info h3 {
        font-size: 1rem;
        color: #333;
        margin: 0 0 5px 0;
    }

    .step-info p {
        font-size: 0.8rem;
        color: #666;
    }

/* STEP 2, 3, 6 LAYOUT */
.step-row {
    display: flex;
    gap: 40px;
}

.col-left {
    flex-basis: 60%;
}

.col-right {
    flex-basis: 40%;
}

/* STEP 2 SPECIFIC STYLES (Calendar) */
.calendar-mockup {
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    width: 100%;
    max-width: 300px;
    box-sizing: border-box;
    font-size: 0.9rem;
}

.calendar-header-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    margin-bottom: 5px;
    font-weight: bold;
}

.calendar-grid {
    width: 100%;
    border-collapse: collapse;
}

    .calendar-grid th {
        text-align: center;
        padding: 5px 0;
        color: var(--inactive-text-color);
        font-weight: normal;
    }

    .calendar-grid td {
        text-align: center;
        padding: 8px 0;
        cursor: pointer;
        border-radius: 4px;
    }

        .calendar-grid td.selected-date {
            background-color: var(--dark-button-color);
            color: white;
            font-weight: bold;
        }

.description-text {
    font-size: 0.8rem;
    color: #666;
    margin-top: -15px;
    margin-bottom: 20px;
}

.duration-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 4px;
    width: 100%;
    max-width: 250px;
}

.duration-btn {
    background: none;
    border: none;
    padding: 5px 10px;
    font-size: 1.5rem;
    font-weight: normal;
    cursor: pointer;
    color: #333;
}

#tripDurationDisplay {
    font-weight: bold;
    font-size: 1rem;
    color: var(--dark-button-color);
}

/* CHECKBOX */
.checkbox-container {
    display: block;
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 1rem;
    user-select: none;
}

    .checkbox-container input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        height: 0;
        width: 0;
    }

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #eee;
    border: 1px solid #ccc;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--golden-color);
    border: 1px solid var(--golden-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}


/* CONTACT SIDEBAR (Chung cho các bước) */
.contact-sidebar {
    text-align: center;
    border-top: none;
    padding-top: 0;
    width: 100%;
    max-width: 200px;
    box-sizing: border-box;
}

.step2-contact-area .contact-sidebar {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
    max-width: none;
}

.contact-sidebar .prefer-text {
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 0;
    line-height: 1;
}

.contact-sidebar .expert-text {
    font-weight: bold;
    font-size: 0.75rem;
    color: var(--dark-button-color);
    margin-top: 2px;
}

.contact-sidebar .contact-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.contact-sidebar .contact-icon {
    width: 30px;
    height: 30px;
    margin-left: 0;
}

/* STEP 3 SPECIFIC STYLES (Travelers) */
.wizard-step.step-3 .col-left {
    flex-basis: 60%;
}

.wizard-step.step-3 .col-right {
    flex-basis: 40%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    padding-top: 20px;
}

.contact-sidebar.step3-sidebar {
    margin-top: 10px;
}


.travelers-count-group {
    padding-top: 10px;
    width: 100%;
}

.traveler-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

    .traveler-row span {
        font-weight: normal;
        color: #333;
        font-size: 1rem;
    }

    .traveler-row.total-row {
        border-top: 1px solid #eee;
        margin-top: 15px;
        padding-top: 15px;
        font-size: 1rem;
        font-weight: bold;
    }

/* COUNTER STYLE (Cho Step 3) */
.counter.new-counter {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

    .counter.new-counter button {
        background-color: #f5f5f5;
        color: #333;
        border: 1px solid #ccc;
        padding: 2px 8px;
        font-size: 1.1rem;
        font-weight: normal;
        cursor: pointer;
        line-height: 1.5;
        border-radius: 4px;
        min-width: 30px;
    }

        .counter.new-counter button:hover {
            background-color: #e0e0e0;
        }

    .counter.new-counter .counter-display {
        font-weight: bold;
        color: #333;
        font-size: 1rem;
        min-width: 20px;
        text-align: center;
    }

/* STEP 5 (Budget) STYLES */
.radio-group-horizontal {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 15px;
}

.radio-label {
    display: block;
    position: relative;
    padding-left: 25px;
    cursor: pointer;
    font-size: 1rem;
    user-select: none;
    flex: 1;
    width: auto;
}

    /* CUSTOM RADIO */
    .radio-label input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
    }

.custom-radio {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #eee;
    border-radius: 50%;
    border: 1px solid #ccc;
}

.radio-label input:checked ~ .custom-radio {
    background-color: var(--golden-color);
    border: 1px solid var(--golden-color);
}

.custom-radio:after {
    content: "";
    position: absolute;
    display: none;
}

.radio-label input:checked ~ .custom-radio:after {
    display: block;
    top: 6px;
    left: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}


/* STEP 6 (Travel Type) STYLES - Bố cục 2 cột mới */
.wizard-step.step-6 .col-left {
    flex-basis: 60%;
}

.wizard-step.step-6 .col-right {
    flex-basis: 40%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    padding-top: 20px;
}

.travel-type-options {
    padding-top: 10px;
}

.radio-label-block {
    display: block;
    position: relative;
    padding: 10px 0 10px 30px;
    cursor: pointer;
    margin-bottom: 0;
    border-bottom: 1px dashed #eee;
}

    .radio-label-block:last-child {
        border-bottom: none;
    }

    .radio-label-block p {
        font-size: 0.85rem;
        color: #666;
        margin: 3px 0 0 0;
        font-weight: normal;
    }

    .radio-label-block .custom-radio {
        top: 15px;
    }

/* CONTACT SIDEBAR CHO STEP 6 */
.contact-sidebar.step6-sidebar {
    text-align: center;
    margin-top: 10px;
    border-top: none;
    padding-top: 0;
}


/* STEP 7 (Contact Info) STYLES */
.opt-in-text {
    font-size: 0.75rem;
    color: #999;
    margin-top: 30px;
}

/* STEP 8 (Preview) STYLES */
.summary-output {
    background-color: #f8f8f8;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 4px;
    overflow-y: auto;
}

#jsonOutput {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: monospace;
    font-size: 0.9rem;
    color: #333;
}

.final-message {
    text-align: center;
    margin-top: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--golden-color);
}

/* FOOTER NAVIGATION */
.wizard-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border-top: 1px solid #eee;
    padding: 20px 50px 0 50px;
}

.navigation-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 10px 25px;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    min-width: 100px;
}

.previous-btn {
    background-color: #fff;
    color: #333;
    border: 1px solid #ccc;
}

.next-btn, .submit-btn {
    background-color: var(--dark-button-color);
    color: #fff;
}

/* FOOTER BẢN QUYỀN */
.copyright-footer {
    text-align: center;
    font-size: 0.7rem;
    color: #aaa;
    padding: 10px 0;
    position: absolute;
    bottom: 0;
    width: 100%;
}

/* MEDIA QUERIES cho responsive */
@media (max-width: 850px) {
    .wizard-container {
        max-width: 100%;
        box-shadow: none;
    }
}

@media (max-width: 600px) {
    .wizard-header, .wizard-form, .wizard-footer, .progress-indicator {
        padding-left: 20px;
        padding-right: 20px;
    }

    .main-title {
        font-size: 1.2rem;
    }

    .step-row {
        flex-direction: column;
        gap: 20px;
    }

    .col-left, .col-right,
    .wizard-step.step-3 .col-left,
    .wizard-step.step-3 .col-right,
    .wizard-step.step-6 .col-left,
    .wizard-step.step-6 .col-right {
        flex-basis: 100%;
        width: 100%;
        padding-top: 0 !important;
    }

    .contact-sidebar {
        max-width: none;
    }

    .wizard-step.step-3 .col-right,
    .wizard-step.step-6 .col-right {
        justify-content: center;
    }

    .personalisation-steps {
        flex-direction: column;
        gap: 20px;
        padding-top: 10px;
        border-top: none;
    }

    .wizard-footer {
        justify-content: space-between;
    }

    .navigation-buttons {
        flex-grow: 1;
        justify-content: space-between;
    }

    .radio-group-horizontal {
        flex-direction: column;
    }

    .radio-label {
        width: 100%;
    }
}

/* ⭐ QUY TẮC BỔ SUNG QUAN TRỌNG: Tối ưu hóa cho Modal */

/* 1. Đảm bảo Bootstrap Modal Content không có padding để container bên trong quyết định kích thước */
.modal-content {
    padding: 0;
}

/* 2. Giới hạn kích thước cho wrapper của nội dung form trong modal */
.booking-modal-content-wrapper {
    margin: 0 auto;
    width: 100%;
    max-width: 1000px;
}

/* 3. Thiết lập kích thước cho chính Modal Dialog */
#bookingModal .modal-dialog {
    max-width: 1000px;
    width: 95%; /* Sử dụng 95% để có khoảng cách an toàn trên mobile */
    margin: 1.75rem auto; /* Căn giữa */
}

contact-sidebar .contact-icons {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 10px;
	font-size:3em;
}