.kcp-estimator {
    --kcp-estimator-accent: #26a7df;
    --kcp-estimator-ink: #101820;
    --kcp-estimator-muted: #53616f;
    --kcp-estimator-border: #d9e0e6;
    color: var(--kcp-estimator-ink);
    font-family: inherit;
}

.kcp-estimator * {
    box-sizing: border-box;
}

.kcp-estimator-success,
.kcp-estimator-intro,
.kcp-estimator-box {
    border: 1px solid var(--kcp-estimator-border);
    border-radius: 8px;
    background: #ffffff;
    padding: 1rem;
}

.kcp-estimator-success {
    display: grid;
    gap: 0.25rem;
    margin-bottom: 1rem;
    border-color: rgba(30, 126, 52, 0.35);
    background: #ecfff1;
}

.kcp-estimator-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.kcp-estimator-steps span {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    color: var(--kcp-estimator-muted);
    font-weight: 700;
}

.kcp-estimator-steps span::after {
    content: "";
    height: 1px;
    background: #bfc7cf;
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    z-index: 0;
}

.kcp-estimator-steps span:last-child::after {
    display: none;
}

.kcp-estimator-steps span {
    counter-increment: step;
}

.kcp-estimator-steps span {
    position: relative;
}

.kcp-estimator-steps span {
    font-size: 0;
}

.kcp-estimator-steps span::before {
    content: attr(data-kcp-step-dot);
    width: 36px;
    height: 36px;
    border: 1px solid var(--kcp-estimator-ink);
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    font-size: 1rem;
    background: #ffffff;
    color: var(--kcp-estimator-ink);
    z-index: 1;
}

.kcp-estimator-steps span.is-active::before {
    border-color: var(--kcp-estimator-accent);
    background: var(--kcp-estimator-accent);
    color: #ffffff;
}

.kcp-estimator-steps em {
    display: block;
    grid-column: 1 / -1;
    font-style: normal;
    color: var(--kcp-estimator-accent);
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

.kcp-estimator-panel {
    display: none;
}

.kcp-estimator-panel.is-active {
    display: block;
}

.kcp-estimator-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 2rem;
}

.kcp-estimator-field,
.kcp-estimator fieldset {
    display: grid;
    gap: 0.45rem;
    min-width: 0;
}

.kcp-estimator fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

.kcp-estimator legend,
.kcp-estimator-field span {
    font-weight: 700;
    font-size: 1rem;
}

.kcp-estimator fieldset label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-right: 0.75rem;
}

.kcp-estimator-field-wide {
    grid-column: 1 / -1;
}

.kcp-estimator input[type="text"],
.kcp-estimator input[type="email"],
.kcp-estimator input[type="url"],
.kcp-estimator input[type="number"],
.kcp-estimator select {
    width: 100%;
    min-height: 50px;
    border: 1px solid #8d99a6;
    border-radius: 4px;
    background: #ffffff;
    padding: 0.75rem 1rem;
    font: inherit;
}

.kcp-estimator-actions {
    display: flex;
    margin-top: 1rem;
}

.kcp-estimator-actions-split {
    gap: 1rem;
}

.kcp-estimator-button {
    width: 100%;
    border: 0;
    border-radius: 4px;
    min-height: 50px;
    padding: 0.75rem 1rem;
    background: var(--kcp-estimator-accent);
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.kcp-estimator-button-secondary {
    background: #1e789f;
}

.kcp-estimator-main {
    font-weight: 800;
    font-size: 1rem;
}

.kcp-estimator-note {
    color: var(--kcp-estimator-muted);
    font-size: 0.95rem;
}

.kcp-estimator-warning {
    color: #1e7e34;
    font-weight: 700;
}

.kcp-estimator-discount {
    display: grid;
    gap: 0.35rem;
    text-align: center;
    border: 1px solid #34c759;
    background: #e6f9ec;
    border-radius: 8px;
    color: #1e7e34;
    padding: 1rem;
}

.kcp-estimator-discount span {
    font-size: 1.05rem;
    font-weight: 800;
}

.kcp-estimator-discount small {
    color: #4b5c52;
}

@media (max-width: 760px) {
    .kcp-estimator-steps,
    .kcp-estimator-grid,
    .kcp-estimator-actions-split {
        grid-template-columns: 1fr;
    }

    .kcp-estimator-actions-split {
        display: grid;
    }
}
