/* Evita qualquer scroll horizontal na página */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Garantir cálculo de largura correto */
* {
    box-sizing: border-box;
}

/* ======================================================
   PÁGINA AGENDAR ATENDIMENTO
====================================================== */

.agendar-page {
    padding: 32px 24px; /* mais seguro */
    max-width: 100%;
}


/* HEADER */
.agendar-page .page-header {
    text-align: center;   /* Centraliza título e subtítulo */
}

.agendar-page .page-header h1 {
    font-size: 30px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.agendar-page .page-subtitle {
    font-size: 14px;
    color: #6b7280;
}


/* ======================================================
   STEPPER
====================================================== */

.stepper {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
}

.step {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-weight: 600;
}

.step-active {
    background-color: #2563eb;
    color: white;
    border-color: #2563eb;
}

.step-line {
    width: 60px;
    height: 2px;
    background-color: #d1d5db;
}


/* ======================================================
   WIZARD CARD (retângulo branco grande)
====================================================== */

.wizard-card {
    max-width: 650px;
    width: 100%;              /* 🔥 nunca passa da tela */
    margin: 28px auto 0 auto;
    background: white;
    padding: 26px 32px;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.04);
    text-align: center;       /* Centraliza título/subtítulo */
}

.wizard-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

.wizard-subtitle {
    font-size: 14px;
    color: #6b7280;
    text-align: center;       /* corrigido: center */
}


/* ======================================================
   LISTA DE TIPOS DE ATENDIMENTO
====================================================== */

.appointment-type-list {
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;      /* Centraliza os cards dentro do branco */
    gap: 14px;
}

.appointment-type-item {
    width: 60%;               /* Ajuste de largura do card */
    display: flex;
    gap: 14px;
    background: #f9fafb;
    padding: 16px 18px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: 0.15s;
    align-items: center;
    text-align: left;         /* textos internos alinhados à esquerda */
}

.appointment-type-item:hover {
    background: #f5f9ff;
    border-color: #bfdbfe;
}

.appointment-type-item.selected {
    background-color: #eef4ff;
    border-color: #93c5fd;
    box-shadow: 0 0 0 1px #bfdbfe;
}

.appointment-icon {
    font-size: 28px;
}

.appointment-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    text-align: left;
}

.appointment-description {
    font-size: 13px;
    color: #6b7280;
    text-align: left;
}

.appointment-radio-input {
    display: none !important;
}


/* ======================================================
   FOOTER
====================================================== */

.wizard-footer {
    margin-top: 26px;
    display: flex;
    justify-content: center; /* centraliza o botão Continuar */
}

/* ======================================================
   RESPONSIVO (CELULAR)
====================================================== */

@media (max-width: 600px) {
    .agendar-page {
        padding: 18px 12px;
    }

    .agendar-page .page-header h1 {
        font-size: 24px;
    }

    .stepper {
        gap: 10px;
    }

    .step-line {
        width: 34px;
    }

    .wizard-card {
        padding: 18px 14px;
        border-radius: 12px;
    }

    .appointment-type-list {
        align-items: stretch;
    }

    .appointment-type-item {
        width: 100%;
        padding: 14px 14px;
    }

    .wizard-footer .primary-button,
    .wizard-footer .secondary-button {
        width: 100%;
    }
}
