body.contact-page {
  padding-top: 186px;
}

.frame {
  display: flex;
  flex-direction: column;
  max-width: 1370px;
  width: 100%;
  align-items: center;
  gap: 80px;
  padding: 0 24px 80px;
  position: relative;
  margin: 0 auto;
}

.frame .div {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  align-self: stretch;
  width: 100%;
}

.frame .frame-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  align-self: stretch;
  width: 100%;
}

.frame .div-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 53px;
  position: relative;
  align-self: stretch;
  width: 100%;
}

.frame .text-wrapper {
  position: relative;
  align-self: stretch;
  margin-top: -1px;
  font-family: "Switzer", sans-serif;
  font-weight: var(--font-semibold);
  color: #ed354f;
  font-size: 80px;
  letter-spacing: 0;
  line-height: normal;
}

.frame .div-2 {
  display: flex;
  align-items: flex-start;
  /* gap: 40px; */
  position: relative;
  align-self: stretch;
  width: 100%;
}

.frame .div-3 {
  display: flex;
  flex-direction: column;
  width: 778px;
  align-items: flex-start;
  gap: 20px;
  position: relative;
}

.frame .text-wrapper-2 {
  position: relative;
  align-self: stretch;
  margin-top: -1px;
  font-family: "Switzer", sans-serif;
  font-weight: var(--font-normal);
  color: #000000;
  font-size: 24px;
  letter-spacing: 0;
  line-height: normal;
}

.frame .div-4 {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex-wrap: wrap;
}

.frame .general-inquiry-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  position: relative;
  background-color: #010136;
  border: none;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.frame .general-inquiry-wrapper:hover {
  opacity: 0.9;
}

/* .frame .general-inquiry-wrapper:focus {
  outline: 2px solid #4a90e2;
  outline-offset: 2px;
} */

.frame .general-inquiry {
  position: relative;
  width: fit-content;
  margin-top: -1px;
  font-family: "Switzer", sans-serif;
  font-weight: var(--font-semibold);
  color: #ffffff;
  font-size: 20px;
  letter-spacing: 0;
  line-height: normal;
}

.frame .div-wrapper-2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  position: relative;
  background-color: #eaeaea;
  border: none;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.frame .div-wrapper-2:hover {
  opacity: 0.9;
}

/* .frame .div-wrapper-2:focus {
  outline: 2px solid #4a90e2;
  outline-offset: 2px;
} */

.frame .text-wrapper-3 {
  position: relative;
  width: fit-content;
  margin-top: -1px;
  font-family: "Switzer", sans-serif;
  font-weight: var(--font-normal);
  color: #010136;
  font-size: 20px;
  letter-spacing: 0;
  line-height: normal;
}

.frame .p {
  position: relative;
  align-self: stretch;
  font-family: "Switzer", sans-serif;
  font-weight: var(--font-normal);
  color: #000000;
  font-size: 22px;
  letter-spacing: 0;
  line-height: normal;
}

.contact-form {
  display: contents;
}

.frame .div-5 {
  gap: 20px;
  align-self: stretch;
  width: 100%;
  display: flex;
  align-items: flex-start;
  position: relative;
}

.frame .div-6 {
  flex-direction: column;
  gap: 10px;
  flex: 1;
  display: flex;
  align-items: flex-start;
  position: relative;
  margin-bottom: 20px;
}

.frame .div-7 {
  position: relative;
  align-self: stretch;
  margin-top: -1px;
  font-family: "Switzer", sans-serif;
  font-weight: var(--font-normal);
  color: transparent;
  font-size: 20px;
  letter-spacing: 0;
  line-height: normal;
}

.frame .span {
  color: #000000;
}

.frame .text-wrapper-4 {
  color: #ed354f;
}

.frame .div-8 {
  position: relative;
  align-self: stretch;
  width: 100%;
  height: 50px;
  background-color: #ffffff;
  border: 1px solid #c7c7c7;
  font-family: "Switzer", sans-serif;
  font-size: 16px;
  padding: 12px;
  box-sizing: border-box;
}

/* .frame .div-8:focus {
  outline: 2px solid #4a90e2;
  border-color: #4a90e2;
} */

