/* ============================================================
   JASCO TECH — HERO SECTION (Homelane Layout)
   ============================================================ */

.hl-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--color-bg-primary);
  padding-top: var(--nav-height);
}

/* Background Image with Overlay / Video */
.hl-hero .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hl-hero .hero-video-bg,
.hl-hero .hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.65;
}

.hl-hero .hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 20, 30, 0.85) 0%, rgba(0, 0, 0, 0.45) 100%);
  z-index: 1;
}

/* Container for left and right elements */
.hl-hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-12) var(--container-gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-12);
}

/* Left Content */
.hl-hero-content {
  flex: 1;
  max-width: 600px;
}

.hl-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: var(--fw-bold);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: var(--space-6);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hl-hero-desc {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Right Form Card - Futuristic Frosted Glass */
.hl-hero-form-card {
  width: 100%;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  padding: var(--space-8);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.hl-hero-form-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-blue), var(--color-mint));
}

.hl-form-header {
  margin-bottom: var(--space-6);
}

.hl-form-header h3 {
  font-size: 1.4rem;
  font-weight: var(--fw-bold);
  color: #FFFFFF !important;
  margin: 0;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Form Groups */
.hl-input-group {
  margin-bottom: var(--space-4);
  position: relative;
}

.hl-input-group input,
.hl-input-group select {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

/* Remove number input spinner arrows */
.hl-input-group input[type="number"]::-webkit-outer-spin-button,
.hl-input-group input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.hl-input-group input[type="number"] {
  -moz-appearance: textfield;
}

.hl-input-group input::placeholder {
  color: rgba(255, 255, 255, 0.6) !important;
}

.hl-input-group input:focus,
.hl-input-group select:focus {
  outline: none;
  border-color: var(--color-blue);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 12px rgba(17, 179, 224, 0.25);
}

.hl-input-group select option {
  background: #1a202c;
  color: #FFFFFF;
}

.hl-input-group.phone-group {
  display: flex;
  align-items: center;
}

.hl-input-group.phone-group .country-code {
  padding: 11px 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-right: none;
  border-radius: 6px 0 0 6px;
  color: #FFFFFF;
  font-weight: var(--fw-medium);
  white-space: nowrap;
}

.hl-input-group.phone-group input {
  border-radius: 0 6px 6px 0;
  flex: 1;
}

/* Toggle Group for WhatsApp */
.hl-input-group.toggle-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
}

.hl-input-group.toggle-group label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8) !important;
}

.hl-toggle {
  position: relative;
  width: 40px;
  height: 24px;
}

.hl-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.hl-toggle label {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  transition: 0.4s;
}

.hl-toggle label::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.4s;
}

.hl-toggle input:checked+label {
  background-color: var(--color-blue);
}

.hl-toggle input:checked+label::before {
  transform: translateX(16px);
}

/* Hero Buttons Row */
.hl-hero-buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: var(--space-8);
}

/* CTA Button */
.hl-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--gradient-brand) !important;
  color: #FFFFFF !important;
  border: none;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: var(--fw-bold);
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(17, 179, 224, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hl-btn-primary:hover {
  background: var(--gradient-brand-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(17, 179, 224, 0.6);
}

.hl-btn-block {
  display: flex !important;
  width: 100%;
}

/* Hero secondary button (outline) */
.hl-btn-secondary.hero-sec-btn {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}

.hl-btn-secondary.hero-sec-btn:hover {
  background: var(--gradient-brand);
  border-color: transparent;
  color: #FFFFFF;
}

/* Terms */
.hl-form-terms {
  margin-top: var(--space-4);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5) !important;
  text-align: center;
  line-height: 1.4;
}

.hl-form-terms a {
  color: var(--color-lime) !important;
  text-decoration: none;
}

.hl-form-terms a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 992px) {
  .hl-hero-container {
    flex-direction: column;
    justify-content: center;
    text-align: start;

  }

  .hl-hero-content {
    max-width: 100%;
  }

  .hl-hero-bg::after {
    background: rgba(10, 10, 10, 0.6);
  }
}