/* 💸 FinanceQuickly.net - Premium Glassmorphic Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --bg-primary: #0b0f19;
  --bg-card: rgba(20, 28, 47, 0.65);
  --bg-card-hover: rgba(30, 41, 71, 0.8);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(16, 185, 129, 0.25);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --color-emerald: #10b981;
  --color-emerald-glow: #059669;
  --color-volt: #eab308;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.finance-body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(234, 179, 8, 0.05) 0%, transparent 40%);
  background-attachment: fixed;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.finance-header {
  background: rgba(11, 15, 25, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1.25rem 0;
}

.header-container {
  width: 92%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-icon {
  font-size: 1.75rem;
  background: linear-gradient(135deg, var(--color-volt) 0%, var(--color-emerald) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.brand-suffix {
  color: var(--color-emerald);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.main-nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.25s ease;
}

.nav-link:hover {
  color: var(--color-emerald);
}

/* Primary Button Glow Effect */
.btn-primary-glow {
  background: linear-gradient(135deg, var(--color-emerald) 0%, var(--color-emerald-glow) 100%);
  color: #fff;
  padding: 0.65rem 1.35rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
  transition: all 0.3s ease;
}

.btn-primary-glow:hover {
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
  transform: translateY(-1px);
}

/* ==========================================================================
   Hero & Interactive Calculator Banner
   ========================================================================== */
.finance-hero-section {
  width: 92%;
  max-width: 1400px;
  margin: 3.5rem auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 991px) {
  .finance-hero-section {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin: 2rem auto;
  }
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin: 1rem 0;
  background: linear-gradient(135deg, #ffffff 30%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  margin-bottom: 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-emerald);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
}

.stat-box {
  display: flex;
  flex-direction: column;
}

.stat-box strong {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
}

.stat-box span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Estimator Calculator Card */
.hero-calculator-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 2.25rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  transition: border-color 0.3s ease;
}

.hero-calculator-card:hover {
  border-color: var(--border-glow);
}

.calc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.75rem;
}

.calc-header h2 {
  font-size: 1.35rem;
  font-weight: 700;
}

.live-pill {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-volt);
  border: 1px solid var(--color-volt);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  animation: pulse-glow 2s infinite alternate;
}

@keyframes pulse-glow {
  0% { opacity: 0.6; box-shadow: 0 0 2px rgba(234, 179, 8, 0.2); }
  100% { opacity: 1; box-shadow: 0 0 8px rgba(234, 179, 8, 0.5); }
}

.calc-sliders {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.slider-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.slider-labels span {
  color: var(--text-secondary);
}

.slider-labels strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* Custom Range Input Styling */
.range-input {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-emerald);
  cursor: pointer;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
  transition: transform 0.15s ease;
}

.range-input::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.slider-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Repayment Display section */
.calc-display-section {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 1.25rem;
  margin: 1.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.display-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.display-row span {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.display-row strong {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-emerald);
}

.sub-detail {
  font-size: 0.85rem;
}

.sub-detail span {
  color: var(--text-muted);
}

.btn-action-glow {
  width: 100%;
  background: linear-gradient(135deg, var(--color-emerald) 0%, var(--color-emerald-glow) 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 1rem;
  font-family: var(--font-family);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
  transition: all 0.3s ease;
}

.btn-action-glow:hover {
  box-shadow: 0 6px 25px rgba(16, 185, 129, 0.55);
  transform: translateY(-1px);
}

/* ==========================================================================
   Main Core Content Grid & Sidebar Layout
   ========================================================================== */
.finance-main-layout {
  width: 92%;
  max-width: 1400px;
  margin: 2rem auto 5rem auto;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
}

@media (max-width: 991px) {
  .finance-main-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.finance-content-area {
  min-width: 0; /* Prevents overflow in flex/grid items */
}

.finance-post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2.5rem;
}

.post-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 1.5rem;
  line-height: 1.25;
}

.post-content p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* Sidebar Widgets styling */
.finance-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.75rem;
}

.sidebar-widget h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  border-left: 3px solid var(--color-emerald);
  padding-left: 0.65rem;
}

.trust-widget {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, rgba(20,28,47,0.65) 0%, rgba(16,185,129,0.03) 100%);
}

.trust-stars {
  font-size: 1.25rem;
}

.badge-secured {
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  color: var(--text-secondary);
}

.rate-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rate-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.15);
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.rate-info {
  display: flex;
  flex-direction: column;
}

.rate-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.rate-apr {
  font-size: 0.8rem;
  color: var(--color-emerald);
  font-weight: 700;
}

.rate-term {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.finance-footer {
  background: #060910;
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-container {
  width: 92%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}

.disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  max-width: 800px;
  line-height: 1.5;
}

/* ==========================================================================
   Multi-Step Wizard Form
   ========================================================================== */
.payday-form-wizard {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  margin-top: 1.5rem;
}

.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
  position: relative;
}

.step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
  position: relative;
}

.step-node .number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1e293b;
  border: 2px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.step-node.active .number {
  background: var(--color-emerald);
  border-color: var(--color-emerald);
  color: #fff;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.step-node.completed .number {
  background: var(--color-emerald-glow);
  border-color: var(--color-emerald-glow);
  color: #fff;
}

.step-node .label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: absolute;
  top: 42px;
  white-space: nowrap;
}

.step-node.active .label {
  color: var(--color-emerald);
}

.step-bar {
  flex: 1;
  height: 2px;
  background: var(--border-color);
  margin: 0 1rem;
  position: relative;
  top: -10px;
}

.step-bar .bar-fill {
  height: 100%;
  background: var(--color-emerald);
  transition: width 0.3s ease;
  box-shadow: 0 0 5px rgba(16, 185, 129, 0.5);
}

.form-step-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.step-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.input-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

.input-group input:focus,
.input-group select:focus {
  border-color: var(--color-emerald);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.15);
}

.input-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 576px) {
  .input-row-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.input-error {
  color: #ef4444;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

.error-banner {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.action-row {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
}

.action-row.match-space {
  justify-content: space-between;
}

.btn-wizard-next,
.btn-wizard-submit {
  background: linear-gradient(135deg, var(--color-emerald) 0%, var(--color-emerald-glow) 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.85rem 2rem;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  transition: all 0.3s ease;
}

.btn-wizard-next:hover,
.btn-wizard-submit:hover {
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
  transform: translateY(-1px);
}

.btn-wizard-prev {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.85rem 2rem;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-wizard-prev:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

/* Success Card */
.form-success-card {
  text-align: center;
  padding: 3rem 1.5rem;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  border: 2px solid var(--color-emerald);
  color: var(--color-emerald);
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
  animation: scale-up 0.4s ease-out;
}

@keyframes scale-up {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.form-success-card h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.form-success-card p {
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.payout-timeline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 550px;
  margin: 0 auto;
  position: relative;
}

.payout-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border-color);
  z-index: 1;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
}

.timeline-step .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #1e293b;
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
}

.timeline-step.done .dot {
  background: var(--color-emerald);
  border-color: var(--color-emerald);
}

.timeline-step.active .dot {
  background: var(--color-volt);
  border-color: var(--color-volt);
  box-shadow: 0 0 8px var(--color-volt);
  transform: scale(1.3);
}

.timeline-step span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.timeline-step.done span,
.timeline-step.active span {
  color: var(--text-secondary);
}

.animate-slide-in {
  animation: slide-in 0.3s ease-out;
}

@keyframes slide-in {
  0% { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
