/*!
 * 酒店预订表单（联系我们页）
 * 纯原生实现，不依赖任何 UI 库
 *
 * 设计语言：品牌深蓝 #002648 + 金色 #c9a063
 *   - 整体白色卡片 + 暖灰描边 + 轻投影
 *   - 卡头深蓝 + 金色分割线 + 中英双语标题
 *   - 控件暖白底，聚焦金色描边 + 淡金光晕
 *   - 提交按钮深蓝实心，悬停加深
 */

.bk,
.bk * {
    box-sizing: border-box;
}

/* ---------- 卡片 ---------- */
.bk {
    width: 500px;
    max-width: 100%;
    margin: 0 0 30px;
    font-size: 14px;
    color: #2c3a47;
    background: #fff;
    border: 1px solid #e7e1d4;
    border-radius: 6px;
    box-shadow: 0 6px 28px rgba(0, 38, 72, .07);
    overflow: hidden;
}

/* ---------- 卡头 ---------- */
.bk .bk-head {
    padding: 17px 28px 15px;
    background: #002648;
    border-bottom: 2px solid #c9a063;
}

.bk .bk-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #fff;
}

.bk .bk-title-en {
    margin-left: 14px;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 3.5px;
    color: #c9a063;
    vertical-align: 2px;
}

/* ---------- 表单体 ---------- */
.bk .bk-form {
    padding: 22px 26px 24px;
}

.bk .bk-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px 16px;
}

.bk .bk-field--room,
.bk .bk-field--date,
.bk .bk-field--num,
.bk .bk-field--name {
    grid-column: span 1;
}

.bk .bk-field--phone,
.bk .bk-field--remark,
.bk .bk-actions {
    grid-column: span 2;
}

/* ---------- 标签 ---------- */
.bk .bk-label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #55626f;
    letter-spacing: .5px;
}

.bk .bk-label i {
    margin-left: 3px;
    font-style: normal;
    color: #d64545;
}

/* ---------- 控件 ---------- */
.bk .bk-control {
    position: relative;
}

.bk input[type="text"],
.bk input[type="tel"],
.bk select,
.bk textarea {
    display: block;
    width: 100%;
    padding: 0 13px;
    font-size: 14px;
    font-family: inherit;
    color: #1f2d3d;
    background: #faf9f5;
    border: 1px solid #ddd5c5;
    border-radius: 4px;
    outline: none;
    transition: border-color .18s, box-shadow .18s, background .18s;
    -webkit-appearance: none;
    appearance: none;
}

.bk input[type="text"],
.bk input[type="tel"],
.bk select {
    height: 44px;
    line-height: 42px;
}

.bk textarea {
    height: 78px;
    padding: 10px 13px;
    line-height: 1.6;
    resize: vertical;
}

.bk input::placeholder,
.bk textarea::placeholder {
    color: #b0b8c2;
    font-size: 13px;
}

.bk input:focus,
.bk select:focus,
.bk textarea:focus {
    background: #fff;
    border-color: #c9a063;
    box-shadow: 0 0 0 3px rgba(201, 160, 99, .16);
}

/* 下拉箭头 */
.bk .bk-select select {
    padding-right: 36px;
    cursor: pointer;
}

.bk .bk-caret {
    position: absolute;
    top: 50%;
    right: 15px;
    width: 7px;
    height: 7px;
    margin-top: -5px;
    border-right: 1.5px solid #9aa6b4;
    border-bottom: 1.5px solid #9aa6b4;
    transform: rotate(45deg);
    pointer-events: none;
}

/* 日期图标（纯 CSS 画日历） */
.bk .bk-calendar {
    position: absolute;
    top: 50%;
    right: 14px;
    width: 15px;
    height: 15px;
    margin-top: -7px;
    border: 1.5px solid #9aa6b4;
    border-radius: 2px;
    pointer-events: none;
}

.bk .bk-calendar::before {
    content: '';
    position: absolute;
    top: 3px;
    left: -1.5px;
    width: 15px;
    height: 1.5px;
    background: #9aa6b4;
}

