/* ==========================================================================
   SolaBoost Core Public CSS
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Custom Hero Slider (Full-Width, Responsive, Accessible)
   -------------------------------------------------------------------------- */
.sb-hero-slider-container {
  position: relative;
  width: 100%;
  min-height: 580px;
  max-height: 720px;
  overflow: hidden;
  background-color: #123B82;
  color: #FFFFFF;
  outline: none;
}

@media (max-width: 768px) {
  .sb-hero-slider-container {
    min-height: 640px;
  }
}

.sb-hero-slider-track {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.sb-hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: inherit;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.7s;
  display: flex;
  align-items: center;
  z-index: 1;
}

/* Fallback: First slide is visible if JS is disabled */
.sb-hero-slide:first-child {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.sb-hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
  position: absolute;
}

.sb-slide-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 80% 20%, rgba(242, 140, 40, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(39, 180, 205, 0.15) 0%, transparent 45%);
  pointer-events: none;
}

.sb-slide-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  width: 100%;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 3;
}

@media (max-width: 991px) {
  .sb-slide-inner {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem;
  }
}

.sb-slide-badge {
  display: inline-block;
  background-color: rgba(242, 140, 40, 0.2);
  border: 1px solid rgba(242, 140, 40, 0.6);
  color: #FFAE5B;
  font-family: var(--sb-font-heading, 'Poppins', sans-serif);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
}

