/* Widget Modal SCIDT - Charte Graphique */
#appointmentModal .modal-content {
    border-radius: 0;
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

#appointmentModal .modal-header {
    background: linear-gradient(135deg, #00BFA5 0%, #00a892 100%);
    color: #fff;
    border-radius: 0;
    padding: 20px 30px;
    border-bottom: 3px solid #00a892;
}

#appointmentModal .modal-header .modal-title {
    font-weight: 700;
    font-size: 24px;
    color: #fff;
    margin: 0;
}

#appointmentModal .modal-header .close {
    color: #fff;
    opacity: 0.9;
    font-size: 28px;
    font-weight: 300;
    text-shadow: none;
}

#appointmentModal .modal-header .close:hover {
    opacity: 1;
    color: #fff;
}

#appointmentModal .modal-body {
    padding: 30px;
    background: #f9f9f9;
}

#appointmentModal .form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

#appointmentModal .form-group label .text-danger {
    color: #e74c3c !important;
}

#appointmentModal .form-control {
    border: 2px solid #e1e1e1;
    border-radius: 0;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s;
}

#appointmentModal .form-control:focus {
    border-color: #00BFA5;
    box-shadow: 0 0 0 0.2rem rgba(0, 191, 165, 0.25);
    outline: none;
}

#appointmentModal .form-control::placeholder {
    color: #999;
}

/* Agenda Section */
.appointment-agenda-section {
    background: #fff;
    border: 2px solid #e1e1e1;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 0;
}

.appointment-agenda-section h5 {
    color: #00BFA5;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.appointment-info {
    background: #f0f9f8;
    border-left: 4px solid #00BFA5;
    padding: 12px 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #555;
}

.appointment-info i {
    color: #00BFA5;
    margin-right: 8px;
}

/* Styles pour toutes les icônes Font Awesome dans le widget */
#appointmentModal .fa,
#appointmentModal .fas,
#appointmentModal .far,
#appointmentModal .fab,
#appointmentModal .fal {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    display: inline-block !important;
    vertical-align: middle !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

#appointmentModal .fab {
    font-family: "Font Awesome 5 Brands" !important;
    font-weight: 400 !important;
}

#appointmentModal .far {
    font-weight: 400 !important;
}

/* Icône calendrier dans le titre */
.appointment-agenda-section h5 .fa-calendar {
    font-size: 16px !important;
    margin-right: 8px !important;
    color: #00BFA5 !important;
}

/* Icône info-circle */
.appointment-info .fa-info-circle {
    font-size: 14px !important;
    margin-right: 8px !important;
    color: #00BFA5 !important;
}

/* Icône spinner */
.fa-spinner.fa-spin {
    font-size: 16px !important;
    display: inline-block !important;
    animation: fa-spin 1s infinite linear !important;
}

@keyframes fa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Icône calendar-check dans le bouton */
#appointment-form .btn-primary .fa-calendar-check {
    font-size: 16px !important;
    margin-right: 8px !important;
}

/* Date picker wrapper icon */
.date-picker-wrapper::after {
    content: '\f073' !important;
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    position: absolute !important;
    right: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #00BFA5 !important;
    pointer-events: none !important;
    font-size: 16px !important;
}

/* Icônes dans les messages d'information */
#time-slots-grid .fa-info-circle {
    font-size: 14px !important;
    margin-right: 8px !important;
    color: #17a2b8 !important;
}

/* Date Picker Style */
.date-picker-wrapper {
    position: relative;
}

.date-picker-wrapper input {
    cursor: pointer;
}

.date-picker-wrapper::after {
    content: '\f073';
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #00BFA5;
    pointer-events: none;
}

/* Time Slots */
.time-slots-container {
    margin-top: 15px;
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.time-slot {
    padding: 10px 15px;
    border: 2px solid #e1e1e1;
    background: #fff;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    border-radius: 0;
}

.time-slot:hover:not(.disabled) {
    border-color: #00BFA5;
    background: #f0f9f8;
    color: #00BFA5;
}

.time-slot.selected {
    background: #00BFA5;
    border-color: #00BFA5;
    color: #fff;
}

.time-slot.disabled {
    background: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
}

/* Submit Button */
#appointment-form .btn-primary {
    background: #00BFA5;
    border: 2px solid #00BFA5;
    border-radius: 0;
    padding: 14px 40px;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s;
}

#appointment-form .btn-primary:hover,
#appointment-form .btn-primary:focus {
    background: #313131;
    border-color: #313131;
    color: #fff;
}

#appointment-form .btn-primary:disabled {
    background: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
}

#appointment-form .btn-primary i {
    margin-right: 8px;
}

/* Error Messages */
.error-text {
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* Loading State */
.loading-slots {
    text-align: center;
    padding: 20px;
    color: #00BFA5;
}

.loading-slots i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    #appointmentModal .modal-body {
        padding: 20px;
    }
    
    .time-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 8px;
    }
    
    .time-slot {
        padding: 8px 10px;
        font-size: 12px;
    }
}