.bk .bk-calendar::after {
    content: '';
    position: absolute;
    top: -4px;
    left: 2px;
    width: 2px;
    height: 4px;
    background: #9aa6b4;
    box-shadow: 7px 0 0 #9aa6b4;
}

.bk .bk-date input[readonly] {
    padding-right: 40px;
    cursor: pointer;
    background: #faf9f5;
}

.bk .bk-date input[readonly]:focus {
    background: #fff;
}

/* ---------- 房间数步进器 ---------- */
.bk .bk-stepper {
    display: flex;
    align-items: stretch;
    height: 44px;
    background: #faf9f5;
    border: 1px solid #ddd5c5;
    border-radius: 4px;
    overflow: hidden;
    transition: border-color .18s, box-shadow .18s;
}

.bk .bk-stepper:focus-within {
    background: #fff;
    border-color: #c9a063;
    box-shadow: 0 0 0 3px rgba(201, 160, 99, .16);
}

.bk .bk-stepper input {
    flex: 1 1 auto;
    min-width: 0;
    height: 42px;
    padding: 0;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #002648;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none !important;
}

.bk .bk-step {
    flex: 0 0 38px;
    font-size: 16px;
    line-height: 1;
    color: #8a94a2;
    background: #f2eee4;
    border: none;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.bk .bk-step:hover {
    color: #fff;
    background: #c9a063;
}

.bk .bk-step:active {
    background: #b8935a;
}

/* ---------- 错误提示 ---------- */
.bk .bk-error {
    display: none;
    margin: 5px 0 0;
    font-size: 12px;
    line-height: 1.4;
    color: #d64545;
}

.bk .bk-error.show {
    display: block;
}

.bk .bk-field.has-error input,
.bk .bk-field.has-error select,
.bk .bk-field.has-error textarea,
.bk .bk-field.has-error .bk-stepper {
    border-color: #d64545;
}

/* ---------- 操作区 ---------- */
.bk .bk-actions {
    margin-top: 6px;
    text-align: center;
}

.bk .bk-submit {
    display: block;
    width: 100%;
    height: 46px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 6px;
    text-indent: 6px;   /* 抵消 letter-spacing 的右偏，视觉居中 */
    color: #fff;
    background: #002648;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background .18s;
}

.bk .bk-submit:hover {
    background: #033561;
}

.bk .bk-submit:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.bk .bk-note {
    margin: 12px 0 0;
    font-size: 12px;
    letter-spacing: .5px;
    color: #98a2ad;
}

.bk .bk-msg {
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.5;
}

.bk .bk-msg.err {
    color: #d64545;
}

.bk .bk-msg.ok {
    color: #1a9d63;
}

/* ---------- 双月日历 ---------- */
.bk .bk-picker {
    position: absolute;
    z-index: 60;
    top: calc(100% + 6px);
    left: 0;
    width: 460px;
    padding: 16px 18px 18px;
    background: #fff;
    border: 1px solid #e4e0d5;
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(0, 30, 60, .18);
}

/* 日期框在卡片右列：日历向右对齐，防止溢出卡片 */
.bk .bk-field--date .bk-picker {
    left: auto;
    right: 0;
}

.bk .bk-picker[hidden] {
    display: none;
}

.bk .bk-cal-head {
    position: relative;
    height: 28px;
    margin-bottom: 10px;
    text-align: center;
}

.bk .bk-cal-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2d3d;
    line-height: 28px;
}

.bk .bk-cal-nav {
    position: absolute;
    top: 0;
    width: 28px;
    height: 28px;
    font-size: 15px;
    line-height: 26px;
    color: #6b7b8c;
    background: none;
    border: 1px solid #e4e0d5;
    border-radius: 4px;
    cursor: pointer;
    transition: color .15s, border-color .15s, background .15s;
}

.bk .bk-cal-nav:hover {
    color: #fff;
    border-color: #c9a063;
    background: #c9a063;
}

.bk .bk-cal-nav[data-bk-nav="-1"] {
    left: 0;
}

.bk .bk-cal-nav[data-bk-nav="1"] {
    right: 0;
}

.bk .bk-cal-months {
    display: flex;
    gap: 22px;
}

.bk .bk-cal-month {
    flex: 1 1 0;
    min-width: 0;
}

