/* Cấu trúc form đặt bàn thương hiệu (Khèn, Long Wang, …) */
.bf-shell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 32px 16px 48px;
    box-sizing: border-box;
    width: 100%;
}

.bf-card {
    width: min(720px, 100%);
    display: flex;
    flex-direction: column;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .22);
    position: relative;
}

.bf-card__body {
    padding: 28px 32px 32px;
    position: relative;
    z-index: 1;
}

.bf-watermark {
    position: absolute;
    left: 50%;
    top: 18%;
    width: min(420px, 72%);
    height: auto;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 0;
    opacity: 1;
    user-select: none;
}

.bf-card__foot {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.bf-card__foot-swirl {
    display: block;
    height: 28px;
    width: 100%;
    background-repeat: repeat-x;
    background-position: center top;
    background-size: auto 100%;
}

.bf-btn__icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.bf-intro {
    text-align: center;
    margin-bottom: 22px;
}

.bf-intro__eyebrow {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 600;
}

.bf-intro__title {
    margin: 0 0 8px;
    font-size: clamp(1.35rem, 4vw, 1.75rem);
    line-height: 1.15;
    letter-spacing: .02em;
}

.bf-intro__note {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}

.bf-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
}

.bf-field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.bf-field--full {
    grid-column: 1 / -1;
}

.bf-label {
    font-size: 13.5px;
    font-weight: 600;
}

.bf-label em {
    font-style: normal;
}

.bf-input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border-radius: 4px;
    border: 1px solid;
    font: inherit;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
}

textarea.bf-input {
    height: auto;
    min-height: 88px;
    padding: 12px 14px;
    resize: vertical;
}

.bf-input:focus {
    outline: none;
}

.bf-input:disabled {
    cursor: not-allowed;
    opacity: .85;
}

.bf-input[aria-invalid="true"] {
    border-width: 1.5px;
}

.bf-hint {
    font-size: 12.5px;
    line-height: 1.45;
}

.bf-err {
    font-size: 12.5px;
    display: flex;
    gap: 6px;
    align-items: flex-start;
}

.bf-err:empty {
    display: none;
}

.bf-err::before {
    content: "!";
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    display: grid;
    place-items: center;
    margin-top: 1px;
}

.bf-time {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

select.bf-input {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 36px;
    background-image:
        linear-gradient(45deg, transparent 50%, currentColor 50%),
        linear-gradient(135deg, currentColor 50%, transparent 50%);
    background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px;
    background-size: 5px 5px;
    background-repeat: no-repeat;
}

.bf-check {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: start;
    font-size: 13.5px;
    line-height: 1.55;
    cursor: pointer;
}

.bf-check input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
}

.bf-check .bf-err {
    grid-column: 1 / -1;
}

.bf-summary {
    grid-column: 1 / -1;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
    margin: 0;
}

.bf-summary[hidden] {
    display: none !important;
}

.bf-btn {
    grid-column: 1 / -1;
    height: 52px;
    border: 0;
    border-radius: 4px;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background .2s, transform .1s, opacity .2s;
}

.bf-btn:active {
    transform: translateY(1px);
}

.bf-btn[disabled] {
    cursor: progress;
    opacity: .88;
}

.bf-spin {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: bf-spin .8s linear infinite;
}

.bf-spin[hidden] {
    display: none;
}

@keyframes bf-spin {
    to {
        transform: rotate(360deg);
    }
}

.bf-done {
    display: grid;
    gap: 14px;
    justify-items: center;
    text-align: center;
    padding: 12px 0 8px;
}

.bf-done[hidden] {
    display: none !important;
}

.bf-done__logo {
    max-height: 72px;
    width: auto;
}

.bf-done h2 {
    margin: 0;
    font-size: clamp(1.25rem, 3.5vw, 1.65rem);
    line-height: 1.15;
}

.bf-done p {
    margin: 0;
    max-width: 44ch;
    font-size: 14px;
    line-height: 1.55;
}

.bf-recap {
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 18px;
    padding: 16px 18px;
    border-radius: 8px;
    text-align: left;
    font-size: 14.5px;
    margin: 4px 0;
}

.bf-recap dt {
    opacity: .75;
}

.bf-recap dd {
    margin: 0;
    font-weight: 600;
}

.bf-btn--ghost {
    background: transparent;
    border: 1.5px solid;
    width: 100%;
}

.bf-form-view[hidden] {
    display: none !important;
}

.bf-hero {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.bf-hero__logo {
    max-height: 56px;
    width: auto;
    max-width: min(420px, 92vw);
}


@media (max-width: 560px) {
    .bf-shell {
        padding: 20px 12px 32px;
    }

    .bf-card__body {
        padding: 22px 16px 26px;
    }

    /* Giữ 2 cột như mock (Điện thoại|Email, Khu vực|Nhà hàng, Ngày|Giờ) */
    .bf-form {
        grid-template-columns: 1fr 1fr;
        gap: 12px 10px;
    }

    .bf-time {
        gap: 6px;
    }

    .bf-input {
        height: 44px;
        font-size: 14px;
        padding: 0 10px;
    }

    select.bf-input {
        background-position: calc(100% - 14px) 19px, calc(100% - 9px) 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bf-spin {
        animation: none;
    }
}
