/* Modal de contact Retraide Messenger */

@keyframes rm-modal-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes rm-modal-scale-in {
    from { transform: scale(0.96); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.rm-contact-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(8px);
    padding: 20px;
    box-sizing: border-box;
    transition: opacity 0.3s ease;
}

.rm-contact-modal.is-open {
    display: flex !important;
    align-items: center;
    justify-content: center;
    animation: rm-modal-fade-in 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.rm-contact-modal-content {
    background-color: #ffffff;
    padding: 28px;
    border: 1px solid #e2e8f0;
    width: 100%;
    max-width: 520px;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.02);
    position: relative;
    box-sizing: border-box;
    animation: rm-modal-scale-in 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.rm-contact-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #94a3b8;
    font-size: 24px;
    font-weight: 500;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s, transform 0.2s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f8fafc;
}

.rm-contact-close:hover {
    color: #1e293b;
    background: #f1f5f9;
    transform: rotate(90deg);
}

.rm-contact-modal h3 {
    margin: 0 0 6px 0;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rm-contact-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 20px 0;
    line-height: 1.4;
}

.rm-contact-form-group {
    margin-bottom: 16px;
}

.rm-contact-textarea {
    width: 100%;
    height: 130px;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    resize: vertical;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    color: #1e293b;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    background: #f8fafc;
}

.rm-contact-textarea:focus {
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.rm-contact-warning {
    background-color: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 12px 16px;
    margin: 18px 0;
    font-size: 12px;
    color: #b45309;
    line-height: 1.5;
    border-radius: 0 8px 8px 0;
    text-align: left;
}

.rm-contact-error-msg {
    background-color: #fef2f2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    line-height: 1.4;
    display: none;
    text-align: left;
}

.rm-contact-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.rm-contact-btn-secondary {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: #475569;
    transition: all 0.2s;
}

.rm-contact-btn-secondary:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.rm-contact-btn-primary {
    background: #3b82f6;
    border: 1px solid #2563eb;
    color: white !important;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.15);
}

.rm-contact-btn-primary:hover {
    background: #2563eb;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.2);
}

.rm-contact-btn-primary:disabled,
.rm-contact-btn-secondary:disabled,
.rm-contact-textarea:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Spinner pour le bouton d'envoi */
.rm-spinner {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 2px solid #ffffff;
    width: 14px;
    height: 14px;
    animation: rm-spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes rm-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Styles Premium pour l'abonnement dans la modal */
.rm-subscription-modal-wrapper {
    text-align: center;
    padding: 10px 5px;
}

.rm-subscription-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 20px;
    display: inline-block;
    letter-spacing: 1px;
    margin-bottom: 18px;
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.2);
    animation: rm-pulse 2s infinite;
}

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

.rm-subscription-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.rm-subscription-text {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 24px;
}

.rm-subscription-benefits {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 28px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rm-benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #334155;
    font-weight: 600;
}

.rm-benefit-icon {
    font-size: 16px;
    background: #ffffff;
    padding: 6px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.rm-subscription-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rm-subscription-btn-primary {
    background: linear-gradient(135deg, #d97706, #b45309);
    border: none;
    color: white !important;
    padding: 14px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 10px 15px -3px rgba(217, 119, 6, 0.3), 0 4px 6px -4px rgba(217, 119, 6, 0.3);
    text-decoration: none !important;
}

.rm-subscription-btn-primary:hover {
    background: linear-gradient(135deg, #b45309, #92400e);
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(217, 119, 6, 0.4), 0 8px 10px -6px rgba(217, 119, 6, 0.4);
}

.rm-subscription-btn-primary:active {
    transform: translateY(0);
}

.rm-subscription-btn-close {
    padding: 12px 24px !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    border: 1px solid #cbd5e1 !important;
}
