/**
 * Styles pour la modale de réservation de stage
 * Réutilise les styles de waka-avatar pour la cohérence
 * Importe les styles des questions d'inscription depuis frontend.css
 */

/* Import des styles d'inscription depuis frontend.css */

/* Modale principale */
.waka-avatar-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.waka-avatar-modal.active {
    opacity: 1;
    visibility: visible;
}

.waka-avatar-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    cursor: pointer;
}

.waka-avatar-modal-content-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.waka-avatar-modal-content {
    position: relative;
    background: #fff;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    min-height: 400px;
    overflow-y: auto;
    z-index: 1;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.waka-avatar-modal-content-a5cbf99 {
    min-height: 400px;
}

.waka-avatar-modal.active .waka-avatar-modal-content {
    transform: scale(1);
}

.waka-avatar-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    transition: color 0.2s ease;
}

.waka-avatar-modal-close:hover {
    color: #C48738;
}

.waka-avatar-modal-body {
    padding: 40px 30px;
}

/* Formulaires de connexion/inscription */
.waka-stage-reservation-form {
    display: none;
}

.waka-stage-reservation-form.active {
    display: block;
}

.waka-stage-reservation-form h3 {
    text-align: center;
    margin-bottom: 25px;
    color: #3D3D3D;
    font-size: 24px;
}

.waka-stage-reservation-form .waka-waitlist-field {
    margin-bottom: 20px;
}

.waka-stage-reservation-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.waka-stage-reservation-form input[type="text"],
.waka-stage-reservation-form input[type="email"],
.waka-stage-reservation-form input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.waka-stage-reservation-form input:focus {
    outline: none;
    border-color: #C48738;
    box-shadow: 0 0 0 2px rgba(196, 135, 56, 0.2);
}

.waka-stage-reservation-form .waka-stage-forgot-password {
    margin-top: 8px;
    text-align: right;
}

.waka-stage-reservation-form .waka-stage-forgot-password a {
    color: #C48738;
    text-decoration: none;
    font-size: 13px;
}

.waka-stage-reservation-form .waka-stage-forgot-password a:hover {
    text-decoration: underline;
}

.waka-stage-reservation-form .waka-stage-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.waka-stage-reservation-form .elementor-button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

/* Bouton primaire (Se connecter / Créer un compte) */
.waka-stage-reservation-form .waka-stage-primary-btn,
.waka-stage-reservation-form .elementor-button:not(.elementor-button-secondary):not(.waka-stage-cancel-btn) {
    background-color: #C48738;
    color: #fff;
}

.waka-stage-reservation-form .waka-stage-primary-btn:hover,
.waka-stage-reservation-form .elementor-button:not(.elementor-button-secondary):not(.waka-stage-cancel-btn):hover {
    background-color: #a06d2e;
}

/* Bouton secondaire / Annuler (beige clair) */
.waka-stage-reservation-form .waka-stage-cancel-btn,
.waka-stage-reservation-form .elementor-button-secondary.waka-stage-cancel-btn {
    background-color: #F6F1EB !important;
    color: #333 !important;
    border: 1px solid #EAE2D7 !important;
}

.waka-stage-reservation-form .waka-stage-cancel-btn:hover,
.waka-stage-reservation-form .elementor-button-secondary.waka-stage-cancel-btn:hover {
    background-color: #EBE2D7 !important;
    border-color: #ddd !important;
    color: #333 !important;
}

.waka-stage-reservation-form .waka-stage-form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    display: none;
}

.waka-stage-reservation-form .waka-stage-form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.waka-stage-reservation-form .waka-stage-form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.waka-stage-reservation-form .waka-stage-modal-footer-link {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

.waka-stage-reservation-form .waka-stage-modal-footer-link a {
    color: #C48738;
    text-decoration: none;
    cursor: pointer;
}

.waka-stage-reservation-form .waka-stage-modal-footer-link a:hover {
    text-decoration: underline;
}

/* Questions de réservation */
.waka-stage-reservation-questions {
    display: none;
}

.waka-stage-reservation-questions.active {
    display: block;
}

.waka-stage-reservation-questions h3 {
    text-align: center;
    margin-bottom: 25px;
    color: #3D3D3D;
    font-size: 24px;
}

.waka-stage-reservation-questions .step {
    display: none;
}

.waka-stage-reservation-questions .step.active {
    display: block;
}

.waka-stage-reservation-questions .waka-waitlist-field {
    margin-bottom: 20px;
}

.waka-stage-reservation-questions label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.waka-stage-reservation-questions select,
.waka-stage-reservation-questions input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.waka-stage-reservation-questions select:focus,
.waka-stage-reservation-questions input:focus {
    outline: none;
    border-color: #C48738;
    box-shadow: 0 0 0 2px rgba(196, 135, 56, 0.2);
}

.waka-stage-reservation-questions .waka-stage-questions-actions {
    margin-top: 25px;
    display: flex;
    gap: 10px;
}

.waka-stage-reservation-questions .elementor-button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.waka-stage-reservation-questions .elementor-button:not(.elementor-button-secondary) {
    background-color: #C48738;
    color: #fff;
}

.waka-stage-reservation-questions .elementor-button:not(.elementor-button-secondary):hover {
    background-color: #a06d2e;
}

.waka-stage-reservation-questions .elementor-button-secondary {
    background-color: #f5f5f5;
    color: #333;
}

.waka-stage-reservation-questions .elementor-button-secondary:hover {
    background-color: #e0e0e0;
}

/* Koala positionné en dehors de la modale */
#waka-reservation-koala {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: auto;
    z-index: 1000;
    pointer-events: none;
    opacity: 1;
}

@media (max-width: 768px) {
    #waka-reservation-koala {
        display: none !important;
    }
}

/* Styles pour les questions d'inscription (importés depuis frontend.css) */
.waka-stage-reservation-questions .waka-modal-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.waka-stage-reservation-questions .waka-inscription-koala {
    display: none; /* Le koala est maintenant géré par #waka-reservation-koala */
}

.waka-stage-reservation-questions-content {
    width: 100%;
    position: relative;
    z-index: 1;
}

.waka-inscription-steps-indicator {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
    padding: 0 20px;
}

.waka-inscription-step-bar {
    width: 40px;
    height: 4px;
    background-color: #e0e0e0;
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

.waka-inscription-step-bar-active {
    background-color: #C48738;
}

.waka-inscription-step-bar-completed {
    background-color: #4caf50;
}

.waka-inscription-controls {
    position: relative;
}

.waka-inscription-back-arrow {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #C48738;
    cursor: pointer;
    z-index: 10;
}

.waka-inscription-back-arrow:hover {
    color: #a06d2e;
}

.waka-stage-reservation-questions .step {
    display: none;
}

.waka-stage-reservation-questions .step.active {
    display: block;
}

.waka-stage-reservation-questions .waka-waitlist-field {
    margin-bottom: 20px;
}

.waka-stage-reservation-questions .waka-waitlist-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 16px;
}

.waka-stage-reservation-questions .waka-waitlist-field select,
.waka-stage-reservation-questions .waka-waitlist-field input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.waka-stage-reservation-questions .waka-waitlist-field select:focus,
.waka-stage-reservation-questions .waka-waitlist-field input:focus {
    outline: none;
    border-color: #C48738;
    box-shadow: 0 0 0 2px rgba(196, 135, 56, 0.2);
}

