/**
 * JobsFlow Calculator Section Styles
 * Educational Tooltip System & Calculator Components
 *
 * Design System Colors:
 * - Primary Blue:    #2B5F8F
 * - Secondary Teal:  #2D9B8E
 * - Accent Gold:     #FDB856
 * - Accent Orange:   #F89B4D
 */

/* ============================================================================
   TOOLTIP SYSTEM
   ============================================================================ */

/* Info Icon Button */
.calc-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: #9ca3af;
  /* gray-400 */
  cursor: help;
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.calc-info-icon:hover {
  color: #2B5F8F;
  transform: scale(1.1);
}

.calc-info-icon:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(43, 95, 143, 0.2);
}

/* Ensure touch targets are large enough on mobile */
@media (max-width: 768px) {
  .calc-info-icon {
    min-width: 44px;
    min-height: 44px;
    padding: 14px;
  }
}

/* Desktop Tooltip */
.calc-tooltip {
  position: absolute;
  z-index: 50;
  visibility: hidden;
  opacity: 0;
  background-color: #1e293b;
  /* slate-800 */
  color: #f1f5f9;
  /* slate-100 */
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  padding: 16px;
  max-width: 320px;
  width: max-content;
  transition: all 0.2s ease;
  transform: translateY(-4px) scale(0.95);
}

.calc-tooltip.visible {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Tooltip Arrow */
.calc-tooltip-arrow {
  position: absolute;
  width: 16px;
  height: 16px;
  background-color: #1e293b;
  transform: rotate(45deg);
}

.calc-tooltip-arrow.top {
  top: -8px;
  left: 50%;
  margin-left: -8px;
}

.calc-tooltip-arrow.bottom {
  bottom: -8px;
  left: 50%;
  margin-left: -8px;
}

/* Tooltip Content */
.calc-tooltip-title {
  font-weight: 700;
  font-size: 14px;
  color: #ffffff;
  margin-bottom: 8px;
}

.calc-tooltip-divider {
  width: 100%;
  height: 1px;
  background-color: #475569;
  /* slate-600 */
  margin-bottom: 12px;
}

.calc-tooltip-description {
  font-size: 12px;
  color: #cbd5e1;
  /* slate-300 */
  line-height: 1.5;
  margin-bottom: 12px;
}

.calc-tooltip-calculation {
  background-color: rgba(71, 85, 105, 0.5);
  /* slate-600/50 */
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
}

.calc-tooltip-calculation-label {
  font-size: 11px;
  color: #94a3b8;
  /* slate-400 */
  margin-bottom: 4px;
}

.calc-tooltip-calculation-value {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: #2D9B8E;
  /* teal */
}

.calc-tooltip-source {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #94a3b8;
  /* slate-400 */
}

.calc-tooltip-source svg {
  width: 12px;
  height: 12px;
}

/* Mobile Tooltip (Bottom Sheet) */
@media (max-width: 768px) {
  .calc-tooltip-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .calc-tooltip-overlay.visible {
    opacity: 1;
    visibility: visible;
  }

  .calc-tooltip-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background-color: #ffffff;
    border-radius: 24px 24px 0 0;
    padding: 24px;
    max-height: 70vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s ease;
  }

  .calc-tooltip-mobile.visible {
    transform: translateY(0);
  }

  .calc-tooltip-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
  }

  .calc-tooltip-mobile-title {
    font-weight: 700;
    font-size: 18px;
    color: #0f172a;
  }

  .calc-tooltip-mobile-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f1f5f9;
    border-radius: 8px;
    color: #5b697a;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .calc-tooltip-mobile-close:hover {
    background-color: #e2e8f0;
  }

  .calc-tooltip-mobile-description {
    font-size: 14px;
    color: #5b697a;
    line-height: 1.6;
    margin-bottom: 16px;
  }

  .calc-tooltip-mobile-calculation {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
  }

  .calc-tooltip-mobile-calculation-label {
    font-size: 12px;
    color: #5b697a;
    margin-bottom: 8px;
  }

  .calc-tooltip-mobile-calculation-value {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    color: #2B5F8F;
    font-weight: 600;
  }

  .calc-tooltip-mobile-source {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #5b697a;
    padding: 12px;
    background-color: #f8fafc;
    border-radius: 8px;
    margin-bottom: 16px;
  }

  .calc-tooltip-mobile-dismiss {
    width: 100%;
    padding: 14px 24px;
    background-color: #2B5F8F;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }

  .calc-tooltip-mobile-dismiss:hover {
    background-color: #1E4D7B;
  }

  /* Handle bar for swipe dismiss */
  .calc-tooltip-mobile::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background-color: #d4dee6;
    border-radius: 2px;
  }
}

