/* ================================================================
   CALCULATORS — calculators.css v3
   Hub · Category · Single pages
   ================================================================ */

.calc-page { font-family: 'Open Sans','Lato',sans-serif; }
.calc-page * { box-sizing: border-box; }
.calc-page a { text-decoration: none !important; }

/* Remove native spin buttons from ALL number inputs on calculator pages */
.calc-page input[type="number"]::-webkit-outer-spin-button,
.calc-page input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-page input[type="number"] { -moz-appearance: textfield; }

/* ── Buttons ── */
.calc-btn-main {
    display: inline-flex; align-items: center; gap: 9px;
    background: #6ab43e; color: #fff !important;
    padding: 14px 30px; border-radius: 50px;
    font-weight: 700; font-size: 14px; border: none;
    white-space: nowrap; transition: background .25s, transform .2s, box-shadow .25s;
    box-shadow: 0 4px 18px rgba(106,180,62,.35);
}
.calc-btn-main:hover { background: #539230; color: #fff !important; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(106,180,62,.45); }

.calc-btn-outline {
    display: inline-flex; align-items: center; gap: 9px;
    background: rgba(255,255,255,.12); color: #fff !important;
    padding: 13px 28px; border-radius: 50px; font-weight: 700; font-size: 14px;
    border: 2px solid rgba(255,255,255,.5); white-space: nowrap;
    transition: border-color .25s, background .25s;
}
.calc-btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.22); color: #fff !important; }

.calc-btn-white {
    display: inline-flex; align-items: center; gap: 9px;
    background: #fff; color: #2d6b10 !important;
    padding: 14px 30px; border-radius: 50px; font-weight: 700; font-size: 14px;
    border: none; white-space: nowrap; flex-shrink: 0;
    box-shadow: 0 4px 18px rgba(0,0,0,.12);
    transition: background .25s, transform .2s, box-shadow .25s;
}
.calc-btn-white:hover { background: #f0fae6; color: #2d6b10 !important; transform: translateY(-2px); }

/* ── Section title ── */
.calc-section-title { text-align: center; padding: 60px 0 40px; }
.calc-section-title h4 {
    color: #6ab43e !important; font-size: 11px; font-weight: 800;
    letter-spacing: 3px; text-transform: uppercase; margin-bottom: 14px;
    display: flex; align-items: center; justify-content: center; gap: 12px;
}
.calc-section-title h4::before,
.calc-section-title h4::after {
    content: ''; display: inline-block; width: 32px; height: 2px;
    background: linear-gradient(90deg,transparent,#6ab43e); flex-shrink: 0;
}
.calc-section-title h4::after { background: linear-gradient(90deg,#6ab43e,transparent); }
.calc-section-title h3 {
    font-family: 'MontserratRegular','Montserrat',sans-serif;
    font-size: 34px; color: #111 !important; margin: 0 0 12px; font-weight: 800;
}
.calc-section-title p { color: #666 !important; font-size: 15px; max-width: 500px; margin: 0 auto; line-height: 1.8; }

/* ================================================================
   HUB — HERO
   ================================================================ */
.calc-hero {
    background: linear-gradient(135deg, #2a6010 0%, #3e8c22 55%, #6AB43E 100%);
    padding: 80px 0 70px; overflow: hidden; position: relative;
}
.calc-hero::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.calc-hero::after {
    content: ''; position: absolute; right: -100px; top: -100px;
    width: 500px; height: 500px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.07) 0%, transparent 70%);
    pointer-events: none;
}

.calc-hero-flex {
    display: flex; align-items: center; gap: 60px;
    position: relative; z-index: 1;
}
.calc-hero-left { flex: 1; min-width: 0; }
.calc-hero-right { flex-shrink: 0; width: 300px; }

.calc-hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.15); backdrop-filter: blur(4px);
    color: #fff; font-size: 11px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    padding: 7px 16px; border-radius: 50px;
    border: 1px solid rgba(255,255,255,.2); margin-bottom: 22px;
}
.calc-eyebrow-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #fff; display: inline-block;
    animation: calcPulse 2s ease-in-out infinite;
}
@keyframes calcPulse {
    0%,100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .4; transform: scale(.6); }
}

