/* Booking Page Styles */

/* Breadcrumb Navigation */
.breadcrumb {
    background-color: #f5f5f5;
    padding: 10px 0;
    margin-bottom: 30px;
}

.breadcrumb ul {
    display: flex;
    align-items: center;
}

.breadcrumb li {
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb li:not(:last-child)::after {
    content: '>';
    margin: 0 10px;
    color: #999;
}

.breadcrumb a {
    color: #333;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Booking Section */
.booking-section {
    padding: 60px 0 80px;
}

.booking-intro {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.booking-intro h2 {
    margin-bottom: 15px;
    font-size: 2rem;
}

.booking-intro p {
    font-size: 1.1rem;
    color: #666;
}

.booking-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* Booking Form */
.booking-form-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.booking-form {
    padding: 30px;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.form-step h3 {
    margin-bottom: 25px;
    font-size: 1.5rem;
    color: #333;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #333;
    outline: none;
}

.form-group textarea {
    resize: vertical;
}

/* Checkbox Styling */
.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 35px;
    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: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: #eee;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #333;
    border-color: #333;
}

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

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

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

.terms-link {
    color: #333;
    font-weight: 600;
    text-decoration: underline;
}

/* Form Buttons */
.form-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.form-buttons button {
    min-width: 120px;
}

/* Booking Sidebar */
.booking-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sidebar-widget h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: #333;
    position: relative;
    padding-bottom: 10px;
}

.sidebar-widget h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #333;
}

.sidebar-widget p {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Booking Progress */
.booking-progress {
    margin: 0;
    padding: 0;
    list-style: none;
}

.booking-progress li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    color: #999;
    font-weight: 600;
    transition: color 0.3s ease;
}

.booking-progress li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.booking-progress li.active {
    color: #333;
}

.progress-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: #f5f5f5;
    border-radius: 50%;
    margin-right: 15px;
    font-weight: 700;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.booking-progress li.active .progress-number {
    background-color: #333;
    color: #fff;
}

/* Contact Info */
.contact-info {
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-info li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.contact-info li:last-child {
    margin-bottom: 0;
}

.contact-info i {
    margin-right: 10px;
    color: #333;
    width: 20px;
    text-align: center;
}

/* Business Hours */
.business-hours {
    margin: 0;
    padding: 0;
    list-style: none;
}

.business-hours li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.business-hours li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.business-hours span {
    font-weight: 600;
}

/* Booking Summary */
.booking-summary {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
}

.booking-summary h4 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: #333;
    text-align: center;
}

.summary-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.summary-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.summary-section h5 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #333;
}

.summary-row {
    display: flex;
    margin-bottom: 10px;
}

.summary-row:last-child {
    margin-bottom: 0;
}

.summary-label {
    font-weight: 600;
    min-width: 120px;
    color: #666;
}

.summary-value {
    flex: 1;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: auto;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    text-align: center;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #333;
}

.success-icon {
    font-size: 4rem;
    color: #4CAF50;
    margin-bottom: 20px;
}

.modal h2 {
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.modal p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

/* Flatpickr Customization */
.flatpickr-calendar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange:focus,
.flatpickr-day.endRange:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover,
.flatpickr-day.selected.prevMonthDay,
.flatpickr-day.startRange.prevMonthDay,
.flatpickr-day.endRange.prevMonthDay,
.flatpickr-day.selected.nextMonthDay,
.flatpickr-day.startRange.nextMonthDay,
.flatpickr-day.endRange.nextMonthDay {
    background: #333;
    border-color: #333;
}

/* Utility Classes */
.hidden {
    display: none;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .booking-container {
        grid-template-columns: 1fr;
    }

    .booking-sidebar {
        position: static;
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .form-buttons button {
        width: 100%;
    }

    .modal-buttons {
        flex-direction: column;
    }

    .modal-buttons a,
    .modal-buttons button {
        width: 100%;
    }
}
