﻿/* ===================================================
   AGENDAMENTO.CSS — Página pública de agendamento
   Página standalone (sem menu, sem sistema.css)
   =================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Segoe UI', sans-serif;
    background: #f0fdf4;
    color: #1f2937;
    min-height: 100vh;
}

.page-header {
    background: linear-gradient(135deg, var(--cor-primaria), #4999a7);
    color: #fff;
    padding: 28px 20px;
    text-align: center;
}
.page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.page-header p  {
    font-size: .9rem;
    opacity: .85;
}

.container {
    max-width: 540px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

/* Steps */
.steps {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 28px;
}
.step  {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    position: relative;
}
.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 16px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #d1fae5;
    z-index: 0;
}
.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #d1fae5;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
    border: 2px solid #d1fae5;
    transition: all .2s;
}
.step.ativo .step-circle  {
    background: var(--cor-primaria);
    color: #fff;
    border-color: var(--cor-primaria);
}
.step.feito .step-circle  {
    background: #4ade80;
    color: #fff;
    border-color: #4ade80;
}
.step-label {
    font-size: .7rem;
    color: #6b7280;
    text-align: center;
}
.step.ativo .step-label   {
    color: var(--cor-primaria-texto);
    font-weight: 600;
}

/* Cards */
.card {
    background: #fff;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    margin-bottom: 20px;
}

/* Calendário */
.cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.cal-titulo  {
    font-weight: 700;
    font-size: 1rem;
    color: #1f2937;
    text-transform: capitalize;
}
.cal-nav     {
    background: none;
    border: 1px solid #d1fae5;
    border-radius: 8px;
    padding: 5px 12px;
    cursor: pointer;
    color: var(--cor-primaria-texto);
    font-size: .85rem;
}
.cal-nav:hover {
    background: #f0fdf4;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7,1fr);
    gap: 4px;
}
.cal-day-label {
    text-align: center;
    font-size: .7rem;
    font-weight: 600;
    color: #9ca3af;
    padding: 4px 0;
}
.cal-dia {
    aspect-ratio: 1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .82rem;
    cursor: default;
    color: #9ca3af;
    background: transparent;
}
.cal-dia.disponivel {
    background: #dcfce7;
    color: #166534;
    cursor: pointer;
    font-weight: 600;
    transition: all .15s;
}
.cal-dia.disponivel:hover {
    background: #4ade80;
    color: #fff;
    transform: scale(1.08);
}
.cal-dia.selecionado {
    background: var(--cor-primaria) !important;
    color: #fff !important;
}
.cal-dia.hoje {
    outline: 2px solid #86efac;
    outline-offset: 1px;
}
.cal-dia.passado {
    opacity: .35;
}

/* Horários */
.slots-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.slot-btn {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1.5px solid #d1fae5;
    background: #f0fdf4;
    color: #166534;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
}
.slot-btn:hover     {
    background: #dcfce7;
    border-color: #86efac;
}
.slot-btn.selecionado {
    background: var(--cor-primaria);
    color: #fff;
    border-color: var(--cor-primaria);
}

/* Formulário */
.campo {
    margin-bottom: 14px;
}
.campo label {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}
.campo input, .campo textarea {
    width: 100%;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: .88rem;
    color: #1f2937;
    transition: border .2s;
    outline: none;
    font-family: inherit;
}
.campo input:focus, .campo textarea:focus {
    border-color: #4ade80;
}
.campo textarea {
    resize: vertical;
    min-height: 70px;
}
.obrig {
    color: var(--cor-perigo);
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    border: none;
    font-size: .88rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
    white-space: nowrap;
}
.btn-primary {
    background: var(--cor-primaria);
    color: #fff;
}
.btn-primary:hover {
    background: #4999a7;
}
.btn-ghost {
    background: none;
    color: #6b7280;
    border: 1.5px solid #e5e7eb;
}
.btn-ghost:hover {
    border-color: #9ca3af;
    color: #374151;
}
.btn-sm {
    padding: 8px 12px;
    font-size: .82rem;
}

.btn-confirmar {
    width: 100%;
    padding: 13px;
    background: var(--cor-primaria);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-confirmar:hover {
    background: var(--cor-primaria);
}
.btn-confirmar:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}
.btn-voltar {
    width: 100%;
    padding: 10px;
    background: none;
    color: #6b7280;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: .88rem;
    cursor: pointer;
    margin-bottom: 10px;
    transition: all .15s;
}
.btn-voltar:hover {
    border-color: #9ca3af;
    color: #374151;
}

/* Resumo */
.resumo-item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: .88rem;
}
.resumo-item:last-child {
    border: none;
}
.resumo-item i {
    color: var(--cor-primaria-texto);
    width: 16px;
    text-align: center;
}

/* Sucesso */
.sucesso {
    text-align: center;
    padding: 30px 20px;
}
.sucesso-icone {
    font-size: 3rem;
    color: #4ade80;
    margin-bottom: 14px;
}
.sucesso h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}
.sucesso p  {
    font-size: .88rem;
    color: #6b7280;
    line-height: 1.5;
}

.msg-erro {
    background: #fef2f2;
    color: var(--cor-perigo);
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: .83rem;
    margin-top: 10px;
    display: none;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #9ca3af;
    font-size: .85rem;
}
