/* Form đặt phòng – WKN. Màu lấy theo Flatsome (--primary-color, --fs-color-secondary); đổi giao diện trong style.css của child theme. */
.wdp-form {
    --wdp-main: var(--primary-color, #2c5f2d);
    --wdp-accent: var(--fs-color-secondary, #d4a373);
    --wdp-border: var(--wdp-accent);
    position: relative;
    background: #fff;
    padding: 20px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, .08);
    border-radius: 4px;
    text-align: left;
}
.wdp-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 18px;
    text-transform: uppercase;
}
.wdp-head-price { text-transform: none; white-space: nowrap; }
.wdp-head-price small { font-size: 13px; color: #777; }

.wdp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
}
.wdp-form .wdp-field { margin: 0; position: relative; min-width: 0; }
.wdp-form .wdp-full { grid-column: 1 / -1; }
.wdp-form-phong .wdp-grid { grid-template-columns: 1fr; }

.wdp-form input[type=text],
.wdp-form input[type=tel],
.wdp-form input[type=email],
.wdp-form input[type=number],
.wdp-form select,
.wdp-form textarea {
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0 15px;
    border: 1px solid var(--wdp-border);
    border-radius: 0;
    background-color: #fff;
    box-shadow: none;
    font-size: 14px;
    color: #252a2b;
}
.wdp-no-room .wdp-total { display: none; }
.wdp-form textarea { height: auto; min-height: 110px; padding-top: 14px; }
.wdp-form select { padding-right: 34px; }
.wdp-form .wdp-field.wdp-error input,
.wdp-form .wdp-field.wdp-error select,
.wdp-form .wdp-field.wdp-error .wdp-qty,
.wdp-form .wdp-field.wdp-error .form-control { border-color: #d63638 !important; }

/* Ô ngày: nhãn bên trái, ngày bên phải trong cùng 1 khung */
.wdp-form .wdp-date-label {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #252a2b;
    pointer-events: none;
    z-index: 1;
}
.wdp-form .wdp-date input.form-control,
.wdp-form .wdp-date input.input {
    text-align: right;
    padding-left: 130px;
    cursor: pointer;
}
/* Số lượng phòng */
.wdp-form .wdp-rooms .wdp-qty {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 48px;
    padding: 0 6px 0 130px;
    border: 1px solid var(--wdp-border);
    background: #fff;
}
.wdp-form .wdp-qty input[type=number] {
    width: 46px;
    height: 34px;
    padding: 0;
    border: 0;
    text-align: center;
    -moz-appearance: textfield;
}
.wdp-form .wdp-qty input::-webkit-outer-spin-button,
.wdp-form .wdp-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.wdp-form .wdp-qty-btn {
    width: 32px;
    height: 32px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 1px solid #e3e3e3;
    border-radius: 50%;
    background: #fff;
    color: #252a2b;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}
.wdp-form .wdp-qty-btn:hover { border-color: var(--wdp-main); color: var(--wdp-main); }

.wdp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.wdp-total {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    margin: 26px 0 18px;
    font-size: 24px;
}
.wdp-total-note { flex-basis: 100%; font-size: 13px; color: #777; text-align: right; }
.wdp-form-chon .wdp-total { margin: 18px 0 14px; font-size: 18px; }

.wdp-form .wdp-submit {
    display: block;
    width: 100%;
    margin: 0;
    min-height: 44px;
    border-radius: 99px;
    background: var(--wdp-main);
    color: #fff;
    text-transform: none;
    letter-spacing: .03em;
}
.wdp-form .wdp-submit.is-loading { opacity: .6; pointer-events: none; }
.wdp-msg { margin-top: 12px; font-size: 14px; line-height: 1.5; }
.wdp-msg:empty { display: none; }
.wdp-msg.is-ok { padding: 12px 14px; background: #edf7ee; color: #1e5b22; border-radius: 6px; }
.wdp-msg.is-err { color: #d63638; }

/* Thanh dính dưới màn hình */
.wdp-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 990;
    background: #fff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, .08);
    transform: translateY(110%);
    transition: transform .3s;
}
.wdp-sticky.is-show { transform: none; }
.wdp-sticky-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 15px;
    font-size: 18px;
    text-transform: uppercase;
}
.wdp-sticky-inner .wdp-head-price { text-transform: none; }
.wdp-sticky .wdp-sticky-btn { margin: 0 0 0 auto; border-radius: 99px; background: var(--wdp-main); color: #fff; text-transform: none; }
@media (min-width: 850px) { .wdp-sticky .wdp-sticky-btn { margin-left: 200px; } }
@media (max-width: 549px) {
    .wdp-sticky-inner { gap: 12px; font-size: 15px; padding: 10px 15px; }
}

/* Thông tin phòng */
.wdp-info { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; }
.wdp-info li { margin: 0 !important; font-size: 14px; }

/* Khung liên hệ khi tắt đặt phòng */
.wdp-contact-box {
    padding: 18px;
    border: 1px dashed var(--primary-color, #2c5f2d);
    border-radius: 10px;
    background: #f7faf6;
    text-align: center;
}
.wdp-contact-title { margin: 0 0 6px; font-size: 18px; color: var(--primary-color, #2c5f2d); }
.wdp-contact-text { margin: 0 0 14px; color: #555; font-size: 14px; }
.wdp-contact-buttons { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.wdp-btn {
    flex: 1 1 140px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 99px;
    font-weight: 600;
    text-decoration: none !important;
}
.wdp-btn-call { background: var(--primary-color, #2c5f2d); color: #fff !important; }
.wdp-btn-zalo { background: #fff; border: 1px solid #0068ff; color: #0068ff !important; }
.wdp-zalo-icon {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 6px;
    background: #0068ff;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.wdp-placeholder { padding: 30px; border: 2px dashed #ccc; text-align: center; color: #888; }

/* Lịch Flatpickr dưới header Flatsome */
.flatpickr-calendar { z-index: 99999 !important; }
body .flatpickr-calendar .flatpickr-day.hidden { display: block !important; visibility: hidden; }
.flatpickr-calendar input.cur-year,
.flatpickr-calendar .flatpickr-monthDropdown-months {
    height: auto; margin: 0; padding: 0 0 0 .5ch; border: 0; box-shadow: none; background: transparent; -webkit-appearance: none; appearance: none;
}
.flatpickr-day.selected, .flatpickr-day.selected:hover { background: var(--primary-color, #2c5f2d); border-color: var(--primary-color, #2c5f2d); }
.flatpickr-day.today { border-color: var(--fs-color-secondary, #d4a373); }

@media (max-width: 549px) {
    .wdp-grid { grid-template-columns: 1fr; }
    .wdp-total { font-size: 20px; }
}
