/* ==========================================================
   easyfile.in — Advanced Calculator Suite (Executive UI & UX)
   Fintech-grade visual sliders, comparison split views,
   breakdown progress bars, and high-contrast responsive layout.
   ========================================================== */

.calc-hub-hero {
  padding: 56px 0 44px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid #e2e8f0;
  text-align: center;
}

.calc-hub-hero .hero-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.calc-hub-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: #060c18;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 14px;
}

.calc-hub-hero p {
  font-size: 1.15rem;
  color: #334155;
  max-width: 760px;
  margin: 0 auto 24px;
  line-height: 1.65;
}

/* Category Filter Tabs Bar */
.calc-nav-tabs-wrapper {
  position: sticky;
  top: 72px;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.calc-nav-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.calc-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 700;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}

.calc-tab-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.calc-tab-btn.active {
  background: #0a192f;
  border-color: #0a192f;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(10, 25, 47, 0.2);
}

/* Main Calculator Layout */
.calc-main-container {
  padding: 48px 0 80px;
  background: #f8fafc;
}

.calc-card-full {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  padding: 32px;
  margin-bottom: 44px;
  scroll-margin-top: 140px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.calc-card-full:hover {
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.09);
}

.calc-card-full.highlight-focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.calc-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 24px;
}

.calc-title-area h2 {
  font-size: 1.65rem;
  font-weight: 800;
  color: #060c18;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.calc-title-area p {
  font-size: 0.96rem;
  color: #475569;
  max-width: 680px;
  line-height: 1.55;
}

.calc-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.calc-badge.badge-green {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

/* 2-Column Split: Inputs & Interactive Results */
.calc-body-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: start;
}

@media (max-width: 991px) {
  .calc-body-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* Form Controls & Sliders */
.calc-inputs-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.calc-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-input-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
}

.calc-val-display-box {
  display: inline-flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  min-width: 140px;
  justify-content: flex-end;
}

.calc-val-display-box input[type="number"] {
  border: none;
  background: transparent;
  text-align: right;
  font-weight: 800;
  font-size: 1rem;
  color: #0f172a;
  width: 100%;
  outline: none;
}

.calc-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #e2e8f0;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #059669;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.calc-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #059669;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  cursor: pointer;
}

/* Radio & Toggle Pills */
.calc-toggle-group {
  display: inline-flex;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
}

.calc-toggle-btn {
  padding: 6px 16px;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.calc-toggle-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

/* Results Column Box */
.calc-results-box {
  background: #0a192f;
  color: #ffffff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(10, 25, 47, 0.18);
  position: relative;
  overflow: hidden;
}

.calc-results-box::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, rgba(10, 25, 47, 0) 70%);
  pointer-events: none;
}

.result-main-title {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 6px;
  font-weight: 700;
}

.result-main-amount {
  font-size: 2.2rem;
  font-weight: 800;
  color: #34d399;
  line-height: 1.15;
  margin-bottom: 20px;
}

.result-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 24px;
}

.result-breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}

.result-breakdown-item .item-label {
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.result-breakdown-item .item-val {
  font-weight: 700;
  color: #ffffff;
}

/* Dual Color Progress Breakdown Bar */
.calc-progress-shell {
  height: 10px;
  background: #1e293b;
  border-radius: 9999px;
  overflow: hidden;
  display: flex;
  margin: 16px 0 20px;
}

.calc-prog-invested {
  background: #38bdf8;
  height: 100%;
  transition: width 0.3s ease;
}

.calc-prog-gain {
  background: #10b981;
  height: 100%;
  transition: width 0.3s ease;
}

.calc-legend-row {
  display: flex;
  gap: 16px;
  font-size: 0.82rem;
  color: #94a3b8;
  margin-bottom: 18px;
}

.calc-legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 4px;
}

/* Callout Winner Box (for Tax Regime) */
.regime-winner-banner {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #059669;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.winner-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.winner-text h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #34d399;
  margin-bottom: 2px;
}

.winner-text p {
  font-size: 0.85rem;
  color: #e2e8f0;
  margin: 0;
}

/* Compare Split Box */
.regime-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.regime-card-mini {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}

.regime-card-mini.winner {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.12);
}

.regime-card-mini .regime-title {
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 700;
  margin-bottom: 4px;
}

.regime-card-mini .regime-tax-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}

/* WhatsApp Action in Calculator */
.calc-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calc-btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25d366;
  color: #052e16;
  font-weight: 800;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease;
}

.calc-btn-whatsapp:hover {
  background: #20bd59;
  transform: translateY(-1px);
}

/* Explanatory Details Box underneath */
.calc-explanation-shell {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.65;
}

.calc-explanation-shell h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.calc-formula-tag {
  display: inline-block;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.88rem;
  color: #0f172a;
  margin: 6px 0 10px;
}

/* FAQ Accordion */
.calc-faqs-section {
  padding: 64px 0;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
}

.faq-item-calc {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  background: #ffffff;
  transition: border-color 0.15s ease;
}

.faq-item-calc:hover {
  border-color: #cbd5e1;
}

.faq-question-btn {
  width: 100%;
  padding: 18px 24px;
  text-align: left;
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.08rem;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
}

.faq-answer-pane {
  padding: 0 24px 20px;
  font-size: 0.98rem;
  color: #334155;
  line-height: 1.7;
  display: none;
}

.faq-item-calc.open .faq-answer-pane {
  display: block;
}

.faq-item-calc.open .faq-question-btn {
  color: #059669;
}

.faq-icon-arrow {
  transition: transform 0.2s ease;
}

.faq-item-calc.open .faq-icon-arrow {
  transform: rotate(180deg);
}