.sb-slide-title {
  color: #FFFFFF;
  font-size: clamp(2.2rem, 4vw + 1rem, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.sb-slide-description {
  color: #E2E8F0;
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 600px;
  margin-bottom: 2rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.sb-slide-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.sb-slide-highlight-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

@media (max-width: 991px) {
  .sb-slide-highlight-card {
    display: none;
  }
}

.sb-hero-stat {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 1rem;
}
.sb-hero-stat:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.sb-hero-stat .stat-number {
  font-family: var(--sb-font-heading, 'Poppins', sans-serif);
  font-size: 1.75rem;
  font-weight: 800;
  color: #F28C28;
}
.sb-hero-stat .stat-label {
  color: #CBD5E1;
  font-size: 0.9rem;
  margin-top: 0.2rem;
}

/* Slider Controls (Prev/Next Arrows) */
.sb-slider-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(18, 59, 130, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}
.sb-slider-control:hover,
.sb-slider-control:focus-visible {
  background: #F28C28;
  border-color: #F28C28;
  color: #FFFFFF;
  transform: translateY(-50%) scale(1.08);
}
.sb-slider-prev { left: 1.5rem; }
.sb-slider-next { right: 1.5rem; }

@media (max-width: 768px) {
  .sb-slider-control { display: none; }
}

/* Slider Indicators (Dots) */
.sb-slider-indicators {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 10;
}

.sb-slider-dot {
  width: 14px;
  height: 14px;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.35);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.sb-slider-dot.is-active,
.sb-slider-dot[aria-selected="true"] {
  width: 36px;
  background-color: #F28C28;
}

.sb-slider-pause-toggle {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
  cursor: pointer;
  z-index: 10;
}

/* --------------------------------------------------------------------------
   2. Quick Enquiry CTA Strip
   -------------------------------------------------------------------------- */
.sb-quick-enquiry-strip {
  background: linear-gradient(135deg, #123B82 0%, #0d2757 100%);
  border-top: 4px solid #F28C28;
  color: #FFFFFF;
  padding: 2.5rem 1.5rem;
}

.sb-quick-strip-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.sb-strip-tag {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  color: #27B4CD;
  margin-bottom: 0.4rem;
}

.sb-strip-text h3 {
  color: #FFFFFF;
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.sb-strip-text p {
  color: #CBD5E1;
  margin: 0;
  font-size: 1rem;
}

.sb-strip-ctas {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   3. Lead Quote & Recruitment Form Cards
   -------------------------------------------------------------------------- */
.sb-form-card {
  background: #FFFFFF;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(18, 59, 130, 0.1);
  border: 1px solid #E5E7EB;
  padding: 2.5rem;
  max-width: 760px;
  margin: 2rem auto;
}

@media (max-width: 600px) {
  .sb-form-card {
    padding: 1.5rem 1.25rem;
  }
}

.sunoera-recruitment-card {
  border-top: 4px solid #27B4CD;
}

.sb-form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.sb-form-kicker {
  display: inline-block;
  font-family: var(--sb-font-heading, 'Poppins', sans-serif);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #F28C28;
  margin-bottom: 0.5rem;
}

.sb-form-title {
  font-size: 1.85rem;
  color: #123B82;
  margin-bottom: 0.5rem;
}

.sb-form-subtitle {
  color: #4B5563;
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
}

.sb-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 600px) {
  .sb-grid-2 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.sb-form-group {
  margin-bottom: 1.25rem;
}

.sb-label {
  display: block;
  font-family: var(--sb-font-heading, 'Poppins', sans-serif);
  font-size: 0.9rem;
  font-weight: 600;
  color: #123B82;
  margin-bottom: 0.4rem;
}

.sb-label .required {
  color: #DC2626;
}

.sb-input,
.sb-input-file {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--sb-font-body, 'Inter', sans-serif);
  font-size: 0.95rem;
  color: #1F2937;
  background-color: #F9FAFB;
  border: 1.5px solid #D1D5DB;
  border-radius: 6px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.sb-input:focus {
  background-color: #FFFFFF;
  border-color: #123B82;
  box-shadow: 0 0 0 3px rgba(18, 59, 130, 0.15);
  outline: none;
}

.sb-input.has-error {
  border-color: #DC2626;
  background-color: #FEF2F2;
}

.sb-field-hint {
  display: block;
  font-size: 0.8rem;
  color: #6B7280;
  margin-top: 0.3rem;
}

.sb-field-error {
  display: block;
  font-size: 0.82rem;
  color: #DC2626;
  font-weight: 500;
  margin-top: 0.3rem;
  min-height: 1.1rem;
}

.sb-checkbox-group {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.sb-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: #374151;
  cursor: pointer;
  line-height: 1.45;
}

.sb-checkbox-label input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 18px;
  height: 18px;
  accent-color: #123B82;
  cursor: pointer;
}

.sb-form-actions {
  text-align: center;
  margin-top: 1.5rem;
}

.sb-submit-btn {
  width: 100%;
  cursor: pointer;
}

.sb-form-security-note {
  font-size: 0.8rem;
  color: #6B7280;
  margin-top: 0.75rem;
  margin-bottom: 0;
}

/* Success Screen & WhatsApp Redirection Box */
.sb-success-screen {
  text-align: center;
  padding: 2rem 1rem;
}

.sb-success-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.sb-success-screen h4 {
  font-size: 1.75rem;
  color: #123B82;
  margin-bottom: 0.75rem;
}

.sb-success-screen p {
  color: #4B5563;
  font-size: 1rem;
  max-width: 550px;
  margin: 0 auto 1.5rem;
}

.sb-success-wa-box {
  background: #F0FDF4;
  border: 2px dashed #22C55E;
  border-radius: 12px;
  padding: 1.75rem;
  margin-top: 1.5rem;
}

.sb-success-wa-box h5 {
  color: #15803D;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.sb-success-wa-box p {
  color: #166534;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

/* --------------------------------------------------------------------------
   4. Floating WhatsApp Action Button
   -------------------------------------------------------------------------- */
.sb-floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9990;
}

.sb-floating-wa-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background-color: #25D366;
  color: #FFFFFF !important;
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  font-family: var(--sb-font-heading, 'Poppins', sans-serif);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sb-floating-wa-btn:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6);
  background-color: #1ebb5b;
}

@media (max-width: 600px) {
  .sb-floating-whatsapp {
    bottom: 16px;
    right: 16px;
  }
  .sb-floating-wa-btn .sb-wa-label {
    display: none;
  }
  .sb-floating-wa-btn {
    padding: 0.85rem;
    border-radius: 50%;
  }
}

/* --------------------------------------------------------------------------
   5. Accessible FAQ Accordions
   -------------------------------------------------------------------------- */
.sb-faq-container {
  max-width: 860px;
  margin: 2rem auto;
}

.sb-faq-item {
  border-bottom: 1px solid #E5E7EB;
  margin-bottom: 0.5rem;
}

.sb-faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--sb-font-heading, 'Poppins', sans-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: #123B82;
  transition: color 0.2s ease;
}

.sb-faq-trigger:hover,
.sb-faq-trigger[aria-expanded="true"] {
  color: #F28C28;
}

.sb-faq-trigger .faq-icon {
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 400;
  color: #9CA3AF;
  transition: transform 0.3s ease;
}

.sb-faq-trigger[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  color: #F28C28;
}

.sb-faq-content {
  padding: 0 0.5rem 1.25rem;
  color: #4B5563;
  line-height: 1.7;
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   6. Reduced Motion Support
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .sb-hero-slide,
  .sb-slider-dot,
  .sb-slider-control,
  .sb-floating-wa-btn {
    transition: none !important;
    animation: none !important;
  }
}
