.haco-pc,
.haco-pc * {
    box-sizing: border-box;
}

.haco-pc {
    --haco-pc-ink: #17212b;
    --haco-pc-muted: #5d6974;
    --haco-pc-line: #dce3e8;
    --haco-pc-surface: #f5f7f8;
    --haco-pc-surface-strong: #e9eef1;
    --haco-pc-accent: #c96d1a;
    --haco-pc-accent-dark: #9e4f0c;
    --haco-pc-success: #1f704b;
    --haco-pc-error: #b42318;
    --haco-pc-warning: #8a5800;
    max-width: 980px;
    margin: 32px auto;
    border: 1px solid var(--haco-pc-line);
    border-radius: 18px;
    background: #fff;
    color: var(--haco-pc-ink);
    box-shadow: 0 18px 50px rgba(23, 33, 43, 0.09);
    overflow: hidden;
    font: inherit;
}

.haco-pc button,
.haco-pc input,
.haco-pc select,
.haco-pc textarea {
    font: inherit;
}

.haco-pc__test-banner {
    padding: 12px 24px;
    background: #fff2cf;
    color: var(--haco-pc-warning);
    border-bottom: 1px solid #edd799;
    font-weight: 700;
    text-align: center;
}

.haco-pc__header {
    padding: 38px 42px 28px;
    background: linear-gradient(135deg, var(--haco-pc-ink), #2c3b48);
    color: #fff;
}

.haco-pc__header h2 {
    margin: 4px 0 12px;
    color: #fff;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
}

.haco-pc__header p:last-child {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 17px;
    line-height: 1.65;
}

.haco-pc__eyebrow {
    margin: 0 0 8px;
    color: var(--haco-pc-accent);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.haco-pc__header .haco-pc__eyebrow {
    color: #ffc98f;
}

.haco-pc__progress {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin: 0;
    padding: 0 30px;
    list-style: none;
    border-bottom: 1px solid var(--haco-pc-line);
    background: #fff;
}

.haco-pc__progress li {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 72px;
    color: var(--haco-pc-muted);
    font-size: 14px;
    font-weight: 700;
}

.haco-pc__progress li::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 3px;
    background: transparent;
    content: "";
}

.haco-pc__progress li span {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid var(--haco-pc-line);
    border-radius: 50%;
    background: #fff;
    color: var(--haco-pc-muted);
    font-size: 13px;
}

.haco-pc__progress li.is-active {
    color: var(--haco-pc-ink);
}

.haco-pc__progress li.is-active::after {
    background: var(--haco-pc-accent);
}

.haco-pc__progress li.is-active span,
.haco-pc__progress li.is-complete span {
    border-color: var(--haco-pc-accent);
    background: var(--haco-pc-accent);
    color: #fff;
}

.haco-pc__form {
    padding: 38px 42px 44px;
}

.haco-pc__step {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.haco-pc__step[hidden] {
    display: none !important;
}

.haco-pc__step > legend,
.haco-pc__step > h3 {
    display: block;
    width: 100%;
    margin: 0 0 22px;
    padding: 0;
    color: var(--haco-pc-ink);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    line-height: 1.2;
}

.haco-pc__step > legend:focus,
.haco-pc__step > h3:focus {
    outline: none;
}

.haco-pc__help {
    margin: -10px 0 24px;
    color: var(--haco-pc-muted);
    line-height: 1.65;
}

.haco-pc__field-group {
    margin-bottom: 26px;
}

.haco-pc__label,
.haco-pc__field > span,
.haco-pc__field > label {
    display: block;
    margin-bottom: 8px;
    color: var(--haco-pc-ink);
    font-weight: 750;
}

.haco-pc__label {
    margin-bottom: 12px;
}

.haco-pc__field small,
.haco-pc__service small {
    color: var(--haco-pc-muted);
    font-weight: 400;
}

.haco-pc__choices {
    display: grid;
    gap: 14px;
}

.haco-pc__choices--two,
.haco-pc__grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.haco-pc__choice {
    position: relative;
    display: block;
    cursor: pointer;
}

.haco-pc__choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.haco-pc__choice > span {
    display: flex;
    min-height: 92px;
    flex-direction: column;
    justify-content: center;
    padding: 18px 20px 18px 52px;
    border: 1px solid var(--haco-pc-line);
    border-radius: 12px;
    background: #fff;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.haco-pc__choice > span::before {
    position: absolute;
    top: 50%;
    left: 20px;
    width: 20px;
    height: 20px;
    border: 2px solid #9da8b0;
    border-radius: 50%;
    background: #fff;
    content: "";
    transform: translateY(-50%);
}

.haco-pc__choice strong {
    margin-bottom: 3px;
    color: var(--haco-pc-ink);
}

.haco-pc__choice small {
    color: var(--haco-pc-muted);
}

.haco-pc__choice:hover > span {
    border-color: #b8c2c9;
    transform: translateY(-1px);
}

.haco-pc__choice input:checked + span {
    border-color: var(--haco-pc-accent);
    box-shadow: 0 0 0 3px rgba(201, 109, 26, 0.12);
}

.haco-pc__choice input:checked + span::before {
    border: 6px solid var(--haco-pc-accent);
}

.haco-pc__choice input:focus-visible + span {
    outline: 3px solid rgba(201, 109, 26, 0.24);
    outline-offset: 2px;
}

.haco-pc__grid {
    display: grid;
    gap: 20px;
}

.haco-pc__field {
    display: block;
    margin: 0;
}

.haco-pc__field input,
.haco-pc__field select,
.haco-pc__field textarea {
    width: 100%;
    min-height: 50px;
    padding: 11px 13px;
    border: 1px solid #bcc6cd;
    border-radius: 8px;
    background: #fff;
    color: var(--haco-pc-ink);
    box-shadow: none;
}

.haco-pc__field textarea {
    min-height: 112px;
    resize: vertical;
}

.haco-pc__field input:focus,
.haco-pc__field select:focus,
.haco-pc__field textarea:focus,
.haco-pc__service input:focus {
    border-color: var(--haco-pc-accent);
    outline: 3px solid rgba(201, 109, 26, 0.15);
    outline-offset: 1px;
}

.haco-pc__services {
    display: grid;
    gap: 10px;
}

.haco-pc__service {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 17px 18px;
    border: 1px solid var(--haco-pc-line);
    border-radius: 10px;
    background: #fff;
    cursor: text;
    transition: border-color 160ms ease, background 160ms ease;
}

.haco-pc__service:focus-within {
    border-color: var(--haco-pc-accent);
    background: #fffbf7;
}

.haco-pc__service > span:first-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.haco-pc__m2 {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.haco-pc__m2 input {
    width: 112px;
    height: 46px;
    padding: 8px 40px 8px 10px;
    border: 1px solid #bcc6cd;
    border-radius: 8px;
    background: #fff;
    color: var(--haco-pc-ink);
    text-align: right;
}

.haco-pc__m2 em {
    width: 34px;
    margin-left: -36px;
    color: var(--haco-pc-muted);
    font-style: normal;
    pointer-events: none;
}

.haco-pc__field--postcode {
    max-width: 390px;
    margin-top: 24px;
}

.haco-pc__field--postcode > small {
    display: block;
    margin-top: 7px;
    color: var(--haco-pc-muted);
    line-height: 1.45;
}

.haco-pc__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 32px;
}

.haco-pc__actions--end {
    justify-content: flex-end;
}

.haco-pc__button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border: 1px solid var(--haco-pc-accent);
    border-radius: 8px;
    background: var(--haco-pc-accent);
    color: #fff;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.haco-pc__button:hover {
    border-color: var(--haco-pc-accent-dark);
    background: var(--haco-pc-accent-dark);
    color: #fff;
    transform: translateY(-1px);
}

.haco-pc__button:focus-visible {
    outline: 3px solid rgba(201, 109, 26, 0.25);
    outline-offset: 3px;
}

.haco-pc__button:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}

