#rat-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 10, 24, 0.72);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}
#rat-popup-overlay.rat-open {
    display: flex;
}
#rat-popup-overlay .rat-streak {
    display: none; /* decorative gradient lines removed — see note below */
}
.rat-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,0.08);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}
.rat-close:hover { background: rgba(255,255,255,0.16); }
 
.rat-inner {
    width: 100%;
    max-width: 480px;
    position: relative;
}
.rat-card {
    position: relative;
    background: #0a1330;
    border-radius: 16px;
    padding: 32px 28px;
    overflow: hidden;
    border:1px solid #b8c0d983;
}
/* .rat-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f5a623, #7f77dd);
} */
.rat-badge {
    display: inline-block;
    background: rgba(245,166,35,0.15);
    color: #fac775;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
}
#rat-popup-title {
    color: #fff;
    font-size: 24px;
    line-height: 1.35;
    font-weight: 600;
    margin: 0 0 12px;
}
.rat-accent { color: #f5a623; }
.rat-sub {
    color: #b8c0d9;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 22px;
}
.rat-sub b { color: #fff; }
 
.rat-form {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
}
.rat-hp { position: absolute; left: -9999px; top: -9999px; }
 
.rat-field { margin-bottom: 10px; }
.rat-field input,
.rat-field textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #d6d9e3;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color .15s ease;
}
.rat-field textarea { resize: none; min-height: 84px; }
.rat-field input:focus,
.rat-field textarea:focus {
    outline: none;
    border-color: #7f77dd;
    box-shadow: 0 0 0 3px rgba(127,119,221,0.15);
}
.rat-field .rat-error-msg {
    display: none;
    color: #c0392b;
    font-size: 10px;
    margin-top: 5px;
}
.rat-field.rat-invalid input,
.rat-field.rat-invalid textarea {
    border-color: #e24b4a;
}
.rat-field.rat-invalid .rat-error-msg {
    display: block;
}
 
/* name + email + phone grouped like the reference layout: name full width, email/phone side by side */
#rat-field-name { }
#rat-field-email, #rat-field-phone {
    display: inline-block;
    width: calc(50% - 5px);
    vertical-align: top;
}
#rat-field-email { margin-right: 10px; }
 
.rat-captcha {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.rat-captcha #rat-captcha-q {
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    font-weight:600;
}
.rat-captcha input {
    flex: 1;
    padding: 11px 12px;
    border: 1px solid #d6d9e3;
    border-radius: 8px;
    font-size: 14px;
}
.rat-captcha button {
    background: none;
    border: none;
    color: #7f77dd;
    font-size: 13px;
    font-weight:600;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}
 
.rat-submit {
    width: 100%;
    background: #f5a623;
    color: #412402;
    border: none;
    padding: 13px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 4px;
}
.rat-submit:hover { background: #e0951c; }
.rat-submit:disabled { opacity: 0.6; cursor: not-allowed; }
 
.rat-form-status {
    text-align: center;
    font-size: 13px;
    margin-top: 10px;
    display: none;
}
.rat-form-status.rat-success { display: block; color: #0f6e56; }
.rat-form-status.rat-error { display: block; color: #a32d2d; }
 
@media (max-width: 480px) {
    #rat-field-email, #rat-field-phone {
        display: block;
        width: 100%;
        margin-right: 0;
    }
    .rat-card { padding: 24px 18px; }
}