/* first part of body intro */
.body-contactus {
  display: grid;
  grid-template-columns: 0.3fr 0.7fr;
  margin-top: 1.875rem;
  justify-content: center;
}

.body-contactus .intro {
  background: url("../img/main-first-truck.jpg") center / cover no-repeat;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 25px;
}

.intro .introTitle {
  margin-bottom: .625rem;
  margin-left: .3875rem;
  color: #fff;
  font-size: 2rem;
  backdrop-filter: blur(.125rem);
}

/* contact form css */
.contact-form {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 0.5fr auto 0.5fr;
  justify-items: center;
  border-radius: 25px;
  border: 2px solid transparent;
  background-color: #f7f7f5;
}


.contact-form h2 {
  text-align: center;
  align-content: center;
  margin: 1rem 0;
  grid-column: 1 / -1;
  font-family: Prata;
  font-size: 1.8rem;
}

.contact-form .form-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.form-layout .contact-form-left .field,
.form-layout .contact-form-right .field {
  padding: 0 .625rem;
  margin-bottom: 1.25rem;
}


.contact-form-left .field label,
.contact-form-right .field label {
  font-size: 1.05rem;
  margin-left: .625rem;
}

.contact-form-left .field input,
.contact-form-right .field input {
  width: 100%;
  height: 40px;
  padding-left: .625rem;
  border-radius: 1.5625rem;
  margin-top: .3rem;
  border: 0.5px solid rgb(32, 178, 170);
}

.contact-form-left .field input:focus,
.contact-form-right .field input:focus {
  box-shadow: 0 2px 25px rgba(32, 178, 170, 0.35);
}

.form-layout .contact-form-left .selecttype {
  display: flex;
  flex-direction: column;
  font-size: 1.05rem;
  padding: 0 .625rem;
  margin-bottom: 1.25rem;
}

.contact-form-left .selecttype span {
  margin-left: .625rem;
}

.contact-form-left .selecttype select {
  width: 100%;
  height: 40px;
  padding-left: .625rem;
  border-radius: 1.5625rem;
  margin-top: .3rem;
  border: 0.5px solid rgb(32, 178, 170);
  background: #fff;
}


.contact-form-left .additional textarea {
  min-height: 120px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #ccc;
  font-size: 1rem;
  resize: none;
}

.contact-form button {
  height: 50px;
  width: 300px;
  margin-bottom: 1.5rem;
  border-radius: 1.5625rem;
  border: none;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.35);
}


.contact-form .contact-form-right {
  display: none;
}

.contact-form.show-right .contact-form-right {
  display: block;
}

.contact-form.show-right .form-layout {
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  justify-items: stretch;
  align-items: end;
}


/* main second part intro of steps */
.body-introsteps {
  height: auto !important;
  background: #f8fafc;
  margin-top: 3.7rem;
  text-align: center;
  padding: 0 .625rem;
}

.body-introsteps .w {
  border-radius: 1.5625rem;
  border: 2px solid transparent;
  margin-top: 2.5rem;
  padding: .625rem;
}


.body-introsteps p {
  padding: 0 1rem;
  margin: .625rem auto;
  font-size: 1.25rem;
  max-width: 200ch;
}

/* body second part ul card */
.body-introsteps .body-ul-card {
  display: grid;
  justify-items: center;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin: 1.5rem;
  gap: 1.25rem;
}

.body-ul-card .card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 4 / 3;
  perspective: 1000px;
  border-radius: 1.25rem;
}

.card .card-inner {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: all 1s ease-in-out;
}

.card-inner .card-front,
.card-inner .card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 1.25rem;
}

.card-inner .card-front {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
  color: #1f2937;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.body-ul-card img {
  width: clamp(72px, 30%, 120px);
  height: auto;
  margin-top: 1.625rem;
}


.card-inner .card-front h4 {
  font-size: 1.5rem;
  margin-top: .625rem;
  padding: 0 .625rem;
  color: #111827;
}

.card-inner .card-front p {
  font-size: 1.125rem;
  color: #4b5563;
  margin-top: auto;
  margin-bottom: 0;
}


.card-inner .card-back {
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  color: #1f2937;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transform: rotateY(180deg);
}

.card-inner .card-back p {
  font-size: 1.125rem;
  margin-top: 2rem;
  line-height: 1.625rem;
}

.card.is-flipped .card-inner {
  transform: rotateY(180deg);
}


/* click to flip*/
@media (hover: hover) and (pointer: fine) {
  .card:hover {
    z-index: 10;
  }

  .card:hover .card-inner {
    cursor: pointer;
    transform: scale(1.05);
  }

  .card.is-flipped:hover .card-inner {
    transform: scale(1.05) rotateY(180deg);
  }
}

