/* ============ Calculator pages — shared styles ============ */
:root {
  --purple-900: #1A0E2E;
  --purple-800: #2A1748;
  --purple-700: #3E2270;
  --purple-600: #5B3494;
  --gold-500: #D4AF37;
  --gold-400: #E5C158;
  --gold-300: #F2D77B;
  --cream: #F8F4E6;
  --gray-50: #FAFAF8;
  --gray-100: #F2F0EB;
  --gray-700: #4B4B52;
  --gray-900: #14141A;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Heebo", "Assistant", -apple-system, sans-serif;
  direction: rtl;
  background: var(--cream);
  color: var(--gray-900);
  line-height: 1.6;
  min-height: 100vh;
}

/* NAV */
.cf-nav {
  position: sticky; top: 0;
  background: var(--purple-900);
  padding: 14px 28px;
  display: flex; align-items: center; gap: 30px;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.cf-brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--gold-400); text-decoration: none;
  font-weight: 800; font-size: 22px;
}
.cf-brand-mark { width: 32px; height: 32px; }
.cf-brand-name { letter-spacing: 1px; }
.cf-nav-links { display: flex; gap: 24px; margin-right: auto; }
.cf-nav-links a {
  color: rgba(255,255,255,0.85); text-decoration: none;
  font-weight: 600; font-size: 15px;
  transition: color 0.2s;
}
.cf-nav-links a:hover, .cf-nav-links a.active { color: var(--gold-400); }
.cf-cta-wa {
  display: inline-flex; align-items: center; gap: 8px;
  background: #25D366; color: white;
  padding: 9px 18px; border-radius: 24px;
  text-decoration: none; font-weight: 700; font-size: 14px;
  transition: transform 0.2s;
}
.cf-cta-wa:hover { transform: scale(1.05); }

/* BREADCRUMBS */
.bc-nav {
  background: #fff;
  padding: 12px 28px;
  font-size: 13px;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}
.bc-nav a { color: var(--purple-600); text-decoration: none; }
.bc-nav a:hover { text-decoration: underline; }
.bc-nav span { margin: 0 6px; opacity: 0.5; }

/* HERO */
.cf-hero {
  position: relative;
  background: linear-gradient(135deg, var(--purple-900) 0%, var(--purple-700) 100%);
  color: white;
  padding: 70px 28px 60px;
  overflow: hidden;
  text-align: center;
}
.cf-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(212,175,55,0.18), transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(140,80,200,0.22), transparent 50%);
}
.cf-hero-content { position: relative; max-width: 900px; margin: 0 auto; }
.cf-icon-circle {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  color: var(--purple-900);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 38px;
  margin: 0 auto 20px;
  box-shadow: 0 10px 40px rgba(212,175,55,0.45);
}
.cf-hero h1 {
  font-size: 42px; font-weight: 900;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.cf-intro {
  font-size: 18px; opacity: 0.9;
  max-width: 720px; margin: 0 auto 28px;
}
.cf-hero-meta {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  font-size: 13px;
}
.cf-hero-meta span {
  background: rgba(255,255,255,0.1);
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(212,175,55,0.3);
}

/* CALC LAYOUT */
.cf-calc { padding: 50px 28px; max-width: 1300px; margin: 0 auto; }
.cf-calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.cf-section-title {
  font-size: 22px; font-weight: 800;
  color: var(--purple-800);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--gold-400);
  display: inline-block;
}
.cf-form, .cf-result {
  background: white; border-radius: 16px;
  padding: 32px;
  box-shadow: 0 10px 40px rgba(40, 20, 70, 0.08);
}
.cf-result { position: sticky; top: 90px; }

/* FORM FIELDS */
.cf-field { margin-bottom: 18px; }
.cf-field-wide { grid-column: 1 / -1; }
.cf-field label, .cf-block-label {
  display: block; font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 6px;
  font-size: 14px;
}
.cf-unit { color: var(--gray-700); font-weight: 400; font-size: 12px; }
.cf-help { color: var(--gray-700); font-size: 12px; margin-top: 4px; opacity: 0.85; }
.cf-field input[type="number"], .cf-field select {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--gray-100);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: white;
  transition: border-color 0.2s;
}
.cf-field input[type="number"]:focus, .cf-field select:focus {
  outline: none; border-color: var(--gold-400);
}