.bk .bk-cal-month-name {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #002648;
    text-align: center;
}

.bk .bk-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.bk .bk-cal-wd {
    padding: 3px 0;
    font-size: 11px;
    color: #9aa6b4;
    text-align: center;
}

.bk .bk-cal-day {
    height: 28px;
    padding: 0;
    font-size: 12px;
    color: #2c3a47;
    background: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    transition: background .13s, color .13s;
}

.bk .bk-cal-day:hover {
    color: #fff;
    background: #033561;
}

.bk .bk-cal-day.is-past {
    color: #d5dbe2;
    text-decoration: line-through;
    cursor: not-allowed;
}

.bk .bk-cal-day.is-past:hover {
    color: #d5dbe2;
    background: none;
}

.bk .bk-cal-day.is-in-range {
    color: #033561;
    background: #e8eff6;
}

.bk .bk-cal-day.is-start,
.bk .bk-cal-day.is-end {
    color: #fff;
    background: #002648;
}

.bk .bk-cal-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 11px;
    border-top: 1px solid #eef0f4;
    font-size: 12px;
    color: #6b7b8c;
}

.bk .bk-cal-clear,
.bk .bk-cal-done {
    height: 30px;
    margin-left: 8px;
    padding: 0 14px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
}

.bk .bk-cal-clear {
    color: #6b7b8c;
    background: none;
    border: 1px solid #e4e0d5;
}

.bk .bk-cal-clear:hover {
    color: #002648;
    border-color: #c9a063;
}

.bk .bk-cal-done {
    color: #fff;
    background: #002648;
    border: none;
}

.bk .bk-cal-done:hover {
    background: #033561;
}

/* ---------- 响应式 ---------- */
@media only screen and (max-width: 768px) {
    .bk {
        width: 100%;
        margin-bottom: 20px;
    }

    .bk .bk-head {
        padding: 14px 20px 12px;
    }

    .bk .bk-title {
        font-size: 15px;
        letter-spacing: 2px;
    }

    .bk .bk-title-en {
        margin-left: 8px;
        letter-spacing: 2px;
    }

    .bk .bk-form {
        padding: 18px 16px 20px;
    }

    .bk .bk-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .bk .bk-field--room,
    .bk .bk-field--date,
    .bk .bk-field--num,
    .bk .bk-field--name,
    .bk .bk-field--phone,
    .bk .bk-field--remark,
    .bk .bk-actions {
        grid-column: span 1;
    }

    .bk .bk-picker {
        left: 0;
        right: auto;
        width: 100%;
        min-width: 0;
        padding: 12px 12px 14px;
    }

    .bk .bk-cal-months {
        gap: 0;
    }

    .bk .bk-cal-month:nth-child(2) {
        display: none;
    }
}

