/* ==========================================================================
   BillFree Technology Solution Styles (Blue Kwet UAE & Saudi Arabia)
   ========================================================================== */

:root {
  --bk-navy: #274875;
  --bk-navy-dark: #1b3252;
  --bk-navy-deep: #13243a;
  --bk-accent: #e59a29;
  --bk-accent-hover: #cf8618;
  --bk-teal: #00b87c;
  --bk-teal-dark: #009663;
  --bk-whatsapp: #25d366;
  --bk-whatsapp-dark: #128c7e;
  --bk-text-main: #2d3748;
  --bk-text-muted: #64748b;
  --bk-border: #e2e8f0;
  --bk-card-bg: #ffffff;
  --bk-bg-subtle: #f8fafc;
  --bk-radius: 12px;
  --bk-shadow-sm: 0 2px 8px rgba(39, 72, 117, 0.06);
  --bk-shadow-md: 0 10px 30px rgba(39, 72, 117, 0.1);
  --bk-shadow-lg: 0 18px 45px rgba(39, 72, 117, 0.14);
}

/* BillFree Section General Layout */
.billfree-section {
  position: relative;
  padding: 80px 0;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--bk-text-main);
  box-sizing: border-box;
}

.billfree-section * {
  box-sizing: border-box;
}

.billfree-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.billfree-subtle-bg {
  background-color: var(--bk-bg-subtle);
}

.billfree-dark-bg {
  background: linear-gradient(145deg, var(--bk-navy-deep), var(--bk-navy-dark));
  color: #ffffff;
}

/* Header & Badges */
.billfree-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 50px;
  background: rgba(39, 72, 117, 0.08);
  color: var(--bk-navy);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.billfree-dark-bg .billfree-badge-wrap {
  background: rgba(255, 255, 255, 0.12);
  color: #fbbf24;
}

.billfree-badge-icon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--bk-teal);
  box-shadow: 0 0 10px var(--bk-teal);
}

.billfree-title-xl {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--bk-navy-deep);
  margin-bottom: 20px;
}

.billfree-dark-bg .billfree-title-xl {
  color: #ffffff;
}

.billfree-title-lg {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--bk-navy-deep);
  margin-bottom: 16px;
}

.billfree-dark-bg .billfree-title-lg {
  color: #ffffff;
}

.billfree-lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--bk-text-muted);
  max-width: 780px;
  margin: 0 auto 32px auto;
}

.billfree-dark-bg .billfree-lead {
  color: #cbd5e1;
}

.billfree-region-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: #ffffff;
  border: 1px solid var(--bk-border);
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  color: var(--bk-navy);
  margin-bottom: 30px;
  box-shadow: var(--bk-shadow-sm);
}

/* Button Group */
.billfree-btn-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.billfree-btn-center {
  justify-content: center;
}

.billfree-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 2px solid transparent;
}

.billfree-btn-primary {
  background-color: var(--bk-navy);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(39, 72, 117, 0.25);
}

.billfree-btn-primary:hover {
  background-color: var(--bk-navy-dark);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(39, 72, 117, 0.35);
}

.billfree-btn-secondary {
  background-color: transparent;
  color: var(--bk-navy) !important;
  border-color: var(--bk-navy);
}

.billfree-btn-secondary:hover {
  background-color: var(--bk-navy);
  color: #ffffff !important;
  transform: translateY(-2px);
}

