/**
 * ============================================================================
 * DTF HOMEPAGE HERO CAROUSEL — SCOPED STYLESHEET
 * ============================================================================
 * Namespace: .dtf-hero-carousel
 * All rules are strictly scoped to .dtf-hero-carousel to guarantee zero impact
 * on the existing header (.header-area / .navbar-area) or other page sections.
 */

.dtf-hero-carousel.banner-area.banner-area-two {
  position: relative;
  overflow: hidden;
  padding-top: 195px;
  padding-bottom: 205px;
  min-height: 760px;
  background-color: #090418;
  background-image: none;
  z-index: 1;
}

/* Override original .banner-area-two::before so per-slide backgrounds & overlay work cleanly */
.dtf-hero-carousel.banner-area.banner-area-two::before {
  display: none !important;
}

/* ============================================================================
 * 1. SLIDE BACKGROUNDS (IMAGES, OPTIONAL VIDEOS & DARK CORPORATE OVERLAY)
 * ============================================================================ */
.dtf-hero-carousel .dtf-hero-backgrounds {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.dtf-hero-carousel .dtf-hero-bg-item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.75s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}

.dtf-hero-carousel .dtf-hero-bg-item.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.dtf-hero-carousel .dtf-hero-bg-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  transform: scale(1.01);
  transition: transform 6.5s ease-out;
}

.dtf-hero-carousel .dtf-hero-bg-item.is-active .dtf-hero-bg-media {
  transform: scale(1);
}

.dtf-hero-carousel .dtf-hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dark multi-stop corporate overlay ensuring high readability under the transparent header & over all slide assets */
.dtf-hero-carousel .dtf-hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    100deg,
    rgba(8, 3, 24, 0.90) 0%,
    rgba(11, 8, 34, 0.84) 48%,
    rgba(10, 12, 38, 0.78) 100%
  );
}

/* ============================================================================
 * 2. FOREGROUND CONTAINER & TWO-COLUMN GRID
 * ============================================================================ */
.dtf-hero-carousel .dtf-hero-inner {
  position: relative;
  z-index: 3;
}

.dtf-hero-carousel .dtf-hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-left: -15px;
  margin-right: -15px;
}

.dtf-hero-carousel .dtf-hero-col-content {
  width: 56%;
  padding-left: 15px;
  padding-right: 25px;
}

.dtf-hero-carousel .dtf-hero-col-form {
  width: 44%;
  padding-left: 15px;
  padding-right: 15px;
}

/* ============================================================================
 * 3. LEFT COLUMN: SLIDE CONTENT PANELS & FADE TRANSITION
 * ============================================================================ */
.dtf-hero-carousel .dtf-hero-slides-stage {
  position: relative;
  min-height: 390px;
}

.dtf-hero-carousel .dtf-hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.55s ease, transform 0.55s ease, visibility 0.55s ease;
}

.dtf-hero-carousel .dtf-hero-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  z-index: 2;
}

/* Organization / Domain Badge */
.dtf-hero-carousel .dtf-slide-badge-wrap {
  display: flex;
   flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.dtf-hero-carousel .dtf-slide-org-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 50px;
  background: rgba(0, 125, 255, 0.18);
  border: 1px solid rgba(0, 145, 255, 0.45);
  color: #7cc4ff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1.3;
}

.dtf-hero-carousel .dtf-slide-org-badge i {
  color: #2997ff;
  font-size: 15px;
}

.dtf-hero-carousel .dtf-slide-domain-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.dtf-hero-carousel .dtf-slide-domain-pill:hover {
  background: rgba(0, 125, 255, 0.28);
  color: #ffffff;
}

/* Slide Headline & Description */
.dtf-hero-carousel .banner-content {
  max-width: 100%;
  margin: 0;
}

.dtf-hero-carousel .banner-content h1,
.dtf-hero-carousel .dtf-slide-heading {
  color: #ffffff;
  font-size: 46px;
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 16px 0;
  letter-spacing: -0.3px;
}

