/*==============================================================================
    SALÃO AGENDAR — CSS do Wizard de Agendamento Público
    Complementa o design system main.css (não o substitui).
    Usa as mesmas CSS vars: --gold, --color-title, --font-display, etc.
==============================================================================*/

/* ─── Hero compacto ────────────────────────────────────────────────────────── */
.agendar-hero {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    background: url('https://images.unsplash.com/photo-1522337360788-8b13dee7a37e?auto=format&fit=crop&q=80&w=1800') center/cover no-repeat;
    overflow: hidden;
}

.agendar-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(20,10,8,.75) 0%, rgba(36,26,24,.6) 100%);
}

.agendar-hero__content {
    position: relative;
    z-index: 1;
    padding-top: 5rem;
    padding-bottom: 3.5rem;
}

.agendar-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 400;
    color: var(--color-white);
    line-height: 1.1;
    margin: 0.5rem 0 0.75rem;
}

.agendar-hero__sub {
    font-size: 1.1rem;
    color: rgba(255,255,255,.82);
    max-width: 520px;
    line-height: 1.6;
    margin: 0;
}

/* ─── Indicador de Steps ────────────────────────────────────────────────────── */
.wizard-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 2.5rem;
    padding: 1.5rem 0 0;
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.wizard-step__num {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    border: 2px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text-soft);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .25s ease;
}

.wizard-step.active .wizard-step__num {
    background: var(--gold);
    border-color: var(--gold);
    color: #fff;
    box-shadow: 0 4px 16px rgba(182,139,73,.35);
}

.wizard-step.done .wizard-step__num {
    background: var(--gold-600);
    border-color: var(--gold-600);
    color: #fff;
}

.wizard-step__label {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--color-text-soft);
    letter-spacing: .05em;
    text-transform: uppercase;
}

.wizard-step.active .wizard-step__label {
    color: var(--gold);
}

.wizard-step__line {
    flex: 1;
    height: 2px;
    background: var(--color-border);
    margin: 0 0.75rem;
    margin-bottom: 1.4rem;
    min-width: 40px;
    max-width: 100px;
    transition: background .3s;
}

.wizard-step.done ~ .wizard-step__line {
    background: var(--gold-300);
}

/* ─── Panels do Wizard ──────────────────────────────────────────────────────── */
.wizard-panel {
    animation: fadeInUp .3s ease both;
}

.wizard-panel[hidden] {
    display: none;
}

.wizard-panel__header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.wizard-panel__title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 400;
    color: var(--color-title);
    margin-bottom: 0.4rem;
}

.wizard-panel__sub {
    color: var(--color-text-soft);
    font-size: 1rem;
}

/* ─── Grid de Serviços (Step 1) ─────────────────────────────────────────────── */
.servico-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.servico-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem 1.4rem;
    background: var(--glass-bg, rgba(255,255,255,.85));
    border: 1.5px solid var(--color-border);
    border-radius: 14px;
    backdrop-filter: blur(12px);
    cursor: pointer;
    text-align: left;
    transition: border-color .2s, box-shadow .2s, transform .15s;
    position: relative;
    width: 100%;
}

.servico-card:hover {
    border-color: var(--gold-300);
    box-shadow: 0 8px 28px rgba(182,139,73,.14);
    transform: translateY(-2px);
}

.servico-card.selected {
    border-color: var(--gold);
    background: rgba(182,139,73,.07);
    box-shadow: 0 8px 30px rgba(182,139,73,.22);
}

.servico-card__icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
    color: var(--gold);
}

.servico-card__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.servico-card__nome {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--color-title);
}

.servico-card__meta {
    display: flex;
    gap: 1rem;
    font-size: 0.82rem;
    color: var(--color-text-soft);
}

.servico-card__preco {
    color: var(--gold);
    font-weight: 600;
}

.servico-card__desc {
    font-size: 0.8rem;
    color: var(--color-text-soft);
    line-height: 1.4;
}

.servico-card__check {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: transparent;
    color: transparent;
    font-size: 0.85rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}