.billfree-btn-whatsapp {
  background-color: var(--bk-whatsapp);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.billfree-btn-whatsapp:hover {
  background-color: var(--bk-whatsapp-dark);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Hero Split Layout */
.billfree-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

/* Dashboard Mockup Visual */
.billfree-mockup-wrapper {
  position: relative;
}

.billfree-device-frame {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: var(--bk-shadow-lg);
  border: 1px solid rgba(226, 232, 240, 0.8);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.billfree-device-frame:hover {
  transform: translateY(-4px);
}

.billfree-mockup-header {
  background: #f1f5f9;
  padding: 12px 18px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.billfree-mockup-dots {
  display: flex;
  gap: 6px;
}

.billfree-mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.billfree-dot-red { background: #ef4444; }
.billfree-dot-yellow { background: #f59e0b; }
.billfree-dot-green { background: #10b981; }

.billfree-mockup-title {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.billfree-mockup-content {
  padding: 24px;
  background: #ffffff;
}

/* Digital Bill Preview Inside Mockup */
.billfree-receipt-card {
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
  position: relative;
}

.billfree-receipt-brand {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.billfree-receipt-logo {
  font-size: 16px;
  font-weight: 800;
  color: var(--bk-navy);
}

.billfree-receipt-badge {
  background: rgba(0, 184, 124, 0.12);
  color: var(--bk-teal);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.billfree-receipt-items {
  font-size: 13px;
  margin-bottom: 12px;
}

.billfree-receipt-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  color: #475569;
}

.billfree-receipt-total {
  border-top: 1px solid #e2e8f0;
  padding-top: 8px;
  font-weight: 700;
  color: var(--bk-navy-deep);
  font-size: 14px;
}

.billfree-receipt-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.billfree-receipt-btn {
  flex: 1;
  text-align: center;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: var(--bk-navy);
}

.billfree-receipt-btn.highlight {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: var(--bk-teal-dark);
}

/* Floating WhatsApp Notification Card */
.billfree-wa-float {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: #ffffff;
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  border: 1px solid #e2e8f0;
  max-width: 280px;
  animation: floatUpDown 4s ease-in-out infinite;
}

@keyframes floatUpDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.billfree-wa-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bk-whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 20px;
  flex-shrink: 0;
}

.billfree-wa-text {
  font-size: 12px;
  line-height: 1.4;
  color: #334155;
}

.billfree-wa-text strong {
  color: #0f172a;
  display: block;
  font-size: 13px;
}

/* Homepage 6 Highlight Icons */
.billfree-home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0;
}

.billfree-home-item {
  background: #ffffff;
  padding: 28px 24px;
  border-radius: var(--bk-radius);
  border: 1px solid var(--bk-border);
  box-shadow: var(--bk-shadow-sm);
  text-align: left;
  transition: all 0.3s ease;
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.billfree-home-item:hover {
  transform: translateY(-5px);
  border-color: #cbd5e1;
  box-shadow: var(--bk-shadow-md);
}

.billfree-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: rgba(39, 72, 117, 0.08);
  color: var(--bk-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.billfree-home-item:hover .billfree-icon-box {
  background: var(--bk-navy);
  color: #ffffff;
}

.billfree-home-item h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--bk-navy-deep);
  margin: 0 0 6px 0;
}

.billfree-home-item p {
  font-size: 14px;
  color: var(--bk-text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Landing Page: 8 Feature Cards */
.billfree-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.billfree-feature-card {
  background: #ffffff;
  border-radius: var(--bk-radius);
  padding: 30px 24px;
  border: 1px solid var(--bk-border);
  box-shadow: var(--bk-shadow-sm);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.billfree-feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  transition: background 0.3s ease;
}

.billfree-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--bk-shadow-md);
  border-color: #cbd5e1;
}

.billfree-feature-card:hover::before {
  background: linear-gradient(90deg, var(--bk-navy), var(--bk-accent));
}

.billfree-feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(39, 72, 117, 0.08);
  color: var(--bk-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.billfree-feature-card:hover .billfree-feature-icon {
  background: var(--bk-navy);
  color: #ffffff;
}

.billfree-feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--bk-navy-deep);
  margin: 0 0 10px 0;
}

.billfree-feature-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--bk-text-muted);
  margin: 0;
}

/* How It Works Flow Pipeline */
.billfree-flow-wrapper {
  margin: 48px 0 24px 0;
}

.billfree-flow-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 24px 8px;
}

.billfree-flow-step {
  background: #ffffff;
  border: 1px solid var(--bk-border);
  border-radius: 12px;
  padding: 20px 16px;
  min-width: 145px;
  flex: 1;
  text-align: center;
  box-shadow: var(--bk-shadow-sm);
  position: relative;
  transition: all 0.25s ease;
}

.billfree-flow-step:hover {
  transform: translateY(-4px);
  border-color: var(--bk-navy);
  box-shadow: var(--bk-shadow-md);
}

.billfree-flow-step.active {
  background: var(--bk-navy);
  color: #ffffff;
  border-color: var(--bk-navy);
}

.billfree-flow-step.active h4 {
  color: #ffffff;
}

.billfree-flow-step.active .billfree-flow-num {
  background: #ffffff;
  color: var(--bk-navy);
}

.billfree-flow-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(39, 72, 117, 0.1);
  color: var(--bk-navy);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px auto;
}

.billfree-flow-step h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--bk-navy-deep);
  margin: 0;
  line-height: 1.4;
}

