/**
 * Booking Hold pages — Hotel + Package
 * Modern card-based layout with stepper + sticky sidebar.
 */

:root {
    --bk-garnet-red: #8b1a2b;
    --bk-line: #e5e7eb;
    --bk-surface: #f5f5f0;
    --bk-ink: #1a1a1e;
    --bk-ink-soft: #4b5563;
    --bk-muted: #6b7280;
}

.bk-page {
    background: var(--bk-surface);
    min-height: 100vh;
}

/* ---------- Progress Stepper ---------- */
.bk-stepper {
    background: #fff;
    border-bottom: 1px solid var(--bk-line);
    padding: 1rem 1.25rem;
}
.bk-stepper__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0;
}
.bk-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--bk-muted);
}
.bk-step.is-active {
    color: var(--bk-garnet-red);
}
.bk-step.is-done {
    color: #16a34a;
}
.bk-step__num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--bk-line);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 0.75rem;
    flex-shrink: 0;
}
.bk-step.is-active .bk-step__num {
    background: var(--bk-garnet-red);
    color: #fff;
    border-color: var(--bk-garnet-red);
}
.bk-step.is-done .bk-step__num {
    background: #16a34a;
    color: #fff;
    border-color: #16a34a;
}
.bk-step__line {
    flex: 1;
    height: 2px;
    background: var(--bk-line);
    margin: 0 0.75rem;
    min-width: 2rem;
}
.bk-step__line.is-done {
    background: #16a34a;
}

/* ---------- Layout Grid ---------- */
.bk-grid {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 3rem;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 1.5rem;
    align-items: start;
}

.bk-back {
    max-width: 1100px;
    margin: 1rem auto 0;
    padding: 0 1.25rem;
}
.bk-back__link {
    color: var(--bk-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}
.bk-back__link:hover {
    color: var(--bk-garnet-red);
}

/* ---------- Cards ---------- */
.bk-card {
    background: #fff;
    border: 1px solid var(--bk-line);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}
.bk-card__title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--bk-ink);
    margin: 0 0 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.bk-card__subtitle {
    font-size: 0.82rem;
    color: var(--bk-muted);
    margin: 0 0 1.25rem;
}

/* ---------- Form ---------- */
.bk-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.bk-form-grid--3 {
    grid-template-columns: auto 1fr 1fr;
}
.bk-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.bk-field--full {
    grid-column: 1 / -1;
}
.bk-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--bk-ink);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.bk-label .req {
    color: var(--bk-garnet-red);
}
.bk-input,
.bk-select {
    height: 46px;
    border: 1.5px solid var(--bk-line);
    border-radius: 10px;
    padding: 0 0.85rem;
    font-size: 0.92rem;
    font-family: inherit;
    color: var(--bk-ink);
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.bk-input:focus,
.bk-select:focus {
    outline: none;
    border-color: var(--bk-garnet-red);
    box-shadow: 0 0 0 3px rgba(139, 26, 43, 0.1);
}
.bk-input.is-invalid,
.bk-select.is-invalid {
    border-color: var(--bk-garnet-red);
    background: #fef2f2;
}
.bk-textarea {
    border: 1.5px solid var(--bk-line);
    border-radius: 10px;
    padding: 0.75rem 0.85rem;
    font-size: 0.88rem;
    font-family: inherit;
    color: var(--bk-ink);
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.15s;
}
.bk-textarea:focus {
    outline: none;
    border-color: var(--bk-garnet-red);
}

/* ---------- Agreement checkbox ---------- */
.bk-agree {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    background: var(--bk-surface);
    padding: 0.9rem 1rem;
    border-radius: 10px;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--bk-ink-soft);
    line-height: 1.5;
    cursor: pointer;
}
.bk-agree input {
    margin-top: 0.2rem;
    accent-color: var(--bk-garnet-red);
    cursor: pointer;
}

/* ---------- Sidebar ---------- */
.bk-sidebar {
    position: sticky;
    top: 80px;
    align-self: start;
}

/* ---------- Hotel Summary ---------- */
.bk-hotel {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.bk-hotel__img {
    width: 100px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bk-surface);
}
.bk-hotel__name {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--bk-ink);
    margin: 0 0 0.15rem;
    line-height: 1.3;
}
.bk-hotel__stars {
    color: #d4a016;
    font-size: 0.75rem;
    letter-spacing: 1px;
}
.bk-hotel__addr {
    font-size: 0.78rem;
    color: var(--bk-muted);
    margin: 0.15rem 0 0;
}

/* ---------- Section heading ---------- */
.bk-section-head {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bk-muted);
    margin: 1.25rem 0 0.6rem;
    padding-top: 1rem;
    border-top: 1px solid var(--bk-line);
}
.bk-section-head:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

