/* ============================================================
   BOOKING FORM — CSS completamente isolado
   Prefixo: #booking-form  →  alta especificidade, sem conflito
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ── RESET TOTAL dentro do container ─────────────────────── */
#booking-form *,
#booking-form *::before,
#booking-form *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ── WRAPPER EXTERNO ─────────────────────────────────────── */
#booking-form {
    width: 100%;
    background: #f5f0eb;
    padding: 40px 20px 60px;
    display: block;
    clear: both;
    position: relative;
}

/* ── INNER (centralizado, max-width) ─────────────────────── */
#booking-form .bk-inner {
    max-width: 720px;
    margin: 0 auto;
}

/* ── CABEÇALHO DO FORM ───────────────────────────────────── */
#booking-form .bk-header {
    text-align: center;
    margin-bottom: 36px;
}

#booking-form .bk-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1408;
    letter-spacing: -0.3px;
    line-height: 1.2;
    text-transform: none;
    border: none;
    padding: 0;
}

#booking-form .bk-header p {
    font-size: 0.88rem;
    color: #7a6a55;
    margin-top: 6px;
    font-weight: 400;
}

/* ── BARRA DE PROGRESSO ──────────────────────────────────── */
#booking-form .bk-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 36px;
    gap: 0;
}

#booking-form .bk-step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: default;
    position: relative;
    z-index: 1;
}

#booking-form .bk-step-dot .dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e0d6c8;
    color: #a89880;
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
    box-shadow: none;
}

#booking-form .bk-step-dot .dot-label {
    font-size: 0.68rem;
    color: #a89880;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.3s;
}

#booking-form .bk-step-dot.active .dot {
    background: #c9a84c;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(201,168,76,0.2);
}

#booking-form .bk-step-dot.active .dot-label {
    color: #c9a84c;
    font-weight: 600;
}

#booking-form .bk-step-dot.done .dot {
    background: #2d7a4f;
    color: #fff;
}

#booking-form .bk-step-dot.done .dot-label {
    color: #2d7a4f;
}

#booking-form .bk-progress-line {
    flex: 1;
    height: 2px;
    background: #e0d6c8;
    margin: 0 6px;
    margin-bottom: 22px;
    transition: background 0.4s;
}

#booking-form .bk-progress-line.done {
    background: #2d7a4f;
}

/* ── PAINÉIS DOS PASSOS ──────────────────────────────────── */
#booking-form .bk-panel {
    display: none;
    animation: bkFadeIn 0.35s ease;
}

#booking-form .bk-panel.bk-active {
    display: block;
}

@keyframes bkFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── CARD (caixa branca de cada passo) ───────────────────── */
#booking-form .bk-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    overflow: hidden;
}

#booking-form .bk-card-head {
    background: linear-gradient(135deg, #1a1408 0%, #3d2e12 100%);
    padding: 20px 28px;
    display: flex;
    align-items: center;
    gap: 14px;
}

#booking-form .bk-card-head .card-icon {
    width: 42px;
    height: 42px;
    background: rgba(201,168,76,0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

#booking-form .bk-card-head h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.2px;
    text-transform: none;
    border: none;
    padding: 0;
    line-height: 1.3;
}

#booking-form .bk-card-head p {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.55);
    margin-top: 2px;
    font-weight: 400;
}

#booking-form .bk-card-body {
    padding: 28px;
}

/* ── PASSO 1: DATA ───────────────────────────────────────── */
#booking-form .bk-dateinput {
    display: block;
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    font-weight: 500;
    color: #1a1408;
    background: #fafafa;
    border: 2px solid #e8dfd0;
    border-radius: 10px;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    text-align: center;
    letter-spacing: 0.3px;
}

#booking-form .bk-dateinput:focus,
#booking-form .bk-dateinput.filled {
    border-color: #c9a84c;
    box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
    background: #fff;
}

/* ── PASSO 2: CATEGORIAS ─────────────────────────────────── */
#booking-form .bk-cat-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

#booking-form .bk-cat-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 16px 18px;
    background: #fafafa;
    border: 2px solid #f0e9df;
    border-radius: 12px;
    transition: border-color 0.2s, background 0.2s;
}

#booking-form .bk-cat-item.active {
    border-color: #c9a84c;
    background: #fffbf2;
}

#booking-form .bk-cat-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

#booking-form .bk-cat-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1408;
}

#booking-form .bk-cat-desc {
    font-size: 0.75rem;
    color: #9a8a74;
    font-weight: 400;
}

#booking-form .bk-cat-price {
    font-size: 0.88rem;
    font-weight: 700;
    color: #c9a84c;
    margin-top: 4px;
}