.frame .div-9 {
  height: 100px;
  background-color: #ffffff;
  border: 1px solid #c7c7c7;
  position: relative;
  align-self: stretch;
  width: 100%;
  resize: vertical;
  min-height: 100px;
  font-family: "Switzer", sans-serif;
  font-size: 16px;
  padding: 12px;
  box-sizing: border-box;
}

/* .frame .div-9:focus {
  outline: 2px solid #4a90e2;
  border-color: #4a90e2;
} */

.frame .div-10 {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 20px;
  position: relative;
  align-self: stretch;
  width: 100%;
  background-color: #eaeaea;
}

.frame .div-11 {
  position: relative;
  width: 30px;
  height: 30px;
  background-color: #ffffff;
  border: 1px solid #7e7e7e;
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
}

/* .frame .div-11:focus {
  outline: 2px solid #4a90e2;
  outline-offset: 2px;
} */

.frame .div-11:checked {
  background-color: #010136;
  border-color: #010136;
}

.frame .i-agree-to-share-my {
  position: relative;
  flex: 1;
  margin-top: -1px;
  font-family: "Switzer", sans-serif;
  font-weight: var(--font-normal);
  color: #000000;
  font-size: 20px;
  letter-spacing: 0;
  line-height: normal;
  cursor: pointer;
}

.frame .text-wrapper-5 {
  font-family: "Switzer", sans-serif;
  font-weight: var(--font-normal);
  color: #000000;
  font-size: 20px;
  letter-spacing: 0;
}

.frame .text-wrapper-6 {
  text-decoration: underline;
  color: #000000;
  cursor: pointer;
}

.frame .text-wrapper-6:hover {
  color: #ed354f;
}

/* .frame .text-wrapper-6:focus {
  outline: 2px solid #4a90e2;
  outline-offset: 2px;
} */

.frame .frame-wrapper-2 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  position: relative;
  width: 778px;
}

.frame .div-12 {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  position: relative;
  background-color: #ed354f;
  border-radius: 9999px;
  overflow: hidden;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease;
  isolation: isolate;
  width: 217px;
  font-family: "Switzer", sans-serif;
  font-weight: var(--font-normal);
  font-size: 26px;
  color: #ffffff;
}

.frame .div-12::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: #c5303c;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
  border-radius: var(--shape-corner-full);
}

.frame .div-12:hover::before {
  width: 100%;
}

/* .frame .div-12:focus {
  outline: 2px solid #4a90e2;
  outline-offset: 2px;
} */

.frame .div-12:active {
  background-color: #b11335;
}

.frame .rectangle {
  display: none;
}

.frame .div-13 {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.frame .text-wrapper-7 {
  position: relative;
  width: fit-content;
  font-weight: var(--font-normal);
  color: #ffffff;
  letter-spacing: 0;
  line-height: normal;
}

.frame .arrow {
  position: relative;
  width: 20px;
  height: 15px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.frame .div-12:hover .arrow {
  transform: translateX(50px);
}

.frame .frame-wrapper-3 {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 52px 0 0 24px;
  position: relative;
  width: 542px;
  flex: none;
  align-self: stretch;
}

.frame .frame-wrapper-4 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  position: relative;
  flex: 1;
  align-self: stretch;
}

.frame .div-14 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  padding: 0 0 0 24px;
  position: relative;
  flex: 1;
  align-self: stretch;
  width: 100%;
}

.frame .div-15 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  position: relative;
  align-self: stretch;
  width: 100%;
}

.frame .div-16 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  position: relative;
  align-self: stretch;
  width: 100%;
}

.frame .text-wrapper-8 {
  position: relative;
  align-self: stretch;
  margin-top: -1px;
  font-family: "Switzer", sans-serif;
  font-weight: var(--font-normal);
  color: #000000;
  font-size: 32px;
  letter-spacing: 0;
  line-height: normal;
}

.frame .div-17 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  padding: 20px;
  background-color: #eaeaea;
  position: relative;
  align-self: stretch;
  width: 100%;
}

.frame .div-18 {
  display: inline-flex;
  height: 100px;
  align-items: center;
  gap: 10px;
  position: relative;
}

.frame .img {
  position: relative;
  width: 100px;
  height: 100px;
  aspect-ratio: 1;
  object-fit: cover;
}

.frame .div-19 {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  position: relative;
  align-self: stretch;
}

.frame .div-20 {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  position: relative;
}

