/* =========================================================
   booking.css – form đặt tour với Alpine.js
   ========================================================= */

/* ---------- LAYOUT v2: content + sticky total widget ---------- */
.hg-tour-body {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 44px;
    margin-top: 44px;
    align-items: flex-start;
}
@media (max-width: 992px) {
    .hg-tour-body { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- COMPACT TOTAL WIDGET (sidebar) ---------- */
.hg-total-widget {
    background: #fff;
    border-radius: var(--radius-md, 14px);
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    overflow: hidden;
    position: sticky;
    top: 96px;
}
.hg-total-widget__head {
    background: linear-gradient(135deg, var(--color-secondary, #1a3c34), #2a5b50);
    color: #fff;
    padding: 22px 24px;
    text-align: center;
    line-height: 1.3;
}
.hg-total-widget__from {
    display: block;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .15em;
    opacity: .8;
    margin-bottom: 4px;
}
.hg-total-widget__price {
    display: block;
    font-family: var(--font-display, "Playfair Display", serif);
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--color-accent, #f4c430);
}
.hg-total-widget__per {
    font-size: .8rem;
    opacity: .85;
}
.hg-total-widget__body {
    padding: 20px 22px;
}

/* ---------- BOOKING SECTION (full-width below content) ---------- */
.hg-book-section {
    background: #faf6ee;
    padding: 80px 0 100px;
    margin-top: 48px;
}
.hg-book-section__head {
    text-align: center;
    margin-bottom: 36px;
}
.hg-book-section__head h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.hg-book--full {
    max-width: 980px;
    margin: 0 auto;
}
.hg-book--full .hg-book__body {
    padding: 32px 36px;
}
@media (max-width: 720px) {
    .hg-book--full .hg-book__body { padding: 22px; }
    .hg-book-section { padding: 56px 0 80px; }
}

/* ---------- BOOK ROW (2 columns) ---------- */
.hg-book__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    border-bottom: 1px solid var(--color-border, #e9e3d8);
    padding: 18px 0;
}
.hg-book__row > .hg-step {
    border-bottom: 0;
    padding: 0;
}
@media (max-width: 720px) {
    .hg-book__row { grid-template-columns: 1fr; gap: 6px; }
    .hg-book__row > .hg-step { padding: 14px 0; border-bottom: 1px solid var(--color-border, #e9e3d8); }
    .hg-book__row > .hg-step:last-child { border-bottom: 0; }
}

/* ---------- BOOK FOOTER (discount + checkout) ---------- */
.hg-book__footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px solid var(--color-secondary, #1a3c34);
}
.hg-book__total {
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.hg-book__total .lbl {
    display: block;
    font-size: .82rem;
    color: var(--color-text-muted, #666);
    text-transform: uppercase;
    letter-spacing: .1em;
}
.hg-book__total .val {
    display: block;
    font-family: var(--font-display, serif);
    font-size: 2.2rem;
    color: var(--color-primary, #ff6b00);
    font-weight: 700;
}
.hg-book__total .hg-button {
    padding: 16px 36px;
    font-size: 1rem;
}



.hg-book {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
.hg-book__head {
    padding: 22px 26px;
    background: linear-gradient(135deg, var(--color-secondary), #2a5b50);
    color: #fff;
}
.hg-book__head h3 { color: #fff; margin: 0 0 4px; font-family: var(--font-display); font-size: 1.4rem; }
.hg-book__head p  { margin: 0; opacity: .85; font-size: .9rem; }

.hg-book__body { padding: 24px 26px 8px; }

/* ----- step layout ----- */
.hg-step {
    border-bottom: 1px solid var(--color-border);
    padding: 18px 0;
}
.hg-step:last-child { border-bottom: 0; }
.hg-step__label {
    display: flex; align-items: center; gap: 10px;
    font-weight: 600;
    color: var(--color-secondary);
    margin: 0 0 12px;
    text-transform: uppercase;
    font-size: .78rem;
    letter-spacing: .1em;
}
.hg-step__label .num {
    width: 26px; height: 26px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .78rem; font-weight: 700;
}

/* ----- tourist counter ----- */
.hg-counter {
    display: inline-flex;
    align-items: center;
    background: #f7f3eb;
    border-radius: 999px;
    padding: 4px;
    gap: 4px;
}
.hg-counter button {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 0;
    background: #fff;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-secondary);
    transition: background .2s ease, color .2s ease;
}
.hg-counter button:hover:not(:disabled) { background: var(--color-primary); color: #fff; }
.hg-counter button:disabled { opacity: .4; cursor: not-allowed; }
.hg-counter .val {
    min-width: 40px; text-align: center;
    font-weight: 700; font-size: 1.05rem;
}

/* ----- field row ----- */
.hg-field {
    display: block;
    margin-bottom: 12px;
}
.hg-field span.lbl {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 6px;
}
.hg-field input,
.hg-field select,
.hg-field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    font: inherit;
    background: #fff;
    transition: border .2s ease, box-shadow .2s ease;
}
.hg-field input:focus,
.hg-field select:focus,
.hg-field textarea:focus {
    outline: 0;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255,107,0,.15);
}

.hg-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hg-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
@media(max-width:540px){ .hg-grid-2, .hg-grid-3 { grid-template-columns: 1fr; } }

/* ----- date pills ----- */
.hg-date-pills {
    display: flex; gap: 8px; flex-wrap: wrap;
    background: #faf6ee;
    padding: 12px;
    border-radius: 10px;
    margin-top: 8px;
    font-size: .85rem;
}
.hg-date-pills .pill { background: #fff; padding: 6px 12px; border-radius: 999px; }
.hg-date-pills .pill strong { color: var(--color-secondary); }

/* ----- option cards (accommodation / ride / location) ----- */
.hg-option-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px,1fr));
    gap: 10px;
}
.hg-option-card {
    border: 2px solid var(--color-border);
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    transition: all .2s ease;
    background: #fff;
    position: relative;
}
.hg-option-card:hover { border-color: var(--color-primary); }
.hg-option-card.is-active {
    border-color: var(--color-primary);
    background: rgba(255,107,0,.05);
    box-shadow: 0 0 0 3px rgba(255,107,0,.1);
}
.hg-option-card.is-active::after {
    content: "✓";
    position: absolute; top: 8px; right: 12px;
    color: var(--color-primary);
    font-weight: 700;
}
.hg-option-card .ttl {
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 4px;
}
.hg-option-card .sub {
    font-size: .8rem;
    color: var(--color-text-muted);
}
.hg-option-card .pri {
    margin-top: 8px;
    color: var(--color-primary);
    font-weight: 700;
    font-size: .9rem;
}

/* ----- riders list ----- */
.hg-rider {
    background: #faf6ee;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 8px;
    display: grid;
    grid-template-columns: 80px 1fr auto;
    align-items: center;
    gap: 14px;
}
.hg-rider .num {
    background: var(--color-secondary);
    color: #fff;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: .8rem;
    font-weight: 600;
    text-align: center;
}
.hg-rider select { padding: 8px 10px; border-radius: 8px; border: 1px solid var(--color-border); font: inherit; width: 100%; }
.hg-rider .idp { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--color-text-muted); }
@media(max-width:480px){
    .hg-rider { grid-template-columns: 1fr; }
}

/* ----- warnings ----- */
.hg-warnings {
    background: #fff7e6;
    border: 1px solid #ffd28a;
    border-left: 4px sol