/* How It Works Modal Styles */

/* Modal Overlay */
.how-it-works-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9998;
}

.how-it-works-modal-overlay.hidden {
    display: none;
    pointer-events: none;
}

/* Empêcher les clics sur l'overlay de fermer le modal */
.how-it-works-modal-overlay {
    pointer-events: auto;
}

.how-it-works-modal {
    pointer-events: auto;
}

/* Modal Box */
.how-it-works-modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    width: 90%;
    padding: 32px;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
}

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

/* Header */
.how-it-works-header {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0e0e0;
}

.how-it-works-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

/* Content */
.how-it-works-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    gap: 8px;
}

/* Steps */
.hiw-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.hiw-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    color: #555;
    margin-bottom: 10px;
}

.hiw-step-content {
    text-align: center;
}

.hiw-step-content p {
    margin: 0;
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}

/* Arrows */
.hiw-arrow {
    color: #ccc;
    font-size: 18px;
    margin-bottom: 25px;
    flex-shrink: 0;
}

/* Trust Badges */
.hiw-trust-badges {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #444;
    line-height: 1.3;
}

.trust-icon {
    flex-shrink: 0;
    font-size: 16px;
}

/* Footer */
.hiw-modal-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hiw-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #777;
    cursor: pointer;
    user-select: none;
}

.hiw-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #555;
}

/* Button */
.hiw-btn-got-it {
    background-color: #1a1a1a;
    color: white;
    border: none;
    padding: 11px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.hiw-btn-got-it:hover {
    background-color: #333;
}

.hiw-btn-got-it:active {
    background-color: #0d0d0d;
}

/* Responsive */
@media (max-width: 480px) {
    .how-it-works-modal {
        padding: 24px;
        max-width: 95%;
    }

    .how-it-works-content {
        margin-bottom: 24px;
        gap: 4px;
    }

    .hiw-step-content p {
        font-size: 12px;
    }

    .hiw-arrow {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .hiw-trust-badges {
        padding: 16px;
        margin-bottom: 20px;
        gap: 10px;
    }

    .trust-badge {
        font-size: 12px;
    }

    .hiw-checkbox {
        font-size: 11px;
    }

    .hiw-btn-got-it {
        padding: 10px 14px;
        font-size: 13px;
    }
}