/* ============================================================
   PRENIUM — leasing.css
   Leasing simulator page
   ============================================================ */

/* ── Leasing Hero ────────────────────────────────────────── */
.leasing-hero {
  position: relative;
  height: 36vh;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: #0d0d0d;
  margin-top: var(--nav-h);
}

.leasing-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.55;
}

.leasing-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 60%, rgba(0,0,0,0.35) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0) 30%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
  z-index: 1;
}

.leasing-hero__inner {
  position: relative;
  z-index: 2;
}

.leasing-hero__eyebrow {
  color: var(--gold);
  margin-bottom: 0.8rem;
  display: block;
}

.leasing-hero__title {
  font-family: var(--font-title);
  font-weight: 200;
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  color: var(--white);
  line-height: 1;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
}

.leasing-hero__sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.90rem;
  color: rgba(255,255,255,0.50);
  letter-spacing: 0.04em;
}

/* ── Simulator Section ───────────────────────────────────── */
.simulator-section {
  padding: 5rem 0 6rem;
  background: var(--white);
}

.simulator-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 5rem;
  align-items: start;
}

/* ── Simulator Controls ──────────────────────────────────── */
.sim-controls {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sim-heading {
  font-family: var(--font-title);
  font-weight: 300;
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  color: var(--text-dark);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.sim-sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
}

.sim-group {
  margin-bottom: 1.6rem;
}

.sim-group__label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-lighter);
  margin-bottom: 0.7rem;
}

/* Vehicle selector */
.sim-vehicle-select {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  background: rgba(27,63,228,0.04);
  border: 1px solid rgba(27,63,228,0.18);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.90rem;
  font-weight: 300;
  color: var(--text-dark);
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231B3FE4' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.sim-vehicle-select:focus {
  border-color: rgba(27,63,228,0.50);
  box-shadow: 0 0 0 3px rgba(27,63,228,0.08);
}

.sim-vehicle-select option {
  color: var(--text-dark);
  background: #fff;
}

/* Toggle pill groups */
.sim-toggle-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.sim-toggle-btn {
  font-family: var(--font-body);
  font-size: 0.70rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-mid);
  border: 1px solid rgba(27,63,228,0.18);
  padding: 8px 18px;
  border-radius: 100px;
  cursor: pointer;
  background: transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.sim-toggle-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-subtle);
}

.sim-toggle-btn.active {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-subtle);
  box-shadow: 0 0 0 1px var(--gold);
}

/* Deposit slider */
.sim-deposit-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sim-deposit-display {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.sim-deposit-val {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dark);
}

.sim-deposit-hint {
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: var(--text-lighter);
  font-weight: 300;
}

input[type="range"].sim-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2px;
  background: rgba(27,63,228,0.15);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

input[type="range"].sim-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--white);
  box-shadow: 0 2px 8px rgba(27,63,228,0.30);
  cursor: pointer;
  transition: transform 0.2s ease;
}

input[type="range"].sim-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

input[type="range"].sim-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--white);
  cursor: pointer;
}

/* ── Result Panel ────────────────────────────────────────── */
.sim-result {
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(27,63,228,0.06) 0%, rgba(27,63,228,0.02) 100%);
  border: 1px solid rgba(27,63,228,0.15);
  border-radius: 16px;
  text-align: center;
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.sim-result__vehicle {
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.sim-result__label {
  font-family: var(--font-body);
  font-size: 0.60rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-lighter);
  margin-bottom: 0.6rem;
}

.sim-monthly {
  font-family: var(--font-title);
  font-weight: 200;
  font-size: clamp(3.5rem, 6vw, 5rem);
  color: var(--gold-dark);
  line-height: 1;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

.sim-monthly__unit {
  font-size: 0.35em;
  font-weight: 300;
  vertical-align: super;
  color: var(--gold);
}

.sim-result__details {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.sim-result__sub {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 300;
  color: var(--text-lighter);
  margin-bottom: 2rem;
}

.sim-result .btn {
  width: 100%;
  justify-content: center;
}

/* ── Not Found Section ───────────────────────────────────── */
.not-found-section {
  padding: 5rem 0 6rem;
  background: var(--off-white);
  text-align: center;
}

.not-found__eyebrow {
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
}

.not-found__title {
  font-family: var(--font-title);
  font-weight: 200;
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--text-dark);
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.not-found__body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.92rem;
  color: var(--text-light);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.not-found__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── How It Works ────────────────────────────────────────── */
.how-section {
  padding: 5rem 0;
  background: var(--white);
}

.how-heading {
  font-family: var(--font-title);
  font-weight: 300;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--text-dark);
  letter-spacing: 0.06em;
  text-align: center;
  margin-bottom: 3.5rem;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.how-card {
  padding: 2rem;
  border: 1px solid rgba(27,63,228,0.10);
  border-radius: 12px;
  background: rgba(27,63,228,0.02);
  transition: transform var(--transition), box-shadow var(--transition);
}

.how-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.how-card__num {
  font-family: var(--font-title);
  font-weight: 200;
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}

.how-card__title {
  font-family: var(--font-title);
  font-weight: 300;
  font-size: 1.3rem;
  color: var(--text-dark);
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
}

.how-card__body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 960px) {
  .simulator-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .sim-result {
    position: static;
  }
  .how-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .how-grid {
    grid-template-columns: 1fr;
  }
}
