.calculator-page {
    padding-top: 28px;
    padding-bottom: 70px;
}

.breadcrumb {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
    color: #718096;
    font-size: 14px;
}

.breadcrumb a {
    color: #2563eb;
    text-decoration: none;
}

.calculator-intro {
    max-width: 760px;
    margin-bottom: 32px;
}

.eyebrow,
.result-eyebrow {
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
}

.calculator-intro h1 {
    margin: 10px 0;
    font-size: clamp(30px, 5vw, 42px);
    line-height: 1.2;
    color: #172033;
}

.calculator-intro p,
.card-description {
    color: #64748b;
    line-height: 1.7;
}

.calculator-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 24px;
    align-items: start;
}

.calculator-card,
.result-card {
    padding: 28px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(15, 23, 42, .05);
}

.calculator-card h2,
.result-card h2 {
    margin-top: 0;
    color: #172033;
    font-size: 22px;
}

.form-group {
    margin-top: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #263449;
    font-size: 14px;
    font-weight: 700;
}

.form-group input,
.form-group select {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: #fff;
    color: #172033;
    font: inherit;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: 2px solid #93c5fd;
    border-color: #2563eb;
}

.form-group small {
    display: block;
    margin-top: 7px;
    color: #718096;
    font-size: 12px;
}

.calculate-button {
    width: 100%;
    min-height: 50px;
    margin-top: 26px;
    border: 0;
    border-radius: 9px;
    background: #2563eb;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.calculate-button:hover {
    background: #1d4ed8;
}

.result-card {
    min-height: 300px;
    background: #f8fafc;
}

.result-placeholder {
    padding: 35px 10px;
    text-align: center;
}

.result-placeholder p,
.result-note {
    color: #64748b;
    line-height: 1.7;
}

.result-icon {
    display: inline-flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #dbeafe;
    color: #2563eb;
    font-size: 30px;
    font-weight: 700;
}

.main-result {
    margin: 20px 0;
    color: #15803d;
    font-size: clamp(30px, 5vw, 40px);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.main-result span {
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
}

.negative,
.negative-text {
    color: #dc2626 !important;
}

.margin-result {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 17px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.margin-result strong {
    color: #15803d;
    font-size: 22px;
}

.result-breakdown {
    margin-top: 18px;
}

.result-breakdown div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    color: #64748b;
    font-size: 14px;
}

.result-breakdown strong {
    color: #172033;
    text-align: right;
}

.alert-error {
    margin-top: 20px;
    padding: 14px 18px;
    border: 1px solid #fecaca;
    border-radius: 9px;
    background: #fef2f2;
    color: #991b1b;
    font-size: 14px;
}

.alert-error ul {
    margin-bottom: 0;
    padding-left: 20px;
}

.content-section {
    max-width: 820px;
    margin-top: 60px;
    color: #475569;
    line-height: 1.8;
}

.content-section h2 {
    margin-top: 32px;
    color: #172033;
    font-size: 24px;
}

.content-section h3 {
    margin-bottom: 6px;
    color: #263449;
    font-size: 17px;
}

.formula-box {
    padding: 20px;
    border-left: 4px solid #2563eb;
    border-radius: 8px;
    background: #eff6ff;
    color: #1e3a8a;
}

.formula-box p {
    margin-bottom: 0;
}

.faq-item {
    padding: 14px 0;
    border-bottom: 1px solid #e2e8f0;
}

.faq-item p {
    margin-top: 5px;
}

.site-footer {
    padding: 30px 0;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 14px;
}

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

    .calculator-card,
    .result-card {
        padding: 22px;
    }

    .calculator-page {
        padding-top: 20px;
    }

    .content-section {
        margin-top: 42px;
    }
}

/* Related calculators */
.related-calculators {
    width: 100%;
    max-width: 1120px;
    margin: 44px auto 0;
}

.related-calculators-heading {
    margin-bottom: 18px;
}

.related-calculators-heading h2 {
    margin: 8px 0;
    color: #172033;
    font-size: 25px;
}

.related-calculators-heading p {
    margin: 0;
    color: #64748b;
    line-height: 1.7;
}

.related-calculators-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 17px;
}

.related-calculator-card {
    display: flex;
    flex-direction: column;
    min-height: 155px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    transition: .2s ease;
}

.related-calculator-card:hover {
    transform: translateY(-3px);
    border-color: #c8d5f8;
    box-shadow: 0 10px 24px rgba(30, 50, 90, .07);
}

.related-calculator-card h3 {
    margin: 0 0 8px;
    color: #172033;
    font-size: 16px;
}

.related-calculator-card p {
    margin: 0 0 15px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

.related-calculator-card span {
    margin-top: auto;
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .related-calculators-grid {
        grid-template-columns: 1fr;
    }
}

/* Information pages */
.information-page {
    padding-top: 28px;
    padding-bottom: 80px;
}

.information-content {
    max-width: 820px;
    margin: 0 auto;
    padding: 28px 0;
    color: #475569;
    line-height: 1.8;
}

.information-content h1 {
    margin: 12px 0 18px;
    color: #172033;
    font-size: clamp(30px, 5vw, 42px);
    line-height: 1.2;
}

.information-intro {
    margin-bottom: 34px;
    color: #64748b;
    font-size: 17px;
    line-height: 1.8;
}

.information-section {
    margin-top: 28px;
}

.information-section h2 {
    margin-bottom: 8px;
    color: #172033;
    font-size: 21px;
}

.information-section p {
    margin-top: 0;
}

.information-section a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: underline;
    overflow-wrap: anywhere;
}

@media (max-width: 600px) {
    .information-page {
        padding-top: 20px;
        padding-bottom: 55px;
    }

    .information-content {
        padding-top: 18px;
    }

    .information-intro {
        font-size: 15px;
    }
}
