.calc-page-hero {
  padding: 42px 0 14px;
  background: #fff;
}

.calc-page-logo {
  width: 142px;
  max-width: 38vw;
  height: auto;
  margin-bottom: 12px;
}

.calc-page-title {
  color: #05589c;
  font-size: clamp(28px, 3vw, 48px);
  line-height: 1.2;
  margin-bottom: 8px;
  font-weight: 700;
}

.calc-page-subtitle {
  margin: 0 auto;
  max-width: 980px;
  color: #49596a;
  font-size: 15px;
  line-height: 1.55;
}

.calc-page-map-wrap {
  padding: 8px 0 28px;
  background: #fff;
}

.calc-map-shell {
  position: relative;
}

.calc-page-map {
  height: min(52vh, 560px);
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid #cfd8e2;
}

.calc-map-overlay {
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 500;
}

.calc-map-overlay-top {
  top: 14px;
  display: flex;
  justify-content: center;
  padding: 0 12px;
}

.calc-search-wrap {
  width: min(430px, 100%);
  height: 48px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
  display: grid;
  grid-template-columns: 36px 1fr 34px;
  align-items: center;
  pointer-events: auto;
}

.calc-search-wrap i {
  color: #7a8896;
  text-align: center;
  font-size: 14px;
}

.calc-search-input {
  border: 0;
  height: 100%;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  font-size: 15px;
}

.calc-search-input:focus {
  box-shadow: none;
}

.calc-search-btn {
  border: 0;
  background: transparent;
  color: #7a8896;
  height: 100%;
}

.calc-map-overlay-bottom {
  bottom: 14px;
  display: flex;
  justify-content: center;
  padding: 0 12px;
}

.calc-map-action-group {
  display: flex;
  align-items: center;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  pointer-events: auto;
}

.calc-map-action-btn,
.calc-map-action-reset {
  border: 0;
  height: 40px;
}

.calc-map-action-btn {
  width: 46px;
  background: #fff;
  color: #4c5d70;
}

.calc-map-action-btn-draw {
  background: #f6be3b;
  color: #534318;
}

.calc-map-action-btn.is-active {
  background: #eef3f8;
}

.calc-map-action-reset {
  min-width: 84px;
  padding: 0 14px;
  background: #fff;
  color: #33495f;
  font-weight: 600;
  font-size: 22px;
}

.leaflet-draw {
  display: none;
}

.leaflet-control-zoom {
  border: 1px solid #ccd6e0 !important;
  border-radius: 8px !important;
  overflow: hidden;
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.16);
}

.leaflet-control-zoom a {
  width: 34px !important;
  height: 34px !important;
  line-height: 32px !important;
  color: #32465d !important;
}

.leaflet-control-attribution {
  font-size: 10px;
}

.calc-page-help {
  margin: 8px 2px 0;
  color: #667887;
  font-size: 13px;
}

.calc-page-form-section {
  background: #fff;
  padding: 0 0 70px;
}

.calc-page-card {
  background: linear-gradient(180deg, #FFFFFF 0%, #EFF8FF 100%);
  border-radius: 32px;
  padding: 70px 120px;
  max-width: 960px;
  margin: 0 auto;
}

.calc-card-title {
  font-size: 24px;
  font-weight: 700;
  color: #4a525d;
  margin-bottom: 32px;
}

.calc-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.calc-type-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.calc-type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 150px;
  border: 1px solid #d2dde8;
  border-radius: 12px;
  background: #fff;
  color: #98a3ad;
  font-size: 14x;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.calc-type-card i {
  font-size: 32px;
}

.calc-type-card input {
  display: none;
}

.calc-type-card.is-active {
  border-color: #2a73bb;
  color: #0b5ca4;
  box-shadow: 0 0 0 3px rgba(42, 115, 187, 0.12);
}

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

.calc-billing-phase-row {
  align-items: end;
  gap: 26px;
}

.calc-billing-phase-row .calc-input {
  border: 1px solid #7f8a96;
  border-radius: 12px;
  background: #fff;
  font-size: 24px;
  line-height: 1;
  padding: 6px 20px;
  color: #1f2e3a;
}

.calc-billing-phase-row .calc-input::placeholder {
  color: #8b98a5;
  font-size: 24px;
}

.calc-billing-phase-row .calc-fieldset {
  margin-bottom: 10px;
}

.calc-billing-phase-row .calc-radio-row {
  gap: 28px;
  flex-wrap: nowrap;
}

.calc-billing-phase-row .calc-radio-row label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: #566270;
  white-space: nowrap;
}

.calc-billing-phase-row .calc-radio-row input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #7c8793;
  background: #fff;
  margin: 0;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.calc-billing-phase-row .calc-radio-row input[type="radio"]::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.12s ease-in-out;
  background: #0c62ab;
}

.calc-billing-phase-row .calc-radio-row input[type="radio"]:checked {
  border-color: #0c62ab;
}

.calc-billing-phase-row .calc-radio-row input[type="radio"]:checked::before {
  transform: scale(1);
}

.calc-label {
  margin: 0 0 6px;
  color: #5f5f5f;
  font-weight: 600;
  font-size: 18px
}

.calc-input {
  border: 1px solid #bfcedd;
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.calc-input:focus {
  border-color: #1d69bd;
  box-shadow: 0 0 0 3px rgba(29, 105, 189, 0.15);
}

.calc-fieldset {
  border: 0;
  padding: 0;
  margin: 2px 0 0;
}

.calc-radio-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  color: #3e4f60;
  font-size: 14px;
}

