/**
 * Trang đặt phòng OnePMS.
 *
 * Bảng màu lấy theo thương hiệu đang dùng trong style.css:
 *   #2c5376 xanh đậm (chủ đạo) · #749440 olive (nhấn) · #f5f1ea kem (nền) · #5b3a29 nâu
 * Font kế thừa "Varela Round" từ body.
 *
 * Tiền tố "dpo-" = đặt phòng OnePMS.
 */

.dpo,
.dpo-hero {
    --dpo-xanh: #2c5376;
    --dpo-xanh-dam: #22415d;
    --dpo-olive: #749440;
    --dpo-kem: #f5f1ea;
    --dpo-nau: #5b3a29;
    --dpo-vien: #e3ded5;
    --dpo-chu-nhat: #7d7768;
}

.dpo {
    max-width: 1120px;
    margin: 0 auto;
    padding: 34px 18px 70px;
    color: #33302b;
}

/* ---------- Dải tiêu đề đầu trang ----------
   Header của theme dùng position:fixed nên đè lên nội dung. Các trang khác có
   banner cao 670px hứng phía dưới; trang đặt phòng cần gọn hơn nên dùng dải này
   vừa làm tiêu đề vừa chừa đủ chỗ cho header. */
.dpo-hero {
    background: var(--dpo-kem);
    border-bottom: 1px solid var(--dpo-vien);
    padding: 232px 18px 34px;
}

@media (max-width: 991px) {
    .dpo-hero {
        padding-top: 196px;
    }
}

@media (max-width: 620px) {
    .dpo-hero {
        padding-top: 186px;
        padding-bottom: 26px;
    }
}

.dpo-hero__inner {
    max-width: 1120px;
    margin: 0 auto;
}

.dpo-hero__eyebrow {
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--dpo-olive);
    margin: 0 0 7px;
    font-weight: 700;
}

.dpo-hero__title {
    font-size: 34px;
    line-height: 1.15;
    margin: 0;
    color: var(--dpo-nau);
}

@media (max-width: 620px) {
    .dpo-hero__title {
        font-size: 26px;
    }
}

/* ---------- Thanh bước ---------- */
.dpo-steps {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 34px;
    font-size: 13px;
    letter-spacing: .04em;
    text-transform: uppercase;
    flex-wrap: wrap;
}

.dpo-steps__item {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #b3ada0;
}

.dpo-steps__item.is-active {
    color: var(--dpo-xanh);
    font-weight: 700;
}

.dpo-steps__item.is-done {
    color: var(--dpo-olive);
}

.dpo-steps__no {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.dpo-steps__item.is-active .dpo-steps__no {
    background: var(--dpo-xanh);
    border-color: var(--dpo-xanh);
    color: #fff;
}

.dpo-steps__item.is-done .dpo-steps__no {
    background: var(--dpo-olive);
    border-color: var(--dpo-olive);
    color: #fff;
}

.dpo-steps__line {
    flex: 1;
    height: 1px;
    background: var(--dpo-vien);
    min-width: 20px;
}

/* ---------- Bố cục 2 cột ---------- */
.dpo-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 34px;
    align-items: start;
}

@media (max-width: 900px) {
    /* minmax(0, 1fr) chứ không phải 1fr: 1fr = minmax(auto, 1fr) sẽ không co
       xuống dưới kích thước nội dung, gây tràn ngang trên màn hình hẹp. */
    .dpo-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .dpo-summary {
        position: static;
    }
}

/* ---------- Thẻ phòng ---------- */
.dpo-room {
    display: flex;
    gap: 22px;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--dpo-vien);
    margin-bottom: 26px;
}

@media (max-width: 620px) {
    .dpo-room {
        flex-direction: column;
    }
}

.dpo-room__img {
    width: 210px;
    height: 150px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 3px;
}

@media (max-width: 620px) {
    .dpo-room__img {
        width: 100%;
        height: 200px;
    }
}

.dpo-room__name {
    font-size: 27px;
    line-height: 1.2;
    margin: 0 0 6px;
    color: var(--dpo-nau);
}

.dpo-room__meta {
    color: var(--dpo-chu-nhat);
    font-size: 14px;
    margin-bottom: 12px;
}

.dpo-room__amen {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 9px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.dpo-room__amen li {
    font-size: 12.5px;
    color: #5f5a50;
    background: var(--dpo-kem);
    border: 1px solid var(--dpo-vien);
    padding: 3px 11px;
    border-radius: 20px;
}

/* ---------- Khối tiêu đề nhỏ ---------- */
.dpo-h {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--dpo-chu-nhat);
    margin: 0 0 14px;
    font-weight: 700;
}

/* ---------- Form ngày / khách ---------- */
.dpo-search {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto auto;
    gap: 14px;
    align-items: end;
    padding: 20px;
    background: var(--dpo-kem);
    border: 1px solid var(--dpo-vien);
    border-radius: 4px;
    margin-bottom: 30px;
}

@media (max-width: 760px) {
    .dpo-search {
        grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    }
}

/* input[type=date] của Chrome có chiều rộng tối thiểu khá lớn; dưới 620px mà chia
   2 cột thì ô ngày bị tràn ra ngoài lưới và kéo giãn cả trang. */
@media (max-width: 620px) {
    .dpo-search {
        grid-template-columns: minmax(0,1fr);
    }
}

.dpo-field {
    min-width: 0;
}

.dpo-field label {
    display: block;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--dpo-chu-nhat);
    margin-bottom: 6px;
    font-weight: 700;
}

.dpo-field input,
.dpo-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d6d0c5;
    border-radius: 3px;
    background: #fff;
    font-size: 14.5px;
    font-family: inherit;
    color: #33302b;
}

.dpo-field input:focus,
.dpo-field select:focus {
    outline: none;
    border-color: var(--dpo-xanh);
}