/* TIER CARDS */
.cf-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cf-tier {
  position: relative;
  display: block;
  padding: 14px;
  border: 2px solid var(--gray-100);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
}
.cf-tier input { position: absolute; opacity: 0; pointer-events: none; }
.cf-tier:hover { border-color: var(--gold-400); transform: translateY(-2px); }
.cf-tier.active {
  border-color: var(--gold-500);
  background: linear-gradient(135deg, rgba(212,175,55,0.08), rgba(212,175,55,0.04));
  box-shadow: 0 4px 16px rgba(212,175,55,0.15);
}
.cf-tier-label {
  font-weight: 700; font-size: 16px;
  color: var(--purple-800);
  margin-bottom: 4px;
}
.cf-tier.active .cf-tier-label { color: var(--gold-500); }
.cf-tier-desc { font-size: 12px; color: var(--gray-700); line-height: 1.4; }

/* CHECKBOX */
.cf-check {
  display: flex; align-items: flex-start; gap: 12px;
  cursor: pointer;
  padding: 8px 0;
}
.cf-check input { position: absolute; opacity: 0; }
.cf-check-box {
  width: 22px; height: 22px;
  border: 2px solid var(--gray-100);
  border-radius: 6px;
  flex-shrink: 0;
  position: relative;
  background: white;
  transition: all 0.15s;
  margin-top: 1px;
}
.cf-check input:checked + .cf-check-box {
  background: var(--gold-500);
  border-color: var(--gold-500);
}
.cf-check input:checked + .cf-check-box::after {
  content: '✓';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: white; font-weight: 900; font-size: 14px;
}
.cf-check-text { display: flex; flex-direction: column; gap: 2px; }
.cf-check-label { font-weight: 600; font-size: 14px; color: var(--gray-900); }
.cf-check-text .cf-help { margin-top: 0; }

.cf-btn-recalc {
  display: none; /* auto-recalc on change */
}

/* RESULT */
.cf-result-summary {
  background: linear-gradient(135deg, var(--purple-800), var(--purple-700));
  color: white;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 20px;
}
.cf-result-label { font-size: 13px; opacity: 0.85; margin-bottom: 6px; }
.cf-result-price {
  font-size: 28px;
  font-weight: 900;
  color: var(--gold-400);
  margin-bottom: 6px;
  font-feature-settings: "tnum";
}
.cf-result-note { font-size: 11px; opacity: 0.75; line-height: 1.5; }

.cf-bd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.cf-bd-table th {
  background: var(--gray-50);
  color: var(--purple-800);
  padding: 10px 8px;
  text-align: right;
  font-weight: 700;
  border-bottom: 2px solid var(--gray-100);
}
.cf-bd-table td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--gray-100);
}
.cf-bd-table tfoot td {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-400));
  color: var(--purple-900);
  font-weight: 800; font-size: 14px;
  padding: 12px 8px;
}

.cf-result-actions {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 20px;
}
.cf-btn-pdf, .cf-btn-wa {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  border: none;
  font-family: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
}
.cf-btn-pdf {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--purple-900);
}
.cf-btn-pdf:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(212,175,55,0.4); }
.cf-btn-wa {
  background: #25D366; color: white;
}
.cf-btn-wa:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37,211,102,0.4); }

/* SECTIONS */
.cf-section { padding: 60px 28px; }
.cf-section-light { background: white; }
.cf-section-dark { background: linear-gradient(180deg, var(--purple-900), var(--purple-800)); }
.cf-container { max-width: 1200px; margin: 0 auto; }
.cf-container-narrow { max-width: 860px; }
.cf-h2 {
  font-size: 32px; font-weight: 900;
  color: var(--purple-800);
  margin-bottom: 8px;
  text-align: center;
}
.cf-h2-light { color: white; }
.cf-h2-sub {
  font-size: 16px; color: var(--gray-700);
  text-align: center; margin-bottom: 40px;
}
.cf-h2-sub-light { color: rgba(255,255,255,0.75); }

