/* CRM Modal Styles - Ultra Premium Glassmorphism */
:root {
    --crm-purple: #7a2ff7;
    --crm-dark: #1e2235;
    --crm-glass: rgba(255, 255, 255, 0.05);
}

.crm-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px); /* Strong blur background as requested */
    -webkit-backdrop-filter: blur(15px);
    overflow-y: auto;
    padding: 20px;
    align-items: center;
    justify-content: center;
}

.crm-modal.active {
    display: flex;
    animation: crmFadeIn 0.4s ease;
}

.crm-modal-content {
    background: var(--crm-dark);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 500px;
    border-radius: 24px;
    position: relative;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.8);
    color: white;
}

.crm-modal-close {
    position: absolute;
    right: 25px;
    top: 20px;
    color: #94a3b8;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s;
    line-height: 1;
}

.crm-modal-close:hover {
    color: white;
    transform: rotate(90deg);
}

.crm-modal-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
    text-align: center;
}

.crm-modal-subtitle {
    font-size: 0.95rem;
    color: #94a3b8;
    margin-bottom: 35px;
    text-align: center;
    line-height: 1.5;
}

.crm-modal-form .crm-form-group {
    margin-bottom: 25px;
}

.crm-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--crm-purple);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.crm-input {
    width: 100%;
    padding: 15px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

.crm-input:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--crm-purple);
    outline: none;
    box-shadow: 0 0 0 4px rgba(122, 47, 247, 0.15);
}

@keyframes crmFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Status message styling */
#t_status.success {
    color: #10b981;
}
#t_status.error {
    color: #ef4444;
}

@media (max-width: 576px) {
    .crm-modal-content {
        padding: 30px 20px;
    }
    .crm-modal-title {
        font-size: 1.5rem;
    }
}
