/* Página pública v2 — arquivo separado para evitar cache de versões anteriores. */
.public-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 8%, rgba(232, 184, 91, .26), transparent 30rem),
        linear-gradient(145deg, #fbf7ef 0%, #f3f5f8 58%, #eef1f4 100%);
}

.public-header {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 max(24px, calc((100% - 980px) / 2));
    color: #fff;
    background: #131920;
    border-bottom: 1px solid #2a323b;
}

.public-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.public-brand > span { display: grid; line-height: 1.25; }
.public-brand strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1rem; }
.public-brand small { color: #aeb7c2; font-size: .76rem; }
.public-brand img { width: 44px; height: 44px; object-fit: contain; background: #fff; border-radius: 12px; }
.public-whatsapp { flex: 0 0 auto; color: #fff; border-color: #4b5663; }

.public-main { width: min(100% - 32px, 900px); margin: 0 auto; padding: 58px 0 72px; }
.public-main.narrow { max-width: 680px; }
.public-intro { max-width: 720px; margin: 0 auto 30px; text-align: center; }
.public-intro .eyebrow { margin-bottom: 12px; }
.public-intro h1 { max-width: 650px; margin: 0 auto 14px; font-size: clamp(2.35rem, 7vw, 4.25rem); line-height: .98; letter-spacing: -.065em; }
.public-intro > p:last-child { max-width: 610px; margin: 0 auto; color: #68727d; font-size: 1.02rem; }

.public-booking-card {
    padding: 34px;
    overflow: hidden;
    background: rgba(255, 255, 255, .96);
    border: 1px solid #dfe3e8;
    border-radius: 22px;
    box-shadow: 0 20px 55px rgba(15, 23, 42, .09);
}

.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.booking-error-summary { margin-bottom: 20px; }

.booking-progress {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 38px !important;
    padding: 0 !important;
    color: #7b8490;
    list-style: none !important;
    counter-reset: none;
    font-size: .75rem;
    font-weight: 800;
    text-align: center;
}
.booking-progress li {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 7px;
    padding: 0;
}
.booking-progress li::marker { content: ""; }
.booking-progress li::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 15px;
    right: 50%;
    left: -50%;
    height: 2px;
    background: #e1e5e9;
}
.booking-progress li:first-child::before { display: none; }
.booking-progress span {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    color: #6f7883;
    background: #edf0f3;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #e1e5e9;
}
.booking-progress .active, .booking-progress .complete { color: #8b5a17; }
.booking-progress .active span, .booking-progress .complete span { color: #fff; background: #b7791f; box-shadow: 0 0 0 1px #b7791f; }
.booking-progress .active::before, .booking-progress .complete::before { background: #b7791f; }

.booking-step {
    min-width: 0;
    display: grid;
    gap: 20px;
    margin: 0;
    padding: 0;
    border: 0;
}
.js-enabled .booking-step { display: none !important; }
.js-enabled .booking-step.active { display: grid !important; animation: booking-enter .2s ease-out; }
@keyframes booking-enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.booking-step legend { float: left; width: 100%; margin: 0; padding: 0; font-size: clamp(1.35rem, 4vw, 1.7rem); font-weight: 850; letter-spacing: -.03em; }
.booking-step legend + * { clear: both; }
.step-help { margin: -15px 0 0; color: #68727d; }

.choice-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.choice-card {
    position: relative;
    display: grid;
    align-content: start;
    gap: 6px;
    min-height: 132px;
    padding: 19px;
    color: #17202a;
    cursor: pointer;
    background: #fff;
    border: 2px solid #e0e4e8;
    border-radius: 15px;
    transition: border-color .15s, background .15s, box-shadow .15s, transform .15s;
}
.choice-card:hover { border-color: #d4ad6d; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15, 23, 42, .08); }
.choice-card:has(input:focus-visible) { outline: 3px solid rgba(183, 121, 31, .25); outline-offset: 2px; }
.choice-card:has(input:checked) { border-color: #b7791f; background: #fff9ed; box-shadow: 0 0 0 1px #b7791f; }
.choice-card input { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.choice-card strong { padding-right: 28px; font-size: 1.05rem; }
.choice-card small { color: #68727d; }
.choice-card > span:last-child { margin-top: auto; color: #8b5a17; font-weight: 850; }
.choice-card .choice-check { position: absolute; top: 14px; right: 14px; display: none; place-items: center; width: 24px; height: 24px; color: #fff; background: #b7791f; border-radius: 50%; font-size: .72rem; }
.choice-card:has(input:checked) .choice-check { display: grid; }

.professional-choice { grid-template-columns: auto minmax(0, 1fr); align-items: center; min-height: 98px; }
.professional-choice img, .professional-placeholder { grid-row: 1; display: grid; place-items: center; width: 58px; height: 58px; object-fit: cover; color: #fff; background: #35414d; border-radius: 50%; font-size: 1.2rem; font-weight: 850; }
.professional-choice > span:nth-of-type(2) { display: grid; min-width: 0; }

.booking-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 10px; }
.booking-actions .btn { min-width: 112px; }
.booking-date { max-width: 360px; }
.js-enabled .native-time-field { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; }
.time-option-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: 9px; }
.time-option { min-height: 46px; padding: 8px; color: #17202a; cursor: pointer; background: #fff; border: 1px solid #cdd3da; border-radius: 10px; font-weight: 850; transition: .15s; }
.time-option:hover, .time-option.selected { color: #fff; background: #b7791f; border-color: #b7791f; box-shadow: 0 5px 12px rgba(183, 121, 31, .22); }

.booking-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0; overflow: hidden; background: #dfe3e8; border: 1px solid #dfe3e8; border-radius: 12px; }
.booking-summary div { padding: 13px; background: #f8f9fa; }
.booking-summary dt { color: #68727d; font-size: .68rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.booking-summary dd { margin: 4px 0 0; font-weight: 850; }
.client-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.client-fields .field-wide { grid-column: 1 / -1; }
.public-data-note { display: flex; align-items: flex-start; gap: 11px; padding: 14px; color: #68727d; background: #f5f7f9; border-radius: 11px; }
.public-data-note input { flex: 0 0 auto; width: 19px; height: 19px; margin-top: 2px; accent-color: #b7791f; }
.public-data-note label { font-size: .86rem; }

.public-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 13px; margin-top: 22px; }
.public-info-grid article { padding: 19px; background: rgba(255,255,255,.8); border: 1px solid #dfe3e8; border-radius: 13px; }
.public-info-grid p { margin: 5px 0; color: #68727d; font-size: .88rem; }
.public-footer { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px; padding: 30px 0 0; color: #68727d; font-size: .86rem; font-weight: 750; }
.public-empty-state { text-align: center; }

@media (max-width: 620px) {
    .public-header { min-height: 68px; gap: 10px; padding: 0 16px; }
    .public-brand small { display: none; }
    .public-whatsapp { min-height: 36px; padding: 5px 9px; font-size: .72rem; }
    .public-main { width: min(100% - 20px, 900px); padding: 38px 0 50px; }
    .public-intro { margin-bottom: 22px; }
    .public-intro h1 { font-size: clamp(2.15rem, 13vw, 3.1rem); }
    .public-booking-card { padding: 21px 16px; border-radius: 17px; }
    .booking-progress { margin-bottom: 28px !important; }
    .booking-progress li { font-size: 0; }
    .booking-progress span { font-size: .75rem; }
    .choice-card-grid, .booking-summary, .client-fields { grid-template-columns: 1fr; }
    .client-fields .field-wide { grid-column: auto; }
    .choice-card { min-height: 116px; }
    .booking-actions .btn { flex: 1; min-width: 0; }
}
