/* ==================== LAYOUT CHUNG ==================== */
.restaurant-booking-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #333;
}

.booking-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.booking-title {
    font-size: 26px;
    font-weight: 700;
    color: #111;
    margin: 0;
}

/* ==================== BƯỚC 1: MENU CARDS ==================== */
.menu-type-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.menu-type-card {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-type-card:hover {
    border-color: #764C29; 
    box-shadow: 0 10px 25px rgba(118, 76, 41, 0.1);
    transform: translateY(-5px);
}

.menu-type-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.menu-type-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.btn-select-menu {
    background: #764C29;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: background 0.2s;
}

.btn-select-menu:hover {
    background: #5e3c20;
}

/* ==================== BƯỚC 2: POLICY INFO ==================== */
.booking-info-section {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.info-content {
    margin: 30px 0;
}

.info-item {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f3f4f6;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item h3 {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin: 0 0 8px 0;
    text-transform: uppercase;
}

.info-item p {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.info-item strong {
    color: #764C29;
}

.info-contact {
    background: #f9f5f2;
    border: 1px solid #764C29;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-top: 30px;
}

.btn-confirm-continue {
    background: #764C29;
    color: white;
    border: none;
    padding: 16px 50px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(118, 76, 41, 0.3);
}

.btn-confirm-continue:hover {
    background: #5e3c20;
    transform: translateY(-2px);
}

/* ==================== BƯỚC 3: FORM ==================== */
.booking-form-container {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.form-header h2 {
    margin: 0;
    font-size: 22px;
}

.btn-back-step {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    padding: 0;
}

.btn-back-step:hover {
    color: #764C29;
}

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

.form-group {
    margin-bottom: 20px;
    width: 100%;
    /* Đảm bảo form group luôn là block để tránh lỗi flex layout */
    display: block; 
}

.form-group.half {
    width: 50%;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    width: 100%; /* Label luôn full width */
}

.form-control {
    width: 100%;
    padding: 0; 
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    height: 40px;
    text-indent: 10px;
    box-sizing: border-box; /* Quan trọng để không bị vỡ layout */
}

.form-control:focus {
    border-color: #764C29;
    box-shadow: 0 0 0 3px rgba(118, 76, 41, 0.1);
}

textarea.form-control {
    resize: vertical;
    height: auto;
    padding: 10px;
    text-indent: 0;
}

/* --- FIX CSS CHO MỤC CHỌN MÓN --- */
/* Đảm bảo input 'Khác' hiển thị đẹp, có khoảng cách */
#alacarte-item-other-input {
    border-radius: 10px;
    margin-top:0px !important;
    display: block;
    width: 100%;
}

/* Đảm bảo dropdown chọn món full width */
#alacarte-item-dropdown {
    width: 100%;
    display: block;
}

/* ==================== PRICE & PAYMENT ==================== */
.price-summary-section {
    background: #f9fafb;
    padding: 25px;
    border-radius: 12px;
    margin-top: 30px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 15px;
}

.price-row.subtotal {
    border-top: 1px solid #e5e7eb;
    margin-top: 10px;
    padding-top: 15px;
    font-weight: 600;
}

.price-row.total {
    border-top: 2px solid #764C29;
    margin-top: 10px;
    padding-top: 15px;
    color: #764C29;
    font-size: 18px;
    font-weight: 700;
}

.payment-option-section {
    margin: 25px 0;
}

.payment-option-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    background: white;
}

.payment-option-card:has(input:checked) {
    border-color: #764C29;
    background: #f9f5f2;
}

.option-content small {
    display: block;
    color: #666;
    font-size: 13px;
    margin-top: 3px;
}

.final-amount {
    background: #764C29;
    color: white;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.final-amount .amount {
    font-size: 22px;
    font-weight: 700;
}

.payment-method-info {
    font-size: 14px;
    color: #4b5563;
    background: white;
    padding: 15px;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
}

.bank-details {
    margin-top: 10px;
    padding-left: 15px;
    border-left: 3px solid #764C29;
    line-height: 1.6;
}

.btn-submit-booking {
    width: 100%;
    background: #764C29;
    color: white;
    border: none;
    padding: 18px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 8px;
    margin-top: 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit-booking:hover:not(:disabled) {
    background: #5e3c20;
}

.btn-submit-booking:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .menu-type-cards {
        grid-template-columns: 1fr;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .form-group.half {
        width: 100%;
    }
    .final-amount {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .booking-info-section, 
    .booking-form-container {
        padding: 20px;
    }
}