/* Rawda Inscription - Styles CSS */

* {
    box-sizing: border-box;
}

#rawda-inscription-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f9ff 0%, #e8f4fd 100%);
    min-height: 100vh;
}

.rawda-header {
    text-align: center;
    background: linear-gradient(135deg, #87CEEB 0%, #4682B4 100%);
    color: white;
    padding: 40px 20px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(70, 130, 180, 0.2);
}

.rawda-header h1 {
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.rawda-header h2 {
    font-size: 1.3rem;
    margin: 0 0 15px 0;
    font-weight: 400;
    opacity: 0.9;
}

.rawda-address {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 500;
}

.rawda-info-section {
    margin-bottom: 40px;
}

.rawda-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.rawda-info-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(135, 206, 235, 0.15);
    border: 1px solid rgba(135, 206, 235, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rawda-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(135, 206, 235, 0.25);
}

.rawda-info-card h3 {
    color: #4682B4;
    font-size: 1.3rem;
    margin: 0 0 20px 0;
    font-weight: 600;
    border-bottom: 2px solid #87CEEB;
    padding-bottom: 10px;
}

.schedule-item {
    background: #f8fbff;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    border-left: 4px solid #87CEEB;
}

.schedule-item:last-child {
    margin-bottom: 0;
}

.rawda-documents-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rawda-documents-list li {
    background: #f8fbff;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 8px;
    border-left: 4px solid #87CEEB;
    position: relative;
}

.rawda-documents-list li::before {
    content: "✓";
    color: #4682B4;
    font-weight: bold;
    margin-right: 10px;
}

.date-item {
    background: #f8fbff;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    border-left: 4px solid #87CEEB;
}

.rawda-pricing {
    space-y: 10px;
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fbff;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 8px;
    border-left: 4px solid #87CEEB;
}

.pricing-note {
    background: #fff3cd;
    color: #856404;
    padding: 12px 15px;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    font-weight: 600;
    text-align: center;
    margin-top: 15px;
}

.payment-option {
    background: #f8fbff;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    border-left: 4px solid #87CEEB;
}

.payment-option small {
    color: #666;
    display: block;
    margin-top: 5px;
}

.rawda-form-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(135, 206, 235, 0.15);
    border: 1px solid rgba(135, 206, 235, 0.2);
}

.rawda-form-section h2 {
    color: #4682B4;
    font-size: 2rem;
    text-align: center;
    margin: 0 0 30px 0;
    font-weight: 600;
}

.rawda-form-grid {
    margin-bottom: 30px;
    padding: 25px;
    background: #f8fbff;
    border-radius: 15px;
    border: 1px solid rgba(135, 206, 235, 0.2);
}

.rawda-form-section-title {
    margin-bottom: 25px;
}

.rawda-form-section-title h3 {
    color: #4682B4;
    font-size: 1.4rem;
    margin: 0;
    font-weight: 600;
    border-bottom: 2px solid #87CEEB;
    padding-bottom: 10px;
}

.rawda-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

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

.rawda-form-group label {
    display: block;
    color: #2c5282;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.rawda-form-group input[type="text"],
.rawda-form-group input[type="email"],
.rawda-form-group input[type="tel"],
.rawda-form-group input[type="date"],
.rawda-form-group select,
.rawda-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.rawda-form-group input[type="text"]:focus,
.rawda-form-group input[type="email"]:focus,
.rawda-form-group input[type="tel"]:focus,
.rawda-form-group input[type="date"]:focus,
.rawda-form-group select:focus,
.rawda-form-group textarea:focus {
    border-color: #87CEEB;
    box-shadow: 0 0 0 3px rgba(135, 206, 235, 0.2);
    outline: none;
}

.rawda-form-group input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 2px dashed #87CEEB;
    border-radius: 10px;
    background: #f8fbff;
    transition: border-color 0.3s ease;
}

.rawda-form-group input[type="file"]:hover {
    border-color: #4682B4;
}

.rawda-checkbox-group,
.rawda-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rawda-checkbox,
.rawda-radio {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #2c5282;
    position: relative;
    padding-left: 35px;
    user-select: none;
}

.rawda-checkbox input[type="checkbox"],
.rawda-radio input[type="radio"] {
    display: none;
}

.checkmark,
.radiomark {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    background-color: white;
    border: 2px solid #87CEEB;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.radiomark {
    border-radius: 50%;
}

.rawda-checkbox:hover .checkmark,
.rawda-radio:hover .radiomark {
    border-color: #4682B4;
    box-shadow: 0 0 0 3px rgba(135, 206, 235, 0.2);
}

.rawda-checkbox input[type="checkbox"]:checked ~ .checkmark,
.rawda-radio input[type="radio"]:checked ~ .radiomark {
    background-color: #4682B4;
    border-color: #4682B4;
}

.checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.radiomark::after {
    content: "";
    position: absolute;
    display: none;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

.rawda-checkbox input[type="checkbox"]:checked ~ .checkmark::after,
.rawda-radio input[type="radio"]:checked ~ .radiomark::after {
    display: block;
}

.rawda-parent-section {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(135, 206, 235, 0.3);
}

.rawda-parent-section h4 {
    color: #4682B4;
    font-size: 1.1rem;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.rawda-required input[type="checkbox"]:invalid ~ .checkmark {
    border-color: #e53e3e;
}

.rawda-form-submit {
    text-align: center;
    margin-top: 40px;
}

.rawda-submit-btn {
    background: linear-gradient(135deg, #4682B4 0%, #87CEEB 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(70, 130, 180, 0.3);
    min-width: 250px;
}

.rawda-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(70, 130, 180, 0.4);
}

.rawda-submit-btn:active {
    transform: translateY(0);
}

.rawda-footer {
    margin-top: 50px;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(135, 206, 235, 0.15);
    border: 1px solid rgba(135, 206, 235, 0.2);
    text-align: center;
}

.rawda-contact-info h3 {
    color: #4682B4;
    font-size: 1.3rem;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.rawda-contact-info p {
    margin: 8px 0;
    color: #2c5282;
    font-size: 1rem;
}

/* NOUVEAU: Message d'erreur pour la date */
.rawda-date-error {
    background: #fee2e2;
    color: #dc2626;
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 4px solid #dc2626;
    font-size: 0.9rem;
    margin-top: 5px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    #rawda-inscription-container {
        padding: 15px;
    }
    
    .rawda-header {
        padding: 25px 15px;
    }
    
    .rawda-header h1 {
        font-size: 2rem;
    }
    
    .rawda-header h2 {
        font-size: 1.1rem;
    }
    
    .rawda-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .rawda-info-card {
        padding: 20px;
    }
    
    .rawda-form-section {
        padding: 20px;
    }
    
    .rawda-form-grid {
        padding: 20px;
    }
    
    .rawda-form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .pricing-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .rawda-submit-btn {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .rawda-header h1 {
        font-size: 1.8rem;
    }
    
    .rawda-header h2 {
        font-size: 1rem;
    }
    
    .rawda-form-section {
        padding: 15px;
    }
    
    .rawda-form-grid {
        padding: 15px;
    }
    
    .rawda-info-card,
    .rawda-footer {
        padding: 15px;
    }
}

/* Animation pour le loader */
.btn-loader {
    display: inline-block;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Messages d'erreur et de succès */
.rawda-message {
    padding: 15px 20px;
    border-radius: 10px;
    margin: 20px 0;
    font-weight: 500;
}

.rawda-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.rawda-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Amélioration de l'accessibilité */
.rawda-checkbox:focus-within .checkmark,
.rawda-radio:focus-within .radiomark {
    box-shadow: 0 0 0 3px rgba(135, 206, 235, 0.4);
}

/* Style pour les champs requis */
.rawda-form-group label[required]::after,
.rawda-form-group label:has(input[required])::after {
    content: " *";
    color: #e53e3e;
    font-weight: bold;
}