.dtf-hero-carousel .banner-content p.dtf-slide-description {
  color: rgba(255, 255, 255, 0.90);
  font-size: 16px;
  line-height: 1.68;
  margin: 0 0 18px 0;
}

/* Service Highlights List */
.dtf-hero-carousel .dtf-slide-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 26px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}

.dtf-hero-carousel .dtf-slide-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #e6eefc;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}

.dtf-hero-carousel .dtf-slide-highlights li i {
  color: #2997ff;
  font-size: 16px;
  line-height: 1.3;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Slide Actions / CTA */
.dtf-hero-carousel .dtf-slide-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
}

.dtf-hero-carousel .dtf-slide-actions .default-btn {
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-weight: 600;
}

/* ============================================================================
 * 4. CAROUSEL NAVIGATION CONTROLS (ARROWS, 4 DOMAIN DOTS & ACTIVE INDICATOR)
 * ============================================================================ */
.dtf-hero-carousel .dtf-carousel-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.dtf-hero-carousel .dtf-carousel-arrows {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dtf-hero-carousel .dtf-carousel-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.dtf-hero-carousel .dtf-carousel-arrow:hover,
.dtf-hero-carousel .dtf-carousel-arrow:focus-visible {
  background: #007dff;
  border-color: #007dff;
  color: #ffffff;
  outline: none;
}

.dtf-hero-carousel .dtf-carousel-arrow i {
  font-size: 20px;
  line-height: 1;
}

.dtf-hero-carousel .dtf-carousel-dots {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.dtf-hero-carousel .dtf-carousel-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.80);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.22s ease;
  line-height: 1.2;
}

.dtf-hero-carousel .dtf-carousel-dot:hover,
.dtf-hero-carousel .dtf-carousel-dot:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  outline: none;
}

.dtf-hero-carousel .dtf-carousel-dot .dtf-dot-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transition: all 0.22s ease;
}

.dtf-hero-carousel .dtf-carousel-dot.is-active {
  background: rgba(0, 125, 255, 0.25);
  border-color: #2997ff;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(41, 151, 255, 0.25);
}

.dtf-hero-carousel .dtf-carousel-dot.is-active .dtf-dot-indicator {
  background: #2997ff;
  box-shadow: 0 0 6px #2997ff;
}

.dtf-hero-carousel .dtf-carousel-status {
  margin-left: auto;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.70);
  font-weight: 500;
  white-space: nowrap;
}

/* ============================================================================
 * 5. RIGHT COLUMN: PREMIUM WHITE / LIGHT REUSABLE CONTACT FORM CARD
 * ============================================================================ */
.dtf-hero-carousel .dtf-hero-form-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 24px 24px 20px 24px;
  box-shadow: 0 22px 54px rgba(4, 2, 18, 0.48), 0 4px 14px rgba(15, 23, 42, 0.12);
  border: 1px solid #e2e8f0;
  border-top: 3px solid #007dff;
  color: #1e293b;
  position: relative;
}

.dtf-hero-carousel .dtf-form-header {
  margin-bottom: 14px;
  padding-bottom: 11px;
  border-bottom: 1px solid #e2e8f0;
}

.dtf-hero-carousel .dtf-form-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.dtf-hero-carousel .dtf-form-title {
  font-size: 19px;
  font-weight: 700;
  color: #0e0129;
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.dtf-hero-carousel .dtf-form-active-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #0062cc;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
}

.dtf-hero-carousel .dtf-form-subtitle {
  font-size: 12.5px;
  color: #475569;
  margin: 0;
  line-height: 1.4;
}

.dtf-hero-carousel .dtf-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px 12px;
}

/* Slide-specific fieldsets inside the reusable form card */
.dtf-hero-carousel .dtf-slide-fieldset {
  display: none;
  border: 0;
  margin: 11px 0 0 0;
  padding: 11px 0 0 0;
  min-width: 0;
  border-top: 1px dashed #e2e8f0;
}