.servico-card.selected .servico-card__check {
    background: var(--gold);
    border-color: var(--gold);
    color: #fff;
}

/* ─── Layout Agenda (Step 2) ─────────────────────────────────────────────────── */
.agenda-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: start;
}

/* Mini-calendário */
.agenda-cal {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.agenda-cal__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.agenda-cal__nav-btn {
    background: none;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.4rem 0.75rem;
    font-size: 1.1rem;
    color: var(--color-text);
    cursor: pointer;
    transition: background .15s;
}

.agenda-cal__nav-btn:hover {
    background: var(--gold-100);
    border-color: var(--gold-300);
}

.agenda-cal__month {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-title);
    text-transform: capitalize;
}

.agenda-cal__weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 0.5rem;
}

.agenda-cal__weekdays span {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-text-soft);
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 0.25rem 0;
}

.agenda-cal__days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

.cal-day {
    aspect-ratio: 1;
    border: none;
    border-radius: 8px;
    background: none;
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--color-text);
    transition: background .15s, color .15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cal-day:hover:not(:disabled) {
    background: var(--gold-100);
    color: var(--gold-700);
}

.cal-day.today {
    font-weight: 700;
    color: var(--gold);
}

.cal-day.selected {
    background: var(--gold);
    color: #fff;
    box-shadow: 0 4px 12px rgba(182,139,73,.35);
}

.cal-day:disabled,
.cal-day.past,
.cal-day.empty {
    color: var(--color-border);
    cursor: default;
}

/* Slots de horário */
.agenda-slots {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    min-height: 320px;
}

.agenda-slots__header {
    margin-bottom: 1.25rem;
}

.agenda-slots__title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-title);
    margin-bottom: 0.25rem;
}

.agenda-slots__duracao {
    font-size: 0.82rem;
    color: var(--color-text-soft);
    margin: 0;
}

.agenda-slots__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 0.6rem;
}

.slot-btn {
    padding: 0.6rem 0.5rem;
    border-radius: 10px;
    border: 1.5px solid var(--color-border);
    background: var(--color-surface);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    transition: all .15s;
    text-align: center;
    line-height: 1.3;
}

.slot-btn .slot-fim {
    display: block;
    font-size: 0.72rem;
    color: var(--color-text-soft);
    font-weight: 400;
}

.slot-btn:hover:not(:disabled) {
    border-color: var(--gold-300);
    background: var(--gold-50);
    color: var(--gold-700);
}

.slot-btn.selected {
    background: var(--gold);
    border-color: var(--gold);
    color: #fff;
    box-shadow: 0 4px 14px rgba(182,139,73,.35);
}

.slot-btn.selected .slot-fim {
    color: rgba(255,255,255,.8);
}

.slot-btn:disabled,
.slot-btn.ocupado {
    background: rgba(220, 53, 69, 0.03);
    border-color: rgba(220, 53, 69, 0.15);
    color: #888;
    cursor: not-allowed;
    text-decoration: line-through;
    opacity: 0.8;
}

.slot-btn:disabled .slot-fim,
.slot-btn.ocupado .slot-fim {
    color: #aaa;
}

.slots-empty,
.slots-loading {
    grid-column: 1 / -1;
    color: var(--color-text-soft);
    font-size: 0.9rem;
    text-align: center;
    padding: 1.5rem 0;
}

.slots-loading::before {
    content: '';
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--gold-200);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin .7s linear infinite;
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* ─── Dados Pessoais (Step 3) ───────────────────────────────────────────────── */
.dados-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.form-group-custom {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-label-custom {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: .03em;
    text-transform: uppercase;
}

.form-control-custom {
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--color-border);
    border-radius: 10px;
    background: var(--color-surface);
    font-size: 0.98rem;
    color: var(--color-text);
    font-family: inherit;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}

.form-control-custom:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(182,139,73,.14);
}

.form-control-custom.is-invalid {
    border-color: var(--danger);
}

