﻿.home-calculator-section {
  background: linear-gradient(180deg, #f7fbff 0%, #eef5ff 100%);
}

.calc-head .calc-head-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 0.7rem;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 1.8rem;
  background: linear-gradient(135deg, #1F2F3F, #C8A45A);
  box-shadow: 0 16px 30px -20px rgba(0, 56, 168, 0.75);
}

.home-calc-card {
  border: 1px solid rgba(31, 42, 55, 0.1);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 18px 36px -24px rgba(31, 42, 55, 0.24);
  padding: clamp(0.95rem, 2vw, 1.25rem);
}

.home-calc-form {
  background: #f9fcff;
  border: 1px solid rgba(31, 42, 55, 0.08);
  border-radius: 16px;
  padding: 0.85rem;
}

.home-calc-form .form-label {
  font-weight: 700;
  color: #123157;
  margin-bottom: 0.4rem;
}

.home-calc-input-group .input-group-text {
  border-radius: 12px 0 0 12px;
  border-color: rgba(18, 49, 87, 0.2);
  background: #e8f1ff;
  color: #0f3f85;
  min-width: 44px;
  display: grid;
  place-items: center;
}

[dir="rtl"] .home-calc-input-group .input-group-text {
  border-radius: 0 12px 12px 0;
}

.home-calc-input-group .form-control,
.home-calc-input-group .form-select {
  min-height: 48px;
  border-color: rgba(18, 49, 87, 0.2);
  border-radius: 12px;
  background: #ffffff;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

[dir="rtl"] .home-calc-input-group .form-control,
[dir="rtl"] .home-calc-input-group .form-select {
  border-radius: 12px 0 0 12px;
}

.home-calc-input-group .form-control:focus,
.home-calc-input-group .form-select:focus {
  border-color: #00a7ad;
  box-shadow: 0 0 0 0.2rem rgba(0, 194, 168, 0.16);
}

.home-calc-submit {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #1F2F3F, #C8A45A);
  color: #ffffff;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 14px 26px -20px rgba(31, 47, 63, 0.75);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.home-calc-submit:hover,
.home-calc-submit:focus {
  color: #ffffff;
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 18px 30px -20px rgba(31, 47, 63, 0.85);
}

.home-calc-submit:focus-visible {
  outline: 3px solid rgba(200, 164, 90, 0.35);
  outline-offset: 3px;
}

.home-calc-result {
  height: 100%;
  border-radius: 18px;
  background: linear-gradient(135deg, #1F2F3F, #C8A45A);
  color: #ffffff;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 20px 38px -24px rgba(0, 56, 168, 0.62);
  transition: transform 0.25s ease;
}

.home-calc-result.is-updated {
  animation: calcPulse 0.36s ease;
}

.home-calc-result .result-kicker {
  margin: 0;
  color: rgba(236, 249, 255, 0.95);
  font-size: 0.88rem;
  font-weight: 700;
}

.home-calc-result h3 {
  margin: 0.35rem 0 0.35rem;
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
  line-height: 1.2;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.home-calc-result .result-note {
  margin: 0 0 0.85rem;
  color: rgba(240, 252, 255, 0.92);
  font-size: 0.9rem;
}

.home-calc-result .result-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}

.home-calc-result .result-grid div {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  padding: 0.62rem 0.72rem;
}

.home-calc-result .result-grid span {
  display: block;
  color: rgba(236, 249, 255, 0.95);
  font-size: 0.82rem;
  margin-bottom: 0.2rem;
}

.home-calc-result .result-grid strong {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
}

@keyframes calcPulse {
  0% { transform: scale(0.985); }
  60% { transform: scale(1.015); }
  100% { transform: scale(1); }
}

@media (max-width: 991.98px) {
  .home-calc-result {
    min-height: 220px;
  }
}

@media (max-width: 575.98px) {
  .home-calc-form {
    padding: 0.72rem;
  }

  .home-calc-result {
    min-height: 0;
  }
}