.billfree-flow-arrow {
  color: #94a3b8;
  font-size: 18px;
  flex-shrink: 0;
}

.billfree-flow-note {
  font-size: 13px;
  color: #64748b;
  text-align: center;
  background: #f1f5f9;
  padding: 12px 20px;
  border-radius: 8px;
  max-width: 700px;
  margin: 16px auto 0 auto;
  border-left: 4px solid var(--bk-accent);
}

/* Industries 12 Grid */
.billfree-industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.billfree-industry-item {
  background: #ffffff;
  border-radius: 12px;
  padding: 22px 18px;
  border: 1px solid var(--bk-border);
  box-shadow: var(--bk-shadow-sm);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.25s ease;
}

.billfree-industry-item:hover {
  transform: translateY(-3px);
  border-color: var(--bk-navy);
  box-shadow: var(--bk-shadow-md);
  background: #f8fafc;
}

.billfree-industry-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(39, 72, 117, 0.08);
  color: var(--bk-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.billfree-industry-item h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--bk-navy-deep);
  margin: 0;
}

/* Why Blue Kwet Section */
.billfree-why-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
}

.billfree-why-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.billfree-why-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--bk-border);
  box-shadow: var(--bk-shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.billfree-why-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(0, 184, 124, 0.12);
  color: var(--bk-teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.billfree-why-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--bk-navy-deep);
  margin: 0 0 4px 0;
}

.billfree-why-card p {
  font-size: 13px;
  color: var(--bk-text-muted);
  margin: 0;
  line-height: 1.4;
}

/* Demo Request Form */
.billfree-form-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--bk-shadow-lg);
  border: 1px solid var(--bk-border);
  max-width: 860px;
  margin: 0 auto;
}

.billfree-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.billfree-form-full {
  grid-column: span 2;
}

.billfree-form-group {
  margin-bottom: 4px;
}

.billfree-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.billfree-form-group label .required {
  color: #ef4444;
}

.billfree-input,
.billfree-select,
.billfree-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: #1e293b;
  background-color: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.billfree-input:focus,
.billfree-select:focus,
.billfree-textarea:focus {
  border-color: var(--bk-navy);
  outline: none;
  box-shadow: 0 0 0 3px rgba(39, 72, 117, 0.15);
}

.billfree-textarea {
  min-height: 100px;
  resize: vertical;
}

.billfree-form-status {
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 14px;
  margin-top: 20px;
  display: none;
}

.billfree-form-status.success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  display: block;
}

.billfree-form-status.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  display: block;
}

/* Floating WhatsApp Button */
.billfree-whatsapp-floating {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bk-whatsapp);
  color: #ffffff !important;
  padding: 12px 22px;
  border-radius: 50px;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.billfree-whatsapp-floating:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
  background: var(--bk-whatsapp-dark);
  color: #ffffff !important;
}

.billfree-whatsapp-floating i {
  font-size: 22px;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .billfree-hero-grid,
  .billfree-why-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .billfree-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .billfree-industries-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .billfree-title-xl {
    font-size: 32px;
  }
  .billfree-title-lg {
    font-size: 26px;
  }
  .billfree-home-grid {
    grid-template-columns: 1fr;
  }
  .billfree-features-grid {
    grid-template-columns: 1fr;
  }
  .billfree-industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .billfree-why-points {
    grid-template-columns: 1fr;
  }
  .billfree-form-grid {
    grid-template-columns: 1fr;
  }
  .billfree-form-full {
    grid-column: span 1;
  }
  .billfree-form-card {
    padding: 24px 18px;
  }
  .billfree-flow-container {
    flex-direction: column;
    align-items: stretch;
  }
  .billfree-flow-arrow {
    transform: rotate(90deg);
    margin: 4px auto;
  }
  .billfree-whatsapp-floating span {
    display: none;
  }
  .billfree-whatsapp-floating {
    padding: 14px;
    border-radius: 50%;
  }
}

@media (max-width: 480px) {
  .billfree-industries-grid {
    grid-template-columns: 1fr;
  }
  .billfree-btn {
    width: 100%;
  }
  .billfree-btn-group {
    flex-direction: column;
  }
}