.frame .text-wrapper-9 {
  position: relative;
  width: fit-content;
  margin-top: -1px;
  font-family: "Switzer", sans-serif;
  font-weight: var(--font-semibold);
  color: #000000;
  font-size: 20px;
  letter-spacing: 0;
  line-height: normal;
}

.frame .text-wrapper-10 {
  position: relative;
  width: fit-content;
  font-family: "Switzer", sans-serif;
  font-weight: var(--font-normal);
  color: #000000;
  font-size: 16px;
  letter-spacing: 0;
  line-height: normal;
}

.frame .text-wrapper-11 {
  position: relative;
  width: 211px;
  font-family: "Switzer", sans-serif;
  font-weight: var(--font-normal);
  color: #696869;
  font-size: 16px;
  letter-spacing: 0;
  line-height: normal;
  text-decoration: none;
  transition: color 0.2s ease;
}

.frame .text-wrapper-11:hover {
  color: #ed354f;
  text-decoration: underline;
}
/* 
.frame .text-wrapper-11:focus {
  outline: 2px solid #4a90e2;
  outline-offset: 2px;
} */

.frame .text-wrapper-12 {
  position: relative;
  width: 211px;
  font-family: "Switzer", sans-serif;
  font-weight: var(--font-normal);
  color: #696869;
  font-size: 16px;
  letter-spacing: 0;
  line-height: normal;
  text-decoration: none;
  transition: color 0.2s ease;
}

.frame .text-wrapper-12:hover {
  color: #ed354f;
  text-decoration: underline;
}

/* .frame .text-wrapper-12:focus {
  outline: 2px solid #4a90e2;
  outline-offset: 2px;
} */

.frame .rectangle-2 {
  position: relative;
  width: 100px;
  height: 100px;
  aspect-ratio: 1;
}

@media (max-width: 1440px) {
  .frame .text-wrapper {
    font-size: 64px;
  }
}

@media (max-width: 1200px) {
  .frame .text-wrapper {
    font-size: 60px;
  }

  .frame .text-wrapper-2 {
    font-size: 20px;
  }

  .frame .p {
    font-size: 18px;
  }

  .frame .div-2 {
    flex-direction: column;
  }

  .frame .div-3 {
    width: 100%;
  }

  .frame .frame-wrapper-3 {
    width: 100%;
    padding: 40px 0 0 0;
  }

  .frame .frame-wrapper-4 {
    border-left: none;
    border-top: 1px solid #dddddd;
    padding-top: 20px;
  }

  .frame .div-14 {
    padding: 20px 0 0 0;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .frame {
    padding: 0 24px;
    gap: 60px;
    margin-bottom: 50px;
  }

  body.contact-page {
    padding-top: 85px;
  }

  .frame .text-wrapper {
    font-size: 40px;
  }

  .frame .text-wrapper-2 {
    font-size: 20px;
    font-weight: var(--font-medium);
  }

  .frame .p {
    font-size: 16px;
    font-weight: var(--font-normal);
  }

  .frame .div-4 {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    max-width: 353px;
    justify-content: space-between; /* Distribute space */
    align-content: flex-start;
  }

  .frame .general-inquiry-wrapper,
  .frame .div-wrapper-2 {
    width: auto;
    flex: 1 1 auto; /* Grow to fill, Shrink to fit */
    height: 48px;
    padding: 0 12px; /* Reduce padding for better fit */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Handle overflow gracefully */
  }

  .frame .general-inquiry,
  .frame .text-wrapper-3 {
    font-size: 14px; /* Update per user request */
    font-weight: var(--font-normal);
  }

  .frame .div-5 {
    flex-direction: column;
    gap: 0;
  }

  .frame .text-wrapper-8 {
    font-size: 18px;
    font-weight: var(--font-normal);
  }

  .frame .i-agree-to-share-my {
    font-size: 16px;
  }

  .frame .text-wrapper-5 {
    font-size: 16px;
    font-weight: var(--font-medium);
  }

  .checkbox-label {
    font-size: 16px;
    font-weight: var(--font-medium);
  }

  /* Ensure inputs match container width */
  .frame .div-8,
  .frame .div-9 {
    width: 100%;
    max-width: 100%;
  }

  .frame .div-7 {
    font-size: 16px; /* Update label font size if div-7 is used for labels */
    font-weight: var(--font-normal);
  }
}

/* Speciality Grid for Careers Form */
.speciality-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 10px;
  width: 100%;
  max-width: 778px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Switzer", sans-serif;
  font-size: 18px;
  color: #000;
  cursor: pointer;
  width: 100%;
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #010136;
  cursor: pointer;
  flex-shrink: 0;
}

