.iwb-app {
    --iwb-orange: #f28500;
    --iwb-orange-dark: #d96e00;
    --iwb-ink: #282828;
    --iwb-muted: #666;
    --iwb-line: #e5e5e5;
    --iwb-soft: #fff8ef;
    color: var(--iwb-ink);
    font-family: inherit;
    margin: 18px auto;
    max-width: 920px;
}

.iwb-app * {
    box-sizing: border-box;
}

.iwb-app [hidden] {
    display: none !important;
}

.iwb-shell {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(25, 25, 25, .08);
    overflow: hidden;
    padding: clamp(22px, 4vw, 42px);
}

.iwb-shell--registration {
    margin: 0 auto;
    max-width: 760px;
    padding: 20px 24px 24px;
}

.iwb-hero {
    margin: -20px -24px 16px;
    padding: 19px 24px 16px;
    position: relative;
}

.iwb-hero::before {
    background: var(--iwb-orange);
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.iwb-hero h2,
.iwb-complete h2 {
    color: var(--iwb-ink);
    font-size: clamp(24px, 4vw, 31px);
    line-height: 1.18;
    margin: 0;
    text-align: center;
}

.iwb-instructions {
    background: var(--iwb-soft);
    border-left: 4px solid var(--iwb-orange);
    border-radius: 10px;
    margin-bottom: 16px;
    padding: 11px 14px;
}

.iwb-instructions strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

.iwb-instructions p {
    font-size: 14px;
    line-height: 1.45;
    margin: 0;
}

.iwb-required {
    color: #555;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 10px;
    text-align: center;
}

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

.iwb-grid label {
    margin: 0;
    position: relative;
}

.iwb-grid input {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    font: inherit;
    min-height: 48px;
    padding: 10px 13px;
    width: 100%;
}

.iwb-grid input:focus,
.iwb-option:focus-within {
    border-color: var(--iwb-orange);
    box-shadow: 0 0 0 3px rgba(242, 133, 0, .16);
    outline: none;
}

.iwb-grid input::placeholder {
    color: #666;
    opacity: 1;
}

.iwb-phone > span {
    color: #777;
    font-size: 11px;
    font-weight: 600;
    left: 14px;
    pointer-events: none;
    position: absolute;
    top: 5px;
    z-index: 1;
}

.iwb-phone input {
    padding-bottom: 5px;
    padding-top: 18px;
}

.iwb-sr-only,
.iwb-honeypot {
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.iwb-button {
    appearance: none;
    background: var(--iwb-orange);
    border: 0;
    border-radius: 11px;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    min-height: 48px;
    padding: 12px 22px;
    transition: background .18s ease, transform .18s ease;
}

.iwb-button:hover {
    background: var(--iwb-orange-dark);
    color: #fff;
    transform: translateY(-1px);
}

.iwb-button:disabled {
    cursor: not-allowed;
    opacity: .45;
    transform: none;
}

.iwb-button--wide {
    margin-top: 14px;
    width: 100%;
}

.iwb-button--secondary {
    background: #ececec;
    color: #333;
}

.iwb-button--secondary:hover {
    background: #ddd;
    color: #222;
}

.iwb-progress-meta {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.iwb-progress-meta span {
    color: var(--iwb-muted);
    font-weight: 700;
}

.iwb-progress {
    background: #ececec;
    border-radius: 999px;
    height: 9px;
    overflow: hidden;
}

.iwb-progress span {
    background: linear-gradient(90deg, var(--iwb-orange), #ffad3d);
    display: block;
    height: 100%;
    transition: width .25s ease;
}

.iwb-test-instructions {
    background: var(--iwb-soft);
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
    margin: 18px 0;
    padding: 11px 14px;
    text-align: center;
}

.iwb-question {
    border: 0;
    margin: 0;
    padding: 0;
}

.iwb-question legend {
    color: var(--iwb-ink);
    float: left;
    font-size: clamp(21px, 3vw, 27px);
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 20px;
    width: 100%;
}

.iwb-question legend + * {
    clear: both;
}

.iwb-options {
    display: grid;
    gap: 10px;
}

.iwb-option {
    align-items: center;
    background: #fff;
    border: 1px solid var(--iwb-line);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    font-size: 16px;
    gap: 12px;
    line-height: 1.45;
    padding: 14px 16px;
}

.iwb-option:hover,
.iwb-option.is-selected {
    background: var(--iwb-soft);
    border-color: var(--iwb-orange);
}

.iwb-option input {
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    width: 1px;
}

.iwb-navigation {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: 24px;
}

.iwb-navigation .iwb-button:last-child {
    margin-left: auto;
}

.iwb-message {
    border-radius: 10px;
    line-height: 1.5;
    margin: 14px 0;
    padding: 12px 14px;
}

.iwb-message--error {
    background: #fff0f0;
    border-left: 4px solid #c62828;
    color: #8e1d1d;
}

.iwb-complete {
    padding: 50px 25px;
    text-align: center;
}

.iwb-complete p {
    color: var(--iwb-muted);
    font-size: 17px;
    margin: 12px 0 0;
}

.iwb-complete__icon {
    align-items: center;
    background: #e7f6eb;
    border-radius: 50%;
    color: #257c3b;
    display: inline-flex;
    font-size: 34px;
    font-weight: 900;
    height: 72px;
    justify-content: center;
    margin-bottom: 20px;
    width: 72px;
}

@media (max-width: 700px) {
    .iwb-app {
        margin: 10px auto;
    }

    .iwb-shell {
        border-radius: 14px;
    }

    .iwb-shell--registration {
        padding: 18px 16px 20px;
    }

    .iwb-hero {
        margin: -18px -16px 14px;
        padding: 18px 16px 14px;
    }

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

    .iwb-navigation .iwb-button {
        flex: 1;
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .iwb-app *,
    .iwb-app *::before,
    .iwb-app *::after {
        transition: none !important;
    }
}