.calc-hero-h1 {
    font-size: 52px; font-weight: 900; color: #fff !important;
    font-family: 'MontserratRegular','Montserrat',sans-serif;
    line-height: 1.1; margin-bottom: 18px;
}
.calc-h1-accent {
    color: #fff !important;
    background: rgba(255,255,255,.2);
    padding: 2px 14px; border-radius: 8px;
}
.calc-hero-desc { font-size: 15px; color: rgba(255,255,255,.82) !important; max-width: 490px; line-height: 1.85; margin-bottom: 32px; }
.calc-hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero stats grid */
.calc-hero-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calc-hstat-card {
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
    border-radius: 14px; padding: 20px 16px; text-align: center;
    transition: background .2s, transform .2s; backdrop-filter: blur(6px);
}
.calc-hstat-card:hover { background: rgba(255,255,255,.18); transform: translateY(-3px); }
.calc-hstat-icon {
    width: 42px; height: 42px; border-radius: 12px;
    background: rgba(255,255,255,.15); margin: 0 auto 10px;
    display: flex; align-items: center; justify-content: center;
}
.calc-hstat-icon i { font-size: 16px; color: #fff; }
.calc-hstat-card strong {
    display: block; font-size: 24px; font-weight: 900;
    color: #fff !important; line-height: 1; margin-bottom: 5px;
}
.calc-hstat-card span { font-size: 11px; color: rgba(255,255,255,.65) !important; text-transform: uppercase; letter-spacing: .5px; }

/* ================================================================
   HUB — CATEGORY GRID (replaces list bars)
   ================================================================ */
.calc-cats-section { background: #f5f8f2; padding-bottom: 20px; }

.calc-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.calc-cat-card {
    display: flex; flex-direction: column;
    background: #fff; border-radius: 16px; overflow: hidden;
    border: 2px solid #e8f0df;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
    transition: transform .28s, box-shadow .28s, border-color .28s;
    cursor: pointer;
}
.calc-cat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(106,180,62,.2);
    border-color: #6ab43e;
}
.calc-cat-card--soon {
    opacity: .65; cursor: default;
}
.calc-cat-card--soon:hover {
    transform: none; box-shadow: 0 2px 12px rgba(0,0,0,.05); border-color: #e8f0df;
}

.calc-cat-card-top {
    background: linear-gradient(135deg, #3e8c22, #6AB43E);
    padding: 24px 18px 20px;
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    position: relative; min-height: 130px; justify-content: center;
}
.calc-cat-card-num {
    position: absolute; top: 12px; left: 14px;
    font-size: 10px; font-weight: 800; color: rgba(255,255,255,.55);
    letter-spacing: 2px; text-transform: uppercase;
}
.calc-cat-card-icon {
    width: 58px; height: 58px; border-radius: 50%;
    background: rgba(255,255,255,.2); border: 2px solid rgba(255,255,255,.3);
    display: flex; align-items: center; justify-content: center;
    transition: background .25s, transform .25s;
}
.calc-cat-card:hover .calc-cat-card-icon { background: rgba(255,255,255,.3); transform: scale(1.08); }
.calc-cat-card-icon i { font-size: 22px; color: #fff; }

.calc-cat-card-badge {
    position: absolute; top: 12px; right: 14px;
    background: rgba(255,255,255,.25); color: #fff !important;
    font-size: 10px; font-weight: 800; padding: 3px 10px;
    border-radius: 50px; letter-spacing: .5px;
}
.calc-cat-card-badge--soon { background: rgba(255,255,255,.15); }

.calc-cat-card-body {
    padding: 18px 18px 20px; flex: 1;
    display: flex; flex-direction: column; gap: 10px;
}
.calc-cat-card-name {
    font-size: 14px; font-weight: 800; color: #111 !important;
    font-family: 'MontserratRegular','Montserrat',sans-serif;
    line-height: 1.35;
}
.calc-cat-card-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12.5px; font-weight: 700; color: #6ab43e !important;
    margin-top: auto; transition: gap .2s;
}
.calc-cat-card:hover .calc-cat-card-link { gap: 10px; }
.calc-cat-card-link i { font-size: 11px; }

/* ================================================================
   HUB — WHY SECTION
   ================================================================ */
.calc-why-section { background: #fff; padding-bottom: 70px; }

.calc-why-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.calc-why-card {
    text-align: center; padding: 36px 22px 30px;
    border-radius: 14px; background: #f8fdf4;
    border: 2px solid #e8f5dc;
    transition: transform .25s, box-shadow .25s, border-color .25s;
    display: flex; flex-direction: column; align-items: center;
}
.calc-why-card:hover { transform: translateY(-5px); box-shadow: 0 10px 32px rgba(106,180,62,.15); border-color: #6ab43e; }
.calc-why-icon {
    width: 58px; height: 58px; border-radius: 50%;
    background: linear-gradient(135deg, #4d9c2a, #6ab43e);
    margin: 0 auto 18px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(106,180,62,.3);
}
.calc-why-icon i { font-size: 22px; color: #fff; }
.calc-why-card h4 {
    font-family: 'MontserratRegular','Montserrat',sans-serif;
    font-size: 15px; color: #111 !important; margin-bottom: 10px; font-weight: 800;
}
.calc-why-card p { font-size: 13.5px; color: #666 !important; line-height: 1.7; margin: 0; flex: 1; }

/* ================================================================
   HUB — CTA
   ================================================================ */
.calc-cta {
    background: linear-gradient(135deg, #3e8c22, #6AB43E);
    padding: 64px 0; position: relative; overflow: hidden;
}
.calc-cta::before {
    content: ''; position: absolute; right: -60px; bottom: -80px;
    width: 360px; height: 360px; border-radius: 50%;
    background: rgba(255,255,255,.06); pointer-events: none;
}
.calc-cta::after {
    content: ''; position: absolute; left: -40px; top: -60px;
    width: 240px; height: 240px; border-radius: 50%;
    background: rgba(255,255,255,.04); pointer-events: none;
}
.calc-cta-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 32px; flex-wrap: wrap; position: relative; z-index: 1;
}
.calc-cta h3 { font-family: 'MontserratRegular','Montserrat',sans-serif; font-size: 28px; color: #fff !important; margin-bottom: 8px; font-weight: 800; }
.calc-cta p { color: rgba(255,255,255,.8) !important; margin: 0; font-size: 15px; max-width: 480px; line-height: 1.75; }

/* ================================================================
   CATEGORY PAGE — HERO
   ================================================================ */
.calc-cat-hero {
    background: linear-gradient(135deg, #2a6010, #3e8c22 55%, #6AB43E);
    padding: 52px 0 56px; position: relative; overflow: hidden;
}
.calc-cat-hero::after {
    content: ''; position: absolute; right: -80px; top: -80px;
    width: 400px; height: 400px; border-radius: 50%;
    background: rgba(255,255,255,.05); pointer-events: none;
}

.calc-breadcrumb {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 28px;
    position: relative; z-index: 1;
}
.calc-breadcrumb a { color: rgba(255,255,255,.6) !important; font-size: 13px; transition: color .2s; }
.calc-breadcrumb a:hover { color: #fff !important; }
.calc-breadcrumb i { font-size: 9px; color: rgba(255,255,255,.35); }
.calc-breadcrumb span { color: rgba(255,255,255,.95) !important; font-size: 13px; font-weight: 600; }

.calc-cat-hero-inner { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; position: relative; z-index: 1; }

.calc-cat-hero-icon-wrap {
    width: 80px; height: 80px; border-radius: 20px;
    background: rgba(255,255,255,.15); border: 2px solid rgba(255,255,255,.2);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
.calc-cat-hero-icon-wrap i { font-size: 32px; color: #fff; }

.calc-cat-hero-text h1 {
    font-family: 'MontserratRegular','Montserrat',sans-serif;
    font-size: 36px; color: #fff !important; margin-bottom: 10px; line-height: 1.2; font-weight: 900;
}
.calc-cat-hero-text h1 span { color: rgba(255,255,255,.8) !important; }
.calc-cat-hero-text p { color: rgba(255,255,255,.75) !important; font-size: 14px; max-width: 520px; line-height: 1.8; margin-bottom: 18px; }

.calc-cat-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.calc-cat-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,.15); color: #fff !important;
    font-size: 12px; font-weight: 600;
    padding: 7px 16px; border-radius: 50px;
    border: 1px solid rgba(255,255,255,.2);
}
.calc-cat-badge i { font-size: 11px; }
.calc-cat-badge--green { background: rgba(255,255,255,.25); }

/* ================================================================
   CATEGORY PAGE — CALCULATOR GRID
   ================================================================ */
.calc-grid-section { background: #f5f8f2; padding: 52px 0 68px; }

.calc-grid-header {
    margin-bottom: 30px; padding-bottom: 16px;
    border-bottom: 2px solid #e4edda;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.calc-grid-header p { font-size: 14px; color: #666 !important; margin: 0; }
.calc-grid-header p strong { color: #2d6b10; font-weight: 800; }

/* CSS Grid — every cell same height guaranteed */
.calc-cards-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 10px;
}
.calc-card-col { display: flex; flex-direction: column; }
.calc-card-col.gw-reveal:nth-child(1) { transition-delay: .04s; }
.calc-card-col.gw-reveal:nth-child(2) { transition-delay: .09s; }
.calc-card-col.gw-reveal:nth-child(3) { transition-delay: .14s; }
.calc-card-col.gw-reveal:nth-child(4) { transition-delay: .19s; }
.calc-card-col.gw-reveal:nth-child(5) { transition-delay: .24s; }
.calc-card-col.gw-reveal:nth-child(6) { transition-delay: .29s; }
.calc-card-col.gw-reveal:nth-child(7) { transition-delay: .34s; }
.calc-card-col.gw-reveal:nth-child(n+8) { transition-delay: .38s; }

.calc-card {
    display: flex; flex-direction: column;
    background: #fff; border-radius: 16px; overflow: hidden;
    height: 100%; border: 2px solid #e8f0df;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
    transition: transform .28s, box-shadow .28s, border-color .28s;
}
.calc-card:hover {
    transform: translateY(-8px) scale(1.015);
    box-shadow: 0 16px 48px rgba(106,180,62,.22);
    border-color: #6ab43e;
}

.calc-card-top {
    background: linear-gradient(135deg, #3e8c22, #6AB43E);
    padding: 28px 20px 24px; text-align: center; position: relative;
    display: flex; flex-direction: column; align-items: center;
    min-height: 120px; justify-content: center; gap: 0;
    overflow: hidden;
}
.calc-card-top::before {
    content: ''; position: absolute; top: 0; left: -60%;
    width: 40%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.4), transparent);
    transform: skewX(-20deg);
    transition: left .65s ease;
    pointer-events: none;
}
.calc-card:hover .calc-card-top::before { left: 130%; }
.calc-card-num {
    position: absolute; top: 12px; left: 14px;
    background: rgba(255,255,255,.2); color: #fff !important;
    font-size: 10px; font-weight: 800; padding: 3px 10px;
    border-radius: 50px; letter-spacing: 1px;
}
.calc-card-tag {
    position: absolute; top: 12px; right: 14px;
    background: rgba(255,255,255,.25); color: #fff !important;
    font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 50px;
}
.calc-card-icon-circle {
    width: 58px; height: 58px; border-radius: 50%;
    background: rgba(255,255,255,.2); border: 2px solid rgba(255,255,255,.3);
    display: flex; align-items: center; justify-content: center;
    transition: transform .3s, box-shadow .3s;
}
.calc-card:hover .calc-card-icon-circle {
    transform: scale(1.14) rotate(-8deg);
    box-shadow: 0 0 0 8px rgba(255,255,255,.14);
}
.calc-card-icon-circle i { font-size: 24px; color: #fff; }

.calc-card-body { padding: 20px 18px 22px; flex: 1; display: flex; flex-direction: column; }
.calc-card-title {
    position: relative;
    font-family: 'MontserratRegular','Montserrat',sans-serif;
    font-size: 15.5px; line-height: 1.4; color: #111 !important;
    letter-spacing: -.2px; font-weight: 800;
    margin-bottom: 14px; padding-bottom: 11px;
    transition: color .25s;
}
.calc-card-title::after {
    content: ''; position: absolute; left: 0; bottom: 0;
    width: 26px; height: 3px; border-radius: 3px;
    background: linear-gradient(90deg, #6ab43e, #a3d97e);
    transition: width .3s ease;
}
.calc-card:hover .calc-card-title { color: #2d6b10 !important; }
.calc-card:hover .calc-card-title::after { width: 50px; }
.calc-card-text {
    font-size: 13px; color: #777 !important; line-height: 1.7; margin-bottom: 16px; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.calc-card-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: #6ab43e !important; font-size: 13px; font-weight: 700;
    font-family: 'MontserratRegular','Montserrat',sans-serif;
    margin-top: auto; transition: gap .2s;
}
.calc-card:hover .calc-card-link { gap: 10px; }
.calc-card-link i { font-size: 11px; }

/* ── Empty state ── */
.calc-empty { text-align: center; padding: 80px 20px; }
.calc-empty-icon {
    width: 90px; height: 90px; border-radius: 50%;
    background: linear-gradient(135deg, #4d9c2a, #6ab43e);
    margin: 0 auto 22px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px rgba(106,180,62,.3);
}
.calc-empty-icon i { font-size: 36px; color: #fff; }
.calc-empty h3 { font-size: 22px; color: #111 !important; margin-bottom: 10px; }
.calc-empty p { color: #777 !important; max-width: 400px; margin: 0 auto 24px; }

/* ── Back section ── */
.calc-back-section { background: #fff; padding: 30px 0; border-top: 1px solid #eee; }
.calc-back-inner { text-align: center; }
.calc-back-btn {
    display: inline-flex; align-items: center; gap: 9px;
    background: #f5f8f2; color: #2d6b10 !important;
    padding: 13px 26px; border-radius: 50px; font-weight: 700; font-size: 14px;
    border: 2px solid #d4e9c4; transition: background .2s, border-color .2s, transform .2s;
}
.calc-back-btn:hover { background: #e4f0d4; border-color: #6ab43e; color: #2d6b10 !important; transform: translateY(-2px); }
.calc-back-btn i { font-size: 13px; }

/* ================================================================
   SINGLE CALCULATOR PAGE
   ================================================================ */
.calc-single-hero {
    background: linear-gradient(135deg, #2a6010, #3e8c22 55%, #6AB43E);
    padding: 50px 0 46px; position: relative; overflow: hidden;
}
.calc-single-hero::after {
    content: ''; position: absolute; right: -60px; bottom: -60px;
    width: 300px; height: 300px; border-radius: 50%;
    background: rgba(255,255,255,.05); pointer-events: none;
}
.calc-single-header { display: flex; align-items: flex-start; gap: 22px; flex-wrap: wrap; position: relative; z-index: 1; }
.calc-single-icon {
    width: 68px; height: 68px; border-radius: 16px;
    background: rgba(255,255,255,.15); border: 2px solid rgba(255,255,255,.2);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(0,0,0,.1);
}
.calc-single-icon i { font-size: 28px; color: #fff; }
.calc-single-cat-tag {
    display: inline-block; background: rgba(255,255,255,.2);
    color: #fff !important; font-size: 11px; font-weight: 700;
    padding: 5px 14px; border-radius: 50px; letter-spacing: 1px;
    text-transform: uppercase; margin-bottom: 10px;
    border: 1px solid rgba(255,255,255,.25);
}
.calc-single-header h1 { font-family: 'MontserratRegular','Montserrat',sans-serif; font-size: 30px; color: #fff !important; margin-bottom: 10px; font-weight: 900; }
.calc-single-desc { color: rgba(255,255,255,.78) !important; font-size: 14px; max-width: 560px; line-height: 1.8; margin: 0; }

.calc-tool-section { background: #f5f8f2; padding: 50px 0 64px; }
.calc-tool-wrap {
    background: #fff; border-radius: 16px; padding: 36px 40px;
    box-shadow: 0 4px 28px rgba(0,0,0,.07);
    max-width: 880px; margin: 0 auto;
    border: 1px solid #e8f0df;
}
.calc-tool-wrap h2, .calc-tool-wrap h3 { font-family: 'MontserratRegular','Montserrat',sans-serif; color: #111 !important; margin-bottom: 16px; }
.calc-tool-wrap label { font-weight: 600; color: #333 !important; display: block; margin-bottom: 6px; font-size: 14px; }
.calc-tool-wrap input[type="number"],
.calc-tool-wrap input[type="text"],
.calc-tool-wrap select {
    width: 100%; padding: 10px 14px; border: 2px solid #e0efd5;
    border-radius: 8px; font-size: 14px; color: #333; background: #fff;
    transition: border-color .2s; margin-bottom: 18px;
}
.calc-tool-wrap input:focus, .calc-tool-wrap select:focus { border-color: #6ab43e; outline: none; box-shadow: 0 0 0 3px rgba(106,180,62,.1); }
.calc-tool-wrap .sc-input-rel input[type="number"],
.calc-tool-wrap .sc-input-rel input[type="text"] { padding-right: 44px; }
.calc-tool-wrap .sc-input-rel input[type="number"]::-webkit-outer-spin-button,
.calc-tool-wrap .sc-input-rel input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-tool-wrap .sc-input-rel input[type="number"] { -moz-appearance: textfield; }
.calc-tool-wrap button, .calc-tool-wrap input[type="submit"] {
    background: #6ab43e; color: #fff; border: none;
    padding: 12px 28px; border-radius: 50px; font-size: 15px; font-weight: 700;
    cursor: pointer; transition: background .2s, box-shadow .2s; width: 100%;
    box-shadow: 0 4px 16px rgba(106,180,62,.3);
}
.calc-tool-wrap button:hover { background: #539230; box-shadow: 0 6px 22px rgba(106,180,62,.4); }
.calc-result {
    background: #e8f5df; border: 2px solid #6ab43e;
    border-radius: 10px; padding: 18px 20px; margin-top: 20px;
    font-size: 16px; font-weight: 700; color: #214c07 !important; display: none;
}
.calc-result.visible { display: block; }

.calc-related-section { background: #fff; padding: 10px 0 64px; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1100px) {
    .calc-cat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 992px) {
    .calc-hero-right { display: none; }
    .calc-hero-h1 { font-size: 40px; }
    .calc-cat-hero-text h1 { font-size: 28px; }
    .calc-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .calc-why-grid  { grid-template-columns: repeat(2, 1fr); }
    .calc-cat-grid  { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .calc-hero-h1 { font-size: 32px; }
    .calc-hero { padding: 56px 0 48px; }
    .calc-hero-btns { flex-direction: column; max-width: 260px; }
    .calc-btn-main, .calc-btn-outline { justify-content: center; }
    .calc-cta-inner { flex-direction: column; text-align: center; }
    .calc-cta .calc-btn-white { align-self: center; }
    .calc-section-title h3 { font-size: 27px; }
    .calc-tool-wrap { padding: 24px 20px; }
}
@media (max-width: 576px) {
    .calc-hero-h1 { font-size: 26px; }
    .calc-cat-hero-icon-wrap { width: 62px; height: 62px; }
    .calc-cat-hero-icon-wrap i { font-size: 26px; }
    .calc-cat-hero-text h1 { font-size: 24px; }
    .calc-section-title h3 { font-size: 22px; }
    .calc-cat-meta { gap: 8px; }
    .calc-cards-grid { grid-template-columns: 1fr; }
    .calc-why-grid  { grid-template-columns: 1fr; }
    .calc-cat-grid  { grid-template-columns: repeat(2, 1fr); }
}

/* ================================================================
   CALCULATOR TOOL — Text color overrides (sc- tool classes)
   ================================================================ */
.sc-field label         { color: #1a1a1a !important; font-weight: 700 !important; }
.sc-field input,
.sc-field select        { color: #111 !important; }
.sc-box-head span       { color: #1f5c08 !important; }
.sc-ri-l                { color: #555 !important; font-weight: 600 !important; }
.sc-ri-v                { color: #133800 !important; font-weight: 800 !important; }
.sc-res-item.sc-res-active .sc-ri-v { color: #7a4800 !important; }
.sc-res-label           { color: rgba(255,255,255,.92) !important; }
.sc-tip-box p           { color: #333 !important; }
.sc-tip-box strong      { color: #7a4800 !important; }
.sc-source-box p        { color: #333 !important; }
.sc-source-box strong   { color: #1f5c08 !important; }

/* Fix: calc-tool-wrap button overrides for C:N calculator special buttons */
.calc-tool-wrap .sc-add-btn {
    background: #f2f8eb !important; border: 2px dashed #b8de8a !important;
    color: #4a8a2a !important; font-size: 13px !important;
    padding: 10px 18px !important; border-radius: 8px !important;
    width: calc(100% - 44px) !important; margin: 0 22px 18px !important;
    box-shadow: none !important;
}
.calc-tool-wrap .sc-add-btn:hover { background: #e6f4d7 !important; }
.calc-tool-wrap .sc-remove-btn {
    background: #fff0f0 !important; border: 1.5px solid #fca5a5 !important;
    color: #dc2626 !important; width: 34px !important;
    padding: 0 !important; border-radius: 7px !important;
    font-size: 15px !important; margin: 0 !important; box-shadow: none !important;
}

/* ================================================================
   Scroll-reveal (JS toggles .is-visible via IntersectionObserver —
   already wired globally in script.js for any .gw-reveal element)
   ================================================================ */
.gw-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
}
.gw-reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ================================================================
   FARM FINANCE category page — intro / how-it-works / who-for /
   FAQ / disclaimer / byline (taxonomy-calculator_cat.php, farm-finance only)
   ================================================================ */
.calc-ff-intro { background: #fff; padding: 48px 0 8px; }
.calc-ff-intro .container { max-width: 820px; }
.calc-ff-intro-lead { padding: 40px 0 6px; }
.calc-ff-intro p {
    font-size: 15px; color: #3d3d3d !important; line-height: 1.9;
    margin: 0 0 20px !important;
}
.calc-ff-lead {
    font-size: 18px !important; font-weight: 600; color: #1a1a1a !important;
    line-height: 1.75 !important;
}
.calc-ff-highlight {
    position: relative; color: #2d6b10 !important; font-weight: 800;
    background: linear-gradient(180deg, transparent 62%, #d9f0c4 62%);
    padding: 0 2px;
}

.calc-ff-section { background: #fff; padding: 44px 0 8px; }
.calc-ff-section .container { max-width: 820px; }
.calc-ff-section h2 {
    display: flex; align-items: center; gap: 12px;
    font-family: 'MontserratRegular','Montserrat',sans-serif;
    font-size: 25px !important; font-weight: 900 !important; color: #111 !important;
    letter-spacing: -.3px;
    margin: 0 0 18px !important;
}
.calc-ff-h2-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px;
    background: linear-gradient(135deg, #3e8c22, #6ab43e);
    color: #fff !important; font-size: 15px;
    box-shadow: 0 6px 16px rgba(106,180,62,.3);
}
.calc-ff-section p {
    font-size: 14.5px; color: #555 !important; line-height: 1.85;
    margin: 0 0 20px !important;
}
.calc-ff-section p a {
    color: #2d6b10 !important; font-weight: 700; text-decoration: none !important;
    background-image: linear-gradient(#2d6b10, #2d6b10);
    background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%;
    transition: background-size .25s ease;
}
.calc-ff-section p a:hover { background-size: 100% 2px; }

.calc-ff-faq { background: #f5f8f2; padding: 48px 0; margin-top: 8px; }
.calc-ff-faq .container { max-width: 820px; }

.calc-ff-byline { padding-bottom: 56px; }
.calc-ff-byline-text {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 13px; color: #777 !important; line-height: 1.8;
    border-top: 1px solid #eee; padding-top: 22px; margin-bottom: 16px !important;
}
.calc-ff-byline-text i { color: #6ab43e; font-size: 13px; margin-top: 3px; flex-shrink: 0; }
.calc-ff-disclaimer {
    display: flex; align-items: flex-start; gap: 12px;
    font-size: 13px; color: #6b5a1e !important; line-height: 1.8;
    background: #fdf8e9; border: 1px solid #f2e3ab; border-left: 4px solid #e0b400;
    border-radius: 10px; padding: 16px 18px;
}
.calc-ff-disclaimer p { margin: 0 !important; font-size: inherit !important; color: inherit !important; }
.calc-ff-disclaimer-icon { color: #e0b400; font-size: 17px; margin-top: 2px; flex-shrink: 0; }
.calc-ff-disclaimer strong { color: #4d3f0a !important; }

@media (max-width: 600px) {
    .calc-ff-section h2 { font-size: 21px !important; }
    .calc-ff-lead { font-size: 16.5px !important; }
}

.calc-tool-wrap .sc-remove-btn:hover { background: #fef2f2 !important; }
