:root {
    --font-body: "Inter", sans-serif;
    --font-display: "Playfair Display", serif;
    --color-plum: #771847;
    --color-black: #000000;
    --color-white: #ffffff;
    --color-muted: #f5f5f5;
    --color-ink: #151515;
    --color-soft-plum: #decbd4;
    --color-line: #771847;
    --color-subtle-line: #ead0dc;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--color-white);
    color: var(--color-ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
}

.wma-page {
    width: min(100%, 1120px);
    margin: 0 auto;
    padding: 22px 36px 42px;
}

.step-nav {
    display: grid;
    grid-template-columns: 1fr 56px 1fr 56px 1fr 56px 1fr;
    align-items: center;
    margin-bottom: 48px;
}

.step-box {
    display: grid;
    min-height: 118px;
    place-items: center;
    padding: 18px;
    background: var(--color-muted);
    color: var(--color-plum);
    text-align: center;
    font-size: 13px;
    line-height: 1.45;
}

.step-box.is-active {
    background: var(--color-plum);
    color: var(--color-white);
}

.step-line {
    width: 100%;
    height: 3px;
    background: var(--color-plum);
}

.wma-panel {
    min-height: 380px;
    background: var(--color-muted);
    padding: 72px 96px;
}

.wma-step {
    display: none;
}

.wma-step.is-visible {
    display: block;
}

.section-lead {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 24px;
    color: var(--color-black);
    font-size: 20px;
    line-height: 1.4;
}

.wma-step[data-step="3"] .section-lead {
    display: block;
    margin-bottom: 24px;
    font-size: 20px;
    font-weight: 400;
}

.lead-dot {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border-radius: 50%;
    background: #dedede;
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 54px;
}

.choice-grid.single {
    grid-template-columns: minmax(0, 300px);
    margin-bottom: 0;
}

.assessment-grid {
    margin-bottom: 0;
}

.corporate-only,
[data-assessment-section="organisation"],
[data-assessment-section="hoa"] {
    display: none;
}

.choice-card,
.product-card {
    position: relative;
    display: flex;
    min-height: 58px;
    align-items: center;
    gap: 20px;
    border: 1px solid transparent;
    background: var(--color-white);
    padding: 14px 24px;
    color: var(--color-ink);
    cursor: pointer;
}

.choice-card.is-selected,
.product-card.is-selected {
    background: var(--color-soft-plum);
}

.choice-card.is-disabled {
    cursor: not-allowed;
    opacity: .85;
}

.box-check {
    display: grid;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    place-items: center;
    border: 1px solid #222222;
    background: var(--color-white);
    color: var(--color-plum);
    font-size: 26px;
    line-height: 1;
}

.choice-card:not(.is-selected) .box-check::before,
.product-card:not(.is-selected) .box-check::before {
    content: "";
}

.choice-card.is-selected .box-check::before,
.product-card.is-selected .box-check::before {
    content: "\2713";
    transform: translateY(-3px);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 70px;
    max-width: 860px;
}

.section-note {
    max-width: 820px;
    margin: -10px 0 38px;
    color: var(--color-black);
    font-size: 13px;
    line-height: 1.7;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #777777;
    font-size: 15px;
}

input,
select {
    width: 100%;
    height: 40px;
    border: 0;
    background: var(--color-white);
    color: var(--color-ink);
    padding: 8px 10px;
    font-family: var(--font-body);
    font-size: 15px;
    outline: 1px solid transparent;
}

input:focus,
select:focus {
    outline-color: var(--color-line);
}

.privacy-block {
    margin-top: 50px;
    max-width: 860px;
}

.privacy-block h2 {
    margin: 0 0 8px;
    font-size: 14px;
}

.privacy-block p {
    margin: 0 0 18px;
    font-size: 12px;
    line-height: 1.8;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    margin-top: 8px;
    color: #333333;
    font-size: 13px;
}

.check-row input {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: var(--color-plum);
}

.recaptcha-wrap {
    width: fit-content;
    max-width: 100%;
    margin-top: 18px;
    padding: 10px;
    border: 1px solid var(--color-subtle-line);
    border-left: 4px solid var(--color-plum);
    background: var(--color-white);
    box-shadow: 0 8px 18px rgba(119, 24, 71, .08);
}

.recaptcha-label {
    margin: 0 0 8px;
    color: var(--color-plum);
    font-size: 12px;
    font-weight: 700;
}

.recaptcha-frame {
    min-height: 78px;
    overflow: hidden;
}

.currency-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 56px;
    color: var(--color-black);
    font-size: 15px;
}

.currency-row label {
    margin: 0;
    color: var(--color-black);
    font-size: 15px;
    white-space: nowrap;
}

