.nf-calculator {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    font-family: inherit;
}

.nf-header {
    margin-bottom: 35px;
}

.nf-header h2 {
    margin: 0 0 10px;
    font-size: 32px;
}

.nf-header p {
    margin: 0;
    color: #666;
}

.nf-step {
    display: none;
}

.nf-step.active {
    display: block;
}

.nf-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.nf-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.nf-field input,
.nf-field select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    font-size: 16px;
    box-sizing: border-box;
}

.nf-field input::placeholder,
.nf-field select:invalid {
    color: #9a9a9a;
}

.nf-field select:valid {
    color: #111;
}

.nf-navigation {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
}

.nf-next,
.nf-prev,
.nf-submit {
    padding: 14px 26px;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
}

.nf-next,
.nf-submit {
    background: #000;
    color: #fff;
}

.nf-prev {
    background: #efefef;
    color: #000;
}

.nf-next:hover,
.nf-submit:hover {
    opacity: 0.85;
}

.nf-prev:hover {
    background: #ddd;
}

.nf-result,
.nf-contact-form {
    margin-top: 12px;
}

.nf-result-heading,
.nf-contact-heading {
    margin-bottom: 24px;
}

.nf-result-kicker {
    display: block;
    margin-bottom: 6px;
    color: #666;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.nf-result-rate {
    padding: 24px;
    margin-bottom: 20px;
    background: #111;
    border-radius: 14px;
    color: #fff;
}

.nf-result-rate span,
.nf-result-item span {
    display: block;
    margin-bottom: 6px;
    color: #666;
    font-size: 14px;
}

.nf-result-rate span {
    color: rgba(255, 255, 255, .75);
}

.nf-result-rate strong {
    font-size: 34px;
}

.nf-result-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.nf-result-item {
    padding: 18px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
}

.nf-result-item strong {
    font-size: 18px;
}

.nf-result-note,
.nf-privacy {
    margin: 24px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.nf-result-actions {
    display: flex;
    gap: 15px;
    margin-top: 28px;
}

.nf-contact-message {
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: 10px;
    background: #f0f0f0;
}

.nf-contact-message.is-success { background: #e8f7ee; color: #146c3a; }
.nf-contact-message.is-error { background: #fceaea; color: #a32121; }
.nf-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.nf-submit:disabled { cursor: wait; opacity: .65; }

.nf-contact-person {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
    padding: 18px;
    background: #f7f7f7;
    border-radius: 14px;
}

.nf-contact-person img {
    width: 74px;
    height: 74px;
    flex: 0 0 74px;
    border-radius: 50%;
    object-fit: cover;
}

.nf-contact-person strong { display: block; margin-bottom: 4px; }
.nf-contact-person p { margin: 0; color: #666; line-height: 1.45; }

@media (max-width: 768px) {
    .nf-calculator {
        padding: 24px;
    }

    .nf-row {
        grid-template-columns: 1fr;
    }

    .nf-result-grid {
        grid-template-columns: 1fr;
    }

    .nf-navigation {
        flex-direction: column;
    }

    .nf-next,
    .nf-prev,
    .nf-submit {
        width: 100%;
    }

    .nf-result-actions {
        flex-direction: column;
    }

    .nf-contact-person { align-items: flex-start; }
}
