:root {
    --bg: #f4f7fb;
    --card: #ffffff;
    --primary: #1456d9;
    --primary-dark: #0d3e9f;
    --text: #172033;
    --muted: #667085;
    --border: #d9e0ea;
    --danger-bg: #fff2f0;
    --danger: #b42318;
    --success: #16a34a;
    --shadow: 0 20px 60px rgba(21, 42, 82, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(20, 86, 217, 0.13), transparent 32%),
        linear-gradient(135deg, #f6f8fc 0%, #eef3fb 100%);
    color: var(--text);
}

.page-shell {
    width: min(1120px, calc(100% - 32px));
    margin: 48px auto;
    display: grid;
    grid-template-columns: 0.9fr 1.35fr;
    gap: 28px;
    align-items: start;
}

.hero-panel {
    position: sticky;
    top: 28px;
    padding: 42px;
    border-radius: 28px;
    color: #fff;
    background: linear-gradient(145deg, #1746a2, #1677e8);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero-panel::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -70px;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.10);
}

.brand-logo {
    position: relative;
    z-index: 1;
    display: inline-flex;
    width: min(245px, 100%);
    margin-bottom: 22px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(4, 31, 69, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand-logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(4, 31, 69, 0.24);
}

.brand-logo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.brand-badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.hero-panel h1 {
    position: relative;
    z-index: 1;
    margin: 22px 0 16px;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.08;
}

.hero-panel p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.75;
}

.hero-note {
    position: relative;
    z-index: 1;
    margin-top: 30px;
    padding: 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    line-height: 1.6;
}

.form-card {
    padding: 34px;
    background: var(--card);
    border: 1px solid rgba(217, 224, 234, 0.8);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.full-width {
    grid-column: 1 / -1;
}

label {
    font-size: 14px;
    font-weight: 750;
}

label span {
    color: #dc2626;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 13px 14px;
    font: inherit;
    color: var(--text);
    background: #fbfcfe;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

textarea {
    resize: vertical;
}

select {
    min-height: 48px;
    cursor: pointer;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(20, 86, 217, 0.12);
}

.checkbox-field label {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 16px;
    border-radius: 14px;
    background: #f7f9fc;
    color: var(--muted);
    font-weight: 600;
    line-height: 1.55;
}

.checkbox-field input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.checkbox-field label span {
    color: inherit;
}

.submit-button {
    width: 100%;
    margin-top: 24px;
    border: 0;
    border-radius: 15px;
    padding: 15px 20px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #0f8be9);
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 25px rgba(20, 86, 217, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(20, 86, 217, 0.28);
}

.alert {
    margin-bottom: 24px;
    padding: 16px 18px;
    border-radius: 14px;
    line-height: 1.55;
}

.alert-error {
    color: var(--danger);
    background: var(--danger-bg);
    border: 1px solid #f7c8c2;
}

.alert ul {
    margin: 8px 0 0 18px;
    padding: 0;
}

.site-footer {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
    margin-top: 4px;
    padding: 22px 26px;
    border: 1px solid rgba(217, 224, 234, 0.9);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 35px rgba(21, 42, 82, 0.08);
    backdrop-filter: blur(12px);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-brand img {
    width: 88px;
    height: 44px;
    padding: 5px 8px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #fff;
    object-fit: contain;
}

.footer-brand div,
.footer-company {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-brand strong {
    font-size: 15px;
}

.footer-brand span,
.footer-company span,
.footer-company small {
    color: var(--muted);
    line-height: 1.5;
}

.footer-brand span,
.footer-company small {
    font-size: 12px;
}

.footer-company {
    text-align: center;
}

.footer-company span {
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
}

.footer-link {
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
}

@media (max-width: 850px) {
    .page-shell {
        grid-template-columns: 1fr;
        margin: 24px auto;
    }

    .hero-panel {
        position: static;
    }

    .site-footer {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        justify-content: center;
    }
}


@media (max-width: 620px) {
    .page-shell {
        width: min(100% - 20px, 1120px);
    }

    .hero-panel,
    .form-card {
        padding: 24px;
        border-radius: 22px;
    }

    .brand-logo {
        width: min(215px, 100%);
    }

    .site-footer {
        padding: 20px;
        border-radius: 18px;
    }

    .footer-brand {
        flex-direction: column;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: auto;
    }
}
