@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700;9..40,800&display=swap');

.fcc-cta-banner {
  position: relative;
  max-width: 100%;
  margin: 16px auto 0;
  border-radius: 16px;
  overflow: hidden;
  padding: 28px 32px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, #060e24 0%, #0c1d3c 60%, #112244 100%);
  font-family: 'DM Sans', -apple-system, sans-serif;
}
.fcc-cta-banner-deco {
  pointer-events: none;
  position: absolute;
  bottom: 0;
  right: 33%;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding-bottom: 16px;
  opacity: 0.06;
  color: #fff;
}
.fcc-cta-banner-deco svg { display: block; }
.fcc-cta-banner-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
  min-width: 0;
}
.fcc-cta-banner-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.fcc-cta-banner-text h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
  line-height: 1.3;
}
.fcc-cta-banner-text p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  margin: 0;
  line-height: 1.5;
}
.fcc-open-btn {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #dc2626;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  line-height: 1;
}
.fcc-open-btn:hover,
.fcc-open-btn:focus { background: #b91c1c; outline: none; }

.fcc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.fcc-overlay.fcc-open { display: flex; }

.fcc-modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.18);
  animation: fccSlideIn 0.22s ease;
}

@keyframes fccSlideIn {
  from { opacity: 0; transform: scale(0.97) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.fcc-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
  flex-shrink: 0;
}
.fcc-modal-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.fcc-modal-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #c8202e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fcc-modal-title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #1f2937;
  margin: 0;
}

.fcc-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  padding: 6px;
  display: flex;
  align-items: center;
  border-radius: 6px;
  transition: background 0.15s;
  line-height: 0;
}
.fcc-modal-close:hover { background: #f3f4f6; color: #1f2937; }

.fcc-modal-body {
  overflow-y: auto;
  flex: 1;
  background: #f3f4f6;
}

.fcc-calc-wrap {
  background: #f3f4f6;
  font-family: 'DM Sans', -apple-system, sans-serif;
  color: #1f2937;
  padding: 48px 24px 80px;
  max-width: 880px;
  margin: 0 auto;
}

.fcc-head { margin-bottom: 28px; text-align: center; }
.fcc-head h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1f2937;
  margin: 0 0 12px;
  line-height: 1.15;
}
.fcc-head h1 em {
  font-style: normal;
  color: #c8202e;
}
.fcc-head p {
  font-size: 0.95rem;
  color: #6b7280;
  margin: 0 auto;
  line-height: 1.5;
  max-width: 560px;
}

.fcc-steps-bar {
  display: flex;
  gap: 8px;
  margin: 0 auto 36px;
  max-width: 220px;
  justify-content: center;
}
.fcc-step-dot {
  height: 4px;
  border-radius: 2px;
  background: #e5e7eb;
  width: 40px;
  transition: width 0.3s, background-color 0.3s;
}
.fcc-step-dot.fcc-active {
  background: #c82230;
  width: 56px;
}
.fcc-step-dot.fcc-completed {
  background: #b01c28;
  width: 40px;
}

.fcc-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.fcc-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 4px;
}
.fcc-card-sub {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0 0 24px;
}

.fcc-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.fcc-field-grid.fcc-3col { grid-template-columns: 1fr 1fr 1fr; }

.fcc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fcc-field.fcc-full { grid-column: 1 / -1; }

.fcc-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
  margin: 0;
}

.fcc-inp-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.fcc-inp-pre,
.fcc-inp-suf {
  position: absolute;
  font-size: 0.875rem;
  color: #9ca3af;
  font-weight: 500;
  pointer-events: none;
  line-height: 1;
}
.fcc-inp-pre { left: 11px; }
.fcc-inp-suf { right: 11px; }

.fcc-inp-wrap input[type="number"],
.fcc-inp-wrap input[type="text"] {
  width: 100%;
  background: #f9fafb;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  color: #1f2937;
  outline: none;
  box-sizing: border-box;
  -moz-appearance: textfield;
  transition: border-color 0.15s, background 0.15s;
}
.fcc-inp-wrap input[type="number"]::-webkit-outer-spin-button,
.fcc-inp-wrap input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fcc-inp-wrap input:focus {
  border-color: #c8202e;
  background: #fff;
}
.fcc-inp-wrap.fcc-has-pre input { padding-left: 28px; }
.fcc-inp-wrap.fcc-has-suf input { padding-right: 28px; }