.currency-row select {
    width: 176px;
    min-width: 176px;
    max-width: 100%;
    height: 38px;
    border: 1px solid var(--color-line);
    border-radius: 0;
    background:
        linear-gradient(45deg, transparent 50%, var(--color-plum) 50%),
        linear-gradient(135deg, var(--color-plum) 50%, transparent 50%),
        var(--color-white);
    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 12px) 50%,
        100% 0;
    background-size: 6px 6px, 6px 6px, 2.4em 100%;
    background-repeat: no-repeat;
    color: var(--color-plum);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    padding: 8px 44px 8px 12px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 16px;
    max-width: 954px;
    margin: 0 auto;
}

.product-section + .product-section {
    margin-top: 54px;
}

.product-heading {
    max-width: 954px;
    margin: 0 auto 18px;
    color: var(--color-plum);
    font-size: 18px;
    line-height: 1.4;
}

.products-grid.single-product {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-left: auto;
}

.product-card {
    min-height: 108px;
    align-items: flex-start;
    gap: 22px;
    border-radius: 4px;
    padding: 18px 24px;
    box-shadow: 0 1px 0 rgba(119, 24, 71, .02);
}

.product-copy strong {
    display: block;
    margin-bottom: 8px;
    color: var(--color-black);
    font-size: 17px;
    line-height: 1.25;
}

.product-copy span {
    display: block;
    color: var(--color-black);
    font-size: 16px;
    line-height: 1.45;
}

.total-payment {
    margin: 44px auto 0;
    max-width: 954px;
    text-align: right;
    color: var(--color-black);
    font-size: 20px;
    font-weight: 400;
}

.payment-copy {
    max-width: 780px;
    font-size: 16px;
}

.payment-copy p {
    margin: 0 0 4px;
}

.payment-copy .payment-reference {
    margin-top: 30px;
}

.upload-box {
    margin-top: 28px;
    background: var(--color-white);
    padding: 24px;
}

.file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.file-picker {
    display: flex;
    align-items: stretch;
    min-height: 36px;
    border: 1px solid var(--color-line);
    background: var(--color-white);
}

.file-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    margin: 0;
    padding: 0 16px;
    background: var(--color-plum);
    color: var(--color-white);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.file-name {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1;
    padding: 0 12px;
    color: #666666;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.helper-text {
    margin: 10px 0 0;
    color: #777777;
    font-size: 13px;
}

.actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 34px;
}

.text-button {
    border: 0;
    background: transparent;
    color: var(--color-plum);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 18px;
}

.submit-button {
    border: 0;
    background: var(--color-plum);
    color: var(--color-white);
    min-width: 180px;
    height: 38px;
    padding: 0 20px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
}

.submit-button:disabled,
.text-button:disabled {
    cursor: wait;
    opacity: .65;
}

.error {
    display: none;
    margin: 0 0 22px;
    padding: 12px 14px;
    border: 1px solid #b73737;
    background: #fff7f7;
    color: #8a1d1d;
    font-size: 14px;
}

.success-panel {
    display: none;
    background: var(--color-muted);
    min-height: 560px;
    padding: 84px 110px;
    text-align: center;
}

.success-panel h1 {
    margin: 0 0 72px;
    color: var(--color-black);
    font-family: var(--font-body);
    font-size: 30px;
}

.success-card {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid var(--color-line);
    background: var(--color-white);
    padding: 58px 44px 40px;
    text-align: left;
}

.success-check {
    position: absolute;
    top: 0;
    left: 50%;
    display: grid;
    width: 58px;
    height: 58px;
    transform: translate(-50%, -50%);
    place-items: center;
    border-radius: 50%;
    background: var(--color-plum);
    color: var(--color-white);
    font-size: 42px;
    line-height: 1;
}

.success-card strong {
    display: block;
    margin-bottom: 30px;
}

.success-card p {
    margin: 0 0 18px;
}

.success-card ol {
    margin: 0 0 22px 22px;
    padding: 0;
}

.success-card small strong {
    display: inline;
    margin: 0;
    color: var(--color-plum);
}

@media (max-width: 860px) {
    .wma-page {
        padding: 24px 14px 32px;
    }

    .step-nav {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 26px;
    }

    .step-line {
        display: none;
    }

    .wma-panel {
        padding: 32px 18px;
    }

    .choice-grid,
    .choice-grid.single,
    .form-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }

    .currency-row {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 28px;
    }

    .currency-row select {
        width: 100%;
        max-width: 260px;
    }

    .total-payment {
        text-align: left;
        font-size: 18px;
    }

    .success-panel {
        padding: 54px 18px;
    }

    .success-panel h1 {
        margin-bottom: 58px;
        font-size: 24px;
    }
}