/* Improve website seo */
.seo-section {
  background: linear-gradient(135deg, #f5f7fa, #e4ecf5);
  padding: 80px 20px;
}

/* center text */
.seo-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.seo-container h2 {
  font-size: 32px;
  font-weight: 700;
  color: #1a2b49;
  margin-bottom: 20px;
  position: relative;
}

.seo-container h2::after {
  content: "";
  width: 60px;
  height: 4px;
  background: #007bff;
  display: block;
  margin: 10px auto 0;
  border-radius: 2px;
}

.seo-text {
  font-size: 16px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 20px;
}

.seo-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 28px;
  background: #007bff;
  color: #fff;
  font-size: 15px;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.seo-btn:hover {
  background: #0056b3;
  transform: translateY(-2px);
}

/* third part of main (why choose us) */

.whychooseus {
  position: relative;
}

.whychooseus .w {
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  gap: .625rem;
  margin-top: 6rem;
  padding: 1.6rem 1.6rem;
  background: rgb(245, 247, 251, 0.6);
}

.whychooseus .w h2 {
  font-size: 1.625rem;
  text-align: center;
}

.whychooseus .slider img {
  display: block;
  max-width: 70%;
  height: auto;
  margin: 0 auto;
  border-radius: 1rem;
}

.slider img,
.whychooseus .w p {
  transition: opacity 0.5s ease;
}

.fade-out {
  opacity: 0;
}

.whychooseus .w .details,
.whychooseus .w .whychooseintro {
  font-size: 1.3rem;
  text-align: center;
}

/* set space between circle and button */
.w .slider-select {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 80%;
  /* margin: auto; */
}

/* format circle */
.slider-select .slider-circle {
  display: flex;
  align-items: center;
  /* flex: 1; */
  gap: .8125rem;
}

.slider-circle li {
  width: 10px;
  height: 10px;
  margin: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.18);
  transition: width 180ms ease, background 180ms ease;
  opacity: 0.4;
  cursor: pointer;
}

.slider-circle li.active {
  width: 20px;
  background: rgba(15, 23, 42, 0.55);
  opacity: 1;
}

/* format button */
.slider-select .slider-button {
  position: relative;
  display: flex;
  justify-content: flex-end;
  gap: 2rem;
  color: #ffffff;
}

.slider-button .button-prev,
.slider-button .button-next {
  position: relative;
  align-items: center;
  justify-content: center;
  z-index: 1;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  width: 2.75rem;
  height: 2.75rem;
  /* text-align: center; */
}

.slider-button .button-prev:hover,
.slider-button .button-next:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(15, 23, 42, 0.22);
}


/* Fourth part of main (location) */
.location {
  margin-top: 3.75rem;
  margin-bottom: 2.5rem;
}


.location h2,
p {
  text-align: center;
  margin-bottom: 1.25rem;
}


.location .mapwrapper iframe {
  display: block;
  width: 50%;
  height: auto;
  margin: 0 auto;
  aspect-ratio: 4 / 3;
}

/* @media (max-width: 1200px) and (min-width: 850px) {
  .body-introsteps .body-ul-card {
    grid-template-columns: 1fr 1fr;
  }
} */

@media (max-width: 1200px) and (min-width: 769px) {
  .contact-form.show-right .form-layout {
    grid-template-columns: 1fr;
  }

  .body-introsteps .body-ul-card {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .body-contactus {
    grid-template-columns: minmax(0, 1fr);
  }

  .body-contactus>* {
    min-width: 0;
  }

  .intro img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  .contact-form.show-right .form-layout {
    grid-template-columns: 1fr;
  }

  .contact-form {
    margin-top: 20px;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    width: 100%;
    box-sizing: border-box;
  }

  .contact-form button {
    width: 50%;
  }

  .contact-form input[type="date"] {
    width: 100%;
  }

  .slider-select .slider-circle {
    gap: .625rem;
  }

  .location .mapwrapper iframe {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .card-inner .card-back p {
    font-size: 1.6rem;
  }
}

/* turn off 3d card flip in small screen phone*/
@media (max-width: 430px) {

  .card {
    perspective: none;
  }

  .card-inner {
    transform: none !important;
    transition: none;
  }

  .card.is-flipped .card-inner {
    transform: none !important;
  }

  .body-ul-card .card {
    aspect-ratio: auto;
    height: auto;
  }

  .card .card-inner {
    height: auto;

  }

  .card-inner .card-front,
  .card-inner .card-back {
    position: static;
    inset: auto;
  }

  .card-inner .card-back {
    display: none;
  }

  .card:hover .card-inner,
  .card.is-flipped:hover .card-inner {
    transform: none !important;
    scale: 1;
  }

  .card-inner .card-front p {
    opacity: 0;
  }
}