/* loanoptions.css */
/* Page-specific styling for Loan Options – uses shared dark theme from style.css */

/* Layout */

.loan-options {
  position: relative;
}

.loan-header {
  margin-bottom: 1.4rem;
}

.loan-header h2 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  color: #e5e7eb;
}

.loan-summary {
  font-size: 0.92rem;
  max-width: 52rem;
  color: rgba(226, 232, 240, 0.88);
}

/* Loan cards */

.loan-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr);
  margin-top: 1.4rem;
  border-radius: 1.8rem;
  padding: 1.7rem 1.6rem 1.8rem;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 55%),
    radial-gradient(circle at bottom right, rgba(168, 85, 247, 0.2), transparent 55%),
    rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow:
    0 22px 45px rgba(15, 23, 42, 0.9),
    0 0 40px rgba(56, 189, 248, 0.18);
  overflow: hidden;
  transform: translateY(14px);
  opacity: 0;
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
  color: #e5e7eb;
}

.loan-card-visible {
  opacity: 1;
  transform: translateY(0);
}

.loan-card.reverse {
  margin-top: 1.6rem;
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.16), transparent 55%),
    radial-gradient(circle at bottom left, rgba(56, 189, 248, 0.16), transparent 55%),
    rgba(15, 23, 42, 0.96);
}

/* Pills */

.loan-card-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.2), rgba(34, 197, 94, 0.2));
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #e5e7eb;
}

.loan-card-pill-alt {
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.26), rgba(244, 114, 182, 0.26));
  border-color: rgba(249, 115, 22, 0.6);
}

/* Content */

.loan-content {
  margin-top: 0.9rem;
  color: #e5e7eb;
}

.loan-content h2 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  color: #f9fafb;
}

.loan-content h2 span {
  font-size: 0.86rem;
  opacity: 0.85;
  font-weight: 400;
  color: rgba(226, 232, 240, 0.9);
}

.loan-content p {
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.9);
}

/* Highlights */

.loan-highlight {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0.9rem 0 0.8rem;
}

.loan-highlight-item {
  padding: 0.55rem 0.65rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
  font-size: 0.8rem;
  color: #e5e7eb;
}

.loan-highlight-item .label {
  display: block;
  opacity: 0.78;
  margin-bottom: 0.15rem;
  color: rgba(209, 213, 219, 0.9);
}

.loan-highlight-item .value {
  font-weight: 500;
  color: #f9fafb;
}

/* Detail lists */

.loan-detail-list {
  margin: 0.4rem 0 0.6rem;
  padding-left: 1.1rem;
  list-style: disc;
  font-size: 0.88rem;
  color: rgba(226, 232, 240, 0.9);
}

.loan-detail-list li + li {
  margin-top: 0.25rem;
}

.loan-footnote {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-top: 0.3rem;
  color: rgba(226, 232, 240, 0.9);
}

/* Graph blocks */

.loan-graph-block {
  margin-top: 1.1rem;
  padding: 0.9rem 0.9rem 1rem;
  border-radius: 1.2rem;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.2), transparent 55%),
    rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
}

.loan-graph-block h3 {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  color: #f9fafb;
}

.loan-graph-intro {
  font-size: 0.8rem;
  opacity: 0.86;
  margin-bottom: 0.5rem;
  color: rgba(226, 232, 240, 0.9);
}

.loan-graph-row {
  margin-top: 0.2rem;
  padding-top: 0.4rem;
}

.loan-graph-label {
  font-size: 0.82rem;
  margin-bottom: 0.25rem;
  color: rgba(226, 232, 240, 0.92);
}

.loan-graph-bar {
  position: relative;
  width: 100%;
  height: 0.85rem;
  border-radius: 999px;
  overflow: hidden;
  background: radial-gradient(circle at top, rgba(30, 64, 175, 0.6), rgba(15, 23, 42, 0.95));
  box-shadow:
    inset 0 0 10px rgba(15, 23, 42, 0.9),
    0 14px 28px rgba(15, 23, 42, 1);
}

