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

:root {
  --primary-color: #0d9488; /* Trustworthy Teal */
  --primary-hover: #0f766e;
  --secondary-color: #1e293b; /* Premium Navy/Slate */
  --accent-color: #f59e0b; /* Warm Gold */
  --text-dark: #0f172a;
  --text-light: #64748b;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
}

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

body.remortgage-body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
}

/* Header */
.site-header {
  background-color: var(--bg-white);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.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: 2.25rem;
}

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

.logo-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary-color);
  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: 2rem;
  list-style: none;
}

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

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

.header-nav .nav-list a.nav-cta {
  background-color: var(--primary-color);
  color: var(--bg-white);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 10px rgba(13, 148, 136, 0.25);
  transition: all 0.2s ease;
}

.header-nav .nav-list a.nav-cta:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(13, 148, 136, 0.35);
}

/* Hero Section */
.hero-banner {
  background: radial-gradient(circle at 70% 30%, #0d9488 0%, #1e1b4b 100%);
  color: var(--bg-white);
  padding: 5rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.5) 100%);
  z-index: 1;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  text-align: left;
}

.hero-badge {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: translateZ(0);
  will-change: transform;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--bg-white);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
  max-width: 800px;
}

.hero-tagline {
  font-size: 1.15rem;
  color: rgba(241, 245, 249, 0.9);
  max-width: 650px;
  margin-bottom: 2rem;
  font-weight: 300;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--bg-white);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

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

.btn-outline {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--bg-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: var(--bg-white);
}

/* Layout Wrapper */
.main-content-wrapper {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

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

/* Content Area */
.content-area {
  background-color: var(--bg-white);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

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

.article-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--secondary-color);
  letter-spacing: -0.02em;
}

.article-content {
  font-size: 1.05rem;
  color: #334155;
}

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

.article-content h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem 0;
  color: var(--secondary-color);
}

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

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

.sidebar-widget h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
  color: var(--secondary-color);
  border-left: 4px solid var(--primary-color);
  padding-left: 0.75rem;
}

/* Consultation Form Widget */
.quote-widget {
  background: linear-gradient(185deg, var(--bg-white) 0%, rgba(13, 148, 136, 0.03) 100%);
  border-top: 4px solid var(--primary-color);
}

.quote-widget p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 1.25rem;
}

.sidebar-form .form-group {
  margin-bottom: 1rem;
}

.sidebar-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--secondary-color);
}

.sidebar-form input,
.sidebar-form select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-dark);
  background-color: var(--bg-white);
  transition: all 0.2s ease;
}

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

.btn-submit {
  width: 100%;
  background-color: var(--primary-color);
  color: var(--bg-white);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  margin-top: 0.5rem;
  border: none;
  box-shadow: 0 4px 8px rgba(13, 148, 136, 0.2);
}

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

/* Recent Posts Widget */
.posts-widget ul {
  list-style: none;
}

.posts-widget ul li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

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

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

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

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

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

.footer-col h4 {
  font-family: 'Outfit', sans-serif;
  color: var(--bg-white);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.footer-col p {
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul li a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--primary-color);
}

.disclaimer-text {
  font-size: 0.75rem !important;
  line-height: 1.5;
  color: #64748b;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid #334155;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
}

/* Responsive */
@media (max-width: 900px) {
  .layout-grid {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-title {
    font-size: 2.25rem;
  }
}

/* Multi-Step Wizard Form for Homeloanremortgage (Teal Light Theme) */
.payday-form-wizard {
  background: var(--bg-white);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3.5rem;
  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: #f1f5f9;
  border: 2px solid #e2e8f0;
  color: var(--text-light);
  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(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
  box-shadow: 0 0 12px rgba(13, 148, 136, 0.3);
}

.step-node.completed .number {
  background: #ccfbf1;
  border-color: #99f6e4;
  color: var(--primary-color);
}

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

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

.step-bar {
  flex: 1;
  height: 2px;
  background: #e2e8f0;
  margin: 0 1rem;
  position: relative;
  top: -10px;
}

.step-bar .bar-fill {
  height: 100%;
  background: var(--primary-color);
  transition: width 0.3s ease;
  box-shadow: 0 0 6px rgba(13, 148, 136, 0.4);
}

.form-step-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 0.35rem;
}

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

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

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

.input-group input,
.input-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: var(--text-dark);
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

.input-group input::placeholder {
  color: #94a3b8;
}

.input-group input:focus,
.input-group select:focus {
  border-color: var(--primary-color);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 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: #fef2f2;
  border: 1px solid #fee2e2;
  color: #ef4444;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}

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

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

.btn-wizard-next,
.btn-wizard-submit,
.btn-wizard-prev {
  border-radius: var(--radius-sm);
  padding: 0.85rem 2rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-wizard-next,
.btn-wizard-submit {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  box-shadow: 0 4px 10px rgba(13, 148, 136, 0.2);
}

.btn-wizard-next:hover,
.btn-wizard-submit:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 6px 14px rgba(13, 148, 136, 0.3);
}

.btn-wizard-next:disabled,
.btn-wizard-submit:disabled {
  background-color: #cbd5e1;
  color: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-wizard-prev {
  background-color: #fff;
  border: 1px solid #cbd5e1;
  color: var(--text-light);
}

.btn-wizard-prev:hover {
  background-color: #f1f5f9;
  color: var(--secondary-color);
  border-color: #94a3b8;
}

.form-success-card {
  text-align: center;
  padding: 1.5rem 0;
}

.success-icon {
  width: 64px;
  height: 64px;
  background-color: #d1fae5;
  color: #059669;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  margin: 0 auto 1.5rem;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.15);
}

.form-success-card h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 0.75rem;
}

.form-success-card p {
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto 2rem;
}

.payout-timeline {
  display: flex;
  justify-content: space-between;
  max-width: 450px;
  margin: 2.5rem auto 0;
  position: relative;
}

.payout-timeline::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10%;
  right: 10%;
  height: 2px;
  background-color: #e2e8f0;
  z-index: 1;
}

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

.timeline-step .dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #fff;
  border: 3px solid #cbd5e1;
  transition: all 0.3s ease;
}

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

.timeline-step.active .dot {
  background-color: #fff;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.2);
}

.timeline-step span:not(.dot) {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-light);
}

.timeline-step.active span:not(.dot),
.timeline-step.done span:not(.dot) {
  color: var(--primary-color);
}