.dtf-hero-carousel .dtf-slide-fieldset.is-active {
  display: block;
  animation: dtfFieldsetFadeIn 0.2s ease-out;
}

@keyframes dtfFieldsetFadeIn {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dtf-hero-carousel .dtf-form-field {
  display: flex;
  flex-direction: column;
}

.dtf-hero-carousel .dtf-form-field-full {
  grid-column: 1 / -1;
}

.dtf-hero-carousel .dtf-form-label {
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 4px;
  line-height: 1.25;
  letter-spacing: 0.005em;
}

.dtf-hero-carousel .dtf-form-label .dtf-req {
  color: #dc2626;
  margin-left: 1px;
}

.dtf-hero-carousel .dtf-form-label .dtf-opt-hint {
  font-weight: 400;
  color: #64748b;
  font-size: 11px;
}

.dtf-hero-carousel .dtf-form-input,
.dtf-hero-carousel select.dtf-hero-select,
.dtf-hero-carousel .dtf-form-textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background-color: #f8fafc;
  color: #0f172a;
  font-size: 13px;
  padding: 8px 11px;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
}

.dtf-hero-carousel .dtf-form-input,
.dtf-hero-carousel select.dtf-hero-select {
  height: 39px;
}

/* Ensure native <select> is always visible and theme's global niceSelect clone is hidden inside hero form */
.dtf-hero-carousel select.dtf-hero-select {
  display: block !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 12px 12px;
  text-overflow: ellipsis;
}

.dtf-hero-carousel .dtf-form-field .nice-select {
  display: none !important;
}

.dtf-hero-carousel .dtf-form-textarea {
  min-height: 68px;
  max-height: 125px;
  resize: vertical;
  line-height: 1.45;
}

.dtf-hero-carousel .dtf-form-input::placeholder,
.dtf-hero-carousel .dtf-form-textarea::placeholder {
  color: #94a3b8;
}

.dtf-hero-carousel .dtf-form-input:hover:not(:focus),
.dtf-hero-carousel select.dtf-hero-select:hover:not(:focus),
.dtf-hero-carousel .dtf-form-textarea:hover:not(:focus) {
  border-color: #94a3b8;
}

.dtf-hero-carousel .dtf-form-input:focus,
.dtf-hero-carousel select.dtf-hero-select:focus,
.dtf-hero-carousel .dtf-form-textarea:focus {
  background-color: #ffffff;
  border-color: #007dff;
  box-shadow: 0 0 0 3px rgba(0, 125, 255, 0.14);
}

.dtf-hero-carousel .dtf-form-input.is-invalid,
.dtf-hero-carousel select.dtf-hero-select.is-invalid,
.dtf-hero-carousel .dtf-form-textarea.is-invalid {
  border-color: #dc2626;
  background-color: #fef2f2;
}

