/* ========================================
   Bill Analysis Page - Redesign
   ======================================== */

/* ----- Local Vars ----- */
.ba-page {
  --ba-navy: #0D192E;
  --ba-orange: #F19231;
  --ba-cyan: #69EEFD;
  --ba-gold: #EFC052;
  --ba-gradient: linear-gradient(135deg, #f19231 0%, #efc052 45%, #69eefd 100%);
  --ba-font-body: 'Avenir', 'Segoe UI', system-ui, sans-serif;
  --ba-font-heading: 'Poppins', sans-serif;
}

/* ============================================
   1. HERO SECTION
   ============================================ */
.ba-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.ba-hero-bg {
  position: absolute;
  inset: 0;
  background: url('../assets/images/bill-analysis/upload-bg.webp') center/cover no-repeat;
  background-color: var(--ba-navy);
}

.ba-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(37, 74, 95, 0.55) 0%,
    rgba(37, 74, 95, 0.3) 40%,
    rgba(13, 25, 46, 0.15) 70%,
    transparent 100%
  );
}

.ba-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 140px 24px 100px;
}

.ba-hero-label {
  display: inline-block;
  font-family: var(--ba-font-body);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 4px;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.ba-hero-content h1 {
  font-family: var(--ba-font-heading);
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  line-height: 1.15;
  text-transform: uppercase;
  margin-bottom: 28px;
  background: var(--ba-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ba-hero-content h1 em {
  font-style: normal;
}

.ba-hero-content p {
  font-family: var(--ba-font-body);
  color: #fff;
  font-size: clamp(1.1rem, 2.5vw, 1.875rem);
  font-weight: 400;
  line-height: 1.55;
  margin-bottom: 48px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.ba-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 42px;
  background: #fff;
  border: 2px solid var(--ba-cyan);
  color: #000;
  font-family: var(--ba-font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
}

.ba-hero-cta .ba-cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ba-gradient);
  flex-shrink: 0;
}

.ba-hero-cta .ba-cta-icon img {
  width: 20px;
  height: 20px;
}

.ba-hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(105, 238, 253, 0.25);
}

.ba-hero-cta svg {
  display: none; /* hide old arrow svg */
}

/* ============================================
   2. STEPS SECTION (How It Works)
   ============================================ */
.ba-steps {
  background: #fff;
  padding: 100px 0;
}

.ba-steps .section-header {
  text-align: center;
  margin-bottom: 60px;
}

.ba-section-label {
  display: inline-block;
  font-family: var(--ba-font-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--ba-orange);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.ba-steps .section-header h2 {
  font-family: var(--ba-font-heading);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--ba-navy);
}

.ba-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 0;
  position: relative;
}

.ba-step-card {
  position: relative;
  text-align: center;
  padding: 40px 36px;
  background: transparent;
  border: none;
  border-radius: 0;
  transition: none;
}

/* Vertical dividers between steps */
.ba-step-card:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: #e0e0e0;
}

.ba-step-card:hover {
  transform: none;
  box-shadow: none;
}

.ba-step-number {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  width: auto;
  height: auto;
  background: none;
  color: var(--ba-orange);
  font-family: var(--ba-font-heading);
  font-size: 80px;
  font-weight: 800;
  opacity: 0.25;
  border-radius: 0;
  display: block;
  line-height: 1;
  margin-bottom: 12px;
}

.ba-step-icon {
  color: var(--ba-orange);
  margin-bottom: 0;
  margin-top: 24px;
  display: flex;
  justify-content: center;
  order: 3;
}

.ba-step-icon img {
  width: 85px;
  height: 85px;
}

.ba-step-card h3 {
  font-family: var(--ba-font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--ba-navy);
  order: 1;
}

.ba-step-card p {
  font-family: var(--ba-font-body);
  font-size: 1rem;
  color: #6b7280;
  line-height: 1.65;
  order: 2;
}

