:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --bg-dark: #0f172a;
    --panel: rgba(30, 41, 59, 0.72);
    --panel-deep: rgba(15, 23, 42, 0.44);
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
    --success: #10b981;
    --danger: #ef4444;
}

* { box-sizing: border-box; }

html { background: var(--bg-dark); }

body {
    min-height: 100vh;
    margin: 0;
    display: grid;
    grid-template-columns: minmax(310px, .72fr) minmax(600px, 1.45fr);
    color: var(--text-main);
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(at 0 0, rgba(99, 102, 241, .18), transparent 48%),
        radial-gradient(at 100% 100%, rgba(99, 102, 241, .1), transparent 48%);
    font: 16px/1.5 'Outfit', 'Segoe UI', sans-serif;
}

.hero {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    overflow: hidden;
    padding: clamp(42px, 6vw, 76px);
    background:
        radial-gradient(circle at 15% 10%, rgba(129, 140, 248, .34), transparent 38%),
        linear-gradient(145deg, rgba(99, 102, 241, .28), rgba(15, 23, 42, .72));
    border-right: 1px solid var(--border);
}

.hero::after {
    content: '';
    position: absolute;
    right: -110px;
    bottom: -110px;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    box-shadow: 0 0 0 38px rgba(255, 255, 255, .025), 0 0 0 76px rgba(255, 255, 255, .018);
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.hero img {
    width: 175px;
    max-height: 72px;
    margin-bottom: 52px;
    object-fit: contain;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    color: #a5b4fc;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

h1 {
    max-width: 470px;
    margin: 0 0 20px;
    font-size: clamp(2.3rem, 4vw, 3.65rem);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -.04em;
    background: linear-gradient(to right, #818cf8, #c084fc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    max-width: 400px;
    margin: 0;
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.7;
}

main {
    width: 100%;
    padding: clamp(32px, 5vw, 68px);
}

form {
    width: min(100%, 880px);
    margin: 0 auto;
    display: grid;
    gap: 20px;
}

.card {
    padding: clamp(24px, 3.5vw, 34px);
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .18);
    backdrop-filter: blur(18px);
}

.title {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
}

.title > b {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(129, 140, 248, .45);
    border-radius: 10px;
    color: #c7d2fe;
    background: rgba(99, 102, 241, .14);
}

.title h2 {
    margin: 2px 0 5px;
    color: var(--text-main);
    font-size: 1.25rem;
    line-height: 1.25;
}

.title p {
    margin: 0;
    color: var(--text-dim);
    font-size: .92rem;
}

.grid { display: grid; gap: 20px; }
.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.separated { margin-top: 20px; }
.full { grid-column: 1 / -1; }

label, legend {
    color: #e2e8f0;
    font-size: .88rem;
    font-weight: 600;
}

input, select, textarea {
    width: 100%;
    min-height: 50px;
    margin-top: 8px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 10px;
    outline: none;
    color: var(--text-main);
    background: rgba(255, 255, 255, .05);
    font: inherit;
    color-scheme: dark;
    transition: border-color .2s, background .2s, box-shadow .2s;
}

textarea { min-height: 96px; resize: vertical; }
select option { color: var(--text-main); background: var(--bg-dark); }
input::placeholder, textarea::placeholder { color: #64748b; }
input:focus, select:focus, textarea:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, .08);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .25);
}

fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.options.four { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 8px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.choice span {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 11px 14px;
    color: #cbd5e1;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-align: center;
    transition: all .2s;
}
.choice:hover span { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); }
.choice input:checked + span { color: #c7d2fe; background: rgba(99, 102, 241, .18); border-color: #818cf8; box-shadow: 0 0 0 2px rgba(99, 102, 241, .16); }
.choice input:focus-visible + span { outline: 3px solid rgba(99, 102, 241, .35); outline-offset: 2px; }

.hidden { display: none !important; }
.message { display: none; padding: 14px 16px; border-radius: 10px; font-weight: 600; }
.message.error { display: block; color: #fca5a5; background: rgba(239, 68, 68, .15); border: 1px solid rgba(239, 68, 68, .3); }
.message.success { display: block; color: #6ee7b7; background: rgba(16, 185, 129, .15); border: 1px solid rgba(16, 185, 129, .3); }

button {
    width: 100%;
    min-height: 52px;
    padding: 14px 24px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: var(--success);
    box-shadow: 0 8px 22px rgba(16, 185, 129, .22);
    font: 600 1rem 'Outfit', 'Segoe UI', sans-serif;
    cursor: pointer;
    transition: transform .2s, filter .2s;
}
button:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.06); }
button:disabled { opacity: .5; cursor: not-allowed; filter: grayscale(1); }
.company { margin: 2px 0 0; color: var(--text-dim); text-align: center; font-size: .8rem; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 960px) {
    body { grid-template-columns: minmax(270px, .65fr) minmax(500px, 1.35fr); }
    .hero { padding: 38px; }
    main { padding: 38px 28px; }
    .three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    body { display: block; }
    .hero { position: relative; height: auto; min-height: 285px; padding: 36px 24px; border-right: 0; border-bottom: 1px solid var(--border); }
    .hero img { width: 145px; margin-bottom: 28px; }
    h1 { margin-bottom: 12px; font-size: 2.25rem; }
    .hero p { font-size: .95rem; line-height: 1.55; }
    main { padding: 24px 16px 40px; }
    .card { padding: 24px 20px; border-radius: 16px; }
    .two, .three, .options.four { grid-template-columns: 1fr; }
    .full { grid-column: auto; }
}

@media (max-width: 380px) {
    main { padding-right: 10px; padding-left: 10px; }
    .hero, .card { padding-right: 20px; padding-left: 20px; }
    .options { grid-template-columns: 1fr; }
}
