/*================= CONTACT US SECTION =================*/

.contactus_section {
  padding: 8rem 0;
  /* background: #f5f5f5; */
}

/*================= MAIN WRAPPER =================*/

.contactus_wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  padding: 5rem;
  border: 2px solid #1d1d1d;
  border-radius: 3rem;
  background: #ffffff;
}

/*================= LEFT SIDE =================*/

.contactus-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

/*================= HEADING =================*/

.contactus-heading {
  font-size: 5rem;
  font-weight: 700;
  color: #111111;

  margin-bottom: 4rem;
}

/*================= FORM =================*/

.contactus-left form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/*================= INPUTS =================*/

.contactus-inputs {
  width: 100%;
  max-width: 450px;

  height: 4rem;

  border: 1px solid #d6d6d6;
  border-radius: 5rem;

  background: #f1f1f1;

  outline: none;

  padding: 0 2rem;

  font-size: 1.6rem;
  font-weight: 500;

  color: #111111;

  transition: all 0.3s ease;
}

.contactus-inputs:focus {
  border: 2px solid var(--color-primary);
  background: #ffffff;
}

/*================= TEXTAREA =================*/

.contactus-left textarea {
  min-height: 22rem;

  padding-top: 2rem;

  border-radius: 3rem;

  resize: none;
}

/*================= PLACEHOLDER =================*/

.contactus-inputs::placeholder {
  color: #555555;
}

/*================= BUTTON =================*/

.contactus-left button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: fit-content;

  padding: 1.5rem 4rem;

  border: none;
  border-radius: 5rem;

  background: var(--color-primary);

  color: #ffffff;

  font-size: 1.7rem;
  font-weight: 500;

  gap: 1rem;

  cursor: pointer;

  transition: all 0.3s ease;
}

.contactus-left button:hover {
  transform: translateY(-3px);
  opacity: 0.92;
}

/*================= RIGHT SIDE =================*/

.contactus-right {
  display: flex;
  justify-content: center;
  align-items: stretch;
  width: 100%;
}

/*================= CONTACT CARD =================*/

.contactus-card {
  width: 100%;
  /* Forces the card itself to stretch top-to-bottom */
  height: 70%;
  display: flex;
  flex-direction: column;
  justify-content: center;

  border: 2px solid #1d1d1d;
  border-radius: 3rem;
  /* Generous inner padding so text isn't hugging the borders */
  padding: 5rem; 
  background: #ffffff;
  box-sizing: border-box;
}

/*================= CARD TITLE =================*/

.contactus-card-title {
  background: #1f4287;
  color: #ffffff;
  text-align: center;

  width: fit-content;
  align-self: center;

  padding: 1.5rem 4rem;
  border-radius: 2rem;
  font-size: 3rem;
  font-weight: 700;
  margin-top: 5rem;
  margin-bottom: 5rem;
  white-space: nowrap;
}

/*================= CONTACT INFO GROUP =================*/
.contact-info-group {
  width: fit-content;
  margin: 0 auto; /* Centers the entire block horizontally inside the card */

  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Forces the icons to line up on the left */
}

.contact-info {
  display: flex;
  align-items: center;
  gap: 2.5rem; /* Gives the icons and text more breathing room */
  margin-bottom: 2rem; /* Spaces out the contacts vertically */
}

/* Removes bottom margin from the last item so it stays perfectly centered */
.contact-info:last-child {
  margin-bottom: 0;
}

.contact-info p {
  font-size: 2rem;
  color: #222222;
  font-weight: 500;
  white-space: nowrap;
}
/*================= ICONS =================*/

.contact-icon {
  font-size: 2.8rem;
  color: #1f4287;
}

.whatsapp-icon {
  color: #16c60c;
}

.email-icon {
  color: #ff7b22;
}

/*=========================================================
  CONTACT STATUS MODAL
=========================================================*/

.contact-modal {
  position: fixed;
  inset: 0;

  background: rgba(0, 0, 0, 0.55);

  display: flex;
  justify-content: center;
  align-items: center;

  z-index: 99999;

  opacity: 0;
  visibility: hidden;

  transition: all 0.3s ease;
}

.contact-modal.active {
  opacity: 1;
  visibility: visible;
}