/* Honeypot anti-spam field (visually hidden) */
.dtf-hero-carousel .dtf-hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Captcha & Submit Area */
.dtf-hero-carousel .dtf-form-footer {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dtf-hero-carousel .dtf-recaptcha-wrap {
  display: flex;
  justify-content: flex-start;
  overflow: hidden;
}

.dtf-hero-carousel .dtf-submit-btn {
  width: 100%;
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, #0062e3 0%, #007dff 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 125, 255, 0.25);
  transition: background 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.dtf-hero-carousel .dtf-submit-btn:hover:not(:disabled) {
  background: linear-gradient(90deg, #0052bd 0%, #006be0 100%);
  box-shadow: 0 6px 16px rgba(0, 125, 255, 0.34);
}

.dtf-hero-carousel .dtf-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Form Feedback Message (Loading / Success / Error) */
.dtf-hero-carousel .dtf-form-status {
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
  display: none;
}

.dtf-hero-carousel .dtf-form-status.is-visible {
  display: block;
}

.dtf-hero-carousel .dtf-form-status.is-loading {
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
}

.dtf-hero-carousel .dtf-form-status.is-success {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}

.dtf-hero-carousel .dtf-form-status.is-error {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

/* ============================================================================
 * 6. REDUCED MOTION SUPPORT
 * ============================================================================ */
@media (prefers-reduced-motion: reduce) {
  .dtf-hero-carousel .dtf-hero-bg-item,
  .dtf-hero-carousel .dtf-hero-bg-media,
  .dtf-hero-carousel .dtf-hero-slide {
    transition: none !important;
    transform: none !important;
  }
}

/* ============================================================================
 * 7. RESPONSIVE BREAKPOINTS (DESKTOP, TABLET, MOBILE)
 * ============================================================================ */
@media only screen and (min-width: 992px) and (max-width: 1199px) {
  .dtf-hero-carousel.banner-area.banner-area-two {
    padding-top: 185px;
    padding-bottom: 195px;
  }

  .dtf-hero-carousel .dtf-hero-col-content {
    width: 53%;
    padding-right: 15px;
  }

  .dtf-hero-carousel .dtf-hero-col-form {
    width: 47%;
  }

  .dtf-hero-carousel .banner-content h1,
  .dtf-hero-carousel .dtf-slide-heading {
    font-size: 38px;
  }

  .dtf-hero-carousel .dtf-slide-highlights {
    grid-template-columns: 1fr;
  }
}

/* Tablet Layout (768px – 991px) */
@media only screen and (min-width: 768px) and (max-width: 991px) {
  .dtf-hero-carousel.banner-area.banner-area-two {
    padding-top: 155px;
    padding-bottom: 90px;
    min-height: auto;
  }

  .dtf-hero-carousel .dtf-hero-col-content {
    width: 100%;
    padding-right: 15px;
    margin-bottom: 32px;
  }

  .dtf-hero-carousel .dtf-hero-col-form {
    width: 100%;
  }

  .dtf-hero-carousel .dtf-hero-slides-stage {
    min-height: auto;
  }

  .dtf-hero-carousel .banner-content h1,
  .dtf-hero-carousel .dtf-slide-heading {
    font-size: 36px;
  }
}

/* Mobile Layout (<= 767px): Content first, Contact form beneath content */
@media only screen and (max-width: 767px) {
  .dtf-hero-carousel.banner-area.banner-area-two {
    padding-top: 130px;
    padding-bottom: 65px;
    min-height: auto;
  }

  .dtf-hero-carousel .dtf-hero-col-content {
    width: 100%;
    padding-right: 15px;
    margin-bottom: 28px;
    order: 1;
  }

  .dtf-hero-carousel .dtf-hero-col-form {
    width: 100%;
    order: 2;
  }

  .dtf-hero-carousel .dtf-hero-slides-stage {
    min-height: auto;
  }

  .dtf-hero-carousel .banner-content {
    text-align: left;
  }

  .dtf-hero-carousel .banner-content h1,
  .dtf-hero-carousel .dtf-slide-heading {
    font-size: 28px;
    line-height: 1.25;
  }

  .dtf-hero-carousel .banner-content p.dtf-slide-description {
    font-size: 14.5px;
    line-height: 1.6;
  }

  .dtf-hero-carousel .dtf-slide-highlights {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 20px;
  }

  .dtf-hero-carousel .dtf-carousel-controls {
    margin-top: 20px;
    padding-top: 14px;
    gap: 10px;
  }

  .dtf-hero-carousel .dtf-carousel-dot {
    padding: 5px 10px;
    font-size: 11.5px;
  }

  .dtf-hero-carousel .dtf-carousel-status {
    width: 100%;
    margin-left: 0;
  }

  .dtf-hero-carousel .dtf-hero-form-card {
    padding: 20px 16px;
  }

  .dtf-hero-carousel .dtf-form-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .dtf-hero-carousel .dtf-recaptcha-wrap > div {
    transform: scale(0.92);
    transform-origin: 0 0;
  }
}