/* PROCESS TIMELINE */
.ptl-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.ptl-step {
  background: var(--gray-50);
  padding: 22px;
  border-radius: 14px;
  border-top: 4px solid var(--gold-500);
  transition: transform 0.2s;
}
.ptl-step:hover { transform: translateY(-4px); }
.ptl-phase {
  font-size: 12px;
  color: var(--gold-500);
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.ptl-title {
  font-size: 17px; font-weight: 700;
  color: var(--purple-800);
  margin-bottom: 6px;
}
.ptl-desc { font-size: 13px; color: var(--gray-700); line-height: 1.5; }

/* CHECKLIST */
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.checklist-block {
  background: rgba(255,255,255,0.05);
  padding: 24px;
  border-radius: 14px;
  border: 1px solid rgba(212,175,55,0.25);
  backdrop-filter: blur(10px);
}
.checklist-block h3 {
  color: var(--gold-400);
  font-size: 17px;
  margin-bottom: 14px;
  font-weight: 800;
}
.checklist-list {
  list-style: none;
}
.checklist-list li {
  padding: 8px 0 8px 0;
  padding-right: 24px;
  color: rgba(255,255,255,0.88);
  font-size: 14px;
  line-height: 1.5;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.checklist-list li:last-child { border-bottom: none; }
.checklist-list li::before {
  content: "✓";
  position: absolute;
  right: 0; top: 9px;
  color: var(--gold-400);
  font-weight: 800;
}

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--gray-50);
  border-radius: 12px;
  border: 1px solid var(--gray-100);
  overflow: hidden;
}
.faq-item summary {
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 16px;
  color: var(--purple-800);
  position: relative;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  left: 22px; top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: var(--gold-500);
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-q { padding-left: 24px; display: inline-block; }
.faq-a {
  padding: 0 22px 18px;
  color: var(--gray-700);
  font-size: 14.5px;
  line-height: 1.7;
}

/* OTHER CALCULATORS */
.cf-section-other { padding-top: 50px; padding-bottom: 60px; }
.oc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}
.oc-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: var(--gray-50);
  padding: 22px 14px;
  border-radius: 12px;
  text-decoration: none;
  text-align: center;
  border: 1px solid var(--gray-100);
  transition: all 0.2s;
}
.oc-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-400);
  box-shadow: 0 8px 24px rgba(212,175,55,0.18);
}
.oc-icon { font-size: 32px; }
.oc-title {
  font-size: 13px; font-weight: 700;
  color: var(--purple-800);
}

/* CTA */
.cf-cta-section {
  background: linear-gradient(135deg, var(--purple-800), var(--purple-700));
  color: white;
  padding: 60px 28px;
  text-align: center;
}
.cf-cta-section h2 {
  font-size: 30px; font-weight: 900;
  margin-bottom: 14px;
}
.cf-cta-section p {
  font-size: 16px; opacity: 0.9;
  margin-bottom: 28px;
  max-width: 680px; margin-left: auto; margin-right: auto;
}
.cf-cta-buttons {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}
.cf-btn-primary, .cf-btn-secondary {
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform 0.15s;
}
.cf-btn-primary {
  background: var(--gold-500); color: var(--purple-900);
}
.cf-btn-primary:hover { transform: translateY(-2px); }
.cf-btn-secondary {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 2px solid rgba(255,255,255,0.3);
}
.cf-btn-secondary:hover { background: rgba(255,255,255,0.18); }

/* FOOTER */
.cf-footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.7);
  padding: 50px 28px 20px;
}
.cf-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}
.cf-brand-footer { color: var(--gold-400); margin-bottom: 14px; }
.cf-footer h4 {
  color: var(--gold-400);
  font-size: 15px;
  margin-bottom: 14px;
  font-weight: 700;
}
.cf-footer ul { list-style: none; }
.cf-footer li { margin-bottom: 7px; }
.cf-footer a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 14px;
}
.cf-footer a:hover { color: var(--gold-400); }
.cf-footer p { font-size: 14px; margin-bottom: 6px; }
.cf-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 30px;
  padding-top: 18px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  max-width: 1200px;
  margin-left: auto; margin-right: auto;
}

/* WhatsApp float */
.cf-wa-float {
  position: fixed;
  bottom: 24px; left: 24px;
  width: 60px; height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  z-index: 99;
  transition: transform 0.2s;
}
.cf-wa-float:hover { transform: scale(1.1); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .cf-calc-grid { grid-template-columns: 1fr; }
  .cf-result { position: static; }
  .cf-hero h1 { font-size: 30px; }
  .cf-intro { font-size: 16px; }
  .cf-h2 { font-size: 24px; }
  .cf-tiers { grid-template-columns: 1fr; }
  .cf-nav { padding: 12px 16px; gap: 16px; }
  .cf-nav-links { display: none; }
  .cf-calc { padding: 30px 16px; }
  .cf-form, .cf-result { padding: 22px; }
  .cf-section { padding: 40px 16px; }
  .cf-bd-table { font-size: 12px; }
  .cf-bd-table th, .cf-bd-table td { padding: 6px 4px; }
}