/* Reorder: number, title, description, icon */
.ba-step-card {
  display: flex;
  flex-direction: column;
}

.ba-step-number { order: 0; }
.ba-step-card h3 { order: 1; }
.ba-step-card p { order: 2; }
.ba-step-icon { order: 3; }

/* ============================================
   3. UPLOAD SECTION
   ============================================ */
.ba-upload {
  background: url('../assets/images/bill-analysis/upload-bg.webp') center/cover no-repeat;
  background-color: var(--ba-navy);
  padding: 100px 0;
}

.ba-upload-wrapper {
  max-width: 780px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  overflow: visible;
}

.ba-flow-step {
  display: none;
}

.ba-flow-step.active {
  display: block;
}

.ba-audit-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
  margin-top: 0;
  position: relative;
  z-index: 2;
}
.ba-audit-logo img {
  height: 64px;
  width: auto;
}

/* Upload Card */
.ba-upload-card {
  background: #fff;
  border-radius: 24px;
  border: none;
  padding: 48px 48px 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.ba-upload-header {
  text-align: center;
  margin-bottom: 32px;
}

.ba-upload-header h2 {
  font-family: var(--ba-font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 10px;
  background: var(--ba-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ba-upload-header p {
  color: #6b7280;
  font-family: var(--ba-font-body);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Providers */
.ba-upload-providers {
  margin-bottom: 28px;
}

.ba-provider-label {
  font-family: var(--ba-font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 10px;
}

.ba-provider-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ba-provider-tag {
  padding: 5px 14px;
  font-family: var(--ba-font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  background: transparent;
  border: 1.5px solid var(--ba-orange);
  border-radius: 9999px;
  color: var(--ba-orange);
}

/* Dropzone */
.ba-dropzone {
  border: 2px dashed #d1d5db;
  border-radius: 16px;
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
  margin-bottom: 24px;
}

.ba-dropzone:hover,
.ba-dropzone.dragover {
  border-color: var(--ba-orange);
  background: rgba(241, 146, 49, 0.04);
}

.ba-dropzone-icon {
  color: #b0b8c4;
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}

.ba-dropzone-text {
  font-family: var(--ba-font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ba-navy);
  margin-bottom: 6px;
}

.ba-dropzone-sub {
  font-family: var(--ba-font-body);
  font-size: 0.95rem;
  color: #6b7280;
}

.ba-browse-btn {
  background: none;
  border: none;
  color: var(--ba-orange);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  font-size: inherit;
  font-family: inherit;
}

.ba-dropzone-hint {
  font-family: var(--ba-font-body);
  font-size: var(--fs-xs);
  color: #b0b8c4;
  margin-top: 10px;
}

/* File Preview */
.ba-file-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: #f7f7f7;
  border-radius: 12px;
}

.ba-file-info {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ba-navy);
}

.ba-file-name {
  font-size: var(--fs-sm);
  font-weight: 600;
}

.ba-file-size {
  font-size: var(--fs-xs);
  color: #6b7280;
}

.ba-file-remove {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.2s;
}

.ba-file-remove:hover {
  color: var(--color-error);
}

/* Analyse Button */
.ba-analyse-btn {
  width: 100%;
  padding: 20px;
  background: var(--ba-gradient);
  color: #000;
  font-family: var(--ba-font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: opacity 0.3s, transform 0.2s, box-shadow 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.ba-analyse-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ba-analyse-btn:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(241, 146, 49, 0.35);
}

/* Spinner */
.ba-spinner {
  animation: ba-spin 1s linear infinite;
}

@keyframes ba-spin {
  to { transform: rotate(360deg); }
}

.ba-btn-loading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hidden {
  display: none !important;
}

/* ----- Trust Badges (below upload card, on dark bg) ----- */
.ba-trust {
  background: url('../assets/images/bill-analysis/upload-bg.webp') center/cover no-repeat;
  background-color: var(--ba-navy);
  padding: 60px 0 100px;
  margin-top: -1px; /* seamless join with upload section */
}

.ba-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 960px;
  margin: 0 auto;
  position: relative;
}

.ba-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 20px 24px;
  position: relative;
}

/* Vertical dividers between trust items */
.ba-trust-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.ba-trust-item .ba-trust-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 4px;
}

.ba-trust-item .ba-trust-icon img {
  width: 100%;
  height: 100%;
}

.ba-trust-item svg {
  flex-shrink: 0;
  color: var(--ba-cyan);
  margin-top: 0;
}

.ba-trust-item h4 {
  font-family: var(--ba-font-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0;
}

.ba-trust-item p {
  font-family: var(--ba-font-body);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.55;
}

/* ============================================
   4. FINAL CTA SECTION
   ============================================ */
.ba-cta-final {
  background: var(--ba-navy);
  padding: 100px 24px;
  text-align: center;
}

.ba-cta-final .container {
  max-width: 800px;
  margin: 0 auto;
}

.ba-cta-final h2 {
  font-family: var(--ba-font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.75rem);
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.15;
}

.ba-cta-final p {
  font-family: var(--ba-font-body);
  color: rgba(255, 255, 255, 0.6);
  font-size: clamp(1rem, 2vw, 1.625rem);
  margin-bottom: 40px;
  line-height: 1.5;
}

.ba-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 48px;
  background: var(--ba-gradient);
  color: #000;
  font-family: var(--ba-font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
}

.ba-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(241, 146, 49, 0.3);
}

/* ============================================
   RESULTS CARD (Redesigned)
   ============================================ */
.ba-results-title-wrap {
  text-align: center;
  margin-bottom: 20px;
}

.ba-results-title-gradient {
  font-family: var(--ba-font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  background: linear-gradient(135deg, #f19231 0%, #69eefd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ba-results-card {
  background: #fff;
  border-radius: 24px;
  border: none;
  padding: 40px 40px 36px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

/* Provider block */
.ba-provider-block {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.ba-provider-small-label {
  display: block;
  font-family: var(--ba-font-body);
  font-size: 0.7rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}

.ba-provider-name {
  font-family: var(--ba-font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ba-orange);
}

/* 2x2 Info Grid */
.ba-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.ba-info-box {
  padding: 16px;
  border: 1px solid #f0f0f0;
  border-radius: 14px;
  background: #fafbfc;
}

.ba-info-label {
  display: block;
  font-family: var(--ba-font-body);
  font-size: 0.7rem;
  font-weight: 500;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.ba-info-value {
  font-family: var(--ba-font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ba-navy);
}

/* Total Bill Row */
.ba-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(241, 146, 49, 0.06), rgba(239, 192, 82, 0.06));
  border: 1px solid rgba(241, 146, 49, 0.15);
  border-radius: 14px;
  margin-bottom: 20px;
}

.ba-total-label {
  font-family: var(--ba-font-body);
  font-size: 0.7rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ba-total-amount {
  font-family: var(--ba-font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--ba-orange);
}

/* Projection */
.ba-projection {
  background: var(--ba-navy);
  border-radius: 18px;
  padding: 32px;
  margin-bottom: 28px;
  text-align: center;
}

.ba-projection h3 {
  font-family: var(--ba-font-heading);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.ba-projection-sub {
  font-family: var(--ba-font-body);
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--fs-xs);
  margin-bottom: 24px;
}

.ba-projection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.ba-projection-item {
  padding: 18px 14px;
  background: #384357;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ba-projection-item.featured {
  background: #384357;
  border-color: rgba(241, 146, 49, 0.3);
}

.ba-proj-years {
  display: block;
  font-family: var(--ba-font-body);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 4px;
  font-weight: 500;
}

.ba-proj-cost {
  font-family: var(--ba-font-heading);
  font-size: var(--fs-xl);
  font-weight: 800;
  color: #ef4444;
}

.ba-projection-item.featured .ba-proj-cost {
  color: var(--ba-orange);
}

.ba-proj-icon {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

.ba-proj-icon img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

/* Savings Preview */
.ba-savings-preview {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 18px;
  margin-bottom: 28px;
}

.ba-savings-title {
  font-family: var(--ba-font-body);
  font-size: var(--fs-sm);
  color: #6b7280;
  margin-bottom: 2px;
}

.ba-savings-amount {
  font-family: var(--ba-font-heading);
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: #10b981;
}

/* Results CTA */
.ba-results-cta {
  text-align: center;
}

.ba-results-cta p {
  font-family: var(--ba-font-body);
  font-size: var(--fs-sm);
  color: #6b7280;
  margin-bottom: 16px;
}

.ba-get-report-btn {
  width: 100%;
  padding: 20px;
  background: var(--ba-gradient);
  color: #000;
  font-family: var(--ba-font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s;
}

.ba-get-report-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(241, 146, 49, 0.3);
}

/* ============================================
   CONTACT CARD
   ============================================ */
.ba-contact-card {
  background: #fff;
  border-radius: 24px;
  border: none;
  padding: 48px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.ba-contact-header {
  text-align: center;
  margin-bottom: 32px;
}

.ba-contact-header h2 {
  font-family: var(--ba-font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  background: var(--ba-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.ba-contact-header p {
  font-family: var(--ba-font-body);
  color: #6b7280;
  font-size: var(--fs-sm);
}

.ba-contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

.ba-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ba-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ba-form-group label {
  font-family: var(--ba-font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ba-navy);
}

.ba-form-group input,
.ba-form-group select {
  padding: 14px 18px;
  border: 1.5px solid #e0e0e0;
  border-radius: 12px;
  font-family: var(--ba-font-body);
  font-size: var(--fs-base);
  color: var(--ba-navy);
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  background: #fff;
}

.ba-form-group input:focus,
.ba-form-group select:focus {
  border-color: var(--ba-orange);
  box-shadow: 0 0 0 3px rgba(241, 146, 49, 0.1);
}

.ba-submit-btn {
  width: 100%;
  padding: 18px;
  background: var(--ba-navy);
  color: #fff;
  font-family: var(--ba-font-heading);
  font-weight: 700;
  font-size: var(--fs-base);
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  box-sizing: border-box;
  overflow: hidden;
}

.ba-submit-btn:hover {
  background: #1a2a4a;
  transform: translateY(-1px);
}

.ba-form-disclaimer {
  font-family: var(--ba-font-body);
  font-size: var(--fs-xs);
  color: #b0b8c4;
  text-align: center;
}

/* ============================================
   THANK YOU CARD
   ============================================ */
.ba-thankyou-card {
  background: #fff;
  border-radius: 24px;
  border: none;
  padding: 64px 48px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  text-align: center;
}

.ba-thankyou-icon {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}

.ba-thankyou-card h2 {
  font-family: var(--ba-font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  background: var(--ba-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}

.ba-thankyou-card p {
  font-family: var(--ba-font-body);
  color: #6b7280;
  font-size: var(--fs-sm);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto 32px;
}

.ba-thankyou-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.ba-btn-outline {
  padding: 16px 32px;
  border: 2px solid #e0e0e0;
  border-radius: 9999px;
  font-family: var(--ba-font-heading);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--ba-navy);
  text-decoration: none;
  transition: border-color 0.3s, transform 0.2s;
}

.ba-btn-outline:hover {
  border-color: var(--ba-navy);
  transform: translateY(-1px);
}

.ba-btn-solid {
  padding: 16px 32px;
  background: var(--ba-gradient);
  border-radius: 9999px;
  font-family: var(--ba-font-heading);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: #000;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.3s;
}

.ba-btn-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(241, 146, 49, 0.3);
}

/* ============================================
   ANALYSING ANIMATION (Circular)
   ============================================ */
.ba-analysing-card {
  background: #fff;
  border-radius: 24px;
  border: none;
  padding: 48px 32px 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  text-align: center;
}

.ba-circle-wrapper {
  position: relative;
  width: 340px;
  height: 340px;
  margin: 0 auto 24px;
}

.ba-circle-svg {
  width: 100%;
  height: 100%;
}

.ba-scan-progress {
  transition: stroke-dashoffset 1.4s ease-in-out;
}

.ba-circle-dot {
  transition: fill 0.4s ease;
}

/* Center icon area */
.ba-circle-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
}

.ba-center-icon {
  display: none;
  animation: ba-pulse 2s ease-in-out infinite;
}

.ba-center-icon.active {
  display: block;
}

.ba-center-complete {
  display: none;
  font-family: var(--ba-font-heading);
  font-size: 1rem;
  font-weight: 800;
  background: linear-gradient(135deg, #f19231, #69eefd);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  line-height: 1.3;
}

.ba-center-complete.active {
  display: block;
  animation: ba-scale-in 0.5s ease forwards;
}

@keyframes ba-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.75; }
}

@keyframes ba-scale-in {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Step labels around the circle */
.ba-circle-label {
  position: absolute;
  font-family: var(--ba-font-body);
  font-size: 0.78rem;
  font-weight: 500;
  color: #9ca3af;
  border: 1.5px solid #e5e7eb;
  border-radius: 9999px;
  padding: 6px 16px;
  white-space: nowrap;
  transition: color 0.4s, border-color 0.4s, background 0.4s;
  background: #fff;
}

.ba-circle-label.active {
  color: var(--ba-orange);
  border-color: var(--ba-orange);
  background: rgba(241, 146, 49, 0.06);
  font-weight: 600;
}

.ba-circle-label.done {
  color: #10b981;
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.06);
}

/* Positions: top, right, bottom-right, bottom-left, left */
.ba-cl-top {
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
}

.ba-cl-right {
  top: 24%;
  right: -150px;
}

.ba-cl-bottomright {
  bottom: -5%;
  right: -120px;
}

.ba-cl-bottomleft {
  bottom: -5%;
  left: -130px;
}

.ba-cl-left {
  top: 24%;
  left: -170px;
}

.ba-analysing-status {
  font-family: var(--ba-font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ba-navy);
  margin-bottom: 0;
  min-height: 1.5em;
}

/* ============================================
   SEND BUTTON ANIMATION
   ============================================ */
.ba-submit-btn .ba-send-icon {
  vertical-align: middle;
  margin-right: 4px;
}

.ba-btn-sending,
.ba-btn-sent {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ba-plane-fly {
  animation: ba-fly 1.8s ease-in-out forwards;
}

@keyframes ba-fly {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  50% { transform: translate(60px, -30px) rotate(-15deg); opacity: 0.8; }
  80% { transform: translate(120px, -50px) rotate(-20deg); opacity: 0.3; }
  100% { transform: translate(160px, -60px) rotate(-20deg); opacity: 0; }
}

.ba-submit-btn.sending {
  background: #1a2a4a;
}

.ba-submit-btn.sent {
  background: #10b981;
  color: #fff;
}

/* ============================================
   MODAL OVERLAY (upload tip)
   ============================================ */
.ba-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(2px);
}

.ba-modal-overlay.hidden {
  display: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  /* Hero */
  .ba-hero {
    min-height: 90vh;
  }

  .ba-hero-content {
    padding: 100px 20px 60px;
  }

  .ba-hero-label {
    font-size: 16px;
    letter-spacing: 2px;
  }

  .ba-hero-content p {
    font-size: 1.05rem;
  }

  .ba-hero-cta {
    padding: 14px 28px;
    font-size: 0.95rem;
  }

  .ba-hero-cta .ba-cta-icon {
    width: 34px;
    height: 34px;
  }

  /* Steps */
  .ba-steps {
    padding: 60px 0;
  }

  .ba-steps-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .ba-step-card {
    padding: 30px 24px;
  }

  .ba-step-card:not(:last-child)::after {
    /* Horizontal divider on mobile */
    right: 10%;
    top: auto;
    bottom: 0;
    height: 1px;
    width: 80%;
  }

  .ba-step-number {
    font-size: 56px;
  }

  .ba-step-icon img {
    width: 60px;
    height: 60px;
  }

  /* Upload section */
  .ba-upload {
    padding: 60px 0;
  }

  .ba-upload-wrapper {
    max-width: 100%;
  }

  .ba-upload-card,
  .ba-results-card,
  .ba-contact-card,
  .ba-thankyou-card,
  .ba-analysing-card {
    padding: 28px 20px;
    border-radius: 18px;
    box-sizing: border-box;
    overflow: visible;
  }

  .ba-upload-header h2,
  .ba-contact-header h2,
  .ba-results-title-gradient,
  .ba-thankyou-card h2 {
    font-size: var(--fs-xl);
  }

  .ba-provider-logos {
    gap: 6px;
  }

  .ba-provider-tag {
    font-size: 10px;
    padding: 3px 10px;
  }

  .ba-dropzone {
    padding: 32px 16px;
  }

  .ba-analyse-btn {
    font-size: 1.15rem;
    padding: 16px;
  }

  /* Circular animation - labels go below circle on mobile */
  .ba-circle-wrapper {
    width: 220px;
    height: 220px;
    margin-bottom: 16px;
  }

  .ba-circle-label {
    font-size: 0.68rem;
    padding: 4px 10px;
  }

  .ba-cl-right {
    right: -90px;
  }

  .ba-cl-bottomright {
    right: -80px;
  }

  .ba-cl-bottomleft {
    left: -90px;
  }

  .ba-cl-left {
    left: -100px;
  }

  /* Results */
  .ba-info-grid {
    grid-template-columns: 1fr;
  }

  .ba-total-row {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }

  .ba-projection-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .ba-savings-preview {
    flex-direction: column;
    text-align: center;
  }

  .ba-provider-name {
    font-size: 1.3rem;
  }

  .ba-total-amount {
    font-size: 1.5rem;
  }

  /* Contact */
  .ba-form-row {
    grid-template-columns: 1fr;
  }

  .ba-form-group input,
  .ba-form-group select {
    font-size: 16px; /* prevent iOS zoom */
  }

  /* Trust */
  .ba-trust {
    padding: 40px 0 60px;
  }

  .ba-trust-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .ba-trust-item {
    padding: 20px 16px;
  }

  .ba-trust-item:not(:last-child)::after {
    right: 10%;
    top: auto;
    bottom: 0;
    height: 1px;
    width: 80%;
  }

  .ba-trust-item h4 {
    font-size: 1.25rem;
  }

  /* Thank You */
  .ba-thankyou-card {
    padding: 40px 20px;
  }

  .ba-thankyou-actions {
    flex-direction: column;
    align-items: center;
  }

  .ba-btn-outline,
  .ba-btn-solid {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* CTA */
  .ba-cta-final {
    padding: 60px 20px;
  }

  .ba-upload section,
  .ba-upload .container {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }
}

@media (max-width: 480px) {
  .ba-hero-content {
    padding: 80px 16px 40px;
  }

  .ba-hero-label {
    font-size: 14px;
  }

  /* Circular animation: stack labels below on very small screens */
  .ba-circle-wrapper {
    width: 180px;
    height: 180px;
  }

  .ba-circle-label {
    position: static;
    transform: none;
    display: inline-block;
    margin: 3px;
  }

  .ba-circle-wrapper {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .ba-circle-svg {
    width: 180px;
    height: 180px;
    flex-shrink: 0;
  }

  .ba-circle-center {
    top: 90px;
    left: 90px;
  }

  .ba-info-grid {
    gap: 8px;
  }
}