.loan-graph-bar-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  opacity: 0.55;
  pointer-events: none;
  color: rgba(226, 232, 240, 0.9);
}

.loan-graph-bar-fill {
  position: absolute;
  inset: 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #06b6d4, #a855f7);
  box-shadow:
    0 0 18px rgba(34, 197, 94, 0.65),
    0 0 26px rgba(56, 189, 248, 0.5);
  transition: width 1s ease-out;
}

.loan-graph-value {
  margin-top: 0.3rem;
  font-size: 0.78rem;
  opacity: 0.9;
  color: rgba(226, 232, 240, 0.9);
}

/* CTA button */

.loan-btn {
  margin-top: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.65);
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.24), rgba(15, 23, 42, 0.98));
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow:
    0 12px 26px rgba(15, 23, 42, 0.95),
    0 0 24px rgba(56, 189, 248, 0.4);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
  color: #f9fafb;
}

.loan-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 16px 32px rgba(15, 23, 42, 1),
    0 0 30px rgba(56, 189, 248, 0.55);
}

/* Comparison section */

.loan-comparison {
  margin-top: 1.8rem;
  padding: 1.3rem 1.2rem 1.4rem;
  border-radius: 1.6rem;
  background:
    radial-gradient(circle at top, rgba(59, 130, 246, 0.18), transparent 60%),
    rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
}

.loan-comparison h3 {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  color: #f9fafb;
}

.loan-comparison-intro {
  font-size: 0.82rem;
  opacity: 0.9;
  margin-bottom: 0.7rem;
  color: rgba(226, 232, 240, 0.9);
}

.loan-comparison-grid {
  display: grid;
  gap: 0.9rem;
}

.loan-comparison-row {
  padding: 0.7rem 0.65rem 0.85rem;
  border-radius: 1.1rem;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.95);
  transform: translateY(8px);
  opacity: 0;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
  color: #e5e7eb;
}

.loan-comparison-row-active {
  opacity: 1;
  transform: translateY(0);
}

.loan-comparison-label {
  font-size: 0.83rem;
  margin-bottom: 0.45rem;
  color: rgba(226, 232, 240, 0.95);
}

.loan-comparison-bars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.loan-comparison-bar .label {
  display: block;
  font-size: 0.78rem;
  margin-bottom: 0.15rem;
  opacity: 0.86;
  color: rgba(226, 232, 240, 0.9);
}

.loan-comparison-bar .bar {
  position: relative;
  height: 0.6rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  overflow: hidden;
}

.loan-comparison-bar .bar-light {
  background: radial-gradient(circle at top, rgba(30, 64, 175, 0.5), rgba(15, 23, 42, 0.95));
}

.loan-comparison-bar .bar-soft {
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.32), rgba(15, 23, 42, 0.98));
}

.loan-comparison-bar .fill {
  position: absolute;
  inset: 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #06b6d4, #a855f7);
  box-shadow:
    0 0 16px rgba(56, 189, 248, 0.7),
    0 0 24px rgba(168, 85, 247, 0.5);
  transition: width 0.9s ease-out;
}

.loan-comparison-bar.noncollateral .fill {
  background: linear-gradient(90deg, #f97316, #f97316, #f97316);
  box-shadow:
    0 0 18px rgba(249, 115, 22, 0.75),
    0 0 26px rgba(248, 250, 252, 0.3);
}

/* How-summary section tweaks */

.how-summary ul {
  margin-top: 0.6rem;
  color: rgba(226, 232, 240, 0.9);
}

/* Responsive */

@media (max-width: 1040px) {
  .loan-highlight {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .loan-comparison-bars {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .loan-highlight {
    grid-template-columns: minmax(0, 1fr);
  }

  .loan-card,
  .loan-card.reverse {
    transform: none;
    opacity: 1;
  }

  .loan-comparison-row {
    transform: none;
    opacity: 1;
  }
}
