/* =======================
   CSS dành riêng cho Form Đặt Vé
   ======================= */

:root {
    --primary: #0ea5e9;
    --muted: #475569;
    --radius: 16px;
}

/* Ẩn phần return mặc định (CF7 hoặc form HTML) */
/* 1) Ẩn wrapper chiều về nếu vẫn còn */
#returnFields,
#returnWrap,
.return-fields,
.wpcf7-return { display: none !important; }

/* 2) Ẩn form nhập thông tin khách tại modal / inline ban đầu */
/* Nếu bạn dùng modal: giữ modal DOM nhưng ẩn nội dung form cho đến khi show_contact=true */
#contactForm { display: none; }

/* Nếu CF7 inline (ví dụ wrapper id="bookcf7"), ẩn form CF7 mặc định */
/* áp dụng cho form có id bookcf7 */
#bookcf7 .wpcf7-form { display: none; }

/* Khi JS bật hiển thị, JS sẽ thêm class .show-contact để override */
.show-contact #contactForm,
#bookcf7.show-contact .wpcf7-form {
    display: block !important;
}



/* === Booking Form Wrapper === */
#booking {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    background: #fff;
    padding: 16px;
    border-radius: var(--radius);
    box-shadow: 0 8px 28px rgba(2, 6, 23, 0.1);
    margin-top: 20px;
}

#booking label {
    display: flex;
    flex-direction: column;
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
    gap: 6px;
}

#booking input,
#booking select {
    height: 46px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 0 12px;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#booking input:focus,
#booking select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
    outline: none;
}

/* === Submit button === */
#booking .btn-book {
    align-self: end;
    height: 46px;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

#booking .btn-book:hover {
    background: #0284c7;
}

#booking .full {
    grid-column: 1 / -1;
}

/* === Fare Panel (hiển thị giá) === */
#farePanel {
    display: none;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    padding: 16px;
    margin-top: 16px;
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.08);
}

#farePanel h4 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #0f172a;
}

#fareBody table {
    width: 100%;
    border-collapse: collapse;
}

#fareBody th,
#fareBody td {
    text-align: left;
    padding: 10px 8px;
    border-bottom: 1px solid #e2e8f0;
}

#fareBody th {
    color: var(--muted);
    text-transform: uppercase;
    font-size: 12px;
}

/* === Popup / Modal Form === */
#bookingModal .modal-content {
    border-radius: var(--radius);
    overflow: hidden;
}

#bookingModal .modal-header {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
}

#bookingModal .modal-body {
    padding: 20px;
}

#contactForm label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--muted);
}

#contactForm input {
    height: 44px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: 0 10px;
    font-size: 14px;
    width: 100%;
}

#contactForm input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
    outline: none;
}

#contactForm .btn {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    height: 44px;
    transition: background 0.2s ease;
}

#contactForm .btn:hover {
    background: #0284c7;
}

/* === Success Message === */
#successMsg {
    margin-top: 12px;
    border: 1px solid #22c55e;
    background: #dcfce7;
    color: #166534;
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: 500;
}

/* === Responsive (Mobile) === */
@media (max-width: 768px) {
    #booking {
        grid-template-columns: 1fr;
    }
    #booking .btn-book {
        width: 100%;
    }
}
