/* =============================================================
   LEASING CALCULATOR — Premium Modal CSS
   Dark Glassmorphism, Modern UI, Responsive Layout
   ============================================================= */

/* ── Modal Overlay ── */
#leasingCalcOverlay {
  position: fixed;
  inset: 0;
  z-index: 99995;
  background: rgba(5, 5, 8, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

#leasingCalcOverlay.lc-active {
  opacity: 1;
  visibility: visible;
}

/* ── Modal Main Card ── */
#leasingCalcCard {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 92vh;
  background: rgba(12, 12, 16, 0.96);
  border: 1px solid rgba(181, 148, 97, 0.25);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.05);
  transform: scale(0.94) translateY(24px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

#leasingCalcOverlay.lc-active #leasingCalcCard {
  transform: scale(1) translateY(0);
}

/* Accent Top Bar */
.lc-top-bar {
  height: 4px;
  background: linear-gradient(90deg, #B59461, #E8D3B1, #B59461);
  flex-shrink: 0;
}

/* Header */
.lc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.lc-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lc-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #B59461;
  text-transform: uppercase;
  background: rgba(181, 148, 97, 0.12);
  border: 1px solid rgba(181, 148, 97, 0.25);
  padding: 4px 10px;
  border-radius: 6px;
}

.lc-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #AAAAAA;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s ease;
  line-height: 1;
}

.lc-close-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.25);
}

/* Scrollable Body */
.lc-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(181, 148, 97, 0.3) transparent;
}

.lc-body::-webkit-scrollbar { width: 5px; }
.lc-body::-webkit-scrollbar-thumb { background: rgba(181, 148, 97, 0.3); border-radius: 4px; }

/* Headings */
.lc-main-heading {
  font-size: clamp(20px, 3.5vw, 24px);
  font-weight: 800;
  color: #F0EDE8;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.lc-sub-text {
  font-size: 13px;
  color: #8A8A8A;
  margin: 0 0 24px;
  line-height: 1.5;
}

/* Form Controls */
.lc-group {
  margin-bottom: 20px;
}

.lc-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #B59461;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.lc-hint {
  font-size: 11px;
  color: #7A7A7A;
  margin-top: 4px;
}

.lc-select,
.lc-input {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #F0EDE8;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
  transition: all 0.2s ease;
  appearance: none;
}

.lc-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23B59461' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.lc-select option {
  background: #121216;
  color: #F0EDE8;
}

.lc-select:focus,
.lc-input:focus {
  outline: none;
  border-color: #B59461;
  background: rgba(181, 148, 97, 0.06);
  box-shadow: 0 0 0 3px rgba(181, 148, 97, 0.15);
}

/* Preset Chips for Down Payment */
.lc-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.lc-chip {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #A0A0A0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lc-chip:hover {
  border-color: rgba(181, 148, 97, 0.4);
  color: #F0EDE8;
}

.lc-chip.lc-chip-active {
  background: rgba(181, 148, 97, 0.15);
  border-color: #B59461;
  color: #B59461;
}

/* Term Radio Pills */
.lc-terms-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.lc-term-pill {
  padding: 10px 4px;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #8A8A8A;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.lc-term-pill:hover {
  border-color: rgba(181, 148, 97, 0.4);
  color: #F0EDE8;
}

.lc-term-pill.lc-term-active {
  background: rgba(181, 148, 97, 0.18);
  border-color: #B59461;
  color: #B59461;
  box-shadow: 0 0 12px rgba(181, 148, 97, 0.2);
}

/* Result Box */
.lc-result-box {
  background: linear-gradient(135deg, rgba(181, 148, 97, 0.12), rgba(181, 148, 97, 0.04));
  border: 1px solid rgba(181, 148, 97, 0.35);
  border-radius: 16px;
  padding: 22px 24px;
  margin: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.lc-result-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 4px;
  background: #B59461;
}

.lc-result-info {
  display: flex;
  flex-direction: column;
}

.lc-result-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #B59461;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.lc-result-sub {
  font-size: 12px;
  color: #8A8A8A;
}

.lc-result-amount {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.lc-result-amount span {
  font-size: 14px;
  font-weight: 600;
  color: #B59461;
  margin-left: 4px;
}

/* Disclaimers list */
.lc-disclaimer-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 24px;
  font-size: 11px;
  line-height: 1.6;
  color: #7A7A7A;
}

.lc-disclaimer-box ul {
  margin: 0;
  padding-left: 16px;
}

.lc-disclaimer-box li {
  margin-bottom: 4px;
}

.lc-disclaimer-box li:last-child {
  margin-bottom: 0;
}

/* Inquiry Accordion / Form toggle */
.lc-inquiry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 12px;
}

.lc-inquiry-header:hover {
  border-color: rgba(181, 148, 97, 0.4);
  background: rgba(181, 148, 97, 0.05);
}

.lc-inquiry-title {
  font-size: 13px;
  font-weight: 700;
  color: #F0EDE8;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lc-inquiry-arrow {
  font-size: 12px;
  color: #B59461;
  transition: transform 0.3s ease;
}

.lc-inquiry-open .lc-inquiry-arrow {
  transform: rotate(180deg);
}

.lc-inquiry-form {
  display: none;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  margin-bottom: 20px;
}

.lc-inquiry-open + .lc-inquiry-form {
  display: block;
  animation: lcFadeIn 0.3s ease;
}

@keyframes lcFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.lc-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.lc-submit-btn {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  background: #B59461;
  border: none;
  color: #0A0A0A;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.lc-submit-btn:hover {
  background: #D4B483;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(181, 148, 97, 0.3);
}

.lc-submit-btn:disabled {
  opacity: 0.4;
  cursor: default;
  transform: none;
}

/* Success Message */
.lc-success-msg {
  display: none;
  padding: 16px 20px;
  background: rgba(126, 211, 33, 0.1);
  border: 1px solid rgba(126, 211, 33, 0.3);
  border-radius: 12px;
  color: #7ED321;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  margin-top: 12px;
}

/* Mobile responsive */
@media (max-width: 600px) {
  #leasingCalcOverlay { padding: 0; align-items: flex-end; }
  #leasingCalcCard {
    max-height: 94vh;
    border-radius: 20px 20px 0 0;
  }
  .lc-terms-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .lc-form-row {
    grid-template-columns: 1fr;
  }
  .lc-result-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
