:root {
    --navy: #0b2749;
    --navy-dark: #071b32;
    --blue: #1267c4;
    --red: #c1121f;
    --white: #ffffff;
    --text: #172033;
    --muted: #64748b;
    --background: #f3f5f8;
    --border: #e2e8f0;
    --border-dark: #cbd5e1;
    --success: #16794b;
    --success-bg: #eaf7ef;
    --danger: #b42318;
    --danger-bg: #fdecea;
    --shadow: 0 6px 18px rgba(12, 21, 33, 0.08);
    --max-width: 1120px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text);
    background: var(--background);
}

a {
    color: var(--navy);
    text-decoration: none;
}

/* HEADER */

.lq-site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--navy);
    color: var(--white);
    box-shadow: 0 3px 15px rgba(7, 27, 50, 0.16);
}

.lq-header-inner {
    width: min(var(--max-width), calc(100% - 32px));
    min-height: 74px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 18px;
}

.lq-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--white);
}

.lq-brand:hover {
    color: var(--white);
}

.lq-brand-logo {
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
    display: block;
    object-fit: contain;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

.lq-brand-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.lq-brand-title {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.lq-brand-subtitle {
    margin-top: 3px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.lq-header-login {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 9px;
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    transition: background 0.15s ease;
}

.lq-header-login:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.lq-header-accent {
    height: 3px;
    background: var(--red);
}

/* PAGE */

main {
    width: min(var(--max-width), calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 60px;
}

/* HERO */

.lq-hero {
    margin-bottom: 24px;
    overflow: hidden;
    background: linear-gradient(120deg, #123963 0%, #164c80 100%);
    color: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.lq-hero-main {
    padding: 32px 34px 27px;
}

.lq-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #cfe3fa;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.lq-eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #ef3340;
}

.lq-hero h1 {
    margin: 0 0 12px;
    color: var(--white);
    font-size: clamp(27px, 4vw, 38px);
    line-height: 1.12;
    letter-spacing: -0.025em;
}

.lq-hero p {
    max-width: 880px;
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 15px;
}

.lq-note {
    padding: 15px 34px;
    background: rgba(4, 25, 48, 0.24);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
}

/* ALERTS */

.lq-alert {
    margin-bottom: 22px;
    padding: 16px 18px;
    border-radius: 12px;
}

.lq-alert-success {
    color: var(--success);
    background: var(--success-bg);
    border: 1px solid #bde4cc;
}

.lq-alert-error {
    color: var(--danger);
    background: var(--danger-bg);
    border: 1px solid #f0c3bf;
}

.lq-alert-error ul {
    margin-bottom: 0;
}

/* CARDS */

.lq-card {
    margin-bottom: 22px;
    padding: 25px 27px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.lq-section-header {
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.lq-section-header h2,
.lq-submit-card h2 {
    margin: 0;
    color: var(--navy);
    font-size: 21px;
    line-height: 1.2;
    letter-spacing: -0.015em;
}

.lq-section-header p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
}

/* FIELDS */

.lq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 22px;
}

.lq-field {
    min-width: 0;
}

.lq-field-full {
    grid-column: 1 / -1;
}

.lq-question {
    margin-bottom: 24px;
}

.lq-question:last-child {
    margin-bottom: 0;
}

.lq-question-number {
    margin-bottom: 4px;
    color: var(--red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

label {
    display: block;
    margin-bottom: 7px;
    color: var(--navy);
    font-size: 14px;
    font-weight: 700;
}

.lq-required {
    color: var(--red);
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--border-dark);
    border-radius: 9px;
    background: var(--white);
    color: var(--text);
    font: inherit;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select {
    min-height: 44px;
}

textarea {
    min-height: 105px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(18, 103, 196, 0.12);
}

.lq-help {
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
}

.lq-conditional[hidden] {
    display: none;
}

/* SUBMIT */

.lq-submit-card {
    text-align: center;
    border-top: 3px solid var(--navy);
}

.lq-submit-card p {
    color: var(--muted);
}

.lq-submit {
    min-height: 48px;
    margin-top: 5px;
    padding: 0 30px;
    border: 0;
    border-radius: 10px;
    background: var(--navy);
    color: var(--white);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 5px 14px rgba(11, 39, 73, 0.2);
}

.lq-submit:hover {
    background: var(--navy-dark);
}

.lq-privacy {
    max-width: 760px;
    margin: 13px auto 0;
    color: var(--muted);
    font-size: 11px;
}

/* BOT TRAP */

.lq-honeypot {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* FOOTER */

footer {
    padding: 26px 16px 35px;
    text-align: center;
    color: var(--muted);
    font-size: 12px;
}

/* MOBILE */

@media (max-width: 700px) {

    .lq-header-inner,
    main {
        width: min(100% - 20px, var(--max-width));
    }

    .lq-header-inner {
        min-height: 64px;
    }

    .lq-brand-logo {
        width: 39px;
        height: 39px;
        flex-basis: 39px;
    }

    .lq-brand-title {
        font-size: 14px;
    }

    .lq-brand-subtitle {
        display: none;
    }

    .lq-header-login {
        min-height: 36px;
        padding: 0 11px;
        font-size: 12px;
    }

    main {
        padding: 20px 0 38px;
    }

    .lq-hero-main {
        padding: 24px 20px;
    }

    .lq-note {
        padding: 14px 20px;
    }

    .lq-card {
        padding: 19px 17px;
        border-radius: 13px;
    }

    .lq-grid {
        grid-template-columns: 1fr;
    }

    .lq-field-full {
        grid-column: auto;
    }

    textarea {
        min-height: 120px;
    }

    .lq-submit {
        width: 100%;
    }
}