/* ===== CALCULATOR PAGE STYLES ===== */

/* Calculator Hero Section */
.calculator-hero {
  padding: calc(var(--space-2xl) + 80px) var(--space-md) var(--space-xl);
  text-align: center;
  background: radial-gradient(ellipse at center,
      rgba(147, 228, 1, 0.08) 0%,
      rgba(147, 228, 1, 0.02) 40%,
      transparent 70%);
}

.calculator-hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: var(--font-weight-black);
  color: var(--fg);
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.calculator-hero h1 strong {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.calculator-hero .hero-subtitle {
  font-size: 1.25rem;
  color: var(--muted);
  font-weight: var(--font-weight-medium);
  max-width: 600px;
  margin: 0 auto;
}

/* Calculator Section */
.calculator-section {
  padding: var(--space-2xl) var(--space-md);
  min-height: calc(100vh - 200px);
}

/* Calculator Wrapper */
.calculator-wrapper {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--space-2xl);
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-2xl) 0;
}

/* Calculator Form */
.calculator-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

/* Calc Group */
.calc-group {
  margin-bottom: var(--space-xl);
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp 0.6s ease forwards;
}

.calc-group:nth-child(1) {
  animation-delay: 0.1s;
}

.calc-group:nth-child(2) {
  animation-delay: 0.2s;
}

.calc-group:nth-child(3) {
  animation-delay: 0.3s;
}

/* Calc Label */
.calc-label {
  display: block;
  font-size: 1.125rem;
  font-weight: var(--font-weight-semibold);
  color: var(--fg);
  margin-bottom: var(--space-md);
}

/* Calc Options - selection buttons */
.calc-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
}

.calc-option {
  background: radial-gradient(47.2% 50% at 50.39% 88.37%,
      rgba(255, 255, 255, 0.12) 0%,
      rgba(255, 255, 255, 0) 100%),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  font-size: 1rem;
  font-weight: var(--font-weight-medium);
  color: var(--fg);
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  backdrop-filter: blur(10px);
  text-align: center;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calc-option:hover {
  background: radial-gradient(47.2% 50% at 50.39% 88.37%,
      rgba(255, 255, 255, 0.16) 0%,
      rgba(255, 255, 255, 0) 100%),
    rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
  border-color: rgba(147, 228, 1, 0.3);
}

.calc-option.active {
  background: var(--gradient);
  border-color: var(--brand);
  color: #000000;
  font-weight: var(--font-weight-bold);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(147, 228, 1, 0.3);
}

.calc-option:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.urgency-info {
  font-size: 0.875rem;
  font-weight: var(--font-weight-semibold);
  opacity: 0.9;
}

/* Checkboxes */
.calc-checkboxes {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.calc-checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  min-height: 60px;
}

.calc-checkbox:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(147, 228, 1, 0.3);
  transform: translateX(4px);
}

/* Disabled checkbox state */
.calc-checkbox.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.02);
}

.calc-checkbox.disabled:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.1);
}

.calc-checkbox.disabled .checkbox-label,
.calc-checkbox.disabled .checkbox-price {
  color: var(--muted);
  opacity: 0.5;
}

