/* Interactive pricing examples and compact local calculator. */
.hf-rate-card {
  position: relative !important;
  min-width: 0;
  overflow: hidden !important;
  cursor: help;
  isolation: isolate;
  transition: transform 180ms cubic-bezier(0.23, 1, 0.32, 1), border-color 180ms ease, box-shadow 180ms ease;
}

.hf-rate-card:focus-visible,
.hf-rate-card.is-open {
  transform: translateY(-2px);
  border-color: rgba(104, 196, 255, 0.68) !important;
  box-shadow: 0 14px 34px rgba(0, 111, 215, 0.2);
  outline: none;
}

.hf-rate-card--expansion:focus-visible,
.hf-rate-card--expansion.is-open {
  border-color: rgba(132, 255, 199, 0.8) !important;
  box-shadow: 0 14px 34px rgba(0, 198, 127, 0.24) !important;
}

.hf-rate-example-hint {
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 5px 8px 5px 6px;
  background: rgba(4, 18, 34, 0.42);
  color: rgba(255, 255, 255, 0.84);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.055em;
  line-height: 1;
  text-transform: uppercase;
}

.hf-rate-example-hint > span {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 10px;
  font-style: italic;
  text-transform: none;
}

.hf-rate-example {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: inherit;
  padding: 18px;
  background: linear-gradient(145deg, rgba(7, 30, 56, 0.98), rgba(4, 18, 34, 0.985));
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(7px);
  transition: opacity 180ms cubic-bezier(0.23, 1, 0.32, 1), transform 180ms cubic-bezier(0.23, 1, 0.32, 1);
}

.hf-rate-card--expansion .hf-rate-example {
  background: linear-gradient(145deg, rgba(5, 80, 59, 0.985), rgba(4, 41, 43, 0.99));
}

.hf-rate-card:focus-visible .hf-rate-example,
.hf-rate-card.is-open .hf-rate-example {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hf-rate-example-kicker {
  display: block;
  color: #74dfe3;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.085em;
  text-transform: uppercase;
}

.hf-rate-card--expansion .hf-rate-example-kicker {
  color: #a7ffd2;
}

.hf-rate-example > strong {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: 16px;
  line-height: 1.2;
}

.hf-rate-example > span:not(.hf-rate-example-kicker) {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.hf-rate-example > small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 9px;
  line-height: 1.35;
}

.hf-pricing-calculator {
  display: grid;
  gap: 10px;
  width: 100%;
  min-width: 0;
  margin-top: 14px;
  border: 1px solid rgba(120, 193, 255, 0.22);
  border-radius: 14px;
  padding: 13px 14px 12px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
}

.hf-pricing-rate-grid {
  margin-top: 20px !important;
}

.hf-pricing-no-contract {
  margin-top: 16px !important;
}

.hf-pricing-calculator-heading,
.hf-pricing-calculator-row {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.hf-pricing-calculator-heading > span {
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.015em;
}

.hf-pricing-calculator-heading > small {
  flex: 0 0 auto;
  color: rgba(113, 205, 255, 0.82);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hf-pricing-field {
  display: grid;
  min-width: 0;
  grid-template-columns: auto 78px;
  align-items: center;
  gap: 9px;
}

.hf-pricing-field > span,
.hf-pricing-total > span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.035em;
  line-height: 1.25;
  text-transform: uppercase;
}

.hf-pricing-vehicle-input {
  width: 78px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9px;
  padding: 0 10px;
  background: rgba(5, 20, 38, 0.7);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  appearance: textfield;
}

.hf-pricing-vehicle-input::-webkit-inner-spin-button,
.hf-pricing-vehicle-input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.hf-pricing-vehicle-input:focus {
  border-color: rgba(85, 185, 255, 0.9);
  outline: 3px solid rgba(0, 111, 215, 0.2);
}

.hf-pricing-total {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: flex-end;
  gap: 9px;
  text-align: right;
}

.hf-pricing-total-output {
  color: #fff;
  font-size: clamp(21px, 2.2vw, 28px);
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1;
  white-space: nowrap;
}

.hf-pricing-breakdown {
  margin: 0 !important;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.66) !important;
  font-size: 10px !important;
  font-weight: 600;
  line-height: 1.4 !important;
}

.hf-pricing-decisions-list {
  margin-top: 36px !important;
}

@media (max-width: 1120px) and (min-width: 1024px) {
  .hf-pricing-calculator-row {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .hf-pricing-field,
  .hf-pricing-total {
    justify-content: space-between;
  }
}

@media (max-width: 560px) {
  .hf-pricing-calculator {
    padding: 13px;
  }

  .hf-pricing-calculator-row {
    align-items: stretch;
    flex-direction: column;
    gap: 11px;
  }

  .hf-pricing-field,
  .hf-pricing-total {
    justify-content: space-between;
  }

  .hf-pricing-total-output {
    font-size: 25px;
  }

  .hf-rate-example {
    padding: 15px;
  }
}

@media (hover: none) {
  .hf-rate-example-hint {
    background: rgba(4, 18, 34, 0.68);
  }
}

@media (hover: hover) and (pointer: fine) {
  .hf-rate-card:hover {
    transform: translateY(-2px);
    border-color: rgba(104, 196, 255, 0.68) !important;
    box-shadow: 0 14px 34px rgba(0, 111, 215, 0.2);
  }

  .hf-rate-card--expansion:hover {
    border-color: rgba(132, 255, 199, 0.8) !important;
    box-shadow: 0 14px 34px rgba(0, 198, 127, 0.24) !important;
  }

  .hf-rate-card:hover .hf-rate-example {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hf-rate-card,
  .hf-rate-example {
    transition: none;
  }
}
