/* ==========================================================================
   Lloyd Energy - BICS Eligibility Checker Stylesheet
   Executive Corporate Style System (Non-AI, Crisp & Clean)
   Brand Color Palette derived from Lloyd Energy Logo:
   - Ocean Primary Blue: #0088cc
   - Deep Midnight Navy: #0f1438
   - Clean Accent Cyan: #00b4d8
   ========================================================================== */

/* Design Tokens & Theme Variables */
:root {
  --brand-blue: #0088cc;
  --brand-blue-dark: #0066a3;
  --brand-blue-light: rgba(0, 136, 204, 0.08);

  /* Legacy aliases for compatibility */
  --brand-purple: #0088cc;
  --brand-purple-dark: #0066a3;
  --brand-purple-light: rgba(0, 136, 204, 0.08);
  --lime-accent: #00b4d8;
  --lime-hover: #0092b3;

  --cyan-accent: #00b4d8;
  --cyan-hover: #0092b3;

  --deep-navy: #090d26;
  --ink: #0f1438;
  --light-bg: #f4f8fc;
  --light-lilac: #f4f8fc;
  --border-color: #dbe7f3;
  --border-lilac: #dbe7f3;

  --text-dark: #0f172a;
  --text-muted: #475569;
  --card-bg: #ffffff;
  --card-radius: 20px;
  --input-radius: 10px;
  --transition-fast: 0.15s ease-in-out;
}

/* Base Reset & Typography */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--light-bg);
  color: var(--text-dark);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  /* font-weight: 800; */
  letter-spacing: -0.025em;
  color: var(--ink);
}

/* Bootstrap utility overrides */
.text-primary {
  color: var(--brand-blue) !important;
}

.bg-primary-subtle {
  background-color: var(--brand-blue-light) !important;
}

.btn-primary {
  background-color: var(--brand-blue) !important;
  border-color: var(--brand-blue) !important;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--brand-blue-dark) !important;
  border-color: var(--brand-blue-dark) !important;
}

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

/* Sticky Dark Navy Navbar */
.navbar-lloyd {
  background-color: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem 0;
  z-index: 1050;
}

.navbar-brand-text {
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.navbar-logo-container {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
  display: block;
}

.footer-logo-box {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
}

.navbar-brand-badge {
  background: var(--brand-blue);
  color: #ffffff;
  font-size: 0.75rem;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 800;
}

.nav-link-custom {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 0.4rem;
  transition: var(--transition-fast);
}

.nav-link-custom:hover,
.nav-link-custom:focus {
  color: var(--cyan-accent) !important;
}

/* Clean Corporate Buttons */
.btn-lloyd-purple,
.btn-lloyd-primary {
  background-color: var(--brand-blue);
  color: #ffffff;
  font-weight: 700;
  border-radius: 10px;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--brand-blue);
  transition: var(--transition-fast);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.btn-lloyd-purple:hover,
.btn-lloyd-purple:focus,
.btn-lloyd-primary:hover {
  background-color: var(--brand-blue-dark);
  border-color: var(--brand-blue-dark);
  color: #ffffff;
}

.btn-lloyd-purple:disabled,
.btn-lloyd-purple[disabled] {
  opacity: 0.45 !important;
  cursor: not-allowed;
  box-shadow: none !important;
}

.btn-lloyd-lime,
.btn-lloyd-cyan {
  background-color: var(--cyan-accent);
  color: #ffffff;
  font-weight: 800;
  border-radius: 10px;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--cyan-accent);
  transition: var(--transition-fast);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.btn-lloyd-lime:hover,
.btn-lloyd-lime:focus,
.btn-lloyd-cyan:hover {
  background-color: var(--cyan-hover);
  border-color: var(--cyan-hover);
  color: #ffffff;
}

.btn-lloyd-outline {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 700;
  border-radius: 10px;
  padding: 0.75rem 1.5rem;
  transition: var(--transition-fast);
}

.btn-lloyd-outline:hover,
.btn-lloyd-outline:focus {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: #ffffff;
}

/* Hero Section (Clean Executive Dark Navy) */
.hero-section {
  background-color: var(--ink);
  color: #ffffff;
  padding: 4.5rem 0 4rem 0;
  position: relative;
}

.deadline-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--cyan-accent);
  padding: 0.45rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.deadline-dot {
  width: 8px;
  height: 8px;
  background-color: var(--cyan-accent);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--cyan-accent);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-countdown {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 180, 216, 0.12);
  border: 1px solid rgba(0, 180, 216, 0.35);
  border-radius: 50px;
  padding: 0.35rem 0.9rem;
}

.countdown-unit {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
}