.form-error {
    font-size: 0.8rem;
    color: var(--danger);
    min-height: 1.1em;
}

/* ─── Resumo da marcação ────────────────────────────────────────────────────── */
.booking-summary {
    margin-bottom: 2rem;
}

.booking-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--color-border-soft);
    font-size: 0.9rem;
}

.booking-summary__row:last-child {
    border-bottom: none;
}

.booking-summary__row span {
    color: var(--color-text-soft);
}

.booking-summary__row strong {
    color: var(--color-title);
    font-weight: 500;
}

/* ─── Alerta de erro global ─────────────────────────────────────────────────── */
.alert-error {
    background: rgba(196,79,79,.08);
    border: 1px solid rgba(196,79,79,.3);
    border-left: 4px solid var(--danger);
    border-radius: 10px;
    padding: 0.9rem 1.2rem;
    color: var(--danger);
    font-size: 0.92rem;
    margin-bottom: 1.25rem;
}

/* ─── Ações do Wizard ───────────────────────────────────────────────────────── */
.wizard-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border-soft);
}

/* ─── Mobile Sticky Actions ────────────────────────────────────────────────── */
@media (max-width: 767px) {
    /* Create space at bottom so sticky bar doesn't overlap content */
    .wizard-panel.active {
        padding-bottom: calc(90px + env(safe-area-inset-bottom, 20px));
    }
    
    .wizard-actions {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: rgba(36, 26, 24, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom, 0px));
        margin-top: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
    }

    /* Layout específico para Step 1 */
    .wizard-actions--step1 {
        flex-direction: row;
    }
    .servicos-totais {
        margin-bottom: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        flex: 1;
    }
    .servicos-totais__resumo {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.1rem;
    }
    .servicos-totais__resumo span {
        font-size: 0.75rem;
        color: rgba(255,255,255,0.7);
        letter-spacing: 0;
        text-transform: none;
    }
    .servicos-totais__resumo strong {
        font-size: 1.1rem;
        color: var(--gold);
        line-height: 1;
    }
    .servicos-totais.is-empty {
        display: flex !important;
    }

    /* Layout específico para Step 2 e 3 (dois botões) */
    .wizard-actions--step2, .wizard-actions--step3 {
        flex-direction: row;
        gap: 0.5rem;
    }
    .wizard-actions .btn {
        flex: 1;
        min-height: 48px; /* Touch target */
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.95rem;
        white-space: nowrap;
        padding: 0.5rem 0.75rem;
    }
    .wizard-actions #btn-step1-next {
        flex: 0 0 auto;
        min-width: 130px;
    }
}
@media (min-width: 768px) {
    .servicos-totais.is-empty {
        display: none !important;
    }
}

/* ─── Estado de Sucesso ─────────────────────────────────────────────────────── */
.booking-success {
    text-align: center;
    padding: 3rem 1rem;
    animation: fadeInUp .4s ease both;
}

.booking-success__icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-600));
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 24px rgba(182,139,73,.35);
}

.booking-success__title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--color-title);
    margin-bottom: 0.75rem;
}

.booking-success__text {
    color: var(--color-text-soft);
    font-size: 1.05rem;
    max-width: 480px;
    margin: 0 auto 2rem;
}

.booking-success__details {
    max-width: 420px;
    margin: 0 auto 2rem;
    text-align: left;
}

/* ─── Responsivo ─────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .agenda-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .dados-grid {
        grid-template-columns: 1fr;
    }
    .dados-grid .form-group-custom[style*="grid-column"] {
        grid-column: auto !important;
    }
    .wizard-steps {
        gap: 0;
    }
    .wizard-step__line {
        min-width: 20px;
        margin: 0 0.3rem 1.4rem;
    }
    .wizard-step__label {
        font-size: 0.65rem;
    }
    .wizard-actions {
        flex-direction: column-reverse;
    }
    .wizard-actions .btn {
        width: 100%;
    }
    .servico-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── Animações ─────────────────────────────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

/* Agrupamento de Categorias */
.servico-categoria-group {
    margin-bottom: 2rem;
}
.servico-categoria-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-title);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.5rem;
}

