/* ============================================
   CTA BUTTON PARRAINAGE
   ============================================ */
.cta-parrainage {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9998;
    animation: cta-pulse 2s infinite;
}

.cta-parrainage button {
    background: linear-gradient(135deg, #7c3aed 0%, #db2777 100%);
    color: white;
    border: none;
    padding: 16px 26px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.5);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Space Grotesk', sans-serif;
}

.cta-parrainage button svg {
    flex-shrink: 0;
}

.cta-parrainage button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.6);
}

.cta-parrainage .badge {
    background: #f59e0b;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

@keyframes cta-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

/* ============================================
   MODAL OVERLAY
   ============================================ */
.modal-parrainage-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
}

.modal-parrainage-overlay.active {
    display: flex;
}

/* ============================================
   MODAL CONTAINER
   ============================================ */
.modal-parrainage {
    background: #0f0f18;
    border-radius: 24px;
    max-width: 680px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 80px rgba(124, 58, 237, 0.3);
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.modal-parrainage-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255,255,255,0.1);
    border: none;
    cursor: pointer;
    color: #a1a1aa;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.modal-parrainage-close svg {
    width: 18px;
    height: 18px;
}

.modal-parrainage-close:hover {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* ============================================
   MODAL HEADER
   ============================================ */
.modal-parrainage-header {
    background: linear-gradient(135deg, #7c3aed 0%, #db2777 100%);
    padding: 35px 40px;
    text-align: center;
    border-radius: 24px 24px 0 0;
}

.modal-parrainage-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    margin-bottom: 8px;
    font-weight: 700;
    color: white;
}

.modal-parrainage-header .subtitle {
    font-size: 15px;
    opacity: 0.9;
    color: white;
}

/* ============================================
   URGENCY BANNER
   ============================================ */
.urgency-banner {
    background: linear-gradient(90deg, #f59e0b, #f97316);
    color: #0a0a0f;
    padding: 12px 20px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

.urgency-banner .counter {
    font-size: 18px;
    font-weight: 700;
}

/* ============================================
   MESSAGE SECTION
   ============================================ */
.modal-message {
    padding: 25px 40px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.modal-message p {
    font-size: 15px;
    color: #a1a1aa;
    margin-bottom: 15px;
    line-height: 1.7;
}

.modal-message p:last-child {
    margin-bottom: 0;
}

.modal-message strong {
    color: #7c3aed;
}

.highlight-box {
    background: rgba(124, 58, 237, 0.1);
    border-left: 4px solid #7c3aed;
    padding: 15px 20px;
    margin: 15px 0;
    border-radius: 0 12px 12px 0;
}

.highlight-box p {
    margin: 0 !important;
    font-style: italic;
    color: #d4d4d8 !important;
}

/* ============================================
   FORM SECTION
   ============================================ */
.modal-form {
    padding: 30px 40px;
}

.modal-form h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
    font-family: 'Space Grotesk', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-row.single {
    grid-template-columns: 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 6px;
    color: #d4d4d8;
    font-size: 14px;
}

.form-group label .required {
    color: #db2777;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.2s;
    font-family: inherit;
    background: rgba(255,255,255,0.05);
    color: white;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #71717a;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.2);
    background: rgba(124, 58, 237, 0.1);
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: #0f0f18;
    color: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group.checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
}

.form-group.checkbox input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #7c3aed;
}

.form-group.checkbox label {
    font-weight: 400;
    font-size: 13px;
    color: #a1a1aa;
    cursor: pointer;
}

/* ============================================
   TRUST INDICATORS
   ============================================ */
.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 15px;
    background: rgba(255,255,255,0.02);
    border-radius: 12px;
    margin: 20px 0;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #71717a;
}

.trust-item svg {
    width: 16px;
    height: 16px;
    color: #22c55e;
}

/* ============================================
   SUBMIT BUTTON
   ============================================ */
.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #7c3aed 0%, #db2777 100%);
    color: white;
    border: none;
    padding: 18px 30px;
    font-size: 17px;
    font-weight: 700;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    font-family: 'Space Grotesk', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

.submit-btn svg {
    flex-shrink: 0;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.5);
}

.submit-btn:disabled {
    background: #3f3f46;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ============================================
   FOOTER NOTE
   ============================================ */
.modal-parrainage-footer {
    padding: 20px 40px;
    background: rgba(0,0,0,0.2);
    border-radius: 0 0 24px 24px;
    text-align: center;
}

.modal-parrainage-footer p {
    font-size: 12px;
    color: #71717a;
    margin: 0;
}

.modal-parrainage-footer a {
    color: #7c3aed;
}

/* ============================================
   SUCCESS MESSAGE
   ============================================ */
.success-message {
    display: none;
    text-align: center;
    padding: 60px 40px;
}

.success-message.active {
    display: block;
}

.success-message .checkmark {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.success-message .checkmark svg {
    width: 40px;
    height: 40px;
    color: white;
}

.success-message h3 {
    color: #22c55e;
    font-size: 26px;
    margin-bottom: 15px;
    font-family: 'Space Grotesk', sans-serif;
}

.success-message p {
    color: #a1a1aa;
    font-size: 16px;
    margin-bottom: 10px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 600px) {
    .cta-parrainage {
        bottom: 15px;
        right: 15px;
        left: 15px;
    }

    .cta-parrainage button {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
    }

    .modal-parrainage-header,
    .modal-form,
    .modal-message,
    .modal-parrainage-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .modal-parrainage-header h2 {
        font-size: 22px;
    }

    .trust-indicators {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
}
