/* WooAffiliation Popup Styles */
.wa-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.wa-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.wa-popup-container {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: translateY(20px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.wa-popup-overlay.active .wa-popup-container {
    transform: translateY(0);
}

.wa-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10;
}

.wa-popup-close:hover {
    color: #1f2937;
}

.wa-popup-header {
    background: linear-gradient(135deg, #1e5a3e 0%, #2d8659 100%);
    padding: 30px 30px 20px;
    color: white;
    text-align: center;
}

.wa-popup-title {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.wa-popup-subtitle {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.5;
}

.wa-popup-content {
    /* Content wrapper */
}

.wa-popup-form {
    padding: 30px;
}

.wa-form-group {
    margin-bottom: 20px;
}

/* Mobile optimizations - Compress form spacing */
@media (max-width: 768px) {
    .wa-popup-header {
        padding: 20px 20px 15px;
    }

    .wa-popup-title {
        font-size: 20px;
        margin: 0 0 8px;
    }

    .wa-popup-subtitle {
        font-size: 13px;
        line-height: 1.4;
    }

    .wa-popup-form {
        padding: 20px 15px;
    }

    .wa-form-group {
        margin-bottom: 12px;
    }

    .wa-form-group label {
        margin-bottom: 5px;
        font-size: 13px;
    }

    .wa-form-group input {
        padding: 10px 12px;
        font-size: 15px;
    }

    .wa-submit-btn {
        padding: 12px;
        font-size: 16px;
    }

    .wa-privacy-text {
        margin-top: 10px;
        font-size: 11px;
    }
}

.wa-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.wa-form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.wa-form-group input:focus {
    border-color: #1e5a3e;
    outline: none;
}

.wa-submit-btn {
    width: 100%;
    background: #fbbf24;
    color: #1e5a3e;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wa-submit-btn:hover {
    background: #f59e0b;
}

.wa-submit-btn:active {
    transform: scale(0.98);
}

.wa-privacy-text {
    text-align: center;
    margin-top: 15px;
    color: #6b7280;
    font-size: 12px;
}

/* Loader */
.wa-btn-loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(30, 90, 62, 0.3);
    border-radius: 50%;
    border-top-color: #1e5a3e;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Grid Layout Prénom/Nom */
.wa-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .wa-form-row {
        gap: 10px;
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .wa-form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* RGPD Consent Checkbox */
.wa-consent-group {
    background: #f0fdf4;
    border: 2px solid #86efac;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .wa-consent-group {
        padding: 12px;
        margin-bottom: 12px;
        border-radius: 8px;
    }
}

.wa-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    margin: 0;
}

.wa-consent-checkbox {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #1e5a3e;
    flex-shrink: 0;
}

.wa-consent-text {
    font-size: 13px;
    line-height: 1.6;
    color: #374151;
}

.wa-consent-text a {
    font-weight: 600;
}

.wa-consent-text a:hover {
    color: #2d8659;
}

/* Disclaimer Text */
.wa-disclaimer-text {
    text-align: center;
    margin-top: 12px;
    color: #9ca3af;
    font-size: 11px;
    line-height: 1.4;
    font-style: italic;
}

@media (max-width: 768px) {
    .wa-disclaimer-text {
        margin-top: 8px;
        font-size: 10px;
        line-height: 1.3;
    }

    .wa-consent-text {
        font-size: 12px;
        line-height: 1.5;
    }

    .wa-consent-checkbox {
        width: 18px;
        height: 18px;
        min-width: 18px;
    }

    .wa-form-footer {
        margin-top: 5px;
    }
}