:root {
    --navy:#071d49;
    --navy-dark:#071b45;
    --navy-mid:#1b4387;
    --blue:#1c4fb5;
    --cyan:#35c8d4;
    --line:#d9e1ee;
    --text:#0e1a34;
    --danger:#ef4444;
    --muted:#94a3b8;
    --panel:#ffffff;
}

* { box-sizing: border-box; }
html, body {
    margin: 0;
    min-height: 100%;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: var(--text);
}

body {
    background:
            radial-gradient(circle at 8% 12%, rgba(53,200,212,.12), transparent 27%),
            linear-gradient(135deg,#eef6fb 0%,#f5f7fc 55%,#eaf0f9 100%);
    min-height: 100vh;
    padding: 18px;
}

.shell {
    width: min(1080px, 100%);
    min-height: 820px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 38% 62%;
    border-radius: 34px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 28px 80px rgba(25,46,85,.16);
}

.brand-panel {
    position: relative;
    padding: 50px 42px 34px;
    color: #fff;
    background:
            radial-gradient(circle at 80% 8%, rgba(53,200,212,.16), transparent 25%),
            radial-gradient(circle at 25% 65%, rgba(42,91,176,.30), transparent 34%),
            linear-gradient(160deg,#071735 0%,#0c285b 56%,#143b79 100%);
    overflow: hidden;
}

.brand-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .15;
    background-image: radial-gradient(rgba(255,255,255,.82) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.brand-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.logo-mark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.08);
    box-shadow: 0 10px 30px rgba(0,0,0,.22);
}

.logo-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.brand-name {
    margin: 30px 0 4px;
    font-size: 22px;
    font-weight: 850;
    letter-spacing: .2px;
}

.brand-tag {
    margin: 0;
    color: #b8c7df;
    font-size: 16px;
}

.hero-title {
    margin: 50px 0 18px;
    font-size: 35px;
    line-height: 1.12;
    font-weight: 850;
    max-width: 340px;
}

.hero-copy {
    margin: 0;
    max-width: 335px;
    color: #d1daea;
    font-size: 17px;
    line-height: 1.7;
}

.benefits {
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 16px;
}

.benefits li {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #f3f7ff;
    font-size: 16px;
}

.check {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.2);
    display: grid;
    place-items: center;
    color: #45d6de;
    background: rgba(255,255,255,.07);
    font-weight: 800;
}

.copyright {
    margin-top: auto;
    color: #9fb0cc;
    font-size: 14px;
    padding-top: 44px;
}

.form-panel {
    padding: 50px 52px 34px;
    background: var(--panel);
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

h1 {
    font-size: 26px;
    margin: 0;
    font-weight: 850;
}

.step {
    background: #eef2fb;
    color: #2146a3;
    font-size: 13px;
    font-weight: 750;
    padding: 8px 14px;
    border-radius: 999px;
}

.form-grid {
    display: grid;
    gap: 18px;
}

.field-group {
    display: grid;
    gap: 7px;
}

.field-label {
    font-size: 14px;
    font-weight: 750;
    color: var(--blue);
    padding-left: 15px;
}

.required {
    color: var(--danger);
    margin-left: 3px;
}

.field {
    height: 58px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg,#f8faff,#f5f7fb);
    border-radius: 14px;
    display: flex;
    align-items: center;
    transition: .2s ease;
    overflow: hidden;
}

.field:focus-within {
    border-color: #7ba5ff;
    box-shadow: 0 0 0 4px rgba(22,93,255,.08);
    background: #fff;
}

.icon {
    width: 52px;
    min-width: 52px;
    height: 100%;
    display: grid;
    place-items: center;
    color: #1e63d6;
}

.icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

input, select {
    border: 0;
    outline: 0;
    background: transparent;
    width: 100%;
    height: 100%;
    font: inherit;
    color: var(--text);
    font-size: 16px;
}

input::placeholder { color: #9aa5b5; }

select {
    appearance: none;
    padding-right: 36px;
    cursor: pointer;
}

.select-wrap {
    position: relative;
    flex: 1;
    height: 100%;
}

.phone-field {
    padding: 0;
}

.phone-icon {
    border-right: 1px solid var(--line);
}

.phone-prefix {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    border-right: 1px solid var(--line);
    white-space: nowrap;
    font-weight: 750;
    color: #15233d;
    background: rgba(255,255,255,.28);
}

.phone-prefix .flag {
    width: 18px;
    height: 13px;
    border-radius: 2px;
    background: #0b6b39;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 9px;
    font-weight: 900;
}

.phone-input {
    padding: 0 16px;
}

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

.submit {
    margin-top: 4px;
    height: 64px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(90deg,var(--navy-mid) 0%,var(--navy-dark) 100%);
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(7,29,73,.22);
    transition: .2s ease;
}

.submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(7,29,73,.28);
}

.submit span {
    margin-left: 10px;
    font-size: 22px;
    vertical-align: -1px;
}

.privacy {
    text-align: center;
    color: #93a0b2;
    font-size: 13px;
    margin: 14px 0 0;
}

.hidden { display: none !important; }

.alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 18px;
}

.success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 18px;
}

@media (max-width: 900px) {
    body { padding: 0; }
    .shell {
        grid-template-columns: 1fr;
        border-radius: 0;
        min-height: 100vh;
    }
    .brand-panel { padding: 34px 28px; }
    .hero-title { margin-top: 34px; font-size: 30px; }
    .hero-copy { max-width: 540px; }
    .copyright { display: none; }
    .form-panel { padding: 34px 28px 40px; }
}

@media (max-width: 620px) {
    .two-col { grid-template-columns: 1fr; }
    .form-panel { padding: 28px 18px 34px; }
    .brand-panel { padding: 28px 22px; }
    .shell { box-shadow: none; }
    .phone-prefix { padding: 0 10px; }
    .phone-input { padding: 0 12px; }
}