/* ============================== Service Area ============================== */
.service-wrapper {
  position: relative;
  width: 100%;
}

.service-image {
  width: 100%;
  height: 540px;
  object-fit: cover;
  display: block;
}

.service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.service-card {
  position: absolute;
  top: 50%;
  left: 30%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  width: 680px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-description {
  margin-bottom: 0;
  font-size: 14px;
  color: #004aad;
}

.overview-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ============================== Process & Benefits Lists ============================== */
.process-list,
.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ============================== Sticky Contact Form ============================== */
.sticky-form-wrapper {
  position: sticky;
  top: 100px;
}

.sticky-contact-form {
  max-width: 500px;
  margin: 0 auto;
  padding: 1.5rem;
  border-radius: 1rem;
  text-align: center;
  color: #fff;
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("../img/besd.png");
  background-size: cover;
  background-position: center;
}

.sticky-contact-form .form-title {
  font-family: "Oswald", sans-serif;
  color: #fff;
  margin-bottom: 1rem;
}

.sticky-contact-form .form-text {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  color: rgb(226, 226, 226);
  text-align: center;
}

/* ============================== Responsive ============================== */

/* Extra small devices (<576px) */
@media (max-width: 575.98px) {
  .service-card {
    width: 90%;
    padding: 20px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .service-description {
    font-size: 12px;
    text-align: justify;
  }

  .service-image {
    height: 500px;
  }
  /* Services */
  .row .d-flex .justify-content-center {
    flex-direction: column;
    gap: 20px;
    width: 100%;
  }

  .row.d-flex.justify-content-center .col-6 {
    width: 100%;
    max-width: 100%;
    order: initial;
    padding: 0 10px;
  }

  .process-list {
    padding: 0 !important;
  }

  .process-list li {
  }

  .row.d-flex.justify-content-center img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
  }

  .sticky-form-wrapper {
    margin-top: 30px;
  }

  .sticky-contact-form {
    padding: 20px;
  }
}

/* Small devices (576px–767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .service-card {
    width: 80%;
    padding: 25px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .service-description {
    font-size: 13px;
    text-align: center;
  }

  .service-image {
    height: 350px;
  }
}

/* Medium devices (768px–991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .service-card {
    width: 500px;
    padding: 25px;
    top: 50%;
    left: 31%;
    transform: translate(-50%, -50%);
  }

  .service-description {
    font-size: 13px;
  }

  .service-image {
    height: 450px;
  }

  /* Service Image */
  .service-image {
    height: 400px;
  }

  /* Service Card */
  .service-card {
    left: 30%;
    width: 450px;
    padding: 20px;
    gap: 8px;
  }

  /* Service Description */
  .service-description {
    font-size: 13px;
  }

  /* Overview Content */
  .overview-content {
    gap: 15px;
  }

  /* Make Process section stack vertically */
  /* .row.d-flex.justify-content-center {
    flex-direction: column !important;
    gap: 30px;
  }

  .row.d-flex.justify-content-center > .col-6 {
    width: 100%;
    max-width: 100%;
  }

  .row.d-flex.justify-content-center > .col-6 img {
    margin: 0 auto;
    width: 100%;
    height: auto;
  } */

  /* Adjust gap in process steps */
  .process-list {
    gap: 12px;
    text-align: left;
  }

  /* Sticky Contact Form */
  .sticky-contact-form {
    width: 100%;
    max-width: 100%;
    padding: 1rem;
    margin-top: 40px;
  }
}

/* Large devices (≥992px and <1200px) */
/* Large devices (992px–1199.98px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Service Image */
  .service-image {
    height: 450px;
  }

  /* Service Card */
  .service-card {
    left: 30%;
    width: 550px;
    padding: 25px;
    gap: 8px;
  }

  /* Service Description */
  .service-description {
    font-size: 13px;
  }

  /* Overview Content */
  .overview-content {
    gap: 15px;
  }

  /* Make Process section stack vertically */
  .row.d-flex.justify-content-center {
    flex-direction: column !important;
    align-items: center;
    gap: 30px; 
  }

  /* Make columns full width */
  .row.d-flex.justify-content-center > .col-6 {
    width: 100%;
    max-width: 100%; 
    text-align: start;
  }

  /* Center image and make responsive */
  .row.d-flex.justify-content-center > .col-6 img {
    height: auto;
  }

  /* Process & Benefits Lists */
  .process-list,
  .benefits-list {
    gap: 8px;
  }

  /* Sticky Contact Form */
  .sticky-contact-form {
    max-width: 400px;
    padding: 1rem;
  }

  .sticky-contact-form .form-title {
    font-size: 1.4rem;
  }

  .sticky-contact-form .form-text {
    font-size: 0.85rem;
  }
}
