/**
 * assets/css/public-booking.css
 * Estilos para el formulario público de agendamiento - CitaCloud.click
 */

 :root {
    --citacloud-blue: #1e3a5f;
    --citacloud-teal: #3d9b9b;
    --citacloud-gradient: linear-gradient(135deg, #1e3a5f 0%, #3d9b9b 100%);
}

body { 
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef4 100%);
    min-height: 100vh;
}

.logo{
    width: 100px;
    height: 100px !important;
}

.logo-footer{
    width: 80px;
    height: 80px !important;
    filter: brightness(0) invert(1);
}

.card { 
    border: none; 
    box-shadow: 0 8px 24px rgba(30, 58, 95, 0.12);
    border-radius: 16px;
    overflow: hidden;
}

.card-header-custom {
    background: var(--citacloud-gradient);
    padding: 1.5rem;
    text-align: center;
    color: white;
}

.card-header-custom h4 {
    margin: 0;
    font-weight: 600;
    font-size: 1.5rem;
}

.time-slot { 
    padding: 0.6rem 1rem; 
    margin: 0.25rem; 
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    color: var(--citacloud-blue);
    font-weight: 500;
}

.time-slot:hover { 
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(61, 155, 155, 0.2);
    border-color: var(--citacloud-teal);
}

.time-slot.selected { 
    background: var(--citacloud-gradient) !important; 
    color: white !important; 
    border-color: transparent !important;
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
}

.time-slot:disabled { 
    opacity: 0.5; 
    cursor: not-allowed; 
    transform: none !important;
}

#slotsContainer { 
    min-height: 60px; 
    display: flex; 
    flex-wrap: wrap; 
    gap: 0.25rem; 
}

.loading-slots { 
    display: inline-block; 
    width: 1.5rem; 
    height: 1.5rem; 
    border: 3px solid #e0e0e0; 
    border-top-color: var(--citacloud-teal); 
    border-radius: 50%; 
    animation: spin 1s linear infinite; 
}

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

.btn-primary {
    background: var(--citacloud-gradient);
    border: none;
    font-weight: 600;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 95, 0.3);
    background: var(--citacloud-gradient);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-label {
    font-weight: 600;
    color: var(--citacloud-blue);
    font-size: 0.9rem;
}

.form-control:focus {
    border-color: var(--citacloud-teal);
    box-shadow: 0 0 0 0.2rem rgba(61, 155, 155, 0.25);
}

.branding-footer {
    text-align: center;
    padding: 1.5rem;
    margin-top: 1rem;
}

.branding-footer img {
    height: 40px;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.branding-footer span {
    color: var(--citacloud-blue);
    font-weight: 600;
    font-size: 0.9rem;
    vertical-align: middle;
}

.branding-footer .domain {
    color: var(--citacloud-teal);
    font-weight: 700;
}

/* Mensaje cuando no hay horarios disponibles */
.no-slots-message {
    width: 100%;
    padding: 1rem;
    text-align: center;
    background: rgba(61, 155, 155, 0.1);
    border: 1px dashed var(--citacloud-teal);
    border-radius: 8px;
    color: var(--citacloud-blue);
    font-weight: 500;
    margin: 0;
}

/* Responsive */
@media (max-width: 576px) {
    .card-header-custom h4 {
        font-size: 1.25rem;
    }
    
    .time-slot {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .branding-footer img {
        height: 35px;
    }
}