/* ============================================================================
   RESULT ROWS
   ============================================================================ */

.calc-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.2s ease;
}

.calc-result-row:hover {
  background-color: #fafafa;
}

.calc-result-row:last-child {
  border-bottom: none;
}

.calc-result-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #5b697a;
  font-size: 14px;
}

.calc-result-value {
  font-weight: 600;
  font-size: 14px;
}

.calc-result-value.positive {
  color: #22c55e;
  /* green-600 */
}

.calc-result-value.negative {
  color: #ef4444;
  /* red-600 */
}

.calc-result-value.neutral {
  color: #0f172a;
}

/* Sub-items (nested) */
.calc-result-subitems {
  margin-left: 24px;
  padding-left: 16px;
  border-left: 2px solid #e2e8f0;
}

.calc-result-subitem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
}

.calc-result-subitem-label {
  font-size: 12px;
  color: #5b697a;
}

.calc-result-subitem-value {
  font-size: 12px;
  font-weight: 500;
}

.calc-result-subitem-value.negative {
  color: #f87171;
  /* red-400 */
}

/* Result highlight box */
.calc-result-highlight {
  background: linear-gradient(135deg, rgba(77, 184, 172, 0.1) 0%, rgba(43, 95, 143, 0.1) 100%);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  margin-top: 16px;
}

.calc-result-highlight-label {
  font-size: 12px;
  font-weight: 600;
  color: #5b697a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.calc-result-highlight-value {
  font-size: 36px;
  font-weight: 800;
  color: #2B5F8F;
  line-height: 1.2;
}

.calc-result-highlight-percentage {
  font-size: 14px;
  color: #5b697a;
  margin-top: 4px;
}

.calc-result-highlight-percentage span {
  color: #2D9B8E;
  font-weight: 600;
}

/* Progress bar */
.calc-progress-bar {
  margin-top: 24px;
}

.calc-progress-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #5b697a;
  margin-bottom: 8px;
}

.calc-progress-bar-track {
  height: 12px;
  background-color: #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
}

.calc-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #2D9B8E 0%, #2B5F8F 100%);
  border-radius: 6px;
  transition: width 0.5s ease;
}

/* ============================================================================
   ACCORDION (How We Calculated)
   ============================================================================ */

.calc-accordion {
  margin-top: 32px;
}

.calc-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background-color: #f8fafc;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.calc-accordion-trigger:hover {
  background-color: #f1f5f9;
}

.calc-accordion-trigger-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: #0f172a;
}

.calc-accordion-trigger-text svg {
  width: 20px;
  height: 20px;
  color: #2D9B8E;
}

.calc-accordion-trigger-icon {
  width: 20px;
  height: 20px;
  color: #5b697a;
  transition: transform 0.3s ease;
}

.calc-accordion-trigger[aria-expanded="true"] .calc-accordion-trigger-icon {
  transform: rotate(180deg);
}

.calc-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
}

.calc-accordion-content.expanded {
  max-height: 2000px;
}

.calc-accordion-inner {
  padding: 24px 16px;
  background-color: #f8fafc;
  border-radius: 0 0 12px 12px;
  margin-top: 4px;
}

/* Step items */
.calc-step {
  margin-bottom: 24px;
}

.calc-step:last-child {
  margin-bottom: 0;
}

.calc-step-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #2B5F8F;
  margin-bottom: 8px;
}

.calc-step-number {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #2B5F8F;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 50%;
}

.calc-step-number.final {
  background-color: #2D9B8E;
}

.calc-step-description {
  font-size: 13px;
  color: #5b697a;
  margin-left: 32px;
  margin-bottom: 8px;
  line-height: 1.5;
}

