/* =========================================================================
   Global — Contact form section
   ========================================================================= */

.contact-form {
  padding: 75px 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #293948;
}

.contact-form .container {
  display: flex;
  justify-content: center;
}

.contact-form__box {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 700px;
  max-width: 100%;
  padding: 32px;
  border-radius: 20px;
  background: #FFFFFF80;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-sizing: border-box;
}
.ff_submit_btn_wrapper {
  margin-bottom: 0 !important;
}
/* --- Header ---------------------------------------------------------------- */
.contact-form__header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.contact-form__title {
  margin: 0;
  color: #293948;
  font-family: var(--font-hn);
  font-weight: 700;
  font-size: 24px;
  line-height: 135%;
  letter-spacing: 0.01em;
}

.contact-form__desc {
  margin: 0;
  color: #757575;
  font-family: var(--font-hn);
  font-weight: 300;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.01em;
}

/* --- Form body (Fluent Form overrides) ------------------------------------- */
.contact-form__body .ff-el-group {
  margin-bottom: 16px;
}

.contact-form__body .ff-el-input--label label,
.contact-form__body .ff_el_input--label label {
  color: #293948;
  font-family: var(--font-hn);
  font-weight: 300 !important;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.01em;
  margin-bottom: 6px !important;
}

.contact-form__body .ff-el-input--content input[type="text"],
.contact-form__body .ff-el-input--content input[type="email"],
.contact-form__body .ff-el-input--content input[type="tel"],
.contact-form__body .ff-el-input--content input[type="number"],
.contact-form__body .ff-el-input--content input[type="url"],
.contact-form__body .ff-el-input--content textarea,
.contact-form__body input.ff-el-form-control,
.contact-form__body textarea.ff-el-form-control {
  background: #FFFFFF;
  padding: 12px 20px;
  border: none;
  border-radius: 40px;
  color: #293948;
  font-family: var(--font-hn);
  font-weight: 300;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.01em;
  box-sizing: border-box;
  width: 100%;
}

.contact-form__body textarea.ff-el-form-control {
  border-radius: 20px;
}

.contact-form__body input::placeholder,
.contact-form__body textarea::placeholder {
  color: #BDBDBD;
}

.contact-form__body .ff-btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  margin: 0 auto;
  padding: 12px 32px;
  border: none;
  border-radius: 40px;
  background: #D85401;
  color: #FFFFFF;
  font-family: var(--font-hn);
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form__body .ff-btn-submit:hover {
  background: #293948;
}

/* MISA WebForm inside the existing contact section. */
.contact-form__body #crmWebToEntityForm {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

.contact-form__body #crmWebToEntityForm form,
.contact-form__body #crmWebToEntityForm table {
  width: 100% !important;
  max-width: none !important;
  margin: 0;
}

.contact-form__body #crmWebToEntityForm table {
  border: 0;
  border-spacing: 0;
  background: transparent !important;
}

.contact-form__body #crmWebToEntityForm tbody {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
  row-gap: 16px;
}

.contact-form__body #crmWebToEntityForm tr {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
}

.contact-form__body #crmWebToEntityForm tr:first-child {
  display: none;
}

.contact-form__body #crmWebToEntityForm tr:nth-child(2),
.contact-form__body #crmWebToEntityForm tr:nth-child(5),
.contact-form__body #crmWebToEntityForm tr:nth-child(6),
.contact-form__body #crmWebToEntityForm tr:nth-child(7) {
  grid-column: 1 / -1;
}

.contact-form__body #crmWebToEntityForm td {
  display: block;
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  border: 0;
  color: #293948;
  font-family: var(--font-hn);
  font-weight: 300;
  font-size: 16px !important;
  line-height: 150%;
  letter-spacing: 0.01em;
}

.contact-form__body #crmWebToEntityForm tr:not(:last-child) td:first-child {
  margin-bottom: 6px;
}

.contact-form__body #crmWebToEntityForm td > input[type="text"],
.contact-form__body #crmWebToEntityForm td > textarea {
  display: block;
  width: 100% !important;
  max-width: none !important;
  padding: 12px 20px;
  border: 0;
  border-radius: 40px;
  outline-offset: 2px;
  background: #fff;
  color: #293948;
  font-family: var(--font-hn);
  font-weight: 300;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.01em;
  box-sizing: border-box;
}

.contact-form__body #crmWebToEntityForm td > textarea {
  min-height: 136px;
  border-radius: 20px;
  resize: vertical;
}

.contact-form__body #crmWebToEntityForm input::placeholder,
.contact-form__body #crmWebToEntityForm textarea::placeholder {
  color: #8b95a1;
}

.contact-form__body #crmWebToEntityForm tr:last-child td {
  padding-top: 8px !important;
  text-align: center !important;
}

.contact-form__body #crmWebToEntityForm input[type="submit"] {
  width: auto;
  padding: 8px 20px;
  border: 0;
  border-radius: 40px;
  background: #D85401;
  color: #fff !important;
  font-family: var(--font-hn);
  font-weight: 500;
  font-size: 16px !important;
  line-height: 150%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form__body #crmWebToEntityForm input[type="submit"]:hover {
  background: #293948;
}

.contact-form__body #crmWebToEntityForm input[type="reset"] {
  display: none;
}

/* --- Footer ---------------------------------------------------------------- */
.contact-form__footer {
  text-align: center;
}

.contact-form__footer,
.contact-form__footer p {
  margin: 0;
  color: #BDBDBD;
  font-family: var(--font-hn);
  font-weight: 300;
  font-size: 12px;
  line-height: 146%;
  letter-spacing: 0.01em;
}

.contact-form__footer a {
  color: #BDBDBD;
  text-decoration: underline;
  text-decoration-skip-ink: auto;
}

.contact-form__footer a:hover {
  color: #293948;
}

/* --- Responsive ------------------------------------------------------------ */
@media screen and (max-width: 767px) {
  .contact-form {
    padding: 56px 0;
  }

  .contact-form__box {
    padding: 24px;
    gap: 24px;
  }

  .contact-form__title {
    font-size: 20px;
  }

  .contact-form__body #crmWebToEntityForm tbody {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-form__body #crmWebToEntityForm tr {
    grid-column: 1 / -1;
  }
}
