/*@font-face {*/
/*    font-family: 'MiSans';*/
/*    src: url('https://assets-persist.lovart.ai/agent-static-assets/MiSans-Regular.ttf') format('truetype');*/
/*    font-weight: 400;*/
/*    font-style: normal;*/
/*}*/
/*@font-face {*/
/*    font-family: 'MiSans';*/
/*    src: url('https://assets-persist.lovart.ai/agent-static-assets/MiSans-Medium.ttf') format('truetype');*/
/*    font-weight: 500;*/
/*    font-style: normal;*/
/*}*/
/*@font-face {*/
/*    font-family: 'MiSans';*/
/*    src: url('https://assets-persist.lovart.ai/agent-static-assets/MiSans-Bold.ttf') format('truetype');*/
/*    font-weight: 700;*/
/*    font-style: normal;*/
/*}*/

/** {*/
/*    margin: 0;*/
/*    padding: 0;*/
/*    box-sizing: border-box;*/
/*}*/

.modal-overlay {
    font-family: 'MiSans', sans-serif;
    background-color: #0f172a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Test Buttons Container */
.test-container {
    text-align: center;
    max-width: 800px;
}

.test-title {
    color: white;
    font-size: 32px;
    margin-bottom: 20px;
}

.test-desc {
    color: #94a3b8;
    font-size: 16px;
    margin-bottom: 40px;
}

.test-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.btn {
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(37, 99, 235, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid #3b82f6;
    color: #3b82f6;
}

.btn-outline:hover {
    background: #3b82f6;
    color: white;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 29, 58, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Modal Container */
.modal-container {
    position: relative;
    z-index: 9999;
    width: 100%;
    max-width: 900px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.5), 0 30px 60px -30px rgba(0, 0, 0, 0.6);
    display: flex;
    overflow: hidden;
    transform: scale(0.98) translateY(40px);
    transition: transform 0.3s ease;
    max-height: 90%;
    overflow-y: auto;
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

/* Modal Left Column: Brand Area */
.modal-left {
    flex: 0 0 40%;
    background: linear-gradient(150deg, #0D1D3A 0%, #163252 50%, #1E4670 100%);
    padding: clamp(24px, 4vw, 48px);
    color: #ffffff;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: fit-content;
}

.modal-left::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.modal-left::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.modal-brand-header {
    position: relative;
    z-index: 1;
    margin-bottom: clamp(20px, 3vw, 40px);
}

.modal-brand-logo {
    display: flex;
    align-items: center;
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: clamp(16px, 2.5vw, 32px);
    color: #fff;
}

.modal-brand-logo i {
    font-size: clamp(22px, 3vw, 28px);
    margin-right: 12px;
    color: #38bdf8;
}

.modal-brand-title {
    font-size: clamp(22px, 3vw, 32px);
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(to right, #ffffff, #e0f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-brand-subtitle {
    font-size: clamp(13px, 1.5vw, 15px);
    line-height: 1.6;
    color: #94a3b8;
    font-weight: 400;
}

.modal-features-list {
    list-style: none;
    position: relative;
    z-index: 1;
    margin-top: 20px;
}

.modal-features-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: clamp(12px, 2vw, 20px);
    font-size: clamp(13px, 1.5vw, 15px);
    color: #e2e8f0;
    line-height: 1.5;
}

.modal-features-list li i {
    color: #38bdf8;
    margin-right: 12px;
    font-size: clamp(16px, 2vw, 20px);
    margin-top: -2px;
    flex-shrink: 0;
}

.modal-testimonial {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-testimonial-stars {
    color: #fbbf24;
    font-size: 14px;
    margin-bottom: 10px;
}

.modal-testimonial-text {
    font-size: 13px;
    font-style: italic;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 12px;
}

.modal-testimonial-author {
    display: flex;
    align-items: center;
}

.modal-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #334155;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
}

.modal-author-info {
    display: flex;
    flex-direction: column;
}

.modal-author-name {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

.modal-author-role {
    font-size: 11px;
    color: #94a3b8;
}

/* Modal Right Column: Form Area */
.modal-right {
    flex: 0 0 60%;
    background: #ffffff;
    padding: clamp(24px, 4vw, 48px);
    display: flex;
    flex-direction: column;
    position: relative;
}

.modal-close-btn {
    position: absolute;
    top: clamp(16px, 2.5vw, 24px);
    right: clamp(16px, 2.5vw, 24px);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 18px;
    z-index: 10;
    padding: 0;
}

.modal-close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.modal-form-header {
    margin-bottom: clamp(20px, 3vw, 32px);
    text-align: left;
}

.modal-form-title {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.modal-form-subtitle {
    font-size: clamp(13px, 1.5vw, 15px);
    color: #64748b;
}

.modal-form-grid {
    display: grid;
    gap: 20px;
}

/* Floating Label Input Style */
.modal-input-group {
    position: relative;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 100%;
}

.modal-input-group:hover {
    border-color: #cbd5e1;
}

.modal-input-group:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.modal-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 20px;
    transition: color 0.3s;
    pointer-events: none;
}

.modal-input-group:focus-within .modal-input-icon {
    color: #2563eb;
}

.modal-floating-input {
    width: 100%;
    height: 56px !important;
    padding: 20px 16px 4px 48px !important;
    border: none !important;
    background: transparent;
    font-size: 15px;
    color: #0f172a;
    border-radius: 8px !important;
    outline: none;
    font-family: 'MiSans', sans-serif;
    font-weight: 500;
}

.modal-floating-label {
    position: absolute;
    left: 48px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 15px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    background: transparent;
}

.modal-floating-input:focus ~ .modal-floating-label,
.modal-floating-input:not(:placeholder-shown) ~ .modal-floating-label {
    top: 14px;
    font-size: 11px;
    color: #2563eb;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Captcha Section */
.modal-captcha-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 16px;
}

.modal-captcha-display {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-captcha-img {
    flex: 1;
    height: 56px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Courier New', monospace;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 4px;
    color: #334155;
    text-decoration: line-through;
    background-image: linear-gradient(45deg, #e2e8f0 25%, transparent 25%, transparent 75%, #e2e8f0 75%, #e2e8f0),
    linear-gradient(45deg, #e2e8f0 25%, transparent 25%, transparent 75%, #e2e8f0 75%, #e2e8f0);
    background-size: 10px 10px;
    background-position: 0 0, 5px 5px;
    position: relative;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

/*.modal-captcha-img::after {*/
/*    content: '4K82R';*/
/*    position: relative;*/
/*    z-index: 1;*/
/*}*/

.modal-refresh-btn {
    width: 48px;
    height: 56px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
}

.modal-refresh-btn:hover {
    background: #f8fafc;
    color: #2563eb;
    border-color: #cbd5e1;
}

.modal-checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-top: 4px;
    gap: 10px;
}

.modal-checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    cursor: pointer;
    accent-color: #2563eb;
}

.modal-checkbox-group label {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    cursor: pointer;
}

.modal-submit-btn {
    width: 100%;
    height: 56px;
    background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4);
    margin-top: 8px;
}

.modal-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(37, 99, 235, 0.5);
    background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 100%);
}

.modal-submit-btn i {
    transition: transform 0.2s;
}

.modal-submit-btn:hover i {
    transform: translateX(4px);
}

.modal-form-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.modal-form-footer i {
    color: #10b981;
}

/* Modal Responsive */
@media (max-width: 768px) {
    .modal-container {
        flex-direction: column;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-left {
        flex: none;
        padding: 24px;
    }

    .modal-right {
        flex: none;
        padding: 24px;
    }

    .modal-captcha-wrapper {
        grid-template-columns: 1fr;
    }

    .modal-captcha-display {
        gap: 8px;
    }

    .modal-captcha-img {
        flex: 1;
    }
}
.modalSubmitBtnTips{
    color: red;
}