.contact-modal-content {
  width: 90%;
  max-width: 420px;

  background: #ffffff;

  border-radius: 2.5rem;

  padding: 4rem 3rem;

  text-align: center;

  transform: translateY(20px);

  transition: all 0.3s ease;
}

.contact-modal.active .contact-modal-content {
  transform: translateY(0);
}

.contact-modal-icon {
  width: 8rem;
  height: 8rem;

  margin: 0 auto 2rem;

  border-radius: 50%;

  display: flex;
  justify-content: center;
  align-items: center;

  font-size: 4rem;

  background: #e8f9ee;

  color: #16c60c;
}

.contact-modal-icon.error {
  background: #ffecec;
  color: #ff3b30;
}

.contact-modal h3 {
  font-size: 3rem;
  font-weight: 700;

  color: #111111;

  margin-bottom: 1.5rem;
}

.contact-modal p {
  font-size: 1.7rem;
  line-height: 1.6;

  color: #555555;

  margin-bottom: 3rem;
}

.contact-modal button {
  border: none;

  background: var(--color-primary);

  color: white;

  padding: 1.4rem 3rem;

  border-radius: 5rem;

  font-size: 1.6rem;
  font-weight: 600;

  cursor: pointer;

  transition: 0.3s ease;
}

.contact-modal button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}


@media screen and (min-width: 1025px) {
  .cf-turnstile {
    transform: scale(1.5);
    transform-origin: left top;

    margin-bottom: 3rem;
  }
}

/*================= TABLET =================*/

@media screen and (max-width: 1024px) {
  .contactus_wrapper {
    grid-template-columns: 1fr;
    gap: 4rem;
    padding: 4rem;
    align-items: center;
    justify-content: center;
  }

  .contactus-heading {
    font-size: 3.5rem;
  }

  .contactus-left,
  .contactus-right {
    width: 100%;
    max-width: 100%;
    /* align-items: center; */
    /* overflow: hidden; */
  }

  .cf-turnstile {
    transform: scale(0.92);
    transform-origin: left top;

    margin-bottom: 3rem;
  }

  .contactus-card {
    width: 100%;
    max-width: 100%;

    height: auto;

    padding: 4rem;
  }

  .contactus-card-title {
    font-size: 1.8rem;
  }

  .contact-info p {
    font-size: 1.5rem;
  }

  .contactus-inputs {
    max-width: 100%;
  }

  .contact-icon {
    font-size: 1.8rem;
  }
}

/*================= MOBILE =================*/

@media screen and (max-width: 600px) {
  .contactus_section {
    padding: 4rem 0;
  }

  .contactus_wrapper {
    grid-template-columns: 1fr;

    gap: 4rem;

    padding: 2.5rem;

    border-radius: 2rem;

    overflow: hidden;
  }

  .contactus-heading {
    font-size: 3rem;

    text-align: center;
  }

  .contactus-inputs {
    width: 100%;
    max-width: 100%;

    height: 3.5rem;

    font-size: 1.2rem;

    padding: 0 1.6rem;
  }

  .contactus-left form {
    gap: 2rem;
  }

  .contactus-left,
  .contactus-right {
    width: 100%;
    max-width: 100%;
  }

  .contactus-left textarea {
    min-height: 18rem;
    padding-top: 1.8rem;
  }

  .contactus-left button {
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: center;
  }

  .cf-turnstile {
    transform: scale(0.9);
    transform-origin: left center;
    max-width: 100%;
    overflow: hidden;
  }

  .contactus-card {
    width: 100%;

    height: auto;

    padding: 0 2rem;
    border: 1px solid #1d1d1d;
  }

  .contactus-card-title {
    font-size: 2rem;
    padding: 1.8rem;
    width: 100%;
    white-space: normal;
  }

  .contact-info-group {
    width: 100%;

    padding-bottom: 3rem;
  }

  .contact-info {
    gap: 1.5rem;
    margin-bottom: 2rem;
  }

  .contact-info p {
    font-size: 1.5rem;
    white-space: normal;

    word-break: break-word;
  }

  .contact-info p:last-child {
    font-size: 1.2rem;
  }

  .contact-icon {
    font-size: 1.6rem;
  }
}
