:root {
    --iq-red: #a20f23;
    --iq-red-dark: #850918;
    --iq-navy: #102f42;
    --iq-teal: #007f88;
    --iq-bg: #f4f9fb;
    --iq-line: #d8e8ed;
    --iq-muted: #5d7180;
    --iq-shadow: 0 22px 60px rgba(16, 47, 66, .11);
}

* { box-sizing: border-box; }

body.iqc-public-page {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(180deg, #ffffff 0%, #eef7f9 100%);
    color: var(--iq-navy);
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: 0;
}

a { color: inherit; }

.iqc-site-header,
.iqc-shell {
    width: min(1240px, calc(100% - 36px));
    margin: 0 auto;
}

.iqc-site-header {
    position: sticky;
    top: 10px;
    z-index: 10;
    margin-top: 12px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(0, 127, 143, .16);
    border-radius: 20px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 14px 42px rgba(16, 47, 66, .09);
    backdrop-filter: blur(14px);
}

.iqc-brand {
    min-width: 235px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.iqc-brand img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    padding: 5px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(16, 47, 66, .12);
}

.iqc-brand span {
    display: grid;
    gap: 2px;
    color: #426071;
    font-size: 12px;
    font-weight: 800;
}

.iqc-brand strong {
    color: var(--iq-navy);
    font-size: 18px;
    line-height: 1;
}

.iqc-site-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    flex-wrap: wrap;
}

.iqc-site-nav a {
    padding: 12px 13px;
    border-radius: 12px;
    color: #405c6d;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.iqc-site-nav a:hover {
    background: #edf8fa;
    color: var(--iq-teal);
}

.iqc-menu-toggle,
.iqc-menu-button {
    display: none;
}

.iqc-shell {
    padding: 34px 0 60px;
}

.iqc-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
    gap: 24px;
    align-items: stretch;
    margin-bottom: 24px;
}

.iqc-hero-copy,
.iqc-hero-media,
.iqc-form-section,
.iqc-submit,
.iqc-alert {
    border: 1px solid var(--iq-line);
    border-radius: 22px;
    background: rgba(255, 255, 255, .96);
    box-shadow: var(--iq-shadow);
}

.iqc-hero-copy {
    padding: clamp(30px, 5vw, 58px);
    background: linear-gradient(135deg, #fff, #f5fbfc);
}

.iqc-kicker {
    display: block;
    color: var(--iq-teal);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.iqc-hero h1 {
    max-width: 820px;
    margin: 12px 0 14px;
    color: #06185e;
    font-size: clamp(2.4rem, 6vw, 5.2rem);
    line-height: 1.04;
    letter-spacing: 0;
}

.iqc-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--iq-muted);
    font-size: 1.08rem;
    line-height: 1.8;
}

.iqc-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.iqc-event-meta span {
    min-width: 150px;
    padding: 14px 16px;
    border: 1px solid #dbecef;
    border-radius: 16px;
    background: #fff;
    color: var(--iq-navy);
    font-weight: 800;
}

.iqc-event-meta strong {
    display: block;
    margin-bottom: 4px;
    color: var(--iq-red);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.iqc-hero-media {
    overflow: hidden;
    margin: 0;
    min-height: 360px;
}

.iqc-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.iqc-alert {
    margin-bottom: 16px;
    padding: 16px 18px;
    font-weight: 900;
}

.iqc-alert.success {
    border-color: #bfe7d2;
    color: #12663c;
    background: #effaf4;
}

.iqc-alert.error {
    border-color: #f0c1c8;
    color: var(--iq-red-dark);
    background: #fff4f6;
}

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

.iqc-form-section {
    padding: clamp(22px, 4vw, 34px);
}

.iqc-section-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
}

.iqc-section-head > span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #eaf8fa;
    color: var(--iq-teal);
    font-weight: 950;
}

.iqc-section-head h2 {
    margin: 0 0 5px;
    color: var(--iq-navy);
    font-size: 1.4rem;
    letter-spacing: 0;
}

.iqc-section-head p {
    margin: 0;
    color: var(--iq-muted);
}

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

.iqc-grid label {
    display: grid;
    gap: 8px;
    color: var(--iq-navy);
    font-size: 14px;
    font-weight: 900;
}

.iqc-grid label.wide {
    grid-column: 1 / -1;
}

.iqc-grid input,
.iqc-grid select,
.iqc-grid textarea {
    width: 100%;
    min-height: 54px;
    border: 1px solid #cfe2e8;
    border-radius: 16px;
    background: #fbfeff;
    color: var(--iq-navy);
    font: inherit;
    font-weight: 700;
    padding: 0 15px;
    outline: none;
}

.iqc-grid textarea {
    min-height: 150px;
    padding: 14px 15px;
    resize: vertical;
}

.iqc-grid input:focus,
.iqc-grid select:focus,
.iqc-grid textarea:focus {
    border-color: var(--iq-teal);
    box-shadow: 0 0 0 4px rgba(0, 127, 143, .11);
}

.member-only {
    display: none !important;
}

.member-only.visible {
    display: grid !important;
}

.iqc-submit {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.iqc-submit p {
    margin: 0;
    color: var(--iq-muted);
    line-height: 1.6;
}

.iqc-submit button {
    min-width: 190px;
    min-height: 56px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--iq-red), #c51d35);
    color: #fff;
    font-size: 16px;
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 18px 36px rgba(162, 15, 35, .22);
}

.iqc-submit button:disabled {
    opacity: .55;
    cursor: not-allowed;
}

@media (max-width: 980px) {
    .iqc-site-header {
        flex-wrap: wrap;
    }

    .iqc-menu-button {
        width: 44px;
        height: 44px;
        margin-left: auto;
        display: grid;
        place-items: center;
        border: 1px solid var(--iq-line);
        border-radius: 12px;
    }

    .iqc-menu-button span,
    .iqc-menu-button span::before,
    .iqc-menu-button span::after {
        width: 20px;
        height: 2px;
        display: block;
        background: var(--iq-navy);
        content: "";
    }

    .iqc-menu-button span::before { transform: translateY(-7px); }
    .iqc-menu-button span::after { transform: translateY(5px); }

    .iqc-site-nav {
        display: none;
        flex-basis: 100%;
        justify-content: flex-start;
    }

    .iqc-menu-toggle:checked ~ .iqc-site-nav {
        display: flex;
    }

    .iqc-hero,
    .iqc-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .iqc-site-header,
    .iqc-shell {
        width: min(100% - 24px, 1240px);
    }

    .iqc-brand {
        min-width: 0;
    }

    .iqc-brand span {
        display: none;
    }

    .iqc-hero h1 {
        font-size: 2.35rem;
    }

    .iqc-hero-media {
        min-height: 260px;
    }

    .iqc-submit {
        flex-direction: column;
        align-items: stretch;
    }

    .iqc-submit button {
        width: 100%;
    }
}
