/* agenda.css — estilos da pagina publica de reserva (agendar.php).
 *
 * Deliberadamente reusa a paleta e o container do style.css do site: e a
 * mesma marca, so que numa tela que precisa ser mais direta e densa em
 * informacao (o cliente esta numa tela de celular decidindo rapido).
 */

.agenda-pagina {
    background: #fffafc;
}

/* ---- barra do topo ---- */

.barra-agenda {
    background: #fff;
    border-bottom: 2px solid #ffd9e2;
    padding: 0.9rem 0;
}

.barra-agenda .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.barra-agenda .volta {
    color: #d1477a;
    text-decoration: none;
    font-weight: 600;
}

.barra-agenda .volta:hover {
    text-decoration: underline;
}

.barra-agenda .marca {
    font-weight: 700;
    color: #b33768;
    letter-spacing: -0.01em;
}

/* ---- cabecalho ---- */

.ag-titulo {
    color: #b33768;
    font-size: 1.9rem;
    margin: 1.6rem 0 0.3rem;
    letter-spacing: -0.02em;
}

.ag-sub {
    color: #7a5c68;
    margin: 0 0 1.6rem;
}

/* ---- alertas ---- */

.alerta {
    padding: 0.9rem 1.1rem;
    border-radius: 10px;
    margin-bottom: 1.2rem;
    font-weight: 600;
    border: 2px solid transparent;
}

.alerta-ok {
    background: #e8f8ef;
    border-color: #7ed3a4;
    color: #1f7a4d;
}

.alerta-erro {
    background: #fdecec;
    border-color: #f0a5a5;
    color: #a92f2f;
}

/* ---- blocos de escolha ---- */

.ag-form fieldset,
.ag-escolhas fieldset {
    border: 2px solid #ffe0ea;
    border-radius: 14px;
    padding: 1.1rem 1.2rem 1.3rem;
    margin: 0 0 1.3rem;
    background: #fff;
}

.ag-form legend,
.ag-escolhas legend {
    font-weight: 700;
    color: #b33768;
    padding: 0 0.4rem;
    font-size: 1.05rem;
}

/* ---- 1. servico ---- */

.ag-servicos {
    display: grid;
    gap: 0.7rem;
}

.ag-servico {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 0.8rem;
    padding: 0.85rem 1rem;
    border: 2px solid #ffe0ea;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.ag-servico:hover {
    border-color: #ffb6c1;
}

.ag-servico.escolhido {
    border-color: #ff69b4;
    background: #fff0f5;
}

.ag-servico input {
    width: 20px;
    height: 20px;
    accent-color: #ff69b4;
}

.ag-s-nome {
    font-weight: 600;
    color: #4a2b38;
}

.ag-s-dur {
    color: #9a7b88;
    font-size: 0.9rem;
}

.ag-s-preco {
    font-weight: 700;
    color: #d1477a;
}

/* ---- 2. dias ---- */

.ag-datas {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    gap: 0.5rem;
}

.ag-data {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.6rem 0.2rem;
    border: 2px solid #ffe0ea;
    border-radius: 10px;
    cursor: pointer;
    background: #fff;
}

.ag-data:hover {
    border-color: #ffb6c1;
}

.ag-data.escolhida {
    border-color: #ff69b4;
    background: #ff69b4;
    color: #fff;
}

.ag-data input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ag-d-dow {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.ag-d-num {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.15;
}

.ag-d-mes {
    font-size: 0.72rem;
    opacity: 0.8;
}

/* ---- 3. horas ---- */

/* auto-fit e nao auto-fill de proposito: com passo de 2h a grade tem
 * poucos botoes, e auto-fill os espalharia em 12 colunas, deixando cada
 * um largo e torto. Com auto-fit eles ficam compactos a esquerda. */
.ag-horas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(84px, max-content));
    gap: 0.5rem;
    justify-content: start;
}

.ag-hora {
    display: block;
    text-align: center;
    padding: 0.65rem 0.3rem;
    border: 2px solid #ffe0ea;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    color: #4a2b38;
    background: #fff;
}

.ag-hora:hover {
    border-color: #ffb6c1;
}

.ag-hora.escolhida {
    border-color: #ff69b4;
    background: #fff0f5;
    color: #d1477a;
}

.ag-hora input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ag-vazio {
    color: #9a7b88;
    font-style: italic;
    margin: 0.3rem 0;
}

/* ---- 4. dados ---- */

.ag-campos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.9rem;
}

.ag-campos label,
.ag-obs {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: #4a2b38;
}

.ag-campos input,
.ag-campos select,
.ag-obs textarea {
    font: inherit;
    font-weight: 400;
    padding: 0.65rem 0.75rem;
    border: 2px solid #ffe0ea;
    border-radius: 9px;
    background: #fff;
    color: #2f1b24;
}

.ag-campos input:focus,
.ag-campos select:focus,
.ag-obs textarea:focus {
    outline: none;
    border-color: #ff69b4;
}

.ag-campos small,
.ag-obs small {
    font-weight: 400;
    color: #9a7b88;
}

.ag-obs {
    margin-top: 0.9rem;
}

.ag-obs textarea {
    resize: vertical;
}

/* ---- confirmar ---- */

.ag-confirmar {
    display: block;
    width: 100%;
    padding: 1rem;
    font: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    background: #ff69b4;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.15s;
}

.ag-confirmar:hover:not(:disabled) {
    background: #e8559e;
}

.ag-confirmar:disabled {
    background: #ffc4d8;
    color: #fff;
    cursor: not-allowed;
}

.ag-hint {
    text-align: center;
    color: #9a7b88;
    font-size: 0.88rem;
    margin: 0.5rem 0 0;
}

.ag-hint:empty {
    display: none;
}

.ag-resumo {
    text-align: center;
    color: #7a5c68;
    font-size: 0.92rem;
    margin: 0.8rem 0 2rem;
}

/* ---- telefone ---- */

@media (max-width: 640px) {
    .ag-titulo {
        font-size: 1.5rem;
    }

    .ag-servico {
        grid-template-columns: auto 1fr auto;
    }

    .ag-s-preco {
        grid-column: 2 / -1;
    }

    .ag-datas {
        grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
    }
}