/* ---------- Bảng giá từng đêm ---------- */
.dpo-rates {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
    margin-bottom: 8px;
}

.dpo-rates th {
    text-align: left;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--dpo-chu-nhat);
    font-weight: 700;
    padding: 0 0 9px;
    border-bottom: 1px solid var(--dpo-vien);
}

.dpo-rates th:last-child,
.dpo-rates td:last-child {
    text-align: right;
}

.dpo-rates td {
    padding: 11px 0;
    border-bottom: 1px solid #f0ece4;
}

.dpo-rates tbody tr:last-child td {
    border-bottom: 1px solid var(--dpo-vien);
}

.dpo-rates .dpo-dow {
    color: var(--dpo-chu-nhat);
    font-size: 13px;
    margin-left: 7px;
}

.dpo-rates__total td {
    padding-top: 14px;
    font-size: 16px;
    font-weight: 700;
    border-bottom: none;
}

.dpo-rates__total td:last-child {
    color: var(--dpo-xanh);
    font-size: 19px;
}

/* ---------- Tình trạng phòng ---------- */
.dpo-avail {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.dpo-avail--ok {
    background: #eef3e4;
    color: #52691f;
}

.dpo-avail--het {
    background: #fbeceb;
    color: #a3453c;
}

.dpo-avail__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

/* ---------- Cột tóm tắt bên phải ---------- */
.dpo-summary {
    border: 1px solid var(--dpo-vien);
    border-radius: 4px;
    overflow: hidden;
    position: sticky;
    top: 24px;
    background: #fff;
}

.dpo-summary__head {
    background: var(--dpo-xanh);
    color: #fff;
    padding: 15px 20px;
    font-size: 15px;
    letter-spacing: .03em;
}

.dpo-summary__body {
    padding: 20px;
}

.dpo-summary__row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 0;
    font-size: 14.5px;
}

.dpo-summary__row dt {
    color: var(--dpo-chu-nhat);
    margin: 0;
}

.dpo-summary__row dd {
    margin: 0;
    text-align: right;
    font-weight: 700;
}

.dpo-summary__total {
    border-top: 1px solid var(--dpo-vien);
    margin-top: 12px;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.dpo-summary__total span:first-child {
    font-size: 14px;
    color: var(--dpo-chu-nhat);
}

.dpo-summary__total strong {
    font-size: 25px;
    color: var(--dpo-xanh);
    line-height: 1;
}

.dpo-summary__note {
    font-size: 12.5px;
    color: var(--dpo-chu-nhat);
    line-height: 1.65;
    margin: 14px 0 0;
}

/* ---------- Nút ---------- */
.dpo-btn {
    display: inline-block;
    padding: 13px 30px;
    border: 1px solid transparent;
    border-radius: 3px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    text-align: center;
    transition: background-color .18s ease;
}

.dpo-btn--main {
    background: var(--dpo-xanh);
    color: #fff;
}

.dpo-btn--main:hover {
    background: var(--dpo-xanh-dam);
    color: #fff;
}

.dpo-btn--block {
    display: block;
    width: 100%;
}

.dpo-btn--ghost {
    background: transparent;
    border-color: #d6d0c5;
    color: #5f5a50;
}

.dpo-btn--ghost:hover {
    border-color: var(--dpo-xanh);
    color: var(--dpo-xanh);
}

.dpo-btn[disabled] {
    opacity: .45;
    cursor: not-allowed;
}

/* ---------- Thông báo ---------- */
.dpo-alert {
    padding: 14px 18px;
    border-radius: 3px;
    font-size: 14.5px;
    margin-bottom: 24px;
    border-left: 3px solid;
}

.dpo-alert--loi {
    background: #fbeceb;
    border-color: #a3453c;
    color: #8c3b33;
}

.dpo-alert--nhac {
    background: #fdf6e6;
    border-color: #c99a2e;
    color: #7d6018;
}

.dpo-alert ul {
    margin: 7px 0 0;
    padding-left: 19px;
}

/* ---------- Form thông tin khách ---------- */
.dpo-form-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 18px;
    margin-bottom: 18px;
}

@media (max-width: 620px) {
    .dpo-form-grid {
        grid-template-columns: 1fr;
    }
}

.dpo-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d6d0c5;
    border-radius: 3px;
    font-size: 14.5px;
    font-family: inherit;
    resize: vertical;
}

.dpo-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 14px;
    line-height: 1.6;
    margin-top: 16px;
}

.dpo-check input {
    margin-top: 3px;
    flex-shrink: 0;
}

.dpo-actions {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 28px;
    flex-wrap: wrap;
}

/* ---------- Màn hoàn tất ---------- */
.dpo-done {
    max-width: 560px;
    margin: 10px auto 0;
    text-align: center;
}

.dpo-done__mark {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #eef3e4;
    color: var(--dpo-olive);
    font-size: 30px;
    line-height: 62px;
    margin: 0 auto 20px;
}

.dpo-done h2 {
    color: var(--dpo-nau);
    margin: 0 0 10px;
}

.dpo-done__code {
    display: inline-block;
    background: var(--dpo-kem);
    border: 1px dashed #cfc7b8;
    padding: 11px 26px;
    border-radius: 3px;
    margin: 20px 0 26px;
    font-size: 17px;
    letter-spacing: .08em;
    color: var(--dpo-nau);
}

.dpo-done__list {
    text-align: left;
    border: 1px solid var(--dpo-vien);
    border-radius: 4px;
    padding: 6px 20px;
    margin-bottom: 28px;
}

.dpo-done__list .dpo-summary__row {
    border-bottom: 1px solid #f0ece4;
}

.dpo-done__list .dpo-summary__row:last-child {
    border-bottom: none;
}
