/* General Styling */
#dlh-booking-container {
    font-family: Arial, sans-serif;
    max-width: 900px; /* Tăng chiều rộng để chứa sidebar */
    margin: 20px auto;
    padding: 25px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.dlh-header {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

/* Tabs */
.dlh-tabs {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    background-color: #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.dlh-tabs li {
    flex-grow: 1;
    text-align: center;
    padding: 10px 5px;
    cursor: pointer;
    font-weight: 600;
    color: #495057;
    transition: background-color 0.3s, color 0.3s;
    border-right: 1px solid #dee2e6;
}

.dlh-tabs li:last-child {
    border-right: none;
}

.dlh-tabs li.active {
    background-color: #007bff;
    color: white;
}

/* --- NEW LAYOUT: Form + Sidebar --- */
#dlh-booking-wrapper {
    display: flex;
    flex-direction: column; /* Mặc định xếp chồng trên mobile */
    gap: 20px;
}

#dlh-form {
    flex-grow: 1;
    min-width: 50%; /* Đảm bảo form có đủ không gian */
}

/* Sidebar Summary */
#dlh-summary-sidebar {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 3px solid #007bff; /* Thanh màu xanh nổi bật */
    order: -1; /* Đặt lên trên form ở mobile */
}

#dlh-summary-sidebar h4 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #007bff;
    font-size: 1.2em;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 1em;
}

.summary-label {
    font-weight: 500;
    color: #555;
}

.summary-value {
    font-weight: bold;
    color: #333;
}

.summary-section {
    margin-top: 15px;
}

.summary-section .service-header {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #007bff;
}

#summary-services-list {
    padding-left: 10px;
    font-size: 0.9em;
}

#summary-services-list .service-summary-item {
    padding: 3px 0;
    border-left: 3px solid #f0f0f0;
    padding-left: 10px;
    margin-bottom: 5px;
}

.total-row {
    font-size: 1.3em;
    padding-top: 10px;
    margin-top: 15px;
    border-top: 2px dashed #007bff;
}

#summary-total {
    color: #dc3545; /* Red for total price */
}

/* Media Query cho Desktop */
@media (min-width: 768px) {
    #dlh-booking-wrapper {
        flex-direction: row; /* Sắp xếp form và sidebar cạnh nhau */
    }
    
    #dlh-summary-sidebar {
        width: 35%; /* Sidebar chiếm 35% */
        order: 2; /* Đặt sidebar ở bên phải */
    }
    
    #dlh-form {
        width: 60%; /* Form chiếm 60% */
        padding-right: 20px;
        order: 1; /* Đặt form ở bên trái */
    }
}


/* Steps */
.dlh-step {
    display: none;
}
/* ... (giữ nguyên các style khác) ... */
.dlh-step.active {
    display: block;
}

.dlh-step h3 {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #007bff;
    font-size: 1.4em;
}

/* Form Groups */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="email"],
.form-group input[type="date"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 16px;
}

.form-group small {
    display: block;
    color: #888;
    margin-top: 5px;
}

/* Service List */
.service-list {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: white;
    padding: 15px;
    margin-bottom: 20px;
}

.service-item label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #f0f0f0;
    cursor: pointer;
    font-weight: normal;
    color: #333;
}

.service-item:last-child label {
    border-bottom: none;
    padding-bottom: 0;
}

.service-item input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.svc-name {
    flex-grow: 1;
    font-weight: 600;
}

.svc-meta {
    font-size: 0.9em;
    text-align: right;
}

.svc-price {
    font-weight: bold;
    color: #28a745; /* Green for price */
    margin-left: 15px;
}

.svc-duration {
    color: #888;
    margin-left: 10px;
}


/* Total Summary Cũ ĐÃ BỊ XÓA */


/* Time Slots */
#time-slots-container {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 50px; /* Prevent CLS */
}

.time-slot {
    padding: 8px 15px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 50px; /* Pill shape */
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
    font-weight: 500;
}

.time-slot:hover {
    background-color: #e9ecef;
    border-color: #007bff;
}

.time-slot.selected {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

/* Footer Buttons */
.dlh-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.btn-next, .btn-back, .btn-submit {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, opacity 0.3s;
}

.btn-next, .btn-submit {
    background-color: #007bff;
    color: white;
}

.btn-next:hover, .btn-submit:hover {
    background-color: #0056b3;
}

.btn-back {
    background-color: #6c757d;
    color: white;
}

.btn-back:hover {
    background-color: #5a6268;
}

.btn-next:disabled, .btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
#payment-qr-container {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

#payment-info {
    margin-top: 15px;
    padding: 15px;
    background: white;
    border-radius: 5px;
    border: 1px solid #ddd;
}

#payment-status {
    font-size: 16px;
    font-weight: bold;
}

.btn-finish {
    background: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-finish:hover {
    background: #218838;
}