/* ===============================
   Base Reset
================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: #f5f7f9;
    color: #1f2933;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===============================
   Layout
================================= */

.tool-hero {
    padding: 80px 20px 110px;
    text-align: center;
    background: linear-gradient(to bottom, #ffffff 0%, #f3f6fb 100%);
    border-bottom: none;
}

.tool-hero h1 {
    margin: 0 0 14px;
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.tool-hero p {
    margin: 0;
    font-size: 18px;
    color: #6b7280;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.calculator {
    max-width: 760px;
    margin: -70px auto 80px;
    background: #ffffff;
    padding: 40px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}


/* ===============================
   Inputs
================================= */

.calculator-inputs label {
    display: block;
    margin-bottom: 20px;
    font-weight: 500;
}

.calculator-inputs input {
    width: 100%;
    padding: 14px;
    margin-top: 6px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 16px;
    transition: all 0.2s ease;
}

.calculator-inputs input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ===============================
   Button
================================= */

#calculate_btn {
    width: 100%;
    padding: 16px;
    border-radius: 8px;
    border: none;
    background: #2563eb;
    color: #ffffff;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

#calculate_btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}
/* ===============================
   Results
================================= */

.calculator-results {
    margin-top: 35px;
    padding: 30px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.calculator-results h2 {
    margin-top: 0;
    font-size: 20px;
}

.calculator-results p {
    margin: 10px 0;
    font-size: 16px;
}

/* ===============================
   Content Section
================================= */

.tool-content {
    max-width: 900px;
    margin: 80px auto;
    padding: 0 20px;
}

.tool-content-inner {
    background: #ffffff;
    padding: 50px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 24px rgba(0,0,0,0.04);
}

.tool-content h2 {
    margin-top: 50px;
    font-size: 24px;
    font-weight: 700;
    position: relative;
}

.tool-content h2::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background: #2563eb;
    margin-top: 10px;
    border-radius: 2px;
}

.tool-content p {
    margin: 15px 0;
    color: #374151;
}

.tool-content ul {
    padding-left: 20px;
}

.tool-content li {
    margin-bottom: 8px;
}

/* ===============================
   Header
================================= */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.site-header .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
}

.logo-link {
    display: inline-block;
}

.logo {
    height: 62px;
    width: auto;
    display: block;
}

/* ===============================
   Disclaimer
================================= */

.tool-disclaimer {
    max-width: 800px;
    margin: 60px auto 80px;
    padding: 20px;
    font-size: 14px;
    color: #6b7280;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.tool-disclaimer h3 {
    margin-top: 0;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
}

/* ===============================
   Internal Links
================================= */

.tool-internal-links ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.tool-internal-links li {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tool-internal-links li:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

.tool-internal-links h3 {
    margin-top: 0;
    font-size: 18px;
}

.tool-internal-links ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
}

.tool-internal-links a {
    text-decoration: none;
    color: #2563eb;
    font-weight: 500;
}

.tool-internal-links a:hover {
    text-decoration: underline;
}

/* ===============================
   Results Upgrade
================================= */

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.result-card {
    background: #ffffff;
    padding: 24px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    text-align: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.result-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.result-label {
    display: block;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-value {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
}

/* ===============================
   Footer
================================= */

.site-footer {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px 0;
    margin-top: 60px;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.site-footer p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

.site-footer a {
    color: #2563eb;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.hero-formula {
    margin: 25px 0 35px;
    display: block;
    padding: 16px 20px;
    font-size: 15px;
    background: #111827;
    border-radius: 10px;
    color: #ffffff;
    font-family: "SFMono-Regular", Consolas, monospace;
    overflow-x: auto;
    white-space: nowrap;   /* ← prevents wrapping ugliness */
}

/* ===============================
   FAQ Section
================================= */

.tool-faq {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
}

.tool-faq h2 {
    margin-bottom: 30px;
}

.faq-item {
    background: #f9fafb;
    padding: 28px 32px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.faq-item h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #111827;
}

.faq-item p {
    margin: 0;
    color: #374151;
}

.content-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    margin-bottom: 60px;
}

.form-errors{
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #fecaca;
  background: #fff1f2;
  color: #7f1d1d;
}

.form-errors strong{
  display:block;
  margin-bottom: 6px;
}

.form-errors ul{
  margin: 0;
  padding-left: 18px;
}

.field-error{
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}

/* ===============================
   Responsive
================================= */

@media (max-width: 640px) {

    body {
        background: #ffffff;
    }

    .hero-formula {
        font-size: 13px;
        padding: 14px;
    }

    .tool-content {
        margin: 0;
        padding: 0;
    }

    .tool-content-inner {
        border-radius: 0;
        border-left: none;
        border-right: none;
        box-shadow: none;
        padding: 22px;
    }

    .calculator {
        margin: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
        box-shadow: none;
        padding: 22px;
    }

    .tool-hero {
        padding: 50px 16px 80px;
    }

    .tool-hero h1 {
        font-size: 26px;
        line-height: 1.25;
    }

    .tool-hero p {
        font-size: 16px;
    }

        .tool-content h2 {
        font-size: 20px;
    }

    .result-value {
        font-size: 20px;
    }
}

/* ===============================
   Tool CTA Block
================================= */

.tool-cta {
  margin: 60px 0;
  padding: 50px 20px;
  background: linear-gradient(135deg, #f7f9fc 0%, #eef3f8 100%);
  border-top: 1px solid #e1e7ef;
  border-bottom: 1px solid #e1e7ef;
}

.tool-cta-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.tool-cta h3 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.tool-cta p {
  margin-bottom: 18px;
  line-height: 1.6;
  color: #444;
}

.tool-cta-button {
  display: inline-block;
  margin-top: 10px;
  padding: 12px 28px;
  background: #1f3c88; /* Your deep blue feel */
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.tool-cta-button:hover {
  background: #162e66;
  transform: translateY(-1px);
}