/* ---------- Check-in/out Strip ---------- */
.bk-dates {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bk-surface);
    border-radius: 10px;
    margin-bottom: 1.25rem;
}
.bk-dates__block {
    flex: 1;
}
.bk-dates__label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bk-muted);
}
.bk-dates__val {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--bk-ink);
}
.bk-dates__arrow {
    color: var(--bk-muted);
    font-size: 1.2rem;
    flex-shrink: 0;
}
.bk-dates__nights {
    text-align: center;
    background: var(--bk-garnet-red);
    color: #fff;
    border-radius: 8px;
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 800;
    flex-shrink: 0;
    white-space: nowrap;
}

/* ---------- Room Summary ---------- */
.bk-room {
    display: flex;
    gap: 0.85rem;
    padding: 1rem;
    border: 1px solid var(--bk-line);
    border-radius: 10px;
    margin-bottom: 1rem;
}
.bk-room__name {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--bk-ink);
    margin: 0;
}
.bk-room__meta {
    font-size: 0.75rem;
    color: var(--bk-muted);
    margin: 0.15rem 0 0;
}

.bk-room-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}
.bk-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
}
.bk-badge--green {
    background: #ecfdf5;
    color: #16a34a;
}
.bk-badge--red {
    background: #fef2f2;
    color: var(--bk-garnet-red);
}
.bk-badge--blue {
    background: #eef2ff;
    color: #4f46e5;
}

.bk-facs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}
.bk-fac {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 5px;
    background: var(--bk-surface);
    color: var(--bk-ink-soft);
}

.bk-flight__bags {
    font-size: 0.72rem;
    line-height: 1.45;
    color: var(--bk-muted);
    margin-top: 0.35rem;
}

/* ---------- Flight summary (package) ---------- */
.bk-flight {
    border: 1px solid var(--bk-line);
    border-radius: 10px;
    padding: 0.9rem 1rem;
    margin-bottom: 0.75rem;
}
.bk-flight__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.bk-flight__label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bk-muted);
}
.bk-flight__date {
    font-size: 0.75rem;
    color: var(--bk-ink-soft);
    font-weight: 600;
}
.bk-flight__route {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--bk-ink);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}
.bk-flight__route .arrow {
    color: var(--bk-muted);
    font-weight: 400;
}
.bk-flight__times {
    font-size: 0.78rem;
    color: var(--bk-ink-soft);
    margin-bottom: 0.2rem;
}
.bk-flight__meta {
    font-size: 0.72rem;
    color: var(--bk-muted);
}

/* ---------- Price Breakdown ---------- */
.bk-price {
    border-top: 1px solid var(--bk-line);
    padding-top: 1rem;
    margin-top: 0.5rem;
}
.bk-price__row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--bk-ink-soft);
    margin-bottom: 0.35rem;
}
.bk-price__row.is-total {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--bk-ink);
    border-top: 1px solid var(--bk-line);
    padding-top: 0.75rem;
    margin-top: 0.5rem;
}

/* ---------- Trust Badges ---------- */
.bk-trust {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--bk-line);
}
.bk-trust__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--bk-ink-soft);
}
.bk-trust__ic {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: 0.65rem;
    color: #fff;
    background: #16a34a;
    font-weight: 800;
}

/* ---------- Submit ---------- */
.bk-submit {
    width: 100%;
    height: 52px;
    background: var(--bk-garnet-red);
    color: #fff;
    border: 0;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: filter 0.15s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.bk-submit:hover {
    filter: brightness(0.92);
}
.bk-submit:active {
    transform: scale(0.98);
}
.bk-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.bk-submit-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: bk-spin 0.8s linear infinite;
}
@keyframes bk-spin {
    to { transform: rotate(360deg); }
}

/* ---------- Alerts ---------- */
.bk-alert {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.bk-alert--error {
    background: #fef2f2;
    color: var(--bk-garnet-red);
    border: 1px solid rgba(139, 26, 43, 0.15);
}
.bk-alert--success {
    background: #ecfdf5;
    color: #16a34a;
    border: 1px solid rgba(22, 163, 74, 0.15);
}
.bk-alert a {
    color: inherit;
    font-weight: 800;
    text-decoration: underline;
}

.bk-intro {
    max-width: 1100px;
    margin: 1rem auto 0;
    padding: 0 1.25rem;
}
.bk-intro h1 {
    font-size: 1.6rem;
    color: var(--bk-ink);
    margin: 0 0 0.25rem;
    font-weight: 800;
}
.bk-intro p {
    color: var(--bk-muted);
    font-size: 0.92rem;
    margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .bk-grid {
        grid-template-columns: 1fr;
    }
    .bk-sidebar {
        position: relative;
        top: 0;
        order: -1;
    }
}
@media (max-width: 600px) {
    .bk-form-grid,
    .bk-form-grid--3 {
        grid-template-columns: 1fr;
    }
    .bk-stepper__inner {
        gap: 0;
    }
    .bk-step span {
        display: none;
    }
    .bk-step__line {
        margin: 0 0.4rem;
        min-width: 1rem;
    }
    .bk-card {
        padding: 1.25rem;
    }
    .bk-intro h1 {
        font-size: 1.35rem;
    }
}