.haco-pc__button--secondary {
    border-color: #b8c2c9;
    background: #fff;
    color: var(--haco-pc-ink);
}

.haco-pc__button--secondary:hover {
    border-color: var(--haco-pc-ink);
    background: var(--haco-pc-ink);
    color: #fff;
}

.haco-pc__result-card {
    padding: 28px;
    border-radius: 14px;
    background: var(--haco-pc-ink);
    color: #fff;
}

.haco-pc__result-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    color: #fff;
    font-size: clamp(34px, 6vw, 58px);
    font-weight: 850;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.haco-pc__result-separator {
    color: #ffc98f;
    font-weight: 400;
}

.haco-pc__result-tax {
    margin: 8px 0 22px;
    color: rgba(255, 255, 255, 0.7);
}

.haco-pc__result-breakdown {
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.haco-pc__result-list {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.haco-pc__result-list li {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: rgba(255, 255, 255, 0.86);
}

.haco-pc__result-list strong {
    flex: 0 0 auto;
    color: #fff;
}

.haco-pc__result-factors {
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
    line-height: 1.55;
}

.haco-pc__notice {
    margin-top: 18px;
    padding: 18px 20px;
    border: 1px solid #edd799;
    border-radius: 10px;
    background: #fff9e9;
    color: #614000;
}

.haco-pc__notice p {
    margin: 5px 0 0;
    line-height: 1.55;
}

.haco-pc__consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 22px;
    color: var(--haco-pc-muted);
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
}

.haco-pc__consent input {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    margin-top: 2px;
    accent-color: var(--haco-pc-accent);
}

.haco-pc__honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.haco-pc__status {
    display: none;
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: 8px;
    font-weight: 700;
}

.haco-pc__status.is-error,
.haco-pc__status.is-success {
    display: block;
}

.haco-pc__status.is-error {
    border: 1px solid #f0aaa5;
    background: #fff0ef;
    color: var(--haco-pc-error);
}

.haco-pc__status.is-success {
    border: 1px solid #9bcbb6;
    background: #eff9f4;
    color: var(--haco-pc-success);
}

.haco-pc__success {
    display: grid;
    justify-items: center;
    padding: 44px 24px;
    text-align: center;
}

.haco-pc__success > span {
    display: grid;
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
    place-items: center;
    border-radius: 50%;
    background: var(--haco-pc-success);
    color: #fff;
    font-size: 34px;
    font-weight: 800;
}

.haco-pc__success h3 {
    margin: 0 0 8px;
    color: var(--haco-pc-ink);
    font-size: 28px;
}

.haco-pc__success p {
    max-width: 620px;
    margin: 0;
    color: var(--haco-pc-muted);
    line-height: 1.65;
}

.haco-pc-unavailable {
    max-width: 800px;
    margin: 28px auto;
    padding: 18px 20px;
    border: 1px solid #dce3e8;
    border-radius: 10px;
    background: #f5f7f8;
    color: #17212b;
}

@media (max-width: 760px) {
    .haco-pc {
        margin: 18px 0;
        border-radius: 12px;
    }

    .haco-pc__header {
        padding: 28px 22px 24px;
    }

    .haco-pc__progress {
        padding: 0 8px;
    }

    .haco-pc__progress li {
        min-height: 62px;
        flex-direction: column;
        gap: 4px;
        font-size: 11px;
    }

    .haco-pc__progress li span {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }

    .haco-pc__form {
        padding: 28px 20px 32px;
    }

    .haco-pc__choices--two,
    .haco-pc__grid--two {
        grid-template-columns: 1fr;
    }

    .haco-pc__choice > span {
        min-height: 82px;
    }

    .haco-pc__service {
        align-items: flex-start;
        gap: 12px;
    }

    .haco-pc__m2 input {
        width: 94px;
    }

    .haco-pc__actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .haco-pc__actions--end {
        flex-direction: column;
    }

    .haco-pc__button {
        width: 100%;
    }

    .haco-pc__result-price {
        flex-wrap: wrap;
        gap: 5px 9px;
    }
}

@media (max-width: 460px) {
    .haco-pc__service {
        flex-direction: column;
    }

    .haco-pc__m2 {
        width: 100%;
    }

    .haco-pc__m2 input {
        width: 100%;
    }

    .haco-pc__result-card {
        padding: 22px 18px;
    }

    .haco-pc__result-list li {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }
}