/* Checkbox visual para seleção múltipla */
.servico-card__check-multi {
    width: 24px;
    height: 24px;
    border: 2px solid var(--color-border);
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    margin-right: 1rem;
    background: transparent;
}
.servico-card.selected .servico-card__check-multi {
    background: var(--gold);
    border-color: var(--gold);
}
.servico-card.selected .servico-card__check-multi::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
}

/* Esconder o ícone antigo de check (caso ainda exista) e ajustar card */
.servico-card .servico-card__icon,
.servico-card .servico-card__check {
    display: none;
}
.servico-card {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    text-align: left;
}
.servico-card__info {
    flex-grow: 1;
}

/* Totais no footer do passo 1 */
.servicos-totais {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--gold-light, #f5ece0);
    border-radius: 8px;
    border: 1px solid var(--color-border);
}
.servicos-totais span {
    font-size: 0.9rem;
    color: var(--color-text-soft);
}
.servicos-totais strong {
    font-size: 1.2rem;
    color: var(--gold);
}

/* =========================================================================
   APP-LIKE MOBILE REDESIGN (Adicionado via Agente)
   ========================================================================= */
@media (max-width: 1199px) {
    /* 0. Correção de bug do iOS/Chrome: remover animation para o position:fixed funcionar no viewport */
    .wizard-panel {
        animation: none !important;
        transform: none !important;
    }

    /* 1. Ocultar Cabeçalho, Rodapé e Hero normais do site */
    .site-header, 
    .site-footer, 
    .agendar-hero,
    .pre-footer {
        display: none !important;
    }

    /* Ajustar o body para evitar scroll horizontal e adaptar o background */
    body {
        background: var(--color-bg, #1a1a1a);
        overflow-x: hidden;
    }

    /* 2. App Header Fixo no Topo */
    .app-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 56px;
        background: rgba(26, 26, 26, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 0 16px;
        z-index: 1050;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .app-header__back {
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        margin-left: -8px;
        text-decoration: none;
    }

    .app-header__title {
        font-family: var(--font-body, system-ui);
        font-size: 1.1rem;
        font-weight: 600;
        color: #fff;
        margin: 0;
        letter-spacing: 0.3px;
    }

    /* Espaçamento extra no topo para compensar o App Header */
    .section-soft {
        padding-top: 76px !important; 
    }

    /* 3. Progress Bar Linear (Substituindo as bolhas) */
    .wizard-steps {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
        position: relative;
    }

    /* Esconder textos e linhas velhas */
    .wizard-step__label,
    .wizard-step__line {
        display: none !important;
    }

    /* Bolinhas minimalistas para os passos */
    .wizard-step {
        width: 31%;
        position: relative;
    }
    
    .wizard-step__num {
        width: 100% !important;
        height: 4px !important;
        border-radius: 4px !important;
        background: rgba(255, 255, 255, 0.1) !important;
        color: transparent !important;
        border: none !important;
        font-size: 0 !important;
    }

    .wizard-step.active .wizard-step__num {
        background: var(--gold) !important;
        box-shadow: 0 0 8px rgba(182, 139, 73, 0.4) !important;
    }

    .wizard-step.done .wizard-step__num {
        background: var(--gold-600) !important;
    }

    /* Ajustar títulos dos painéis para a nova UI */
    .wizard-panel__header {
        text-align: left;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }
    .wizard-panel__title {
        font-size: 1.4rem;
        font-weight: 600;
    }
    .wizard-panel__sub {
        font-size: 0.9rem;
    }

    /* Removed 4. Native-like Service Cards completely */

    /* 5. Sticky Bottom Action Bar (Ajustada) */
    .wizard-actions {
        position: fixed !important;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1040;
        background: rgba(26, 26, 26, 0.98) !important;
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px)) !important;
        border-top: 1px solid rgba(255,255,255,0.08);
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Ajuste para evitar sobreposição da barra flutuante */
    .wizard-panel:not([hidden]) {
        padding-bottom: calc(180px + env(safe-area-inset-bottom, 20px)) !important;
    }
    
    .servicos-totais {
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .servicos-totais__resumo {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    /* Horizontal Calendar Scrollbar Hide */
    .agenda-cal__days {
        scrollbar-width: none;
    }
    .agenda-cal__days::-webkit-scrollbar {
        display: none;
    }

    .servicos-totais span {
        color: rgba(255, 255, 255, 0.6) !important;
    }
    .servicos-totais strong {
        font-size: 1.1rem !important;
        color: #fff !important;
    }
    
    #btn-step1-next, #btn-step2-next, #btn-step3-next, #btn-agendar {
        width: 100%;
        margin-top: 0.5rem;
        border-radius: 12px;
        padding: 14px 20px;
        font-size: 1.05rem;
    }
}

/* ─── DESKTOP APP LAYOUT ─────────────────────────────────────────────────── */
@media (min-width: 1200px) {
    /* 1. Remove hero entirely on desktop to save space and focus on booking */
    .agendar-hero {
        display: none !important;
    }

    /* Adicionar padding ao topo para não ficar por baixo do cabeçalho do site */
    .section-soft {
        padding-top: 8rem !important;
    }

    /* O container do agendamento vira um "card" com altura controlada e scroll interno */
    .wizard-desktop-card {
        background: var(--color-surface, #fff);
        border: 1px solid var(--color-border);
        border-radius: 20px;
        padding: 2rem;
        box-shadow: var(--shadow-md, 0 10px 30px rgba(0,0,0,0.05));
        margin-bottom: 3rem;
        position: relative;
    }

    /* O painel rola internamente */
    .wizard-panel:not([hidden]) {
        max-height: 550px;
        overflow-y: auto;
        padding-right: 1rem; /* espaço para a scrollbar */
        position: relative; /* para o sticky footer funcionar */
    }

    /* Barra de pesquisa fixa no topo do painel */
    .search-servicos-wrapper {
        position: sticky;
        top: 0;
        z-index: 40;
        background: var(--color-surface, #fff);
        padding: 1rem 0;
        margin-top: -1rem;
        margin-bottom: 1rem;
        border-bottom: 1px solid var(--color-border);
    }

    /* Customize scrollbar for the panel */
    .wizard-panel::-webkit-scrollbar { width: 6px; }
    .wizard-panel::-webkit-scrollbar-track { background: transparent; }
    .wizard-panel::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 4px; }
    .wizard-panel::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.2); }

    /* Barra de acções fica fixa no fundo do painel (não da janela) */
    .wizard-actions {
        position: sticky;
        bottom: 0;
        z-index: 50;
        background: var(--color-surface, #fff);
        margin-top: 1.5rem;
        padding-top: 1rem;
        padding-bottom: 0.5rem;
        border-top: 1px solid var(--color-border);
        
        /* Layout dos items */
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 1.5rem;
    }

    /* Step 1: alinhar totais à esquerda e botão à direita */
    .wizard-actions--step1 {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .wizard-actions--step1 .btn {
        margin-left: auto !important;
    }

    /* Resetar estilos do footer para desktop para não colidir com CSS antigos */
    .servicos-totais {
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .servicos-totais__resumo {
        display: flex;
        flex-direction: row;
        align-items: baseline;
        gap: 1rem;
        width: auto !important; /* overrides inline style */
        justify-content: flex-start !important; /* overrides inline style */
    }

    .servicos-totais span {
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--color-text-soft);
    }

    .servicos-totais strong {
        font-size: 1.6rem !important;
        font-family: var(--font-display);
        color: var(--gold) !important;
        line-height: 1;
    }

    /* Limitar largura dos botões no desktop */
    #btn-step1-next, #btn-step2-next, #btn-step3-next, #btn-agendar {
        min-width: 220px;
        margin-top: 0;
        margin-bottom: 0;
        margin-right: 0;
        margin-left: 0;
    }
}
