/* Estilos para o Sistema de Agendamento Prova de Vida PREVIJUNO */

.agendamento-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Arial', sans-serif;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.agendamento-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    border-radius: 10px;
}

.agendamento-header h2 {
    margin: 0 0 15px 0;
    font-size: 28px;
    font-weight: bold;
}

.agendamento-info {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.9;
}

.agendamento-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #374151;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input:disabled,
.form-group select:disabled {
    background-color: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

.btn-agendar {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-agendar:hover {
    background: linear-gradient(135deg, #047857, #059669);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.btn-agendar:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.mensagem-resultado {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    display: none;
}

.mensagem-resultado.sucesso {
    background-color: #d1fae5;
    color: #065f46;
    border: 2px solid #10b981;
}

.mensagem-resultado.erro {
    background-color: #fee2e2;
    color: #991b1b;
    border: 2px solid #ef4444;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsividade */
@media (max-width: 768px) {
    .agendamento-container {
        margin: 10px;
        padding: 15px;
    }
    
    .agendamento-header {
        padding: 15px;
    }
    
    .agendamento-header h2 {
        font-size: 24px;
    }
    
    .agendamento-form {
        padding: 20px;
    }
    
    .form-group input,
    .form-group select {
        font-size: 16px; /* Evita zoom no iOS */
    }
}

/* Estilos para campos obrigatórios */
.form-group label::after {
    content: " *";
    color: #ef4444;
}

.form-group input:invalid {
    border-color: #ef4444;
}

.form-group input:valid {
    border-color: #10b981;
}

/* Estilos para o calendário */
.calendario-container {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin: 15px 0;
}

.dia-calendario {
    padding: 10px;
    text-align: center;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dia-calendario:hover {
    background-color: #f3f4f6;
}

.dia-calendario.disponivel {
    background-color: #d1fae5;
    color: #065f46;
}

.dia-calendario.indisponivel {
    background-color: #fee2e2;
    color: #991b1b;
    cursor: not-allowed;
}

.dia-calendario.selecionado {
    background-color: #3b82f6;
    color: white;
}

/* Estilos para lista de horários */
.horarios-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin: 15px 0;
}

.horario-item {
    padding: 10px;
    text-align: center;
    border: 2px solid #e5e7eb;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.horario-item:hover {
    border-color: #3b82f6;
    background-color: #f0f9ff;
}

.horario-item.selecionado {
    background-color: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.horario-item.indisponivel {
    background-color: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.agendamento-container {
    animation: fadeIn 0.5s ease-out;
}

/* Estilos para tooltips */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #374151;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

