/* =========================
   RESET
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
h4,
p,
ul,
li,
section,
article,
div {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

img,
iframe,
embed,
object {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* =========================
   ROOT
========================= */
:root {
  --primary: #8b1e14;
  --primary-dark: #6e160f;
  --secondary: #166534;
  --accent: #f59e0b;
  --text: #1f2937;
  --muted: #6b7280;
  --white: #ffffff;
  --bg: #f8fafc;
  --card: #ffffff;
  --border: #e5e7eb;
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.08);
  --radius: 20px;
  --radius-sm: 14px;
  --container: 1280px;
  --transition: all 0.3s ease;
}

/* =========================
   BASE
========================= */
body {
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top, #e0f2fe 0%, transparent 45%),
    radial-gradient(circle at bottom, #f1f5f9 0%, transparent 50%),
    #f8fafc;
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

.container {
  width: min(92%, var(--container));
  margin: 0 auto;
}

.section {
  padding: 80px 0;
}

.section-heading {
  max-width: 820px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 2vw, 2.6rem);
  line-height: 1.2;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.section-heading p {
  font-size: 1rem;
  color: var(--muted);
}

.badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 14px;
  background: #fef2f2;
  color: var(--primary-dark);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
}

/* =========================
   HERO / CALCULATOR SECTION
========================= */
.calculator-hero {
  position: relative;
  padding: 90px 0 70px;
  background:
    radial-gradient(circle at top right, rgba(139, 30, 20, 0.10), transparent 24%),
    radial-gradient(circle at left, rgba(245, 158, 11, 0.10), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.calculator-hero-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.calculator-hero-intro {
  max-width: 920px;
}

.calculator-hero-intro h1 {
  font-size: clamp(2.1rem, 4vw, 3.7rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.calculator-hero-intro p {
  max-width: 850px;
  font-size: 1.02rem;
  color: var(--muted);
}

.calculator-embed-box {
  background: linear-gradient(135deg, #e0f2fe, #cffafe);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 24px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition);
}

.calculator-embed-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.10);
}

.calculator-embed-inner {
  width: 100%;
  min-height: 680px;
  background:transparent;
  /* border: 1px solid #eef0f3; */
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}

/* Generic support for embedded calculator content */
.calculator-embed-inner iframe,
.calculator-embed-inner embed,
.calculator-embed-inner object,
.calculator-embed-inner .calculator-frame,
.calculator-embed-inner .calculator-app {
  width: 100%;
  min-height: 680px;
  border: 0;
  background: transparent;
  display: block;
}

/* If your embedded tool has its own wrapper */
.calculator-embed-inner>div {
  max-width: 100%;
}

/* =========================
   CONTENT SECTION
========================= */
.calculator-content {
  background: var(--white);
}

.calculator-content-wrap {
  max-width: 920px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.calculator-content article+article {
  margin-top: 28px;
}

.calculator-content h2 {
  font-size: clamp(1.7rem, 2vw, 2.3rem);
  line-height: 1.2;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.calculator-content h3 {
  font-size: 1.3rem;
  line-height: 1.3;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.calculator-content p {
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 14px;
}

.calculator-content ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 14px;
}

.calculator-content li {
  color: var(--text);
  margin-bottom: 8px;
}

/* Optional highlighted note box */
.content-note {
  background: #fff8eb;
  border: 1px solid #fde7b0;
  border-radius: 16px;
  padding: 18px;
  margin-top: 18px;
}

.content-note p:last-child {
  margin-bottom: 0;
}

/* =========================
   FAQ SECTION
========================= */
.calculator-faq {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.faq-wrap {
  max-width: 920px;
  margin: 0 auto;
}

.faq-list {
  display: grid;
  gap: 18px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.faq-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.07);
  border-color: rgba(139, 30, 20, 0.16);
}

.faq-item h3 {
  font-size: 1.08rem;
  line-height: 1.4;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.faq-item p {
  color: var(--muted);
  font-size: 0.98rem;
}

/* =========================
   TABLET
========================= */
@media (max-width: 992px) {
  .section {
    padding: 70px 0;
  }

  .calculator-hero {
    padding: 80px 0 60px;
  }

  .calculator-embed-box {
    padding: 20px;
  }

  .calculator-embed-inner,
  .calculator-embed-inner iframe,
  .calculator-embed-inner embed,
  .calculator-embed-inner object,
  .calculator-embed-inner .calculator-frame,
  .calculator-embed-inner .calculator-app {
    min-height: 620px;
  }

  .calculator-content-wrap {
    padding: 32px 26px;
  }
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .container {
    width: min(94%, var(--container));
  }

  .calculator-hero {
    padding: 65px 0 50px;
  }

  .calculator-hero-intro h1 {
    font-size: 2rem;
  }

  .calculator-hero-intro p,
  .calculator-content p,
  .faq-item p {
    font-size: 0.97rem;
  }

  .calculator-embed-box {
    padding: 16px;
    border-radius: 20px;
  }

  .calculator-embed-inner {
    min-height: 560px;
    border-radius: 14px;
  }

  .calculator-embed-inner iframe,
  .calculator-embed-inner embed,
  .calculator-embed-inner object,
  .calculator-embed-inner .calculator-frame,
  .calculator-embed-inner .calculator-app {
    min-height: 560px;
  }

  .calculator-content-wrap {
    padding: 26px 18px;
    border-radius: 20px;
  }

  .faq-item {
    padding: 18px 16px;
  }
}

/* =========================
   SMALL MOBILE
========================= */
@media (max-width: 480px) {
  .calculator-hero-intro h1 {
    font-size: 1.8rem;
  }

  .calculator-embed-inner {
    min-height: 500px;
  }

  .calculator-embed-inner iframe,
  .calculator-embed-inner embed,
  .calculator-embed-inner object,
  .calculator-embed-inner .calculator-frame,
  .calculator-embed-inner .calculator-app {
    min-height: 500px;
  }

  .section-heading h2,
  .calculator-content h2 {
    font-size: 1.55rem;
  }

  .calculator-content h3,
  .faq-item h3 {
    font-size: 1.02rem;
  }
}

/* =========================
   LARGE SCREEN
========================= */
@media (min-width: 1440px) {
  .container {
    width: min(90%, 1380px);
  }

  .calculator-hero {
    padding: 110px 0 85px;
  }

  .calculator-embed-inner,
  .calculator-embed-inner iframe,
  .calculator-embed-inner embed,
  .calculator-embed-inner object,
  .calculator-embed-inner .calculator-frame,
  .calculator-embed-inner .calculator-app {
    min-height: 760px;
  }
}

@media (min-width: 1800px) {
  .container {
    width: min(88%, 1540px);
  }

  .calculator-embed-inner,
  .calculator-embed-inner iframe,
  .calculator-embed-inner embed,
  .calculator-embed-inner object,
  .calculator-embed-inner .calculator-frame,
  .calculator-embed-inner .calculator-app {
    min-height: 820px;
  }
}