/* Ensure checkbox container respects width */
#dynamic-form-fields {
  width: 100%;
  max-width: 778px;
}

#dynamic-form-fields .div-6 {
  max-width: 778px;
}

@media (max-width: 768px) {
  .speciality-grid {
    grid-template-columns: 1fr;
  }
  /* Ensure dynamic form container is full width */
  #dynamic-form-fields,
  .frame .div-6 {
    width: 100%;
    max-width: 100%;
    flex: none; /* Prevent sizing issues in flex containers */
  }

  .frame .div-6 {
    margin-bottom: 15px; /* Adjust gap between fields */
    gap: 10px; /* Keep gap between label and input */
  }

  .checkbox-label {
    font-size: 16px;
    font-weight: var(--font-medium);
  }

  /* Update Privacy Agreement Text */
  .frame .i-agree-to-share-my,
  .frame .text-wrapper-5,
  .frame .text-wrapper-6 {
    font-size: 16px;
    font-weight: var(--font-medium);
  }

  .frame .div-11 {
    width: 25px;
    height: 25px;
  }

  .checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
  }

  /* Submit Button Styles */
  .frame .frame-wrapper-2,
  .frame .div-12 {
    width: 100%;
  }

  .frame .div-12 {
    height: 56px;
    justify-content: center;
    padding: 0; /* Clear padding if height is fixed, or adjust */
  }

  .frame .text-wrapper-7 {
    font-size: 16px;
    font-weight: var(--font-medium);
  }

  .frame .div-13 {
    gap: 30px; /* Increased gap between text and arrow */
  }

  /* Fix Sidebar Overflow */
  .frame .frame-wrapper-3,
  .frame .frame-wrapper-4,
  .frame .div-14 {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  /* Contact Card Typography */
  .frame .text-wrapper-9 {
    font-size: 20px;
    font-weight: var(--font-semibold);
  }

  .frame .text-wrapper-10,
  .frame .text-wrapper-11,
  .frame .text-wrapper-12 {
    font-size: 14px;
    font-weight: var(--font-normal);
    word-break: break-all; /* Ensure emails wrap on small screens */
    display: block; /* Ensure it treats width constraints properly */
    width: 100%;
  }

  /* Fix Contact Card Overflow */
  .frame .div-17,
  .frame .div-18 {
    width: 100%;
    max-width: 100%;
    display: flex; /* Ensure block layout behavior */
    box-sizing: border-box;
  }

  /* Prevent text overflow in contact card */
  .frame .div-19 {
    flex: 1;
    min-width: 0; /* Critical for flex items to shrink */
    width: 100%;
  }
}

/* Status Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  padding: 24px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 400px;
  width: 100%;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.modal-icon.success {
  background-color: rgba(76, 175, 80, 0.1);
  color: #4caf50;
}

.modal-icon.error {
  background-color: rgba(244, 67, 54, 0.1);
  color: #f44336;
}

.modal-title {
  font-family: "Switzer", sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #010136;
  margin: 0;
}

.modal-message {
  font-family: "Switzer", sans-serif;
  font-size: 16px;
  color: #696869;
  line-height: 1.5;
  margin: 0;
}

.modal-close-btn {
  background-color: #010136;
  color: #ffffff;
  border: none;
  padding: 12px 30px;
  border-radius: 99px;
  font-family: "Switzer", sans-serif;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-top: 10px;
}

.modal-close-btn:hover {
  background-color: #ed354f;
}

@media (max-width: 768px) {
  .modal-content {
    padding: 30px 24px;
    width: 90%;
  }
}

/* Form Validation */
.input-error {
  border-color: #f44336 !important;
  background-color: rgba(244, 67, 54, 0.05) !important;
}

.error-message {
  color: #f44336;
  font-family: "Switzer", sans-serif;
  font-size: 14px;
  margin-top: 5px;
  display: block;
}

.div-6 {
  position: relative;
}