#booking-form .bk-cat-counter {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
    justify-self: end;
}

#booking-form .bk-btn-count {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #e0d6c8;
    background: #fff;
    color: #7a6a55;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
    outline: none;
    user-select: none;
    -webkit-user-select: none;
}

#booking-form .bk-btn-count:hover {
    border-color: #c9a84c;
    color: #c9a84c;
    background: #fffbf2;
}

#booking-form .bk-btn-count:active {
    transform: scale(0.9);
}

#booking-form .bk-count-val {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1408;
    min-width: 24px;
    text-align: center;
    display: block;
}

/* Input hidden para o valor real */
#booking-form .bk-cat-input {
    display: none;
}

/* ── RESUMO TOTAL ─────────────────────────────────────────── */
#booking-form .bk-total-bar {
    margin-top: 20px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #1a1408 0%, #3d2e12 100%);
    border-radius: 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    width: 100%;
}

#booking-form .bk-total-bar .total-label {
    font-size: 0.82rem;
    font-weight: 400;
    color: rgba(255,255,255,0.65);
}

#booking-form .bk-total-bar .total-pessoas {
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    margin-top: 3px;
}

#booking-form .bk-total-bar .total-preco {
    font-size: 1.5rem;
    font-weight: 700;
    color: #c9a84c;
    letter-spacing: -0.5px;
    justify-self: end;
    text-align: right;
    white-space: nowrap;
}

/* ── PASSO 3: HORÁRIO ─────────────────────────────────────── */
#booking-form .bk-hora-grid {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

#booking-form .bk-hora-label {
    flex: 1;
    min-width: 120px;
    cursor: pointer;
    position: relative;
}

#booking-form .bk-hora-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

#booking-form .bk-hora-card {
    padding: 20px 14px;
    background: #fafafa;
    border: 2px solid #e8dfd0;
    border-radius: 14px;
    text-align: center;
    transition: all 0.2s;
}

#booking-form .bk-hora-card .hora-time {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3d2e12;
    letter-spacing: -0.5px;
    display: block;
}

#booking-form .bk-hora-card .hora-tag {
    font-size: 0.72rem;
    color: #9a8a74;
    font-weight: 500;
    margin-top: 4px;
    display: block;
}

#booking-form .bk-hora-label input:checked + .bk-hora-card {
    border-color: #c9a84c;
    background: linear-gradient(135deg, #c9a84c 0%, #e0c068 100%);
    box-shadow: 0 6px 20px rgba(201,168,76,0.35);
}

#booking-form .bk-hora-label input:checked + .bk-hora-card .hora-time {
    color: #fff;
}

#booking-form .bk-hora-label input:checked + .bk-hora-card .hora-tag {
    color: rgba(255,255,255,0.8);
}

/* ── PASSO 4: TERMOS ─────────────────────────────────────── */
#booking-form .bk-termos-box {
    height: 220px;
    overflow-y: scroll;
    background: #fafafa;
    border: 1px solid #e8dfd0;
    border-radius: 10px;
    padding: 18px 20px;
    scrollbar-width: thin;
    scrollbar-color: #c9a84c #f0e9df;
}

#booking-form .bk-termos-box::-webkit-scrollbar {
    width: 6px;
}

#booking-form .bk-termos-box::-webkit-scrollbar-track {
    background: #f0e9df;
    border-radius: 3px;
}

#booking-form .bk-termos-box::-webkit-scrollbar-thumb {
    background: #c9a84c;
    border-radius: 3px;
}

#booking-form .bk-termos-box ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#booking-form .bk-termos-box ul li {
    font-size: 0.8rem;
    color: #5a4a38;
    line-height: 1.55;
    padding-left: 16px;
    position: relative;
}

#booking-form .bk-termos-box ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #c9a84c;
    font-weight: 700;
}

#booking-form .bk-termos-hint {
    font-size: 0.72rem;
    color: #c9a84c;
    margin-top: 8px;
    text-align: right;
    font-weight: 500;
}

#booking-form .bk-toggle-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
    padding: 16px 18px;
    background: #fafafa;
    border-radius: 10px;
    border: 1px solid #e8dfd0;
    cursor: pointer;
}

#booking-form .bk-toggle-wrap input[type="checkbox"] {
    display: none;
}

#booking-form .bk-toggle-track {
    width: 48px;
    height: 26px;
    background: #e0d6c8;
    border-radius: 13px;
    position: relative;
    flex-shrink: 0;
    transition: background 0.3s;
}

#booking-form .bk-toggle-track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

