/* Wizard de agendamento público — padrão wm_agendamentos adaptado à landing WM */

.wm-wizard-wrap {
    max-width: 52rem;
    margin: 0 auto;
}

.wm-wizard-stepper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    margin-bottom: 2rem;
    padding: 0 0.25rem;
}

.wm-wizard-stepper::before {
    content: '';
    position: absolute;
    top: 1.125rem;
    left: 8%;
    right: 8%;
    height: 2px;
    background: rgb(var(--wm-outline) / 0.35);
    z-index: 0;
}

.wm-wizard-progress {
    position: absolute;
    top: 1.125rem;
    left: 8%;
    height: 2px;
    background: rgb(var(--wm-action-text));
    z-index: 1;
    transition: width 0.35s ease;
    width: 0;
}

.wm-wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    z-index: 2;
    flex: 1;
    min-width: 0;
}

.wm-wizard-step-circle {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    border: 2px solid rgb(var(--wm-outline) / 0.5);
    background: rgb(var(--wm-surface));
    color: rgb(var(--wm-on-surface-variant));
    transition: all 0.25s ease;
}

.wm-wizard-step.active .wm-wizard-step-circle {
    border-color: rgb(var(--wm-action-text));
    background: rgb(var(--wm-action-text));
    color: rgb(var(--wm-on-action));
    box-shadow: 0 4px 14px rgba(var(--wm-action-rgb), 0.35);
}

.wm-wizard-step.done .wm-wizard-step-circle {
    border-color: rgb(var(--wm-action-text));
    background: rgb(var(--wm-action-text));
    color: rgb(var(--wm-on-action));
}

.wm-wizard-step-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgb(var(--wm-on-surface-variant));
    text-align: center;
    line-height: 1.2;
}

@media (min-width: 640px) {
    .wm-wizard-step-label { font-size: 0.7rem; }
}

.wm-wizard-step.active .wm-wizard-step-label {
    color: rgb(var(--wm-action-text));
}

.wm-wizard-content {
    min-height: 280px;
}

.wm-wizard-panel {
    background: rgb(var(--wm-surface));
    border: 1px solid rgb(var(--wm-outline) / 0.25);
    border-radius: 1rem;
    padding: 1.25rem;
}

@media (min-width: 768px) {
    .wm-wizard-panel { padding: 1.75rem; }
}

.wm-wizard-panel-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: rgb(var(--wm-on-surface));
    margin-bottom: 1.25rem;
}

.wm-select-card {
    cursor: pointer;
    border-radius: 0.875rem;
    border: 2px solid rgb(var(--wm-outline) / 0.3);
    background: rgb(var(--wm-surface-container-high));
    padding: 1.25rem;
    height: 100%;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.wm-select-card:hover {
    border-color: rgb(var(--wm-action-text) / 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--wm-action-rgb), 0.12);
}

.wm-select-card.is-selected {
    border-color: rgb(var(--wm-action-text));
    box-shadow: 0 0 0 3px rgba(var(--wm-action-rgb), 0.15);
}

.wm-select-card h5 {
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: rgb(var(--wm-on-surface));
}

.wm-select-card .wm-card-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: rgb(var(--wm-action-text));
}

.wm-prof-avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 9999px;
    background: rgba(var(--wm-action-rgb), 0.12);
    color: rgb(var(--wm-action-text));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 0.75rem;
    overflow: hidden;
}