.countdown-num {
  font-family: 'Plus Jakarta Sans', monospace;
  font-weight: 800;
  font-size: 0.9rem;
  color: #ffffff;
}

.countdown-lbl {
  font-size: 0.7rem;
  color: var(--cyan-accent);
  text-transform: uppercase;
  font-weight: 700;
}

.countdown-sep {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
  font-weight: 700;
}

.hero-title {
  font-size: 3.2rem;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: #ffffff;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 650px;
  margin-bottom: 2rem;
}

.stat-card-hero {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 1.35rem 1.25rem;
  height: 100%;
}

.stat-val {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--cyan-accent);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.stat-lbl {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

/* Hero Right Column Image & Clean Badge */
.hero-image-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.hero-image {
  width: 100%;
  height: 100%;
  max-height: 400px;
  object-fit: cover;
  display: block;
}

.hero-image-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.xs-text {
  font-size: 0.75rem;
}

/* Section Spacing & Corporate Cards */
.section-padding {
  padding: 4.25rem 0;
}

.test-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.75rem;
  height: 100%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: var(--transition-fast);
}

.test-card:hover {
  border-color: var(--brand-blue);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.test-num {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--brand-blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.band-table {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.band-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.band-row:last-child {
  border-bottom: none;
}

.band-badge {
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  font-size: 0.85rem;
}

.band-badge-0 {
  background: #f1f5f9;
  color: #475569;
}

.band-badge-50 {
  background: #e0f2fe;
  color: #0284c7;
}

.band-badge-100 {
  background: #dcfce7;
  color: #15803d;
}

/* Eligibility Intro Card under Exemption Band Table */
.eligibility-intro-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: var(--transition-fast);
}

.eligibility-intro-card:hover {
  border-color: var(--brand-blue);
  box-shadow: 0 6px 20px rgba(0, 136, 204, 0.08);
}

/* BICS Key Dates Card & Table Styling */
.key-dates-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: var(--transition-fast);
}

.key-dates-card:hover {
  border-color: var(--brand-blue);
  box-shadow: 0 6px 20px rgba(0, 136, 204, 0.08);
}

.key-dates-table thead th {
  background-color: #f4f8fc;
  border-bottom: 2px solid var(--border-color);
  font-size: 0.95rem;
}

.key-dates-table tbody td {
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
}

.key-dates-table tbody tr:last-child td {
  border-bottom: none;
}

/* Thank You Page Executive Styles */
.thank-you-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 24px;
  box-shadow: 0 16px 48px rgba(15, 20, 56, 0.08);
  position: relative;
  overflow: hidden;
}

.thank-you-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--brand-blue) 0%, var(--cyan-accent) 100%);
}

.success-icon-wrapper {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.75rem;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
  margin-bottom: 1.25rem;
}

.process-step-card {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
  height: 100%;
  transition: var(--transition-fast);
}

.process-step-card:hover {
  border-color: var(--brand-blue);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 136, 204, 0.08);
  transform: translateY(-2px);
}

.step-num-badge {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--brand-blue);
  background: var(--brand-blue-light);
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.status-pill-banner {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 50px;
  padding: 0.5rem 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #166534;
}

.live-green-dot {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse-dot 2s infinite ease-in-out;
}

/* BICS Checker Wizard Container */
.wizard-container {
  max-width: 780px;
  margin: 0 auto;
}

.wizard-card-wrapper {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.wizard-card {
  background: var(--card-bg);
  border-radius: var(--card-radius);
  padding: 2.25rem 2rem;
  position: relative;
}

.wizard-progress-bar-container {
  height: 6px;
  background: #e2edf8;
  border-radius: 3px;
  margin-bottom: 1.75rem;
  overflow: hidden;
}

.wizard-progress-bar {
  height: 100%;
  background-color: var(--brand-blue);
  width: 16.66%;
  transition: width 0.3s ease;
  border-radius: 3px;
}

.wizard-step-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--brand-blue-dark);
  background: var(--brand-blue-light);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
}

.wizard-step-title {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
}

.wizard-step-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* Option Select Buttons */
.option-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.option-btn {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--input-radius);
  padding: 0.9rem 1.25rem;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
}

.option-btn:hover,
.option-btn:focus {
  border-color: var(--brand-blue);
  background-color: var(--brand-blue-light);
  outline: none;
}

.option-btn.selected {
  border: 2px solid var(--brand-blue);
  background-color: var(--brand-blue-light);
  color: var(--brand-blue-dark);
  font-weight: 700;
}

.option-radio-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.option-btn.selected .option-radio-icon {
  border-color: var(--brand-blue);
  background: var(--brand-blue);
}

.option-btn.selected .option-radio-icon::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
}