#booking-form .bk-toggle-wrap input:checked ~ .bk-toggle-track {
    background: #2d7a4f;
}

#booking-form .bk-toggle-wrap input:checked ~ .bk-toggle-track::after {
    transform: translateX(22px);
}

#booking-form .bk-toggle-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: #3d2e12;
}

/* ── PASSO 5: DADOS ───────────────────────────────────────── */
#booking-form .bk-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

#booking-form .bk-field-full {
    grid-column: 1 / -1;
}

#booking-form .bk-field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #7a6a55;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 6px;
}

#booking-form .bk-field input,
#booking-form .bk-field textarea {
    display: block;
    width: 100%;
    padding: 12px 14px;
    font-size: 0.9rem;
    font-weight: 400;
    color: #1a1408;
    background: #fafafa;
    border: 2px solid #e8dfd0;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    -webkit-appearance: none;
    appearance: none;
    font-family: 'Poppins', sans-serif;
}

#booking-form .bk-field input:focus,
#booking-form .bk-field textarea:focus {
    border-color: #c9a84c;
    box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
    background: #fff;
}

#booking-form .bk-field textarea {
    resize: vertical;
    min-height: 90px;
}

/* ── NAVEGAÇÃO ENTRE PASSOS ───────────────────────────────── */
#booking-form .bk-nav {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    align-items: center;
}

#booking-form .bk-btn-back {
    padding: 13px 22px;
    background: transparent;
    border: 2px solid #e0d6c8;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #7a6a55;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

#booking-form .bk-btn-back:hover {
    border-color: #c9a84c;
    color: #c9a84c;
}

#booking-form .bk-btn-next {
    flex: 1;
    padding: 15px;
    background: linear-gradient(135deg, #c9a84c 0%, #e0c068 100%);
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1408;
    cursor: pointer;
    transition: all 0.25s;
    outline: none;
    letter-spacing: 0.2px;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 4px 16px rgba(201,168,76,0.3);
}

#booking-form .bk-btn-next:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(201,168,76,0.45);
}

#booking-form .bk-btn-next:active {
    transform: translateY(0);
}

#booking-form .bk-btn-next:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ── RESUMO LATERAL (sticky no último passo) ────────────────  */
#booking-form .bk-review {
    background: #fafafa;
    border: 1px solid #e8dfd0;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 20px;
    font-size: 0.82rem;
    color: #5a4a38;
    line-height: 1.8;
}

#booking-form .bk-review strong {
    color: #1a1408;
    font-weight: 600;
}

#booking-form .bk-review-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px solid #f0e9df;
}

#booking-form .bk-review-row:last-child {
    border-bottom: none;
    padding-top: 10px;
    margin-top: 4px;
}

#booking-form .bk-review-row .rv-price {
    font-weight: 700;
    color: #c9a84c;
    font-size: 1rem;
}

/* ── MENSAGENS DE ERRO ───────────────────────────────────── */
#booking-form .bk-error-msg {
    color: #c0392b;
    background: #fdf0ee;
    border: 1px solid #f5c6c0;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 14px;
    display: none;
}

#booking-form .bk-error-msg.visible {
    display: block;
    animation: bkFadeIn 0.2s ease;
}

/* ── SUCESSO ─────────────────────────────────────────────── */
#booking-form .bk-success {
    text-align: center;
    padding: 40px 20px;
    display: none;
}

#booking-form .bk-success.visible {
    display: block;
    animation: bkFadeIn 0.4s ease;
}

#booking-form .bk-success .success-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
    display: block;
}

#booking-form .bk-success h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1408;
    margin-bottom: 8px;
}

#booking-form .bk-success p {
    font-size: 0.88rem;
    color: #7a6a55;
    max-width: 360px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── RESPONSIVO ──────────────────────────────────────────── */
@media (max-width: 600px) {
    #booking-form {
        padding: 24px 14px 50px;
    }

    #booking-form .bk-card-body {
        padding: 20px 16px;
    }

    #booking-form .bk-progress-line {
        display: none;
    }

    #booking-form .bk-step-dot .dot-label {
        display: none;
    }

    #booking-form .bk-step-dot .dot {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }

    #booking-form .bk-fields-grid {
        grid-template-columns: 1fr;
    }

    #booking-form .bk-field-full {
        grid-column: 1;
    }

    #booking-form .bk-hora-card .hora-time {
        font-size: 1.2rem;
    }

    #booking-form .bk-total-bar .total-preco {
        font-size: 1.3rem;
    }

    #booking-form .bk-header h2 {
        font-size: 1.3rem;
    }
}