.wm-prof-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wm-prof-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Grids responsivos (classes fixas — não dependem do Tailwind compilado) */
.wm-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .wm-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.wm-cards-grid--prof {
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .wm-cards-grid--prof {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .wm-cards-grid--prof {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.wm-slots-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

@media (min-width: 480px) {
    .wm-slots-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .wm-slots-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.wm-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .wm-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.wm-slots-grid .wm-slots-empty {
    grid-column: 1 / -1;
}

.wm-slot-btn {
    display: block;
    width: 100%;
    min-height: 2.75rem;
    text-align: center;
    touch-action: manipulation;
    cursor: pointer;
    padding: 0.6rem 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid rgb(var(--wm-outline) / 0.4);
    background: rgb(var(--wm-surface-container-high));
    color: rgb(var(--wm-on-surface));
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.15s;
}

.wm-slot-btn:hover,
.wm-slot-btn.is-selected {
    border-color: rgb(var(--wm-action-text));
    background: rgba(var(--wm-action-rgb), 0.1);
    color: rgb(var(--wm-action-text));
}

.wm-wizard-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgb(var(--wm-outline) / 0.2);
}

.wm-wizard-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.65rem 1.25rem;
    border-radius: 0.625rem;
    font-weight: 700;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.wm-wizard-btn--back {
    background: rgb(var(--wm-surface-container-highest));
    color: rgb(var(--wm-on-surface));
    border: 1px solid rgb(var(--wm-outline) / 0.3);
}

.wm-wizard-btn--back:hover {
    border-color: rgb(var(--wm-action-text) / 0.5);
}

.wm-wizard-btn--next {
    background: rgb(var(--wm-action-text));
    color: rgb(var(--wm-on-action));
    border: none;
}

.wm-wizard-btn--next:hover {
    filter: brightness(1.08);
}

.wm-wizard-btn:disabled {
    opacity: 0.45;
    pointer-events: none;
}

.wm-wizard-summary {
    background: rgba(var(--wm-action-rgb), 0.06);
    border: 1px solid rgba(var(--wm-action-rgb), 0.15);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
}

.wm-wizard-summary dt {
    font-weight: 600;
    color: rgb(var(--wm-on-surface-variant));
}

.wm-wizard-summary dd {
    margin: 0 0 0.5rem;
    color: rgb(var(--wm-on-surface));
}

.wm-wizard-field {
    display: block;
    width: 100%;
    background: rgb(var(--wm-surface));
    border: 1px solid rgb(var(--wm-outline) / 0.4);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: rgb(var(--wm-on-surface));
}

.wm-wizard-field:focus {
    outline: none;
    border-color: rgb(var(--wm-action-text));
}

.flatpickr-calendar {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15) !important;
    border-radius: 0.75rem !important;
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover {
    background: rgb(var(--wm-action-text)) !important;
    border-color: rgb(var(--wm-action-text)) !important;
}

.wm-wizard-animate {
    animation: wmWizardFade 0.35s ease;
}

@keyframes wmWizardFade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Tela de sucesso do agendamento */
.wm-booking-success {
    text-align: center;
    padding: 2rem 0.5rem 1rem;
    animation: wmWizardFade 0.4s ease;
}

.wm-booking-success__icon {
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wm-booking-success__icon .material-symbols-outlined {
    font-size: 2.75rem;
}

.wm-booking-success__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgb(var(--wm-on-surface));
    margin-bottom: 0.5rem;
}

.wm-booking-success__subtitle {
    color: rgb(var(--wm-on-surface-variant));
    max-width: 32rem;
    margin: 0 auto 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.wm-booking-success__card {
    background: rgb(var(--wm-surface));
    border: 1px solid rgb(var(--wm-outline) / 0.25);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    max-width: 28rem;
    margin: 0 auto 1.75rem;
    text-align: left;
}

.wm-booking-success__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem 1rem;
}

@media (min-width: 480px) {
    .wm-booking-success__grid {
        grid-template-columns: 1fr 1fr;
    }
    .wm-booking-success__grid .wm-booking-success__item--full {
        grid-column: 1 / -1;
    }
}

.wm-booking-success__item dt {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgb(var(--wm-on-surface-variant));
    margin-bottom: 0.15rem;
    font-weight: 600;
}

.wm-booking-success__item dd {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgb(var(--wm-on-surface));
}

.wm-booking-success__protocol {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed rgb(var(--wm-outline) / 0.35);
}

.wm-booking-success__protocol code {
    display: block;
    font-size: 0.85rem;
    word-break: break-all;
    background: rgb(var(--wm-surface-container-high));
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    margin: 0.35rem 0 0.75rem;
    color: rgb(var(--wm-action-text));
}

.wm-booking-success__copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 0.85rem;
    border-radius: 0.5rem;
    border: 1px solid rgb(var(--wm-outline) / 0.4);
    background: transparent;
    color: rgb(var(--wm-on-surface));
    cursor: pointer;
    transition: background 0.15s ease;
}

.wm-booking-success__copy-btn:hover {
    background: rgb(var(--wm-surface-container-high));
}

.wm-booking-success__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.wm-booking-success__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.65rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    transition: filter 0.15s ease, opacity 0.15s ease;
}

.wm-booking-success__btn--secondary {
    background: rgb(var(--wm-surface-container-highest));
    color: rgb(var(--wm-on-surface));
}

.wm-booking-success__btn--primary {
    background: rgb(var(--wm-action-text));
    color: rgb(var(--wm-on-action));
}

.wm-booking-success__btn:hover {
    filter: brightness(0.95);
    text-decoration: none;
}
