/* ==========================================================================
   Sistema de Agendamento de RG - Brejo Santo
   ========================================================================== */

/* ==========================================================================
   Base
   ========================================================================== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.logo-container {
    max-width: 200px;
}

@media (max-width: 640px) {
    .logo-container {
        max-width: 150px;
    }
}

/* ==========================================================================
   Animações
   ========================================================================== */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Formulários
   ========================================================================== */
input:focus, 
select:focus, 
textarea:focus {
    outline: none;
    ring: 2px;
    ring-blue-500;
}

/* ==========================================================================
   Sistema de Etapas
   ========================================================================== */
.etapa {
    display: none;
}

.etapa.ativa {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

.step-indicator {
    position: relative;
}

.step-indicator::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: calc(100% - 40px);
    height: 2px;
    background: #e5e7eb;
    z-index: 0;
}

.step-indicator .step-item.completo::after {
    background: #3b82f6;
}

.step-item {
    position: relative;
    z-index: 1;
}

.step-item.ativo .step-circle {
    background: #16a34a;
    color: white;
    border-color: #16a34a;
}

.step-item.completo .step-circle {
    background: #16a34a;
    color: white;
    border-color: #16a34a;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s;
}

@media (max-width: 640px) {
    .step-indicator::after {
        display: none;
    }
}

/* ==========================================================================
   Radio Buttons Customizados
   ========================================================================== */

/* Estilo base dos radio buttons */
.radio-card {
    transition: all 0.3s ease;
}

.radio-circle {
    transition: all 0.3s ease;
    position: relative;
}

.radio-icon-inactive,
.radio-icon-active {
    transition: all 0.3s ease;
    display: inline-block !important;
}

.radio-icon-inactive {
    opacity: 1;
    transform: scale(1);
}

.radio-icon-active {
    opacity: 0;
    transform: scale(0);
    position: absolute;
}

/* Estados quando checked - usando seletor de label */
label:has(input[type="radio"]:checked) .radio-card {
    border-color: #16a34a !important;
    background-color: #f0fdf4 !important;
}

label:has(input[type="radio"]:checked) .radio-card .radio-circle {
    border-color: #16a34a !important;
    background-color: #16a34a !important;
}

label:has(input[type="radio"]:checked) .radio-card .radio-icon-inactive {
    opacity: 0 !important;
    transform: scale(0) !important;
}

label:has(input[type="radio"]:checked) .radio-card .radio-icon-active {
    opacity: 1 !important;
    transform: scale(1) !important;
}

/* ==========================================================================
   Horários Disponíveis
   ========================================================================== */
.horario-btn {
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
    color: #374151;
    position: relative;
}

.horario-btn:hover:not(.horario-indisponivel):not(.horario-selecionado) {
    border-color: #16a34a;
    background: #f0fdf4;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(22, 163, 74, 0.1);
}

.horario-btn.horario-disponivel {
    border-color: #16a34a;
    background: #f0fdf4;
    color: #16a34a;
}

.horario-btn.horario-selecionado {
    border-color: #16a34a;
    background: #16a34a;
    color: white;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.horario-btn.horario-indisponivel {
    border-color: #e5e7eb;
    background: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

.horario-btn .horario-indicador {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #16a34a;
}

.horario-btn.horario-selecionado .horario-indicador {
    background: white;
}

.horario-btn .horario-vagas {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 2px;
    font-weight: normal;
    gap: 0.25rem;
}

.horario-btn.horario-disponivel .horario-vagas {
    color: #059669;
}

.horario-btn.horario-selecionado .horario-vagas {
    color: #ffffff;
    opacity: 0.95;
}

.horario-btn.horario-selecionado .horario-vagas i {
    color: #ffffff;
}

/* ==========================================================================
   FAQ - Perguntas Frequentes
   ========================================================================== */
.faq-item {
    transition: all 0.3s ease;
}

.faq-question {
    cursor: pointer;
}

.faq-answer {
    animation: fadeIn 0.3s ease-in;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-icon.rotate-180 {
    transform: rotate(180deg);
}

/* ==========================================================================
   Calendário Customizado - Design Clean
   ========================================================================== */
#calendarioContainer {
    width: 100%;
}

.calendario-custom {
    width: 100%;
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.calendario-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.calendario-mes-ano {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
}

.calendario-nav {
    display: flex;
    gap: 0.5rem;
}

.calendario-nav-btn {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    background: white;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendario-nav-btn:hover:not(:disabled) {
    background: #f3f4f6;
    border-color: #16a34a;
    color: #16a34a;
}

.calendario-nav-btn:disabled,
.calendario-nav-btn-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f9fafb;
    color: #d1d5db;
    border-color: #e5e7eb;
}

.calendario-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.calendario-weekday {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 0;
}

.calendario-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendario-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    border: 2px solid transparent;
    background: white;
}

.calendario-day:hover:not(.calendario-day-disabled):not(.calendario-day-selected) {
    background: #f0fdf4;
    color: #16a34a;
    border-color: #16a34a;
}

.calendario-day.calendario-day-disabled {
    color: #d1d5db;
    cursor: not-allowed;
    background: #f9fafb;
}

.calendario-day.calendario-day-other-month {
    color: #d1d5db;
    background: #f9fafb;
}

.calendario-day.calendario-day-today {
    background: #eff6ff;
    color: #3b82f6;
    font-weight: 600;
    border-color: #3b82f6;
}

.calendario-day.calendario-day-selected {
    background: #16a34a;
    color: white;
    font-weight: 600;
    border-color: #16a34a;
    box-shadow: 0 2px 4px rgba(22, 163, 74, 0.2);
}

.calendario-day.calendario-day-selected.calendario-day-today {
    background: #16a34a;
    color: white;
    border-color: #16a34a;
}

.calendario-day.calendario-day-com-agendamento {
    position: relative;
}

.calendario-day.calendario-day-com-agendamento::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #16a34a;
}

.calendario-day.calendario-day-selected.calendario-day-com-agendamento::after {
    background: white;
}

.calendario-day.calendario-day-today.calendario-day-com-agendamento::after {
    background: #3b82f6;
}

.calendario-day.calendario-day-selected.calendario-day-today.calendario-day-com-agendamento::after {
    background: white;
}

/* Legenda do calendário */
.calendario-legenda {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.875rem;
}

.calendario-legenda-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.calendario-legenda-indicador {
    width: 1rem;
    height: 1rem;
    border-radius: 0.25rem;
    border: 2px solid transparent;
}

.calendario-legenda-indicador.hoje {
    background: #eff6ff;
    border-color: #3b82f6;
}

.calendario-legenda-indicador.selecionado {
    background: #16a34a;
    border-color: #16a34a;
}

.calendario-legenda-indicador.com-agendamento {
    background: white;
    border: 2px solid #e5e7eb;
    position: relative;
}

.calendario-legenda-indicador.com-agendamento::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #16a34a;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-link {
    transition: all 0.3s ease;
}

.footer-link:hover {
    transform: translateX(5px);
}

.footer-social-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.footer-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
}

/* ==========================================================================
   Utilitários
   ========================================================================== */
.gradient-text {
    background: linear-gradient(135deg, #16a34a 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   Responsividade
   ========================================================================== */
@media (max-width: 768px) {
    .footer-col {
        margin-bottom: 2rem;
    }
}

