/* Medical Booking Calendar - Estilos Frontend Actualizados */

.mbc-booking-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.mbc-booking-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 40px;
}

.mbc-title {
    color: #2c3e50;
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 3px solid #3498db;
    padding-bottom: 15px;
}

/* Pasos del formulario */
.mbc-step {
    display: none;
}

.mbc-step.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

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

.mbc-step h3 {
    color: #34495e;
    font-size: 24px;
    margin-bottom: 30px;
    font-weight: 600;
}

/* Grid de médicos */
.mbc-doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.mbc-doctor-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mbc-doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.2);
    border-color: #3498db;
}

.mbc-doctor-card.selected {
    border-color: #3498db;
    background: #e3f2fd;
}

.mbc-doctor-avatar {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 4px solid #f0f0f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.mbc-doctor-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.mbc-doctor-initial {
    color: white;
    font-size: 32px;
    font-weight: 700;
}

.mbc-doctor-card h4 {
    color: #2c3e50;
    font-size: 18px;
    margin: 10px 0 5px;
    font-weight: 600;
}

.mbc-specialty {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 15px;
}

/* Botones */
.mbc-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.mbc-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.mbc-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

.mbc-btn-secondary {
    background: #95a5a6;
}

.mbc-btn-secondary:hover {
    background: #7f8c8d;
}

.mbc-btn-primary {
    background: #27ae60;
}

.mbc-btn-primary:hover {
    background: #229954;
}

/* Selección de fecha y hora */
.mbc-selected-doctor-info {
    background: #e8f5e9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid #27ae60;
}

.mbc-calendar-section {
    margin: 25px 0;
}

.mbc-calendar-section label {
    display: block;
    font-weight: 600;
    color: #34495e;
    margin-bottom: 10px;
    font-size: 16px;
}

.mbc-calendar-section input[type="date"] {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.mbc-calendar-section input[type="date"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Texto de ayuda */
.mbc-field-help {
    color: #7f8c8d;
    font-size: 13px;
    margin-top: 6px;
    font-style: italic;
}

/* Slots de tiempo */
.mbc-time-section {
    margin: 30px 0;
}

.mbc-time-section label {
    display: block;
    font-weight: 600;
    color: #34495e;
    margin-bottom: 15px;
    font-size: 16px;
}

.mbc-time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.mbc-time-slot {
    padding: 15px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.mbc-time-slot:hover {
    background: #e3f2fd;
    border-color: #3498db;
}

.mbc-time-slot.selected {
    background: #3498db;
    color: white;
    border-color: #2980b9;
}

/* Navegación */
.mbc-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    gap: 15px;
}

/* Formulario de información del paciente */
.mbc-booking-summary {
    background: #fff3e0;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #ff9800;
}

.mbc-booking-summary h4 {
    margin-top: 0;
    color: #e65100;
    font-size: 18px;
}

.mbc-booking-summary p {
    margin: 8px 0;
    color: #34495e;
}

.mbc-form-group {
    margin-bottom: 25px;
}

.mbc-form-group label {
    display: block;
    font-weight: 600;
    color: #34495e;
    margin-bottom: 8px;
    font-size: 15px;
}

.mbc-form-group input[type="text"],
.mbc-form-group input[type="email"],
.mbc-form-group input[type="tel"],
.mbc-form-group input[type="date"],
.mbc-form-group select,
.mbc-form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.mbc-form-group input:focus,
.mbc-form-group select:focus,
.mbc-form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

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

.mbc-form-group select {
    cursor: pointer;
    background-color: white;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

/* Grupo de teléfono con selector de país */
.mbc-phone-group {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 10px;
}

.mbc-phone-country-select {
    font-size: 14px;
    padding: 15px 12px;
}

/* Grupos de radio buttons */
.mbc-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mbc-radio-label {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mbc-radio-label:hover {
    border-color: #3498db;
    background-color: #f8f9fa;
}

.mbc-radio-label input[type="radio"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.mbc-radio-label input[type="radio"]:checked + span {
    font-weight: 600;
    color: #3498db;
}

/* Checkbox de privacidad */
.mbc-privacy-checkbox {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.mbc-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.mbc-checkbox-label input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 2px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.mbc-checkbox-label span {
    font-size: 14px;
    line-height: 1.6;
}

/* Mensaje de éxito */
.mbc-success-message {
    text-align: center;
    padding: 40px;
}

.mbc-success-icon {
    width: 100px;
    height: 100px;
    background: #27ae60;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    margin: 0 auto 25px;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.mbc-success-message h3 {
    color: #27ae60;
    font-size: 28px;
    margin-bottom: 15px;
}

.mbc-confirmation-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
    text-align: left;
}

.mbc-confirmation-details p {
    margin: 10px 0;
    font-size: 16px;
}

.mbc-confirmation-note {
    color: #7f8c8d;
    font-style: italic;
    margin-top: 20px;
}

/* Loader */
.mbc-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.mbc-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.mbc-loader p {
    color: white;
    font-size: 18px;
    margin-top: 20px;
}

/* Mensajes */
.mbc-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-weight: 500;
}

.mbc-error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
}

.mbc-success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
}

/* Responsive */
@media (max-width: 768px) {
    .mbc-booking-container {
        padding: 25px 20px;
    }
    
    .mbc-title {
        font-size: 24px;
    }
    
    .mbc-doctors-grid {
        grid-template-columns: 1fr;
    }
    
    .mbc-time-slots {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .mbc-phone-group {
        grid-template-columns: 1fr;
    }
    
    .mbc-navigation {
        flex-direction: column;
    }
    
    .mbc-btn {
        width: 100%;
    }
    
    .mbc-radio-group {
        gap: 10px;
    }
    
    .mbc-radio-label {
        padding: 12px;
    }
}

/* Impresión */
@media print {
    .mbc-navigation,
    .mbc-btn {
        display: none;
    }
    
    .mbc-booking-container {
        box-shadow: none;
    }
}