/* 首页预订卡片：与栏目页使用一致的深蓝、金色和字段布局。 */
.home-page .index-page .form.common { margin-top: 24px; background: #fff; border: 1px solid #dfe5e9; border-top: 3px solid #c9a063; border-radius: 8px; box-shadow: 0 6px 22px rgba(0,38,72,.05); text-align: left }
.home-page .index-page .form.common .text.text-bk { display: block; width: auto; padding: 26px 30px 30px }
.home-page .index-page .form.common .text.text-bk h4 { position: static; transform: none; margin: 0 0 10px; font-size: 23px; line-height: 30px; font-weight: 600 }
.home-page .index-page .form.common .text.text-bk h4 .booking-en { margin: 0 0 0 16px; font-family: inherit; font-size: 10px; line-height: 30px; font-weight: 400; letter-spacing: 3px; color: #a77d42 }
.home-page .index-page .form.common .text.text-bk .title { padding: 0; margin: 0 0 22px; font-size: 14px; line-height: 22px; letter-spacing: 0; color: #647582; text-align: left }
.home-page .text.text-bk .title::before, .home-page .text.text-bk .title::after { display: none }
.bk[data-variant="index"] { width: auto; max-width: none; margin: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; overflow: visible }
.bk[data-variant="index"] .bk-form { padding: 0 }
.bk[data-variant="index"] .bk-bar-row { display: grid; grid-template-columns: 1.1fr 1.35fr .6fr 1.5fr 1fr 150px; align-items: end; gap: 16px }
.bk[data-variant="index"] .bk-bar-cell { position: relative; min-width: 0 }
.bk-guest-fields { display: grid; grid-template-columns: minmax(0,1fr) 112px; gap: 8px }
.bk-guest-fields > div { min-width: 0 }
.bk-salutation { display: flex; height: 44px; border: 1px solid #ccd6de; border-radius: 5px; overflow: hidden; background: #fafbfc }
.bk-salutation label { position: relative; flex: 1; cursor: pointer }
.bk-salutation label + label { border-left: 1px solid #ccd6de }
.bk-salutation input { position: absolute; width: 1px; height: 1px; opacity: 0 }
.bk-salutation span { display: flex; height: 100%; align-items: center; justify-content: center; font-size: 14px; color: #526575 }
.bk-salutation input:checked + span { background: #002648; color: #fff }
.bk-salutation input:focus-visible + span { box-shadow: inset 0 0 0 2px #c9a063 }
.bk[data-variant="index"] .bk-label { margin-bottom: 8px; font-size: 13px; line-height: 20px; color: #435666; font-weight: 600 }
.form.common .text .bk[data-variant="index"] .bk-control input,
.form.common .text .bk[data-variant="index"] .bk-control select { width: 100%; height: 44px; margin: 0; padding: 0 12px; font-size: 14px; line-height: 42px; color: #203a4d; background: #fafbfc; border: 1px solid #ccd6de; border-radius: 5px; outline: none }
.form.common .text .bk[data-variant="index"] .bk-control input:focus,
.form.common .text .bk[data-variant="index"] .bk-control select:focus { border-color: #91b5cc; box-shadow: 0 0 0 2px rgba(0,38,72,.08); background: #fff }
.form.common .text .bk[data-variant="index"] input::placeholder { color: #8b98a5; font-size: 13px }
.form.common .text .bk[data-variant="index"] .bk-select select { padding-right: 30px }
.form.common .text .bk[data-variant="index"] .bk-date input { padding-right: 36px; cursor: pointer }
.form.common .text .bk[data-variant="index"] .bk-bar-numbox { display: flex; align-items: center; height: 44px; padding: 0 10px; background: #fafbfc; border: 1px solid #ccd6de; border-radius: 5px }
.form.common .text .bk[data-variant="index"] .bk-bar-numbox input { min-width: 0; height: 42px; padding: 0; border: 0; background: transparent; text-align: center; box-shadow: none }
.bk[data-variant="index"] .bk-bar-suffix { flex: 0 0 auto; font-size: 12px; color: #647582 }
.form.common .text .bk[data-variant="index"] .bk-bar-btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 44px; padding: 0; color: #fff; background: #002648; border: 0; border-radius: 5px; font-size: 14px; letter-spacing: 2px; cursor: pointer }
.bk[data-variant="index"] .bk-bar-btn .iconfont { margin-right: 8px; font-size: 17px; letter-spacing: 0 }
.bk[data-variant="index"] .bk-bar-btn:hover { background: #124d70 }
.bk[data-variant="index"] .bk-error { position: absolute; top: 100%; left: 0; margin: 4px 0 0; white-space: nowrap }
.bk[data-variant="index"] .bk-field.has-error .bk-control input,
.bk[data-variant="index"] .bk-field.has-error .bk-control select,
.bk[data-variant="index"] .bk-field.has-error .bk-bar-numbox { border-color: #d64545 }
.bk[data-variant="index"] .bk-msg { margin: 24px 0 0; text-align: left }
.bk[data-variant="index"] .bk-msg:empty { display: none }
.bk[data-variant="index"] .bk-picker { left: 0; right: auto }
@media only screen and (max-width: 1300px) {
    .bk[data-variant="index"] .bk-bar-row { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px 16px }
}
@media only screen and (max-width: 768px) {
    .home-page .index-page .form.common .text.text-bk { padding: 20px 16px 24px }
    .bk[data-variant="index"] .bk-bar-row { grid-template-columns: minmax(0,1fr); gap: 16px }
    .bk[data-variant="index"] .bk-error { position: static; white-space: normal }
}
