:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #7c3aed;
    --text: #0f172a;
    --muted: #64748b;
    --border: #dbe4f0;
    --surface: #ffffff;
    --danger: #dc2626;
    --success: #15803d;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: Tahoma, Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top right, rgba(124,58,237,.16), transparent 30%),
        radial-gradient(circle at bottom left, rgba(37,99,235,.16), transparent 30%),
        linear-gradient(135deg, #eef4ff, #f8fafc);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.splash-body {
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 20%, rgba(124,58,237,.4), transparent 35%),
        radial-gradient(circle at 85% 80%, rgba(37,99,235,.42), transparent 35%),
        linear-gradient(135deg, #081229, #101f46 55%, #111827);
    color: #fff;
}

.splash-page {
    min-height: 100vh;
    padding: 24px;
    display: grid;
    place-items: center;
}

.splash-card {
    width: min(92vw, 560px);
    padding: 46px 32px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 34px;
    text-align: center;
    background: rgba(255,255,255,.09);
    backdrop-filter: blur(18px);
    box-shadow: 0 30px 80px rgba(0,0,0,.35);
    animation: enter .7s ease both;
}

.splash-logo {
    width: 45%;
    max-width: 1000px;
    min-width: 450px;
    height: auto;
    display: block;
    margin: 0 auto 30px;
}

.splash-card h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 6vw, 44px);
}

.splash-card p {
    margin: 0 auto 30px;
    max-width: 420px;
    color: #dbeafe;
    line-height: 1.9;
}

.loader {
    width: 54px;
    height: 54px;
    margin: auto;
    border: 5px solid rgba(255,255,255,.18);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

.loading-text { margin-top: 15px; color: #bfdbfe; font-size: 14px; }

.form-page {
    width: min(100% - 32px, 1120px);
    min-height: calc(100vh - 56px);
    margin: 28px auto;
    display: grid;
    grid-template-columns: .95fr 1.25fr;
    overflow: hidden;
    border-radius: 32px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 30px 80px rgba(15,23,42,.14);
}

.visual-panel {
    padding: 42px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(145deg, #1d4ed8, #6d28d9);
}

.brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    font-weight: 800;
    font-size: 25px;
    width: 100%;
}
    .brand img {
        width: 200px;
        margin-left: auto;
        margin-right: 0;
        display: block;
    }

.visual-copy h2 {
    margin: 0 0 14px;
    font-size: clamp(30px, 4vw, 45px);
    line-height: 1.3;
}

.visual-copy p { margin: 0; color: #e0e7ff; line-height: 2; }

.hero-image {
    width: 100%;
    margin: 30px auto;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(15,23,42,.18);
}

.visual-note { color: #dbeafe; font-size: 13px; }

.form-panel { padding: 42px; }

.form-header { margin-bottom: 28px; }
.form-header .eyebrow { color: var(--primary); font-weight: 700; font-size: 14px; }
.form-header h1 { margin: 8px 0 10px; font-size: 31px; }
.form-header p { margin: 0; color: var(--muted); line-height: 1.8; }

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group.full { grid-column: 1 / -1; }

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #334155;
    font-size: 14px;
    font-weight: 700;
}

.form-control {
    width: 100%;
    min-height: 52px;
    padding: 13px 15px;
    border: 1px solid var(--border);
    border-radius: 15px;
    outline: none;
    font: inherit;
    color: var(--text);
    background: #f8fafc;
    transition: .2s ease;
}

.form-control:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37,99,235,.1);
}

textarea.form-control {
    min-height: 125px;
    resize: vertical;
    line-height: 1.8;
}

.validation-error {
    display: block;
    margin-top: 6px;
    color: var(--danger);
    font-size: 12px;
}

.submit-button,
.secondary-button {
    width: 100%;
    min-height: 54px;
    border: 0;
    border-radius: 16px;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    transition: .2s ease;
}

.submit-button {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 14px 30px rgba(37,99,235,.22);
}

.submit-button:hover { transform: translateY(-2px); }

.message {
    display: block;
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    text-align: center;
    font-weight: 700;
}

.error { color: #991b1b; background: #fee2e2; border: 1px solid #fca5a5; }
.success { color: var(--success); background: #dcfce7; border: 1px solid #86efac; }

.success-page {
    min-height: 100vh;
    padding: 24px;
    display: grid;
    place-items: center;
}

.success-card {
    width: min(100%, 560px);
    padding: 42px 32px;
    border-radius: 30px;
    text-align: center;
    background: #fff;
    box-shadow: 0 30px 80px rgba(15,23,42,.14);
}

.success-card img { width: 180px; margin: 0 auto 22px; }
.success-card h1 { margin: 0 0 12px; }
.success-card p { margin: 0 0 24px; color: var(--muted); line-height: 1.9; }

.secondary-button {
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--primary);
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes enter {
    from { opacity: 0; transform: translateY(22px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 880px) {
    .form-page { grid-template-columns: 1fr; }
    .visual-panel { padding: 32px 26px; }
    .hero-image { max-height: 280px; object-fit: contain; }
}

@media (max-width: 600px) {
    .form-page {
        width: 100%;
        min-height: 100vh;
        margin: 0;
        border-radius: 0;
    }
    .form-panel { padding: 30px 20px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-group.full { grid-column: auto; }
}