.calc-step-code {
  margin-left: 32px;
  padding: 12px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.calc-step-code code {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: #2D9B8E;
  display: block;
  line-height: 1.6;
}

.calc-step-code-final {
  background-color: rgba(43, 95, 143, 0.05);
  border: 2px solid rgba(43, 95, 143, 0.2);
}

.calc-step-code-final code.result {
  color: #2B5F8F;
  font-weight: 700;
  font-size: 16px;
}

/* ============================================================================
   CALCULATOR CARDS (Landing Page)
   ============================================================================ */

.calc-card {
  display: block;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  padding: 24px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  text-decoration: none;
}

.calc-card:hover {
  border-color: #2D9B8E;
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.calc-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2D9B8E 0%, #2B5F8F 100%);
  border-radius: 12px;
  margin-bottom: 16px;
  transition: transform 0.3s ease;
}

.calc-card:hover .calc-card-icon {
  transform: scale(1.1);
}

.calc-card-icon svg {
  width: 24px;
  height: 24px;
  color: #ffffff;
}

.calc-card-title {
  font-weight: 700;
  font-size: 18px;
  color: #0f172a;
  margin-bottom: 8px;
  transition: color 0.2s ease;
}

.calc-card:hover .calc-card-title {
  color: #2B5F8F;
}

.calc-card-description {
  font-size: 14px;
  color: #5b697a;
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.calc-card-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.calc-card-cta-text {
  font-size: 14px;
  font-weight: 600;
  color: #2B5F8F;
  transition: color 0.2s ease;
}

.calc-card:hover .calc-card-cta-text {
  color: #2D9B8E;
}

.calc-card-cta-icon {
  width: 20px;
  height: 20px;
  color: #2B5F8F;
  transition: transform 0.2s ease;
}

.calc-card:hover .calc-card-cta-icon {
  transform: translateX(4px);
}

.calc-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background-color: rgba(253, 184, 86, 0.2);
  color: #F89B4D;
  font-size: 11px;
  font-weight: 600;
  border-radius: 9999px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

.calc-card-badge svg {
  width: 12px;
  height: 12px;
}

/* ============================================================================
   MORPHING CALCULATOR ICONS (Landing Page Cards)
   Custom transformations for each icon
   ============================================================================ */

/* Icon box with gradient background */
.calc-icon-morph {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #4DB8AC 0%, #2B5F8F 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6),
    background 0.4s ease;
  overflow: hidden;
}

.group:hover .calc-icon-morph {
  transform: scale(1.08);
  background: linear-gradient(135deg, #2B5F8F 0%, #4DB8AC 100%);
}

/* ============================================================================
   MONEY ICON: € slides down, circle spins, € comes back up
   ============================================================================ */
.calc-icon-money .money-circle {
  transform-origin: center;
  transition: transform 0.6s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.calc-icon-money .euro-base {
  transition: all 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.calc-icon-money .euro-new {
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
  transition-delay: 0.2s;
}

.group:hover .calc-icon-money .money-circle {
  transform: rotate(360deg);
}

.group:hover .calc-icon-money .euro-base {
  transform: translateY(20px);
  opacity: 0;
}

.group:hover .calc-icon-money .euro-new {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================================
   CALENDAR ICON: Page flips up, reveals checkmark
   ============================================================================ */
.calc-icon-calendar .cal-base,
.calc-icon-calendar .cal-page,
.calc-icon-calendar .cal-check {
  transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.calc-icon-calendar .cal-check {
  opacity: 0;
  transform: scale(0) translateY(4px);
}

.group:hover .calc-icon-calendar .cal-page {
  transform: translateY(-6px) rotate(-10deg);
  opacity: 0;
}

.group:hover .calc-icon-calendar .cal-check {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* ============================================================================
   CLOCK ICON: Both hands spin around (original style - 360deg)
   ============================================================================ */
.calc-icon-clock .clock-face {
  transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.calc-icon-clock .clock-hand {
  transform-origin: 12px 12px;
  transition: all 0.6s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.group:hover .calc-icon-clock .clock-hand-1 {
  transform: rotate(360deg);
}

.group:hover .calc-icon-clock .clock-hand-2 {
  transform: rotate(180deg);
}

/* ============================================================================
   BABY ICON: One smiley, two child smileys appear on hover
   ============================================================================ */
.calc-icon-baby .baby-main,
.calc-icon-baby .baby-eye,
.calc-icon-baby .baby-smile {
  transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.calc-icon-baby .child {
  opacity: 0;
  transform: scale(0);
  transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.calc-icon-baby .child-left {
  transform-origin: center;
}

.calc-icon-baby .child-right {
  transform-origin: center;
  transition-delay: 0.1s;
}

.group:hover .calc-icon-baby .baby-main {
  transform: translateY(-2px) scale(0.95);
}

.group:hover .calc-icon-baby .child {
  opacity: 1;
  transform: scale(1);
}

/* ============================================================================
   LOGOUT/FELMONDÁS: Arrow exits right, € slides in from right
   ============================================================================ */
.calc-icon-logout .door,
.calc-icon-logout .arrow-shaft,
.calc-icon-logout .arrow-head {
  transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.calc-icon-logout .logout-euro {
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
  transition-delay: 0.15s;
}

.group:hover .calc-icon-logout .arrow-shaft {
  transform: translateX(15px);
  opacity: 0;
}

.group:hover .calc-icon-logout .arrow-head {
  transform: translateX(15px);
  opacity: 0;
}

.group:hover .calc-icon-logout .logout-euro {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================================================
   MUSIC/EKHO: Music note transforms to € icon
   ============================================================================ */
.calc-icon-music .music-note {
  transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.calc-icon-music .euro-appear {
  opacity: 0;
  transform: scale(0);
  transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
  transition-delay: 0.1s;
}

.group:hover .calc-icon-music .music-note {
  opacity: 0;
  transform: scale(0.5) translateY(-10px);
}

.group:hover .calc-icon-music .euro-appear {
  opacity: 1;
  transform: scale(1);
}

/* ============================================================================
   BRIEFCASE: Briefcase transforms to a person
   ============================================================================ */
.calc-icon-briefcase .briefcase-body,
.calc-icon-briefcase .briefcase-lid {
  transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.calc-icon-briefcase .person-appear {
  opacity: 0;
  transform: scale(0);
  transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
  transition-delay: 0.1s;
}

.group:hover .calc-icon-briefcase .briefcase-body,
.group:hover .calc-icon-briefcase .briefcase-lid {
  opacity: 0;
  transform: scale(0.5);
}

.group:hover .calc-icon-briefcase .person-appear {
  opacity: 1;
  transform: scale(1);
}

/* ============================================================================
   TARGET/BÉRIGÉNY: ? transforms to €
   ============================================================================ */
.calc-icon-target .target-rings {
  transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.calc-icon-target .question-mark {
  transition: all 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.calc-icon-target .euro-appear {
  opacity: 0;
  transform: scale(0) rotate(-180deg);
  transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
  transition-delay: 0.1s;
}

.group:hover .calc-icon-target .question-mark {
  opacity: 0;
  transform: scale(0) rotate(180deg);
}

.group:hover .calc-icon-target .euro-appear {
  opacity: 1;
  transform: scale(1) rotate(0);
}

.group:hover .calc-icon-target .target-rings {
  transform: scale(1.1);
}

/* ============================================================================
   TRENDING/INFLÁCIÓS: Trend arrow transforms to ! warning
   ============================================================================ */
.calc-icon-trending .trend-line,
.calc-icon-trending .trend-arrow {
  transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.calc-icon-trending .exclaim-appear {
  opacity: 0;
  transform: translateY(-10px) scale(0);
  transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
  transition-delay: 0.15s;
}

.group:hover .calc-icon-trending .trend-line,
.group:hover .calc-icon-trending .trend-arrow {
  opacity: 0;
  transform: translateY(-10px);
}

.group:hover .calc-icon-trending .exclaim-appear {
  opacity: 1;
  transform: translateY(0) scale(1.2);
}

/* ============================================================================
   HOME/INGÁZÁS: House transforms to a wavy route with map pin at end
   ============================================================================ */
.calc-icon-home .home-roof,
.calc-icon-home .home-base {
  transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.calc-icon-home .route-appear,
.calc-icon-home .route-pin {
  opacity: 0;
  transform: scale(0);
  transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
  transition-delay: 0.1s;
}

.group:hover .calc-icon-home .home-roof,
.group:hover .calc-icon-home .home-base {
  opacity: 0;
  transform: scale(0.5);
}

.group:hover .calc-icon-home .route-appear {
  opacity: 1;
  transform: scale(1);
}

.group:hover .calc-icon-home .route-pin {
  opacity: 1;
  transform: scale(1);
  transition-delay: 0.2s;
}

/* ============================================================================
   MAP/MEGÉLHETÉSI: Map pin, € appears inside on hover
   ============================================================================ */
.calc-icon-map .map-pin,
.calc-icon-map .map-pin-inner {
  transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.calc-icon-map .euro-appear {
  opacity: 0;
  transform: scale(0);
  transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
  transition-delay: 0.1s;
}

.group:hover .calc-icon-map .map-pin-inner {
  opacity: 0;
  transform: scale(0);
}

.group:hover .calc-icon-map .euro-appear {
  opacity: 1;
  transform: scale(1);
}

.group:hover .calc-icon-map .map-pin {
  transform: translateY(-3px);
}

/* ============================================================================
   ZAP/MENNYI IDŐ: Lightning bolt, second bolt appears (no glow)
   ============================================================================ */
.calc-icon-zap .zap-bolt {
  transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.calc-icon-zap .zap-bolt-second {
  opacity: 0;
  transform: translateX(5px) scale(0.7);
  transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
  transition-delay: 0.1s;
}

.group:hover .calc-icon-zap .zap-bolt {
  transform: scale(1.1);
}

.group:hover .calc-icon-zap .zap-bolt-second {
  opacity: 1;
  transform: translateX(0) scale(0.8);
}

/* ============================================================================
   FAMILY: People move closer, heart appears
   ============================================================================ */
.calc-icon-family .person-left,
.calc-icon-family .person-center,
.calc-icon-family .person-right,
.calc-icon-family .family-heart {
  transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.calc-icon-family .family-heart {
  opacity: 0;
  transform: scale(0);
}

.group:hover .calc-icon-family .person-left {
  transform: translateX(2px);
}

.group:hover .calc-icon-family .person-right {
  transform: translateX(-2px);
}

.group:hover .calc-icon-family .family-heart {
  opacity: 1;
  transform: scale(1);
  transition-delay: 0.15s;
}

/* ============================================================================
   CAR: Car drives forward with motion lines
   ============================================================================ */
.calc-icon-car .car-body,
.calc-icon-car .car-wheels,
.calc-icon-car .car-motion {
  transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.calc-icon-car .car-motion {
  opacity: 0;
  transform: translateX(10px);
}

.group:hover .calc-icon-car .car-body {
  transform: translateX(3px);
}

.group:hover .calc-icon-car .car-wheels {
  transform: translateX(3px);
}

.group:hover .calc-icon-car .car-motion {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================================================
   GIFT: Lid pops off, confetti appears
   ============================================================================ */
.calc-icon-gift .gift-box,
.calc-icon-gift .gift-lid,
.calc-icon-gift .gift-confetti {
  transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.calc-icon-gift .gift-confetti {
  opacity: 0;
  transform: translateY(4px) scale(0);
}

.group:hover .calc-icon-gift .gift-lid {
  transform: translateY(-6px) rotate(15deg);
}

.group:hover .calc-icon-gift .gift-confetti {
  opacity: 1;
  transform: translateY(-2px) scale(1);
  transition-delay: 0.1s;
}

/* ============================================================================
   INPUT SECTION
   ============================================================================ */

.calc-input-section {
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  padding: 24px;
}

@media (min-width: 1024px) {
  .calc-input-section {
    padding: 32px;
  }
}

.calc-input-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 20px;
  color: #0f172a;
  margin-bottom: 24px;
}

.calc-input-title svg {
  width: 24px;
  height: 24px;
  color: #2D9B8E;
}

.calc-input-group {
  margin-bottom: 24px;
}

.calc-input-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 8px;
}

.calc-input-field {
  width: 100%;
  padding: 12px 48px 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
  transition: all 0.2s ease;
}

.calc-input-field:focus {
  outline: none;
  border-color: #2D9B8E;
  box-shadow: 0 0 0 4px rgba(77, 184, 172, 0.2);
}

.calc-input-field::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.calc-input-suffix {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-weight: 500;
}

.calc-input-hint {
  font-size: 12px;
  color: #5b697a;
  margin-top: 8px;
}

/* Quick amount buttons */
.calc-quick-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.calc-quick-amount-btn {
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  background-color: #f1f5f9;
  color: #5b697a;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.calc-quick-amount-btn:hover {
  background-color: rgba(77, 184, 172, 0.2);
  color: #2B5F8F;
}

.calc-quick-amount-btn.active {
  background-color: #2B5F8F;
  color: #ffffff;
}

/* Benefits section */
.calc-benefits-title {
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.calc-benefit-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  cursor: pointer;
}

.calc-benefit-option:hover .calc-benefit-label {
  color: #2B5F8F;
}

.calc-benefit-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 2px solid #d1d5db;
  accent-color: #2B5F8F;
}

.calc-benefit-label {
  font-size: 14px;
  color: #0f172a;
  transition: color 0.2s ease;
}

/* Calculate button */
.calc-submit-btn {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #2D9B8E 0%, #2B5F8F 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 30px rgba(43, 95, 143, 0.3);
  transition: all 0.3s ease;
  margin-top: 32px;
}

.calc-submit-btn:hover {
  background: linear-gradient(135deg, #3da89c 0%, #1E4D7B 100%);
  box-shadow: 0 15px 40px rgba(43, 95, 143, 0.4);
}

.calc-submit-btn svg {
  width: 20px;
  height: 20px;
}

/* ============================================================================
   TRUST BADGES
   ============================================================================ */

.calc-trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.calc-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #5b697a;
}

.calc-trust-badge svg {
  width: 16px;
  height: 16px;
  color: #22c55e;
}

/* ============================================================================
   SOURCES SECTION
   ============================================================================ */

.calc-sources {
  background-color: #f8fafc;
  border-radius: 12px;
  padding: 20px;
  margin-top: 32px;
}

.calc-sources-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 12px;
}

.calc-sources-title svg {
  width: 16px;
  height: 16px;
  color: #5b697a;
}

.calc-sources-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.calc-sources-item {
  font-size: 13px;
  color: #5b697a;
  padding: 6px 0;
  padding-left: 16px;
  position: relative;
}

.calc-sources-item::before {
  content: '-';
  position: absolute;
  left: 0;
  color: #94a3b8;
}

.calc-sources-item a {
  color: #2B5F8F;
  text-decoration: none;
  transition: color 0.2s ease;
}

.calc-sources-item a:hover {
  color: #2D9B8E;
  text-decoration: underline;
}

/* ============================================================================
   RELATED CALCULATORS
   ============================================================================ */

.calc-related {
  margin-top: 48px;
}

.calc-related-title {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 24px;
}

.calc-related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .calc-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .calc-related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.calc-related-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background-color: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  transition: all 0.2s ease;
}

.calc-related-card:hover {
  border-color: #2D9B8E;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.calc-related-card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(77, 184, 172, 0.2) 0%, rgba(43, 95, 143, 0.2) 100%);
  border-radius: 8px;
  flex-shrink: 0;
}

.calc-related-card-icon svg {
  width: 20px;
  height: 20px;
  color: #2B5F8F;
}

.calc-related-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */

/* Number update animation */
@keyframes calcValueUpdate {
  0% {
    opacity: 0.5;
    transform: scale(0.95);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.calc-value-updated {
  animation: calcValueUpdate 0.3s ease-out;
}

/* Row highlight on change */
@keyframes calcRowHighlight {
  0% {
    background-color: transparent;
  }

  50% {
    background-color: rgba(77, 184, 172, 0.15);
  }

  100% {
    background-color: transparent;
  }
}

.calc-row-updated {
  animation: calcRowHighlight 0.6s ease-out;
}

/* Loading state for calculate button */
@keyframes calcButtonLoading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.calc-submit-btn.loading {
  pointer-events: none;
  opacity: 0.8;
}

.calc-submit-btn.loading svg {
  animation: calcButtonLoading 0.8s linear infinite;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}