.calc-checkbox:has(input:focus-visible) {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.calc-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkbox-custom {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  position: relative;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.calc-checkbox input:checked~.checkbox-custom {
  background: var(--gradient);
  border-color: var(--brand);
}

.calc-checkbox input:checked~.checkbox-custom::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #000000;
  font-size: 14px;
  font-weight: var(--font-weight-bold);
}

.checkbox-label {
  flex: 1;
  font-size: 1rem;
  color: var(--fg);
}

.checkbox-price {
  font-size: 0.875rem;
  font-weight: var(--font-weight-semibold);
  color: var(--brand);
}

/* Calculator Result */
.calculator-result {
  position: relative;
}

/* Result Card - glass morphism */
.result-card {
  background: radial-gradient(47.2% 50% at 50.39% 88.37%,
      rgba(255, 255, 255, 0.12) 0%,
      rgba(255, 255, 255, 0) 100%),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: sticky;
  top: calc(80px + var(--space-md));
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.result-title {
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
  color: var(--fg);
  margin-bottom: var(--space-lg);
  text-align: center;
}

.result-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
}

.price-amount {
  font-size: 3.5rem;
  font-weight: var(--font-weight-black);
  color: var(--brand);
  line-height: 1;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.price-amount.updating {
  transform: scale(1.1);
  color: var(--electric-light-color);
}

.price-currency {
  font-size: 1.5rem;
  font-weight: var(--font-weight-semibold);
  color: var(--muted);
}

/* Result Breakdown */
.result-breakdown {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
  display: none;
}

.result-breakdown.visible {
  display: block;
  animation: fadeIn 0.3s ease;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-xs) 0;
  font-size: 0.9375rem;
  color: var(--muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.breakdown-item:last-child {
  border-bottom: none;
  padding-top: var(--space-sm);
  margin-top: var(--space-sm);
  border-top: 1px solid rgba(147, 228, 1, 0.2);
  font-weight: var(--font-weight-semibold);
  color: var(--fg);
}

.breakdown-label {
  flex: 1;
}

.breakdown-value {
  font-weight: var(--font-weight-medium);
  color: var(--fg);
}

/* CTA Button */
.result-cta {
  width: 100%;
  margin-bottom: var(--space-md);
  text-align: center;
}

.result-disclaimer {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
}

/* Animations */
@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .calculator-wrapper {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .result-card {
    position: relative;
    top: 0;
  }
}

@media (max-width: 768px) {
  .calculator-hero {
    padding: calc(var(--space-xl) + 80px) var(--space-md) var(--space-md);
  }

  .calculator-hero h1 {
    font-size: 2rem;
  }

  .calculator-hero .hero-subtitle {
    font-size: 1rem;
  }

  .calculator-section {
    padding: var(--space-xl) var(--space-md);
  }

  .calculator-wrapper {
    padding: var(--space-md) 0;
  }

  .calc-options {
    grid-template-columns: 1fr;
  }

  .calc-option {
    min-height: 50px;
    padding: var(--space-md);
  }

  .calc-checkbox {
    min-height: 50px;
    padding: var(--space-sm) var(--space-md);
  }

  .result-price .price-amount {
    font-size: 2.5rem;
  }

  .result-price .price-currency {
    font-size: 1.25rem;
  }

  .result-card {
    padding: var(--space-lg);
  }
}

/* Footer separator - replacing inline style */
.footer-separator {
  color: var(--muted);
  font-size: 0.75rem;
}

@media (max-width: 480px) {
  .calculator-hero h1 {
    font-size: 1.75rem;
  }

  .calc-label {
    font-size: 1rem;
  }

  .checkbox-label {
    font-size: 0.9375rem;
  }

  .checkbox-price {
    font-size: 0.8125rem;
  }

  .result-price .price-amount {
    font-size: 2rem;
  }
}

/* Mobile Result Card - Sticky on mobile devices */
.result-card-mobile {
  display: block;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: radial-gradient(47.2% 50% at 50.39% 88.37%,
      rgba(255, 255, 255, 0.12) 0%,
      rgba(255, 255, 255, 0) 100%),
    rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.result-card-mobile.visible {
  transform: translateY(0);
}

.mobile-result-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 var(--space-md);
  max-width: 100%;
}

.mobile-result-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-xs);
}

.mobile-price-amount {
  font-size: 2rem;
  font-weight: var(--font-weight-black);
  color: var(--brand);
  line-height: 1;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-price-amount.updating {
  transform: scale(1.1);
  color: var(--electric-light-color);
}

.mobile-price-currency {
  font-size: 1rem;
  font-weight: var(--font-weight-semibold);
  color: var(--muted);
}

.mobile-result-cta {
  padding: var(--space-sm) var(--space-sm);
  font-size: 0.9375rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Hide mobile result card on desktop devices */
@media (min-width: 769px) {
  .result-card-mobile {
    display: none;
  }
}

/* Adjust for safe area on iOS devices */
@media (max-width: 768px) {
  .result-card-mobile {
    padding-bottom: env(safe-area-inset-bottom, 0);
    height: calc(120px + env(safe-area-inset-bottom, 0));
  }

  .mobile-result-content {
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
}