.calc-range-control-wrap {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 14px;
}

.calc-range-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

#calcDayPercent {
  width: 100%;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right, #0e5ea7 0%, #0e5ea7 40%, #d2d6db 40%, #d2d6db 100%);
  outline: none;
}

#calcDayPercent::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: transparent;
}

#calcDayPercent::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #0e5ea7;
  border: 4px solid #dfe7f2;
  margin-top: -17px;
  box-shadow: 0 4px 12px rgba(14, 94, 167, 0.28);
  cursor: pointer;
}

#calcDayPercent::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: #d2d6db;
}

#calcDayPercent::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: #0e5ea7;
}

#calcDayPercent::-moz-range-thumb {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #0e5ea7;
  border: 4px solid #dfe7f2;
  box-shadow: 0 4px 12px rgba(14, 94, 167, 0.28);
  cursor: pointer;
}

.calc-range-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
  margin-top: 20px;
}

.calc-range-stat {
  color: #5a6068;
  font-size: 16px;
  line-height: 1.15;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.calc-range-stat-left {
  text-align: center;
}

.calc-range-stat-right {
  text-align: center;
}

.calc-range-row strong {
  color: #0e5ea7;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
}

.calc-submit-btn {
  margin-top: 8px;
  align-self: center;
  padding: 12px 46px;
  min-width: 236px;
  font-size: 22px;
}

.calc-result-bottom-cta {
  position: relative;
  background-size: cover;
  background-position: center;
  margin-top: 20px;
}

.calc-result-bottom-cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.9);
}

.calc-result-bottom-cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 80px 0;
}

.calc-result-bottom-cta-left h2 {
  margin: 0;
  color: #045597;
  font-size: clamp(36px, 3.1vw, 48px);
  line-height: 1.22;
  font-weight: 700;
}

.calc-result-bottom-cta-left h2 span {
  font-size: 40px;
  color: #21a038;
}

.calc-result-bottom-cta-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.calc-bottom-cta-btn {
  min-width: 220px;
  border-radius: 999px;
  padding: 16px 30px;
  font-size: 24px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.calc-bottom-cta-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.calc-bottom-cta-btn-blue {
  background: linear-gradient(135deg, #2f62b4 0%, #1f4f9f 100%);
  border-color: #1f4f9f;
}

.calc-bottom-cta-btn-green {
  background: linear-gradient(135deg, #20b34b 0%, #179940 100%);
  border-color: #179940;
}

.calc-result-bottom-cta-qr {
  background: #fff;
  box-shadow: 0 6px 24px rgba(20, 41, 76, 0.08);
}

.calc-result-bottom-cta-qr img {
  width: 220px;
  height: 220px;
  object-fit: contain;
  display: block;
}

@media (max-width: 991.98px) {
  .calc-page-card {
    padding: 24px 16px;
  }

  .calc-map-action-reset {
    font-size: 18px;
  }

  .calc-type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calc-form-two-col {
    grid-template-columns: 1fr;
  }

  .calc-billing-phase-row .calc-input {
    height: 64px;
    font-size: 24px;
    border-radius: 16px;
  }

  .calc-billing-phase-row .calc-radio-row {
    flex-wrap: wrap;
    gap: 14px;
  }

  .calc-billing-phase-row .calc-radio-row label {
    font-size: 18px;
  }

  .calc-billing-phase-row .calc-radio-row input[type="radio"] {
    width: 28px;
    height: 28px;
  }

  .calc-billing-phase-row .calc-radio-row input[type="radio"]::before {
    width: 12px;
    height: 12px;
  }

  .calc-range-control-wrap {
    grid-template-columns: 20px minmax(0, 1fr) 20px;
    gap: 16px;
  }

  .calc-range-icon {
    width: 20px;
    height: 20px;
  }

  #calcDayPercent::-webkit-slider-thumb {
    width: 32px;
    height: 32px;
    margin-top: -13px;
  }

  #calcDayPercent::-moz-range-thumb {
    width: 32px;
    height: 32px;
  }

  .calc-range-row {
    margin-top: 16px;
    column-gap: 12px;
  }

  .calc-range-stat {
    font-size: 28px;
    gap: 8px;
  }

  .calc-range-row strong {
    font-size: 54px;
  }

  .calc-result-bottom-cta-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 0;
  }

  .calc-result-bottom-cta-left h2 {
    font-size: 32px;
  }

  .calc-result-bottom-cta-actions {
    margin-top: 20px;
    width: 100%;
  }

  .calc-bottom-cta-btn {
    min-width: 0;
    width: 100%;
    font-size: 28px;
    padding: 14px 20px;
  }

  .calc-bottom-cta-icon {
    width: 26px;
    height: 26px;
  }

  .calc-result-bottom-cta-qr {
    align-self: center;
    padding: 12px;
  }

  .calc-result-bottom-cta-qr img {
    width: 180px;
    height: 180px;
  }
}

@media (max-width: 767.98px) {
	.calc-result-bottom-cta-left h2 {
		font-size: 22px;
	}
	
	.calc-result-bottom-cta-left h2 span {
		font-size: 30px;
	}
	
	.calc-result-bottom-cta {
		padding: 0 16px;
	}
}
