:root {
    --bg: #f1f6ff;
    --panel: #ffffff;
    --primary: #2f7efc;
    --primary-soft: #e3edff;
    --text: #1f2a37;
    --muted: #7c8aa5;
    --success: #15c168;
    --danger: #f05252;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Segoe UI', 'PingFang SC', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    position: relative;
    overflow-x: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    width: 60vw;
    height: 60vw;
    max-width: 900px;
    max-height: 900px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    opacity: 0.6;
    animation: floatGlow 18s ease-in-out infinite;
}

body::before {
    background: rgba(47, 126, 252, 0.35);
    top: -20%;
    left: -10%;
    animation-delay: 0s;
}

body::after {
    background: rgba(21, 193, 104, 0.22);
    bottom: -30%;
    right: -15%;
    animation-delay: 6s;
}

@keyframes floatGlow {
    0% { transform: translate3d(0,0,0) scale(1); opacity: 0.5; }
    50% { transform: translate3d(5%, -3%, 0) scale(1.05); opacity: 0.8; }
    100% { transform: translate3d(-3%, 4%, 0) scale(1); opacity: 0.5; }
}

.wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.card {
    width: min(720px, 100%);
    background: var(--panel);
    border-radius: 32px;
    padding: 48px;
    border: 1px solid var(--primary-soft);
    box-shadow: 0 35px 100px rgba(47, 126, 252, 0.18);
    position: relative;
    z-index: 1;
}

.hero {
    text-align: center;
    margin-bottom: 32px;
}

.hero h1 {
    margin: 0;
    font-size: 40px;
}

.hero p {
    color: var(--muted);
    margin-top: 10px;
    font-size: 16px;
}

label {
    display: block;
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 6px;
}

input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--primary-soft);
    background: #f9fbff;
    color: var(--text);
    font-size: 16px;
    margin-bottom: 20px;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(47, 126, 252, 0.2);
    outline: none;
}

button {
    width: 100%;
    border: none;
    padding: 14px 20px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(120deg, #5fa9ff, #2f7efc);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(47, 126, 252, 0.25);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-top: 36px;
}

.info-card {
    background: #f7f9ff;
    border-radius: 18px;
    padding: 18px;
    border: 1px solid var(--primary-soft);
}

.info-card h4 {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
    letter-spacing: 0.08em;
}

.info-card strong {
    display: block;
    margin-top: 10px;
    font-size: 20px;
    color: var(--text);
}

.info-card span {
    color: var(--muted);
    font-size: 13px;
    display: block;
    margin-top: 8px;
}

.apply-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    letter-spacing: 0.3px;
}

.apply-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.apply-btn:hover::before {
    left: 100%;
}

.apply-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.result {
    margin-top: 32px;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid var(--primary-soft);
    background: #f9fbff;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.badge.success {
    background: rgba(21, 193, 104, 0.12);
    color: var(--success);
}

.badge.danger {
    background: rgba(240, 82, 82, 0.12);
    color: var(--danger);
}

.note {
    margin-top: 12px;
    color: var(--muted);
}

.captcha-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.captcha-overlay.active {
    display: flex;
}

.captcha-modal {
    background: #fff;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.25);
    width: min(370px, 90%);
    height: 230px;
}

@media (max-width: 520px) {
    .card {
        padding: 32px 22px;
    }

    .hero h1 {
        font-size: 30px;
    }
}

