/*
 * booking.css
 * Styles cho form đặt bàn "Book your night"
 * Sử dụng với: Contact Form 7 + Elementor Pro
 * Enqueued qua functions.php
 */

/* =============================================================================
   1. CONTAINER CHA — Parent Container (2 cột: ảnh trái + form phải)
   ============================================================================= */

.booking-section-wrapper {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 1260px;
    min-height: 854px;

    /* Bo góc */
    border-radius: 16px;

    /* Viền mỏng vàng amber 20% độ mờ */
    border: 1px solid rgba(233, 193, 118, 0.2);

    /* Nền gradient tối */
    background: linear-gradient(180deg, #1E1E1E 70%, #131313 90%);

    /* Đổ bóng */
    box-shadow: 0px 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Làm mờ hậu cảnh */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    /* Ẩn phần thừa — góc ảnh bên trái tự bo theo container */
    overflow: hidden;
}

/* =============================================================================
   2. CỘT TRÁI — Ảnh quầy Bar (được set background-image trong Elementor)
   ============================================================================= */

.booking-image-col {
    flex: 0 0 45%;
    width: 45%;
    min-height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* =============================================================================
   3. CỘT PHẢI — Nội dung & Form
   ============================================================================= */

.booking-content-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 50px;
    background: transparent;
}

/* Tiêu đề "Book your night" */
.booking-heading {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 48px;
    font-weight: 600;
    /* SemiBold */
    font-style: normal;
    color: #E5E2E1;
    margin: 0 0 36px 0;
    line-height: 56px;
    /* line-height: 56px theo thiết kế */
    letter-spacing: 0px;
    /* Drop shadow: blur 10, màu #E9C176 30% */
    text-shadow: 0px 0px 10px rgba(233, 193, 118, 0.30);
}

/* =============================================================================
   4. FORM WRAPPER — Bao bọc toàn bộ các field của CF7
   ============================================================================= */

.booking-form-wrapper {
    width: 100%;
}

/* Đảm bảo các control wrap của CF7 không làm hỏng layout */
.booking-form-wrapper .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

/* =============================================================================
   5. LABELS — Nhãn phía trên mỗi ô nhập
   ============================================================================= */

.booking-field label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #D1C5B4;
    margin-bottom: 4px;
    /* giảm khoảng cách label → ô nhập */
    letter-spacing: 0%;
    line-height: 1.5;
}

/* Ẩn thẻ <br> CF7 tự sinh — tránh khoảng trắng thừa */
.booking-form-wrapper br {
    display: none;
}

/* Reset thẻ <p> CF7 tự sinh — tránh lệch khoảng cách */
.booking-form-wrapper p {
    margin: 0;
    padding: 0;
}

/* Khoảng cách dưới mỗi khối field đơn */
.booking-field {
    margin-bottom: 20px;
}

/* =============================================================================
   6. LƯỚI 2 CỘT — Email/Phone và Ngày/Giờ
   ============================================================================= */

.booking-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* Xóa margin-bottom của các field nằm trong grid 2 cột */
.booking-grid-2 .booking-field {
    margin-bottom: 0;
}

/* =============================================================================
   7. INPUTS — Các ô nhập liệu
   ============================================================================= */

.booking-form-wrapper input[type="text"],
.booking-form-wrapper input[type="email"],
.booking-form-wrapper input[type="tel"],
.booking-form-wrapper input[type="date"],
.booking-form-wrapper input[type="number"] {
    width: 100%;
    background-color: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 14px 16px;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.4;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
}

/* Hover */
.booking-form-wrapper input[type="text"]:hover,
.booking-form-wrapper input[type="email"]:hover,
.booking-form-wrapper input[type="tel"]:hover,
.booking-form-wrapper input[type="date"]:hover,
.booking-form-wrapper input[type="number"]:hover {
    border-color: rgba(244, 189, 113, 0.3);
}

/* Focus */
.booking-form-wrapper input[type="text"]:focus,
.booking-form-wrapper input[type="email"]:focus,
.booking-form-wrapper input[type="tel"]:focus,
.booking-form-wrapper input[type="date"]:focus,
.booking-form-wrapper input[type="number"]:focus {
    outline: none;
    border-color: #f4bd71;
    background-color: #222222;
}

/* Placeholder — Inter 400/Regular, màu #9A8F80 50% opacity */
.booking-form-wrapper input::placeholder {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    /* Regular */
    color: rgba(154, 143, 128, 0.50);
    /* #9A8F80 @ 50% */
    opacity: 1;
    line-height: 100%;
    letter-spacing: 0%;
}

.booking-form-wrapper input::-webkit-input-placeholder {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: rgba(154, 143, 128, 0.50);
}

.booking-form-wrapper input::-moz-placeholder {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: rgba(154, 143, 128, 0.50);
    opacity: 1;
}

.booking-form-wrapper input:-ms-input-placeholder {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: rgba(154, 143, 128, 0.50);
}

/* Icon lịch của date input — đảo màu sáng trên nền tối */
.booking-form-wrapper input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.6);
    cursor: pointer;
}

