/* ===================================
   AGENDAMENTO - LAYOUT PRINCIPAL
   =================================== */

.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.95;
}

.content-section {
    padding: 3rem 0;
    background: #f7fafc;
}

.agendamento-container {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .agendamento-container {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   FORMULÁRIO
   =================================== */

.agendamento-form-wrapper {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 10px 20px rgba(0, 0, 0, 0.05);
}

.agendamento-form-wrapper h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.agendamento-form-wrapper h3 {
    font-size: 1.3rem;
    margin: 2rem 0 1rem;
    color: #4a5568;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2d3748;
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* ===================================
   HORÁRIOS DISPONÍVEIS
   =================================== */

#horarios-container {
    background: #f7fafc;
    border: 2px dashed #cbd5e0;
    border-radius: 12px;
    padding: 1.5rem;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#horarios-container p {
    color: #718096;
    margin: 0;
    text-align: center;
}

.horarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    width: 100%;
}

@media (max-width: 600px) {
    .horarios-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

.btn-horario {
    border: 2px solid #cbd5e0;
    background: #ffffff;
    color: #4a5568;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-horario::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 0;
}

.btn-horario span {
    position: relative;
    z-index: 1;
}

.btn-horario:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-horario.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-horario.selected::after {
    content: '✓';
    position: absolute;
    top: 4px;
    right: 6px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    z-index: 2;
}

/* ===================================
   ALERTAS
   =================================== */

.form-alert {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-alert::before {
    font-size: 1.5rem;
}

.alert-success {
    background: #c6f6d5;
    border: 2px solid #38a169;
    color: #22543d;
}

.alert-success::before {
    content: '✓';
    color: #38a169;
}

.alert-error {
    background: #fed7d7;
    border: 2px solid #e53e3e;
    color: #742a2a;
}

.alert-error::before {
    content: '⚠';
    color: #e53e3e;
}

/* ===================================
   BOTÕES
   =================================== */

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #48bb78;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
}

.btn-secondary:hover {
    background: #38a169;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(72, 187, 120, 0.4);
}

/* ===================================
   SIDEBAR DE INFORMAÇÕES
   =================================== */

.agendamento-info {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 10px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 2rem;
}

.agendamento-info h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2d3748;
}

.agendamento-info ul {
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.agendamento-info li {
    margin-bottom: 0.75rem;
    color: #4a5568;
    line-height: 1.6;
}

.agendamento-info strong {
    color: #667eea;
}

.cta-box {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.cta-box h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.cta-box p {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 1rem;
}

/* ===================================
   RESPONSIVO
   =================================== */

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .agendamento-form-wrapper,
    .agendamento-info {
        padding: 1.5rem;
    }

    .agendamento-info {
        position: static;
    }
}

/* ===================================
   LOADING STATE
   =================================== */

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #e2e8f0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