/* Live Search & Company Selection */
.search-results-list {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--input-radius);
  max-height: 240px;
  overflow-y: auto;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  margin-top: 0.5rem;
  z-index: 10;
}

.search-item {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #edf4fa;
  cursor: pointer;
}

.search-item:last-child {
  border-bottom: none;
}

.search-item:hover,
.search-item:focus {
  background: var(--brand-blue-light);
}

.company-selected-card {
  background: #f4f9fd;
  border: 1px solid var(--brand-blue);
  border-radius: 14px;
  padding: 1.25rem;
  margin-top: 1rem;
}

.sic-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

.sic-badge-eligible {
  background: #dcfce7;
  color: #15803d;
}

.sic-badge-unlisted {
  background: #f1f5f9;
  color: #475569;
}

.wizard-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
}

/* Evaluation Result Cards */
.result-card-eligible {
  background: #f0fdf4;
  border: 1.5px solid #16a34a;
  border-radius: 16px;
  padding: 1.75rem;
  color: #14532d;
}

.result-card-review {
  background: #fffbe8;
  border: 1.5px solid #d97706;
  border-radius: 16px;
  padding: 1.75rem;
  color: #78350f;
}

.result-card-not-eligible {
  background: #fef2f2;
  border: 1.5px solid #dc2626;
  border-radius: 16px;
  padding: 1.75rem;
  color: #7f1d1d;
}

/* Form Controls */
.form-control-lloyd {
  border: 1px solid var(--border-color);
  border-radius: var(--input-radius);
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
}

.form-control-lloyd:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px var(--brand-blue-light);
  outline: none;
}

/* FAQ Accordion Styling */
.accordion-lloyd .accordion-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 14px !important;
  margin-bottom: 0.85rem;
  overflow: hidden;
}

.accordion-lloyd .accordion-button {
  background: #ffffff;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 1.15rem;
  box-shadow: none !important;
}

.accordion-lloyd .accordion-button:not(.collapsed) {
  background: var(--brand-blue-light);
  color: var(--brand-blue);
}

/* Consultation & Callout badges */
.badge-lloyd-cyan {
  background: rgba(0, 180, 216, 0.15) !important;
  color: var(--cyan-accent) !important;
  border: 1px solid rgba(0, 180, 216, 0.3);
}

/* ==========================================================================
   Comprehensive Mobile Responsiveness
   ========================================================================== */

/* Tablet & Mobile Landscape (< 992px) */
@media (max-width: 991.98px) {
  .hero-section {
    padding: 3.5rem 0 3rem 0;
  }

  .hero-title {
    font-size: 2.6rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
  }

  .hero-image {
    max-height: 320px;
  }

  .section-padding {
    padding: 3.25rem 0;
  }
}

/* Mobile Devices (< 768px) */
@media (max-width: 767.98px) {
  .navbar-brand-text {
    font-size: 1.1rem;
  }

  .navbar-logo {
    height: 28px;
  }

  .navbar-logo-container {
    padding: 4px 10px;
  }

  .hero-section {
    padding: 2.75rem 0 2.25rem 0;
    text-align: left;
  }

  .hero-title {
    font-size: 2.1rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 0.98rem;
  }

  .deadline-pill {
    font-size: 0.78rem;
    padding: 0.35rem 0.85rem;
    margin-bottom: 1.25rem;
  }

  .d-flex.flex-wrap.gap-3 {
    flex-direction: column;
    gap: 0.75rem !important;
  }

  .btn-lg {
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

  .hero-image {
    max-height: 260px;
  }

  .stat-card-hero {
    padding: 1.1rem;
  }

  .stat-val {
    font-size: 1.75rem;
  }

  .wizard-card {
    padding: 1.35rem 1rem;
    border-radius: 16px;
  }

  .wizard-step-title {
    font-size: 1.35rem;
  }

  .wizard-step-subtitle {
    font-size: 0.88rem;
    margin-bottom: 1.15rem;
  }

  .option-btn {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
  }

  .band-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .accordion-lloyd .accordion-button {
    font-size: 0.95rem;
    padding: 0.9rem 1rem;
  }

  .eligibility-intro-card,
  .key-dates-card {
    padding: 1.25rem 1rem !important;
  }

  .key-dates-table td,
  .key-dates-table th {
    padding: 0.75rem 0.75rem !important;
    font-size: 0.88rem !important;
  }
}

/* Small Smartphone Screen (< 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.85rem;
  }

  .hero-subtitle {
    font-size: 0.92rem;
  }

  .wizard-card {
    padding: 1.15rem 0.85rem;
  }

  .form-control-lloyd {
    font-size: 0.9rem;
  }
}