/* ==========================================================================
   FAST DEBT REDUCTION INFO DESIGN SYSTEM
   ========================================================================== */

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

:root {
  --primary-color: #0D9488;       /* Trustworthy Teal */
  --primary-hover: #0F766E;       /* Deep Teal */
  --primary-light: #2DD4BF;       /* Light Teal */
  --primary-glow: rgba(13, 148, 136, 0.25);

  --secondary-color: #1E293B;     /* Premium Navy Slate */
  --secondary-dark: #0F172A;      /* Obsidian Slate */
  --accent-color: #F59E0B;        /* Warm Gold */
  --accent-light: #FCD34D;
  --accent-glow: rgba(245, 158, 11, 0.3);

  --bg-page: #F8FAFC;             /* Clean Alabaster */
  --bg-white: #FFFFFF;
  --bg-subtle: #F1F5F9;
  
  --border-subtle: #E2E8F0;
  --border-focus: #0D9488;
  
  --text-dark: #0F172A;
  --text-main: #334155;
  --text-muted: #64748B;
  --text-light: #94A3B8;

  --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.09);
  --shadow-teal: 0 8px 20px rgba(13, 148, 136, 0.18);
}

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

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 1. Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  contain: paint layout;
  border-bottom: 1px solid var(--border-subtle);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo-icon {
  font-size: 2rem;
}

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

.logo-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.logo-subtitle {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.header-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.header-nav .nav-list a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.header-nav .nav-list a:hover,
.header-nav .nav-list a.active {
  color: var(--primary-color);
}

/* 2. Hero & Layout */
.hero-banner {
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.main-wrapper,
.main-content-wrapper {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.layout-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
}

.content-area {
  background-color: var(--bg-white);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
}

.main-article {
  background-color: var(--bg-white);
}

.article-header {
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--bg-subtle);
  padding-bottom: 1rem;
}

.article-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
}

.article-content {
  font-size: 1rem;
  color: var(--text-main);
}

.article-content p {
  margin-bottom: 1.25rem;
}

/* 3. Sidebar */
.site-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-widget,
.widget {
  background-color: var(--bg-white);
  padding: 1.75rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
}

.sidebar-widget h3,
.sidebartitle {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  color: var(--text-dark);
  border-left: 4px solid var(--primary-color);
  padding-left: 0.75rem;
}

.posts-widget ul {
  list-style: none;
}

.posts-widget ul li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.posts-widget ul li:last-child {
  border-bottom: none;
}

.posts-widget ul li a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s;
  display: block;
}

.posts-widget ul li a:hover {
  color: var(--primary-color);
}

/* 4. Footer */
.site-footer {
  background-color: var(--secondary-dark);
  color: #94A3B8;
  padding: 3.5rem 1.5rem 2rem 1.5rem;
  margin-top: 4rem;
  border-top: 4px solid var(--primary-color);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  color: #FFF;
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-col p {
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.8rem;
}

@media (max-width: 860px) {
  .layout-grid {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr;
  }
}

/* PaydayForm Wizard Component Styles */
.payday-form-wizard {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
}

.wizard-progress {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 2.5rem;
  padding: 0 0.5rem;
}

.progress-line-bg {
  position: absolute;
  top: 18px;
  left: 20px;
  right: 20px;
  height: 4px;
  background: #e2e8f0;
  z-index: 1;
  border-radius: 4px;
}

.progress-line-bg .bar-fill {
  height: 100%;
  background: var(--primary-color);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.step-node {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--bg-white);
  padding: 0 6px;
}

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

.step-node.active .number {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.2);
}

.step-node .label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

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

.form-step-content h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.form-step-content .step-tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}

.input-row-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.input-group {
  margin-bottom: 1.25rem;
}

.input-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text-dark);
  background-color: #fff;
  transition: all 0.2s ease;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

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

.action-row {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.btn-wizard-next {
  background: var(--primary-color);
  color: white;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
  transition: all 0.2s ease;
}

.btn-wizard-next:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-wizard-prev {
  background: #f1f5f9;
  color: var(--text-dark);
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-wizard-prev:hover {
  background: #e2e8f0;
}

.error-banner {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-weight: 600;
}
