.acz-form-shell,
.acz-form-shell * {
    box-sizing: border-box;
}

.acz-form-shell {
    --acz-blue: #205788;
    --acz-blue-dark: #173f64;
    --acz-blue-light: #eef5fb;
    --acz-border: #cbd5df;
    --acz-text: #1f2933;
    --acz-muted: #66727d;
    max-width: 980px;
    margin: 24px auto;
    padding: 30px;
    border: 1px solid #dfe5eb;
    border-radius: 16px;
    background: #fff;
    color: var(--acz-text);
    box-shadow: 0 12px 35px rgba(25, 54, 80, .08);
    font-family: Arial, Helvetica, sans-serif;
}

.acz-form-header {
    display: grid;
    grid-template-columns: minmax(230px, 42%) 1fr;
    align-items: center;
    gap: 26px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e4e9ee;
}

.acz-form-header img {
    width: 100%;
    height: auto;
    display: block;
}

.acz-form-kicker {
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 700;
    color: var(--acz-muted);
}

.acz-form-header h2 {
    margin: 0;
    color: var(--acz-blue);
    font-size: clamp(22px, 3vw, 31px);
    line-height: 1.18;
    text-transform: uppercase;
}

.acz-progress {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 26px 0 30px;
}

.acz-progress__item {
    appearance: none;
    border: 0;
    border-radius: 10px;
    background: #edf1f5;
    color: #66727d;
    padding: 10px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s ease;
}

.acz-progress__item span {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    font-size: 13px;
}

.acz-progress__item.is-active,
.acz-progress__item.is-complete {
    background: var(--acz-blue);
    color: #fff;
}

.acz-progress__item.is-complete {
    background: #3b7b59;
}

.acz-step {
    display: none;
}

.acz-step.is-active {
    display: block;
    animation: aczFadeIn .18s ease;
}

@keyframes aczFadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.acz-step h3 {
    margin: 28px 0 14px;
    color: var(--acz-blue);
    font-size: 21px;
    line-height: 1.25;
}

.acz-step h3:first-child {
    margin-top: 0;
}

.acz-field,
.acz-fieldset {
    margin-bottom: 18px;
}

.acz-field label,
.acz-fieldset legend {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #273644;
}

.acz-field input[type="text"],
.acz-field input[type="date"],
.acz-field input[type="email"],
.acz-field textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid #b9c5cf;
    border-radius: 8px;
    background: #fff;
    color: #17212b;
    font: inherit;
    line-height: 1.4;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.acz-field textarea {
    resize: vertical;
}

.acz-field input:focus,
.acz-field textarea:focus {
    outline: 0;
    border-color: var(--acz-blue);
    box-shadow: 0 0 0 3px rgba(32, 87, 136, .13);
}

.acz-field input:invalid.is-touched,
.acz-field textarea:invalid.is-touched,
.acz-check input:invalid.is-touched + span {
    color: #a32929;
}

.acz-field small {
    display: block;
    margin-top: 7px;
    color: var(--acz-muted);
    line-height: 1.35;
}

.acz-options {
    display: grid;
    gap: 9px;
}

.acz-check,
.acz-radio {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 13px;
    border: 1px solid var(--acz-border);
    border-radius: 9px;
    background: #fff;
    cursor: pointer;
    line-height: 1.42;
}

.acz-check:hover,
.acz-radio:hover {
    border-color: #91a9bd;
    background: #fbfdff;
}

.acz-check input,
.acz-radio input {
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    margin: 1px 0 0;
    accent-color: var(--acz-blue);
}

.acz-options--statements .acz-check {
    background: #f9fbfd;
}

.acz-fieldset {
    border: 1px solid var(--acz-border);
    border-radius: 10px;
    padding: 15px;
}

.acz-fieldset legend {
    padding: 0 6px;
}

.acz-fieldset .acz-radio {
    display: inline-flex;
    min-width: 105px;
    margin-right: 8px;
}

.acz-note {
    margin: 14px 0 0;
    padding: 13px 15px;
    border-left: 4px solid #8ca8be;
    background: var(--acz-blue-light);
    color: #56636e;
    font-style: italic;
    line-height: 1.45;
}

.acz-grid {
    display: grid;
    gap: 16px;
}

.acz-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.acz-step-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e5e9ed;
}

.acz-step-actions--end {
    justify-content: flex-end;
}

.acz-btn {
    min-height: 45px;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: .2s ease;
}

.acz-btn:disabled {
    opacity: .6;
    cursor: wait;
}

.acz-btn--primary {
    background: var(--acz-blue);
    color: #fff;
}

.acz-btn--primary:hover:not(:disabled) {
    background: var(--acz-blue-dark);
}

.acz-btn--secondary {
    border-color: #b7c3cd;
    background: #fff;
    color: #314252;
}

.acz-btn--secondary:hover:not(:disabled) {
    background: #f3f6f8;
}

.acz-form-status {
    display: none;
    margin-top: 22px;
    padding: 14px 16px;
    border-radius: 9px;
    line-height: 1.45;
}

.acz-form-status.is-visible {
    display: block;
}

.acz-form-status.is-working {
    background: #edf5fb;
    color: #234f72;
}

.acz-form-status.is-success {
    background: #eaf6ed;
    color: #245d35;
}

.acz-form-status.is-error {
    background: #fdecec;
    color: #8a2525;
}

.acz-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

.acz-form-message {
    max-width: 850px;
    margin: 25px auto;
    padding: 15px 18px;
    border-radius: 8px;
}

.acz-form-message--warning {
    background: #fff5dc;
    color: #755414;
}

@media (max-width: 760px) {
    .acz-form-shell {
        padding: 20px 16px;
        border-radius: 10px;
    }

    .acz-form-header {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .acz-form-header img {
        max-width: 620px;
    }

    .acz-progress__item {
        flex-direction: column;
        font-size: 11px;
        gap: 4px;
    }

    .acz-grid--2 {
        grid-template-columns: 1fr;
    }
}