/* =============================================================================
   8. SUBMIT BUTTON — Nút "ĐẶT BÀN NGAY"
   ============================================================================= */

.booking-submit {
    margin-top: 30px;
}

.booking-submit input[type="submit"] {
    width: 100%;
    background-color: #f4bd71;
    color: #0e0e0e;
    border: none;
    border-radius: 4px;
    padding: 16px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
}

/* Hover nút */
.booking-submit input[type="submit"]:hover {
    background-color: #e5ad5f;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(244, 189, 113, 0.2);
}

/* Active nút */
.booking-submit input[type="submit"]:active {
    transform: translateY(0);
    box-shadow: none;
}

/* =============================================================================
   9. DÒNG ĐIỀU KHOẢN — "BY CONFIRMING..."
   ============================================================================= */

.booking-agreement {
    display: block;
    margin-top: 15px;
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    color: #666666;
    letter-spacing: 0.8px;
    text-align: center;
    text-transform: uppercase;
    line-height: 1.6;
}

/* =============================================================================
   10. THÔNG BÁO CF7 — Validation & Success/Error messages
   ============================================================================= */

.booking-form-wrapper .wpcf7-response-output {
    margin: 20px 0 0 0 !important;
    padding: 12px 16px !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    font-family: 'Inter', sans-serif !important;
    border-left-width: 3px !important;
}

/* Lỗi validation */
.booking-form-wrapper div.wpcf7-validation-errors {
    border-color: #ff5e5e !important;
    background: rgba(255, 94, 94, 0.08) !important;
    color: #ff5e5e !important;
}

/* Gửi thành công */
.booking-form-wrapper div.wpcf7-mail-sent-ok {
    border-color: #4caf50 !important;
    background: rgba(76, 175, 80, 0.08) !important;
    color: #4caf50 !important;
}

/* Thông báo lỗi từng field */
.booking-form-wrapper span.wpcf7-not-valid-tip {
    color: #ff5e5e;
    font-size: 11px;
    font-family: 'Inter', sans-serif;
    margin-top: 5px;
    display: block;
}

/* Đánh dấu đỏ viền khi field bị lỗi */
.booking-form-wrapper .wpcf7-not-valid {
    border-color: rgba(255, 94, 94, 0.6) !important;
}

/* =============================================================================
   11. RESPONSIVE — Mobile
   ============================================================================= */

@media (max-width: 1024px) {
    .booking-content-col {
        padding: 40px 36px;
    }

    .booking-heading {
        font-size: 32px;
    }
}

@media (max-width: 767px) {

    /* Chuyển layout thành 1 cột dọc trên điện thoại */
    .booking-section-wrapper {
        flex-direction: column;
        min-height: auto;
    }

    .booking-image-col {
        flex: 0 0 260px;
        width: 100%;
        min-height: 260px;
    }

    .booking-content-col {
        padding: 32px 24px;
    }

    .booking-heading {
        font-size: 30px;
        margin-bottom: 24px;
    }

    /* Lưới 2 cột → 1 cột trên mobile */
    .booking-grid-2 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .booking-grid-2 .booking-field {
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .booking-content-col {
        padding: 24px 16px;
    }

    .booking-heading {
        font-size: 24px;
    }
}


/* =============================================================================
   Liên hệ — Scoped vào .Lien-he, không ảnh hưởng form đặt bàn
   ============================================================================= */

/* Ẩn <br> thừa của CF7 */
.Lien-he br {
    display: none;
}

/* Reset thẻ <p> thừa của CF7 */
.Lien-he p {
    margin: 0;
    padding: 0;
}

.Lien-he .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

/* =============================================================================
   LH-2. KHOẢNG CÁCH GIỮA CÁC FIELD
   ============================================================================= */

.Lien-he .booking-field {
    margin-bottom: 20px;
}

/* =============================================================================
   LH-3. LABEL
   ============================================================================= */

.Lien-he .booking-field label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #D1C5B4;
    margin-bottom: 6px;
    line-height: 1.5;
    text-transform: uppercase;
}

.Lien-he .booking-field label span[aria-hidden] {
    color: #f4bd71;
    margin-left: 2px;
}

/* =============================================================================
   LH-4. LƯỚI 2 CỘT — Ngày / Giờ
   ============================================================================= */

.Lien-he .booking-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.Lien-he .booking-grid-2 .booking-field {
    margin-bottom: 0;
}

/* =============================================================================
   LH-5. INPUT — text, tel, date, time
   ============================================================================= */

.Lien-he input[type="text"],
.Lien-he input[type="tel"],
.Lien-he input[type="email"],
.Lien-he input[type="date"],
.Lien-he input[type="time"],
.Lien-he input[type="number"] {
    width: 100%;
    background-color: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0;
    /* bỏ bo góc */
    padding: 13px 16px;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.4;
    transition: border-color 0.25s ease, background-color 0.25s ease;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
}

