/* 
  Credit Card Marketplace Styles
  Structured with CSS Variables for easy maintenance
*/

:root {
  /* Colors */
  --primary-color: #0b5ed7; /* Rich Corporate Blue */
  --secondary-color: #f8f9fa; /* Light Gray Backgrounds */
  --text-dark: #212529;
  --text-muted: #6c757d;
  --success-color: #198754;
  --warning-color: #ffc107;
  --border-color: #e9ecef;
  --white: #ffffff;
  
  /* Typography */
  --font-family-base: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Spacing */
  --section-padding-y: 5rem;
  
  /* Shadows */
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --card-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  
  /* Border Radius */
  --border-radius-sm: 0.375rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 1rem;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

body {
  font-family: var(--font-family-base);
  color: var(--text-dark);
  background-color: var(--secondary-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--text-dark);
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color 0.2s ease-in-out;
}

a:hover {
  color: #0a58ca;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #111827;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-bottom: 3rem;
  max-width: 800px;
}

.text-primary {
  color: var(--primary-color) !important;
}

.bg-light-blue {
  background-color: #f0f5ff;
}

/* ==========================================================================
   Components
   ========================================================================== */

/* Navbar */
.navbar {
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
  background-color: var(--white);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-brand i {
  font-size: 1.75rem;
}
.navbar-brand img {
  width: 110px;
}
.nav-link {
  font-weight: 500;
  color: #4b5563;
  margin: 0 0.5rem;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-color);
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: var(--border-radius-md);
  box-shadow: 0 2px 4px rgba(11, 94, 215, 0.2);
  transition: all 0.2s;
}

.btn-primary:hover {
  background-color: #0a58ca;
  border-color: #0a53be;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(11, 94, 215, 0.3);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: var(--border-radius-md);
  transition: all 0.2s;
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* Hero Section */
.hero-section {
  padding: var(--section-padding-y) 0;
  background: linear-gradient(135deg, #f0f5ff 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: #0f172a;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #475569;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-features {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #334155;
}

.hero-feature-item i {
  color: var(--primary-color);
}

/* Floating Badges */
.hero-image-wrapper {
  position: relative;
}

.hero-image-wrapper img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--card-shadow);
  width: 100%;
}

.floating-badge {
  position: absolute;
  background: var(--white);
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--card-shadow-hover);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 0.875rem;
  z-index: 2;
  animation: float 4s ease-in-out infinite;
}

.floating-badge i {
  color: var(--primary-color);
  font-size: 1.25rem;
}

.badge-1 { top: 10%; right: -5%; animation-delay: 0s; }
.badge-2 { top: 40%; right: -10%; animation-delay: 1s; }
.badge-3 { bottom: 20%; right: -5%; animation-delay: 2s; }

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* Feature Cards (Services) */
.service-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid transparent;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--primary-color);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: #f0f5ff;
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1.5rem;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background: var(--primary-color);
  color: var(--white);
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* List with Icons */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-weight: 500;
  color: #4b5563;
}

.feature-list i {
  color: var(--success-color);
  font-size: 1.25rem;
}

/* How It Works Steps */
.step-item {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
  color: var(--white);
  box-shadow: var(--card-shadow);
}

.step-1 { background-color: #3b82f6; }
.step-2 { background-color: #10b981; }
.step-3 { background-color: #f59e0b; }
.step-4 { background-color: #8b5cf6; }

.step-title {
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Connecting Line for Steps */
@media (min-width: 768px) {
  .step-connector {
    position: relative;
  }
  .step-connector::after {
    content: '';
    position: absolute;
    top: 40px; /* half of step-icon height */
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: #e5e7eb;
    z-index: -1;
  }
  .step-connector:last-child::after {
    display: none;
  }
}

/* Application Form Section */
.form-section {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--card-shadow);
  padding: 2.5rem;
}

.form-control, .form-select {
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(11, 94, 215, 0.25);
}

/* Contact Page */
.contact-hero-section {
  background: linear-gradient(135deg, #eef6ff 0%, #ffffff 100%);
}

.eyebrow-title {
  letter-spacing: 0.18em;
  font-size: 0.85rem;
}

.contact-hero-card,
.info-bar,
.support-card,
.contact-side-panel {
  border-radius: calc(var(--border-radius-lg) + 0.25rem);
}

.contact-hero-card,
.info-bar,
.support-card {
  background: var(--white);
  box-shadow: var(--card-shadow);
  padding: 1.1rem 1.2rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.contact-hero-card i,
.support-icon,
.contact-list-item i {
  font-size: 1.5rem;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--primary-color);
  background: rgba(11, 94, 215, 0.1);
}

.contact-side-panel {
  border: 1px solid #e6edf7;
}

.contact-list {
  display: grid;
  gap: 1rem;
}

.contact-list-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-list-item strong {
  display: block;
  margin-bottom: 0.25rem;
}

.social-links a {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.85rem;
  transition: all 0.2s ease;
}

.social-links a:hover {
  background: rgba(11, 94, 215, 0.1);
}

.form-section {
  background-color: var(--white);
  border-radius: calc(var(--border-radius-lg) + 0.25rem);
  box-shadow: var(--card-shadow);
}

.form-section .form-label {
  font-weight: 600;
}

.form-check-label {
  line-height: 1.6;
}

.support-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.support-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

.info-bar {
  min-height: 100%;
}

@media (max-width: 767px) {
  .contact-hero-card,
  .info-bar,
  .support-card {
    justify-content: center;
    text-align: center;
  }
  .contact-list-item {
    justify-content: center;
    text-align: center;
  }
  .contact-list-item i {
    margin: 0 auto;
  }
}


.footer-title {
  color: var(--white);
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-contact-item i {
  color: var(--primary-color);
  margin-top: 0.25rem;
}

.footer-bottom {
  padding: 1.5rem 0;
  font-size: 0.875rem;
}

.footer-links a {
  color: #cbd5e1;
  margin-left: 1rem;
}

.footer-links a:hover {
  color: var(--white);
}

/* Trust Badges in Footer */
.trust-badge-container {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid #1e293b;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.trust-badge i {
  font-size: 2rem;
  color: #cbd5e1;
}

.trust-badge-text {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
}

/* Credit Card Specific Styles */
.credit-card-item {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: all 0.3s;
  height: 100%;
}

.credit-card-item:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-4px);
}

.cc-image-wrapper {
  background: #f8fafc;
  padding: 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.cc-image {
  max-width: 80%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.cc-body {
  padding: 1.5rem;
}

.cc-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.cc-rewards-rate {
  color: var(--success-color);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.cc-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.cc-features li {
  font-size: 0.875rem;
  color: #475569;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.cc-features i {
  color: var(--primary-color);
  margin-top: 0.2rem;
}

.cc-fees {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  margin-bottom: 1.5rem;
}

.cc-fee-item {
  text-align: center;
}

.cc-fee-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cc-fee-value {
  font-weight: 700;
  color: var(--text-dark);
}

.cc-actions {
  display: flex;
  gap: 0.5rem;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .floating-badge {
    display: none; /* Hide floating badges on smaller screens for cleaner layout */
  }
  
  .hero-features {
    flex-wrap: wrap;
  }
  
  .trust-badge-container {
    justify-content: center;
  }
}

@media (max-width: 767.98px) {
  :root {
    --section-padding-y: 3rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .hero-section {
    text-align: center;
  }
  
  .hero-features {
    justify-content: center;
  }
  
  .step-connector::after {
    display: none;
  }
  
  .step-item {
    margin-bottom: 2rem;
  }
}
