:root{
    --violet-1:#7c3aed;
    --violet-2:#5b5bf7;
    --text:#0f172a;
    --muted:#64748b;
    --line: rgba(15, 23, 42, 0.10);
    --shadow: 0 24px 70px rgba(2, 6, 23, 0.28);
    --shadow-soft: 0 14px 40px rgba(2, 6, 23, 0.12);
    --radius-xl: 22px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --focus: rgba(124, 58, 237, 0.20);
}

/* ===================================================== */
/* MODAL Z-INDEX FIX */
/* ===================================================== */

.support-saas-modal{ z-index: 99999 !important; }
.support-saas-modal .modal-dialog{ z-index: 100000 !important; }
.modal-backdrop{ z-index: 99990 !important; }

/* ===================================================== */
/* MAIN MODAL CARD */
/* ===================================================== */

.support-saas{
    border: none;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow);
    transform: translateY(10px) scale(0.985);
    opacity: 0;
}

/* Animation */
.support-saas-modal.show .support-saas{
    animation: supportPopIn 420ms cubic-bezier(.2,.85,.2,1) forwards;
}
@keyframes supportPopIn{
    from{ transform: translateY(14px) scale(0.985); opacity: 0; }
    to  { transform: translateY(0) scale(1); opacity: 1; }
}

/* ===================================================== */
/* HEADER */
/* ===================================================== */

.support-saas__header{
    padding: 18px 20px;
    color: #fff;
    background:
        radial-gradient(1200px 300px at 20% -20%, rgba(255,255,255,0.25), transparent 55%),
        linear-gradient(135deg, var(--violet-2), var(--violet-1));
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
}

.support-saas__titleWrap{
    display:flex;
    align-items:center;
    gap:14px;
}

.support-saas__icon{
    width:44px;
    height:44px;
    border-radius:14px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(255,255,255,0.18);
    border:1px solid rgba(255,255,255,0.20);
}

.support-saas__icon i{
    font-size:22px;
}

.support-saas__title{
    margin:0;
    font-weight:800;
}

.support-saas__subtitle{
    margin:2px 0 0;
    font-size:13px;
    opacity:.9;
}

.support-saas__close{
    width:40px;
    height:40px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,0.22);
    background:rgba(255,255,255,0.14);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:.2s;
}
.support-saas__close:hover{
    background:rgba(255,255,255,0.22);
}

/* ===================================================== */
/* BODY */
/* ===================================================== */

.support-saas__body{
    padding:20px;
    background:
        radial-gradient(800px 240px at 10% 0%, rgba(124,58,237,0.08), transparent 60%),
        radial-gradient(800px 240px at 90% 0%, rgba(91,91,247,0.08), transparent 60%),
        #ffffff;
}

/* ===================================================== */
/* ALERTS */
/* ===================================================== */

.support-alert{
    padding:14px 16px;
    border-radius:14px;
    margin-bottom:14px;
    display:flex;
    gap:10px;
    font-weight:700;
}

.support-alert--success{
    background: rgba(16,185,129,0.10);
    border:1px solid rgba(16,185,129,0.28);
    color:#065f46;
}

.support-alert--error{
    background: rgba(239,68,68,0.10);
    border:1px solid rgba(239,68,68,0.28);
    color:#7f1d1d;
}

.support-alert-list{
    margin-top:8px;
    padding-left:18px;
}

/* ===================================================== */
/* NOTICE STRIP */
/* ===================================================== */

.support-saas__notice{
    display:flex;
    gap:12px;
    padding:14px;
    border:1px solid rgba(124,58,237,0.16);
    background:rgba(124,58,237,0.06);
    border-radius:var(--radius-lg);
    margin-bottom:16px;
    font-size:13px;
}

.support-guest-note{
    margin-left:6px;
    color:#4c1d95;
    font-weight:800;
}

/* ===================================================== */
/* GRID LAYOUT */
/* ===================================================== */

.support-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
}

.support-col{
    display:flex;
    flex-direction:column;
    gap:16px;
}

/* ===================================================== */
/* CARD */
/* ===================================================== */

.support-card{
    background:#fff;
    border:1px solid var(--line);
    border-radius:var(--radius-xl);
    box-shadow:var(--shadow-soft);
    padding:16px;
}

.support-card__head{
    margin-bottom:14px;
}

.support-card__head h6{
    margin:0;
    font-weight:900;
    font-size:14px;
    display:flex;
    align-items:center;
    gap:8px;
}

.support-card__head span{
    font-size:12px;
    color:var(--muted);
}

/* ===================================================== */
/* FORM FIELDS */
/* ===================================================== */

.support-field{
    display:flex;
    flex-direction:column;
    gap:6px;
    margin-bottom:12px;
}

.support-field label{
    font-size:12px;
    font-weight:800;
    color:var(--muted);
}

.support-field input,
.support-field select,
.support-field textarea{
    width:100%;
    border-radius:14px;
    border:1px solid rgba(15,23,42,0.14);
    padding:12px 14px;
    font-weight:600;
    color:var(--text);
    outline:none;
    transition:.2s;
    background:#fff;
}

.support-field input:focus,
.support-field select:focus,
.support-field textarea:focus{
    border-color:rgba(124,58,237,0.55);
    box-shadow:0 0 0 4px var(--focus);
}

.support-field textarea{
    min-height:160px;
    resize:vertical;
}

/* ===================================================== */
/* BUTTON */
/* ===================================================== */

.support-actions{
    margin-top:8px;
}

.support-submitBtn{
    border:none;
    border-radius:16px;
    padding:14px;
    width:100%;
    font-weight:900;
    color:#fff;
    background:
        radial-gradient(900px 120px at 10% -30%, rgba(255,255,255,0.35), transparent 55%),
        linear-gradient(135deg, var(--violet-2), var(--violet-1));
    box-shadow:0 16px 38px rgba(124,58,237,0.28);
    transition:.2s;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
}

.support-submitBtn:hover{
    transform:translateY(-2px);
}

.support-submitBtn .btn-loading{
    display:none;
}

.support-submitBtn.is-loading .btn-text{
    display:none;
}

.support-submitBtn.is-loading .btn-loading{
    display:flex;
}

.spinner{
    width:16px;
    height:16px;
    border-radius:50%;
    border:2px solid rgba(255,255,255,0.35);
    border-top-color:#fff;
    animation:spin .7s linear infinite;
}

@keyframes spin{
    to{ transform:rotate(360deg); }
}

/* ===================================================== */
/* RESPONSIVE */
/* ===================================================== */

@media (max-width: 992px){
    .support-grid{
        grid-template-columns:1fr;
    }
}

@media (max-width: 576px){
    .support-saas__subtitle{
        display:none;
    }
}