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

/* Custom variables for premium Obsidian & Warm Copper layout */
:root {
  --background: #0d0f12;
  --foreground: #f3f4f6;
  --card-bg: rgba(22, 26, 33, 0.85);
  --card-border: rgba(255, 114, 69, 0.2);
  --primary: #ff7245;
  --accent: #3b82f6;
  --text-secondary: #94a3b8;
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

body.remortgage-body {
  background: radial-gradient(circle at 50% 0%, #201310 0%, #0d0f12 70%);
  background-attachment: fixed;
  color: var(--foreground);
  font-family: var(--font-body);
  min-height: 100vh;
}

/* Header & Logo */
.site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 24px 0;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-text {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: -0.02em;
}
.logo-badge {
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 114, 69, 0.2);
  color: var(--primary);
  border: 1px solid rgba(255, 114, 69, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

/* Navigation Links */
.nav-menu {
  display: flex;
  gap: 16px;
  list-style: none;
}
.nav-menu li a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.nav-menu li a:hover {
  color: #fff;
  background: rgba(255,255,255,0.05);
}

/* Glassmorphism panel styling */
.glass-panel, .widget, .main-article, .form-success-card {
  background: var(--card-bg) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--card-border) !important;
  box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.6), 0 0 15px 0 rgba(255, 114, 69, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 16px;
  padding: 24px;
}
.glass-panel:hover, .widget:hover, .main-article:hover {
  border-color: rgba(255, 114, 69, 0.35) !important;
  box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.6), 0 0 20px 0 rgba(255, 114, 69, 0.1);
}

/* Hero Section */
.hero-banner {
  padding: 60px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 114, 69, 0.1);
  border: 1px solid rgba(255, 114, 69, 0.2);
  border-radius: 9999px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  width: max-content;
}
.hero-title {
  font-family: var(--font-title);
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin-top: 10px;
}
.hero-title span.grad {
  background: linear-gradient(to right, var(--primary), #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-tagline {
  font-size: 16px;
  color: #94a3b8;
  max-width: 500px;
  line-height: 1.6;
}

/* High-tech Form Wizard */
.payday-form-wizard {
  max-width: 550px;
  margin: 0 auto;
}
.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  padding: 0 10px;
}
.step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 10;
}
.step-node .number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1f2937;
  border: 2px solid #374151;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.3s ease;
}
.step-node.active .number {
  background: #08090a;
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 10px rgba(255, 114, 69, 0.3);
}
.step-node.completed .number {
  background: var(--primary);
  border-color: var(--primary);
  color: #000;
}
.step-node .label {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
}
.step-node.active .label {
  color: #fff;
}
.step-bar {
  flex: 1;
  height: 2px;
  background: #374151;
  margin: 0 10px;
  position: relative;
  top: -10px;
}
.step-bar .bar-fill {
  height: 100%;
  background: var(--primary);
  transition: width 0.3s ease;
}

/* High-tech inputs */
.wizard-form-body h2 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.step-tagline {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 24px;
}
.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  text-align: left;
}
.input-group label {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
}
.input-group input, .input-group select {
  background: rgba(10, 12, 14, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  outline: none;
  font-size: 14px;
  transition: all 0.25s ease-in-out;
  width: 100%;
  box-sizing: border-box;
}
.input-group input:focus, .input-group select:focus {
  border-color: var(--primary) !important;
  background: rgba(10, 12, 14, 0.95) !important;
  box-shadow: 0 0 0 3px rgba(255, 114, 69, 0.15);
}

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

/* Buttons */
.btn-wizard-next, .btn-wizard-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: var(--primary);
  border: none;
  border-radius: 12px;
  color: #000;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 114, 69, 0.2);
  transition: all 0.2s ease;
  width: 100%;
}
.btn-wizard-next:hover, .btn-wizard-submit:hover {
  background: #ff5722;
  box-shadow: 0 8px 20px rgba(255, 114, 69, 0.4);
  transform: translateY(-1px);
}
.btn-wizard-prev {
  padding: 14px 24px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-wizard-prev:hover {
  background: rgba(255,255,255,0.1);
}
.action-row {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

/* Errors & Alerts */
.input-error {
  font-size: 11px;
  color: #ef4444;
  margin-top: 4px;
  font-weight: 600;
}
.error-banner {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 12px 16px;
  border-radius: 8px;
  color: #f87171;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

/* Success Card */
.form-success-card {
  text-align: center;
}
.success-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 114, 69, 0.1);
  border: 2px solid var(--primary);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 16px;
}
.payout-timeline {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  background: rgba(0,0,0,0.2);
  padding: 16px;
  border-radius: 12px;
}
.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
}
.timeline-step.done { color: var(--primary); }
.timeline-step.active { color: #fff; }
.timeline-step .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #374151;
}
.timeline-step.done .dot { background: var(--primary); }
.timeline-step.active .dot { background: #3b82f6; }

/* Micro-animations */
@keyframes glow-pulse {
  0%, 100% {
    box-shadow: 0 0 4px 0 rgba(255, 114, 69, 0.4);
    opacity: 0.8;
  }
  50% {
    box-shadow: 0 0 12px 2px rgba(255, 114, 69, 0.8);
    opacity: 1;
  }
}
.glow-pulse {
  animation: glow-pulse 2s infinite ease-in-out;
}

/* Grid Layout */
.layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 30px;
}
@media (min-width: 1025px) {
  .layout-grid {
    grid-template-columns: 2fr 1fr;
  }
}

/* Article Styling */
.article-content {
  text-align: left;
  line-height: 1.8;
  font-size: 15px;
  color: #d1d5db;
}
.article-content p {
  margin-bottom: 20px;
}
.article-content h2, .article-content h3 {
  color: #fff;
  margin-top: 30px;
  margin-bottom: 15px;
  font-family: var(--font-title);
}

/* Footer & Disclaimers */
.site-footer {
  margin-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px 0;
}
.footer-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  text-align: left;
}
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
}
.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 12px;
}
.footer-col p, .disclaimer-text {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.6;
}
.footer-bottom {
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: #64748b;
}
.footer-links {
  display: flex;
  gap: 16px;
}
.footer-links a {
  color: #64748b;
  text-decoration: none;
}
.footer-links a:hover {
  color: #fff;
}