.fcc-toggle-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
  margin: 0 0 8px;
  display: block;
}

.fcc-toggle-row {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.fcc-calc-wrap .fcc-card button.fcc-tog {
  flex: 1;
  background: #f9fafb;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, color 0.15s;
  line-height: 1;
  box-shadow: none;
  text-shadow: none;
  text-transform: none;
  letter-spacing: normal;
}
.fcc-calc-wrap .fcc-card button.fcc-tog:hover,
.fcc-calc-wrap .fcc-card button.fcc-tog:focus,
.fcc-calc-wrap .fcc-card button.fcc-tog:focus-visible,
.fcc-calc-wrap .fcc-card button.fcc-tog:active {
  background: #f9fafb;
  border-color: #9ca3af;
  color: #6b7280;
  outline: none;
  box-shadow: none;
  transform: none;
}
.fcc-calc-wrap .fcc-card button.fcc-tog.active,
.fcc-calc-wrap .fcc-card button.fcc-tog.active:hover,
.fcc-calc-wrap .fcc-card button.fcc-tog.active:focus,
.fcc-calc-wrap .fcc-card button.fcc-tog.active:focus-visible,
.fcc-calc-wrap .fcc-card button.fcc-tog.active:active {
  background: rgba(200, 32, 46, 0.08);
  border-color: rgba(200, 32, 46, 0.55);
  color: #c8202e;
  box-shadow: none;
}

.fcc-cond { display: none; }
.fcc-cond.show { display: block; margin-bottom: 20px; }

.fcc-cond-grid {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.fcc-cond-grid.show { display: grid; margin-bottom: 20px; }

.fcc-plan-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.fcc-calc-wrap .fcc-card button.fcc-plan-tab {
  flex: 1;
  background: #f9fafb;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 12px 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, color 0.15s;
  line-height: 1;
  box-shadow: none;
  text-shadow: none;
  text-transform: none;
  letter-spacing: normal;
}
.fcc-calc-wrap .fcc-card button.fcc-plan-tab:hover,
.fcc-calc-wrap .fcc-card button.fcc-plan-tab:focus,
.fcc-calc-wrap .fcc-card button.fcc-plan-tab:focus-visible,
.fcc-calc-wrap .fcc-card button.fcc-plan-tab:active {
  background: #f9fafb;
  border-color: #9ca3af;
  color: #6b7280;
  outline: none;
  box-shadow: none;
  transform: none;
}
.fcc-calc-wrap .fcc-card button.fcc-plan-tab.active,
.fcc-calc-wrap .fcc-card button.fcc-plan-tab.active:hover,
.fcc-calc-wrap .fcc-card button.fcc-plan-tab.active:focus,
.fcc-calc-wrap .fcc-card button.fcc-plan-tab.active:focus-visible,
.fcc-calc-wrap .fcc-card button.fcc-plan-tab.active:active {
  background: rgba(200, 32, 46, 0.08);
  border-color: rgba(200, 32, 46, 0.55);
  color: #c8202e;
  box-shadow: none;
}

.fcc-plan-desc {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 16px 0 24px;
  line-height: 1.55;
}
.fcc-plan-desc strong {
  font-weight: 700;
  color: #1f2937;
}

.fcc-btn-row {
  text-align: center;
  margin-top: 8px;
}
.fcc-btn-calc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #c8202e;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 15px 52px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  line-height: 1;
}
.fcc-btn-calc:hover { background: #a51824; }

.fcc-results { display: none; }
.fcc-results.show { display: block; }

.fcc-r-hero {
  background: #f0fdf4;
  border: 1px solid rgba(22, 163, 74, 0.2);
  border-radius: 16px;
  padding: 44px 32px 40px;
  margin-bottom: 24px;
  text-align: center;
  transition: background 0.3s, border-color 0.3s;
}
.fcc-r-hero.fcc-negative {
  background: #fef2f2;
  border-color: rgba(220, 38, 38, 0.15);
}
.fcc-r-tag {
  font-size: 0.82rem;
  font-weight: 600;
  color: #16a34a;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.fcc-r-hero.fcc-negative .fcc-r-tag { color: #dc2626; }
.fcc-r-amount {
  font-size: 3.8rem;
  font-weight: 800;
  color: #1f2937;
  line-height: 1;
  margin: 6px 0;
}
.fcc-r-pct {
  font-size: 0.95rem;
  color: #6b7280;
  margin-top: 6px;
}
.fcc-r-pct b {
  color: #16a34a;
  font-weight: 600;
}
.fcc-r-hero.fcc-negative .fcc-r-pct b { color: #dc2626; }

.fcc-r-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.fcc-r-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
}

.fcc-r-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.fcc-r-card-head.fcc-hd-red   { color: #dc2626; }
.fcc-r-card-head.fcc-hd-green { color: #16a34a; }

.fcc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.fcc-dot-red   { background: #dc2626; }
.fcc-dot-green { background: #16a34a; }

.fcc-r-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.875rem;
  gap: 8px;
}
.fcc-r-line:last-child { border-bottom: none; }
.fcc-r-line-label { color: #6b7280; }
.fcc-r-line-val {
  font-weight: 600;
  color: #1f2937;
  white-space: nowrap;
}

.fcc-r-line.fcc-total {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid #e5e7eb;
  border-bottom: none;
  font-size: 0.95rem;
  font-weight: 700;
}
.fcc-r-line.fcc-total .fcc-r-line-label { color: #1f2937; font-weight: 700; }
.fcc-r-line.fcc-total .fcc-r-line-val.fcc-v-red   { color: #dc2626; }
.fcc-r-line.fcc-total .fcc-r-line-val.fcc-v-green { color: #16a34a; }

.fcc-r-bars {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 28px 24px;
  margin-bottom: 24px;
}
.fcc-r-bars-title {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  margin: 0 0 20px;
}

.fcc-bar-item { margin-bottom: 18px; }
.fcc-bar-item:last-child { margin-bottom: 0; }

.fcc-bar-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.fcc-bar-label { font-size: 0.8125rem; color: #6b7280; font-weight: 500; }
.fcc-bar-val   { font-size: 0.95rem; font-weight: 700; }
.fcc-bar-val.fcc-v-red   { color: #dc2626; }
.fcc-bar-val.fcc-v-green { color: #16a34a; }

.fcc-bar-track {
  background: #f3f4f6;
  border-radius: 5px;
  height: 14px;
  overflow: hidden;
}
.fcc-bar-fill {
  height: 100%;
  border-radius: 5px;
  width: 0;
  transition: width 0.7s cubic-bezier(.4,0,.2,1);
}
.fcc-bar-fill-red   { background: linear-gradient(90deg, #ef4444, #f97316); }
.fcc-bar-fill-green { background: linear-gradient(90deg, #16a34a, #22c55e); }

.fcc-r-cta {
  text-align: center;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.fcc-r-cta p {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 4px;
}
.fcc-r-cta-btns {
  display: inline-flex;
  flex-direction: column;
  gap: 12px;
}
.fcc-btn-join {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #c8202e;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px 40px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
  line-height: 1;
  white-space: nowrap;
}
.fcc-btn-join:hover { background: #a51824; color: #fff; }
.fcc-btn-join svg { transition: transform 0.2s; }
.fcc-btn-join:hover svg { transform: translateX(3px); }

.fcc-btn-recalc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0;
  min-width: 100%;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 28px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  line-height: 1;
  box-sizing: border-box;
  white-space: nowrap;
}
.fcc-btn-recalc:hover,
.fcc-btn-recalc:focus {
  background: #fff;
  border-color: #c8202e;
  color: #c8202e;
  outline: none;
}

@media (max-width: 680px) {
  .fcc-cta-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 24px 20px;
  }
  .fcc-cta-banner-content { justify-content: center; }
  .fcc-cta-banner-deco { display: none; }
  .fcc-open-btn { justify-content: center; }
  .fcc-calc-wrap   { padding: 28px 16px 60px; }
  .fcc-head h1     { font-size: 1.75rem; }
  .fcc-r-amount    { font-size: 2.5rem; }
  .fcc-card        { padding: 24px 20px; }
  .fcc-field-grid,
  .fcc-field-grid.fcc-3col,
  .fcc-cond-grid   { grid-template-columns: 1fr; }
  .fcc-r-grid      { grid-template-columns: 1fr; }
  .fcc-btn-calc    { padding: 14px 32px; font-size: 0.95rem; }
  .fcc-r-hero      { padding: 32px 20px 28px; }
  .fcc-toggle-row  { flex-wrap: wrap; }
}
