.wbc-calculator {
    --wbc-border: #d9e0ea;
    --wbc-soft: #f6f8fb;
    --wbc-ink: #111827;
    --wbc-muted: #5b6678;
    --wbc-accent: #2563eb;
    --wbc-accent-dark: #1d4ed8;
    --wbc-success: #067647;
    --wbc-error: #b42318;
    color: var(--wbc-ink);
    font-family: inherit;
    margin: 32px 0;
}

.wbc-calculator * {
    box-sizing: border-box;
}

.wbc-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 24px;
    align-items: start;
}

.wbc-summary {
    position: sticky;
    top: var(--wbc-sticky-top, 24px);
    z-index: 2;
    align-self: start;
    height: fit-content;
}

.admin-bar .wbc-summary {
    top: calc(var(--wbc-sticky-top, 24px) + 32px);
}

.wbc-main,
.wbc-summary-sticky {
    border: 1px solid var(--wbc-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.wbc-main {
    padding: 28px;
}

.wbc-header {
    margin-bottom: 24px;
}

.wbc-header h2 {
    margin: 0 0 8px;
    color: var(--wbc-ink);
    font-size: 30px;
    line-height: 1.15;
    letter-spacing: 0;
}

.wbc-header p,
.wbc-summary p,
.wbc-group-description,
.wbc-option-description {
    color: var(--wbc-muted);
}

.wbc-header p {
    max-width: 720px;
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}

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

.wbc-group {
    margin: 0;
    padding: 20px;
    border: 1px solid var(--wbc-border);
    border-radius: 8px;
    background: var(--wbc-soft);
}

.wbc-group legend {
    padding: 0 8px;
    color: var(--wbc-ink);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0;
}

.wbc-group-description {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.55;
}

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

.wbc-option {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    min-height: 58px;
    padding: 14px;
    border: 1px solid var(--wbc-border);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.wbc-option:hover,
.wbc-option:has(input:checked) {
    border-color: var(--wbc-accent);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.wbc-option input {
    margin: 3px 0 0;
}

.wbc-option-content {
    display: grid;
    gap: 3px;
}

.wbc-option-title {
    color: var(--wbc-ink);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.wbc-option-description {
    font-size: 13px;
    line-height: 1.45;
}

.wbc-number-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(120px, 180px);
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--wbc-border);
    border-radius: 8px;
    background: #fff;
}

.wbc-number-control span,
.wbc-contact-grid label span {
    color: var(--wbc-ink);
    font-size: 14px;
    font-weight: 700;
}

.wbc-number-control input,
.wbc-select-control select,
.wbc-contact-grid input,
.wbc-contact-grid textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--wbc-border);
    border-radius: 6px;
    background: #fff;
    color: var(--wbc-ink);
    font: inherit;
    line-height: 1.4;
}

.wbc-number-control input,
.wbc-select-control select,
.wbc-contact-grid input {
    padding: 8px 11px;
}

.wbc-select-control {
    display: block;
}

.wbc-contact-grid textarea {
    min-height: 112px;
    padding: 11px;
    resize: vertical;
}

.wbc-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.wbc-contact-grid label {
    display: grid;
    gap: 7px;
}

.wbc-contact-message {
    grid-column: 1 / -1;
}

.wbc-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 46px;
    min-width: 190px;
    padding: 11px 18px;
    border: 0;
    border-radius: 6px;
    background: var(--wbc-accent);
    color: #fff;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 160ms ease, transform 160ms ease;
}

.wbc-submit:hover {
    background: var(--wbc-accent-dark);
}

.wbc-submit:active {
    transform: translateY(1px);
}

.wbc-submit:disabled {
    cursor: wait;
    opacity: 0.72;
}

.wbc-status {
    min-height: 20px;
    color: var(--wbc-muted);
    font-size: 14px;
    line-height: 1.45;
}

.wbc-status[data-state="success"] {
    color: var(--wbc-success);
    font-weight: 700;
}

.wbc-status[data-state="error"] {
    color: var(--wbc-error);
    font-weight: 700;
}

.wbc-summary-sticky {
    padding: 24px;
}

.wbc-summary-kicker {
    display: block;
    margin-bottom: 8px;
    color: var(--wbc-muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.wbc-total {
    display: block;
    margin-bottom: 20px;
    color: var(--wbc-ink);
    font-size: 36px;
    line-height: 1;
    letter-spacing: 0;
}

.wbc-breakdown {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--wbc-border);
}

.wbc-breakdown-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: baseline;
    color: var(--wbc-muted);
    font-size: 14px;
    line-height: 1.35;
}

.wbc-breakdown-row strong {
    color: var(--wbc-ink);
    font-weight: 700;
    white-space: nowrap;
}

.wbc-summary p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 860px) {
    .wbc-layout {
        grid-template-columns: 1fr;
    }

    .wbc-summary {
        position: static;
    }
}

@media (max-width: 782px) {
    .admin-bar .wbc-summary {
        top: calc(var(--wbc-sticky-top, 24px) + 46px);
    }
}

@media (max-width: 640px) {
    .wbc-calculator {
        margin: 22px 0;
    }

    .wbc-main,
    .wbc-summary-sticky {
        padding: 18px;
    }

    .wbc-header h2 {
        font-size: 24px;
    }

    .wbc-group {
        padding: 16px;
    }

    .wbc-contact-grid,
    .wbc-number-control {
        grid-template-columns: 1fr;
    }

    .wbc-submit {
        width: 100%;
    }

    .wbc-total {
        font-size: 30px;
    }
}