/* Hover */
.Lien-he input[type="text"]:hover,
.Lien-he input[type="tel"]:hover,
.Lien-he input[type="email"]:hover,
.Lien-he input[type="date"]:hover,
.Lien-he input[type="time"]:hover,
.Lien-he input[type="number"]:hover {
    border-color: rgba(244, 189, 113, 0.35);
}

/* Focus */
.Lien-he input[type="text"]:focus,
.Lien-he input[type="tel"]:focus,
.Lien-he input[type="email"]:focus,
.Lien-he input[type="date"]:focus,
.Lien-he input[type="time"]:focus,
.Lien-he input[type="number"]:focus {
    outline: none;
    border-color: #f4bd71;
    background-color: #222222;
}

/* Placeholder */
.Lien-he input::placeholder {
    color: rgba(154, 143, 128, 0.50);
    font-weight: 400;
    opacity: 1;
}

/* Icon lịch & đồng hồ — đảo sáng trên nền tối */
.Lien-he input[type="date"]::-webkit-calendar-picker-indicator,
.Lien-he input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(0.55);
    cursor: pointer;
}

/* =============================================================================
   LH-6. SELECT DROPDOWN — Số khách, Loại sự kiện
   ============================================================================= */

.Lien-he .wpcf7-form-control-wrap:has(select) {
    position: relative;
    display: block;
    width: 100%;
}

/* Mũi tên chevron vàng amber */
.Lien-he .wpcf7-form-control-wrap:has(select)::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4bd71' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
}

.Lien-he select {
    width: 100%;
    background-color: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0;
    /* bỏ bo góc */
    padding: 13px 40px 13px 16px;
    color: rgba(154, 143, 128, 0.70);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
    transition: border-color 0.25s ease, background-color 0.25s ease;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.Lien-he select option {
    background-color: #1e1e1e;
    color: #e5e2e1;
}

.Lien-he select option[value=""] {
    color: rgba(154, 143, 128, 0.70);
}

.Lien-he select:hover {
    border-color: rgba(244, 189, 113, 0.35);
}

.Lien-he select:focus {
    outline: none;
    border-color: #f4bd71;
    background-color: #222222;
    color: #ffffff;
}

.Lien-he select.has-value {
    color: #ffffff;
}

/* =============================================================================
   LH-7. TEXTAREA — Ghi chú
   ============================================================================= */

.Lien-he textarea {
    width: 100%;
    background-color: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0;
    /* bỏ bo góc */
    padding: 13px 16px;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    min-height: 112px;
    transition: border-color 0.25s ease, background-color 0.25s ease;
    box-sizing: border-box;
}

.Lien-he textarea:hover {
    border-color: rgba(244, 189, 113, 0.35);
}

.Lien-he textarea:focus {
    outline: none;
    border-color: #f4bd71;
    background-color: #222222;
}

.Lien-he textarea::placeholder {
    color: rgba(154, 143, 128, 0.50);
    font-weight: 400;
    opacity: 1;
}

/* =============================================================================
   LH-8. NÚT SUBMIT
   ============================================================================= */

.Lien-he .booking-submit {
    margin-top: 28px;
}

.Lien-he .booking-submit input[type="submit"] {
    width: 100%;
    background-color: #f4bd71;
    color: #0e0e0e;
    border: none;
    border-radius: 0;
    /* bỏ bo góc */
    padding: 15px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.25s ease,
        transform 0.18s ease,
        box-shadow 0.25s ease;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
}

.Lien-he .booking-submit input[type="submit"]:hover {
    background-color: #e5ad5f;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(244, 189, 113, 0.22);
}

.Lien-he .booking-submit input[type="submit"]:active {
    transform: translateY(0);
    box-shadow: none;
}

/* =============================================================================
   LH-9. THÔNG BÁO CF7
   ============================================================================= */

.Lien-he .wpcf7-response-output {
    margin: 20px 0 0 !important;
    padding: 12px 16px !important;
    border-radius: 0 !important;
    font-size: 13px !important;
    font-family: 'Inter', sans-serif !important;
    border-left-width: 3px !important;
    border-style: solid !important;
}

.Lien-he .wpcf7-form.invalid .wpcf7-response-output {
    border-color: #ff5e5e !important;
    background: rgba(255, 94, 94, 0.08) !important;
    color: #ff5e5e !important;
}

.Lien-he .wpcf7-form.sent .wpcf7-response-output {
    border-color: #4caf50 !important;
    background: rgba(76, 175, 80, 0.08) !important;
    color: #4caf50 !important;
}

.Lien-he span.wpcf7-not-valid-tip {
    display: block;
    margin-top: 5px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: #ff5e5e;
}

.Lien-he .wpcf7-not-valid {
    border-color: rgba(255, 94, 94, 0.55) !important;
}

/* =============================================================================
   LH-10. RESPONSIVE — Mobile
   ============================================================================= */

@media (max-width: 1024px) {
    .Lien-he .booking-grid-2 {
        gap: 16px;
    }
}

/* Mobile — lưới 2 cột → 1 cột */
@media (max-width: 767px) {
    .booking-grid-2 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .booking-grid-2 .booking-field {
        margin-bottom: 0;
    }
}