@charset "UTF-8";

/* ---- お問い合わせ（固有のみ） ---- */

#contact {
  --section-color: var(--medix-blue-deep);
  --line-color: var(--medix-blue-deep);
}

#contact #contact_form {
  scroll-margin-top: 6.5em;
}

#contact .faq_item {
  border-bottom: 1px dotted #c8c8c8;
}

#contact .faq_toggle {
  width: 100%;
  padding: 1.1em 0;
  background: transparent;
  text-align: left;
  font-size: 1.05em;
  font-weight: 700;
  color: var(--medix-blue-deep);
  -webkit-transition: opacity 0.25s ease;
  transition: opacity 0.25s ease;
}

#contact .faq_toggle:hover {
  opacity: 0.7;
}

#contact .faq_arrow {
  width: 0.55em;
  height: 0.55em;
  border-right: 2px solid var(--medix-blue-deep);
  border-bottom: 2px solid var(--medix-blue-deep);
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
  -webkit-transition: -webkit-transform 0.3s ease, opacity 0.3s ease;
  transition: transform 0.3s ease, opacity 0.3s ease;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
}

#contact .faq_item.is_open .faq_arrow {
  opacity: 0;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

#contact .faq_body {
  position: relative;
  display: none;
  overflow: hidden;
  padding: 0 0 2.5em;
}

#contact .faq_body[hidden] {
  display: none !important;
}

#contact .faq_links {
  padding: 0 0 0.5em;
}

#contact .faq_cat:not(:last-child) {
  margin-bottom: 1.6em;
}

#contact .faq_cat_title {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  margin: 0 0 0.7em;
  padding: 0.4em 0.8em 0.4em 0.7em;
  background: #eef5fc;
  background: rgba(128, 148, 221, 0.08);
  border-left: 4px solid #8094dd;
  border-left-color: var(--medix-blue-deep);
  color: #8094dd;
  color: var(--medix-blue-deep);
  font-size: 0.9em;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.45;
}

#contact .faq_cat .faq_links {
  padding: 0 0 0.35em 0.9em;
}

#contact .faq_links li:not(:last-child) {
  margin-bottom: 0.55em;
}

#contact .faq_q {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-align-items: flex-start;
  align-items: flex-start;
  padding: 0;
  background: transparent;
  color: var(--medix-footer-accent);
  text-align: left;
  font-size: 1em;
  line-height: 1.7;
  -webkit-transition: opacity 0.25s ease;
  transition: opacity 0.25s ease;
}

#contact .faq_q::before {
  content: "Q.";
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  margin-right: 0.4em;
  font-family: var(--font-futura-pt);
  font-size: 1.05em;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: #8094dd;
  color: var(--medix-blue-deep);
}

#contact .faq_q_text {
  text-decoration: underline;
}

#contact .faq_q:hover {
  opacity: 0.75;
}

#contact .faq_a_src {
  display: none;
}

#contact .faq_close {
  position: absolute;
  right: 0;
  bottom: 0.75em;
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-align-items: center;
  align-items: center;
  gap: 0.35em;
  padding: 0;
  background: transparent;
  line-height: 1;
  -webkit-transition: opacity 0.25s ease, -webkit-transform 0.25s ease;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#contact .faq_close:hover {
  opacity: 0.7;
  -webkit-transform: scale(1.06);
  transform: scale(1.06);
}

#contact .faq_close img {
  display: block;
  width: auto;
  height: 14px;
}

#contact .faq_close_x {
  color: var(--medix-blue-deep);
  font-size: 1.35em;
  font-weight: 700;
  line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
  #contact .faq_toggle,
  #contact .faq_arrow,
  #contact .faq_q,
  #contact .faq_close {
    -webkit-transition: none;
    transition: none;
  }

  #contact .faq_close:hover {
    -webkit-transform: none;
    transform: none;
  }
}

/* ---- FAQ 回答ポップアップ ---- */
#contact .faq_modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  padding: 1.5em;
}

#contact .faq_modal[hidden] {
  display: none;
}

#contact .faq_modal_backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

#contact .faq_modal_dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  max-height: 80vh;
  overflow: auto;
  padding: 2em 1.75em 1.75em;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

#contact .faq_modal_x {
  position: absolute;
  top: 0.65em;
  right: 0.75em;
  background: transparent;
  color: var(--medix-blue-deep);
  font-size: 1.5em;
  line-height: 1;
}

#contact .faq_modal_q {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: flex-start;
  align-items: flex-start;
  margin: 0 1.5em 1em 0;
  color: var(--medix-blue-deep);
  font-size: 1.15em;
  font-weight: 700;
  line-height: 1.6;
}

#contact .faq_modal_q::before {
  content: "Q.";
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  margin-right: 0.45em;
  font-family: var(--font-futura-pt);
  font-size: 1.08em;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: #8094dd;
  color: var(--medix-blue-deep);
}

#contact .faq_modal_a {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: flex-start;
  align-items: flex-start;
  color: #333;
  line-height: 1.9;
}

#contact .faq_modal_a::before {
  content: "A.";
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  margin-right: 0.45em;
  font-family: var(--font-futura-pt);
  font-size: 1.15em;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: #e86162;
  color: var(--medix-footer-accent);
}

#contact .faq_modal_a_text {
  min-width: 0;
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
  white-space: pre-wrap;
}

body.faq_modal_open {
  overflow: hidden;
}

#contact .steps {
  gap: 0.35em;
  margin: 0 0 1.35em;
  overflow: visible;
  background: transparent;
}

#contact .steps li {
  position: relative;
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
  padding: 0.75em 1.6em 0.75em 1.75em;
  background: #8fa3b8;
  color: #fff;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
  -webkit-clip-path: polygon(0 0, calc(100% - 0.9em) 0, 100% 50%, calc(100% - 0.9em) 100%, 0 100%, 0.9em 50%);
  clip-path: polygon(0 0, calc(100% - 0.9em) 0, 100% 50%, calc(100% - 0.9em) 100%, 0 100%, 0.9em 50%);
}

#contact .steps li:first-child {
  padding-left: 1em;
  -webkit-clip-path: polygon(0 0, calc(100% - 0.9em) 0, 100% 50%, calc(100% - 0.9em) 100%, 0 100%);
  clip-path: polygon(0 0, calc(100% - 0.9em) 0, 100% 50%, calc(100% - 0.9em) 100%, 0 100%);
}

#contact .steps li:last-child {
  padding-right: 1em;
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0.9em 50%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0.9em 50%);
}

#contact .steps .is_current {
  background: var(--medix-blue-deep);
  color: #fff;
}

#contact .block_lead {
  margin-bottom: 1.5em;
  color: #333;
  line-height: 1.85;
}

#contact .req_mark {
  color: var(--medix-footer-accent);
}

#contact .medix_cf7_form .def_row {
  gap: 0.65em 0.85em;
  padding: 1.15em 0;
  border-bottom: 1px dotted var(--medix-blue-deep);
  -webkit-align-items: flex-start;
  align-items: flex-start;
}

#contact .medix_cf7_form .def_row > .def_label {
  width: 12.5em;
  max-width: none;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  padding-top: 0.65em;
  color: #333;
  font-weight: 500;
  line-height: 1.5;
}

#contact .medix_cf7_form .def_row > .req {
  width: 1.1em;
  padding-top: 0.7em;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  color: var(--medix-footer-accent);
  font-size: 0.85em;
  line-height: 1.4;
  text-align: center;
}

#contact .medix_cf7_form .def_row > .req.is_empty {
  visibility: hidden;
}

#contact .medix_cf7_form .def_row > .def_field {
  min-width: 0;
}

#contact .def_field input[type="text"],
#contact .def_field input[type="email"],
#contact .def_field input[type="tel"],
#contact .def_field input[type="search"],
#contact .def_field select,
#contact .def_field textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.65em 0.8em;
  border: 1px solid var(--medix-blue-deep);
  border-radius: 0;
  background: #fff;
  color: #333;
  line-height: 1.4;
  box-sizing: border-box;
}

#contact .def_field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.2em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%232a4d6e' d='M1.1 1.1L6 6l4.9-4.9' stroke='%232a4d6e' stroke-width='1.4' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85em center;
  background-size: 12px 8px;
  cursor: pointer;
}

#contact .def_field select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background-color: #f5f7fa;
}

#contact .def_field textarea {
  min-height: 160px;
}

#contact .field_hint {
  display: block;
  margin-top: 0.4em;
  color: #888;
  font-size: 0.9em;
  line-height: 1.5;
}

#contact .addr_block {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  gap: 0.85em;
}

#contact .addr_line {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-align-items: center;
  align-items: center;
  gap: 0.45em 0.75em;
}

#contact .addr_sub {
  width: 5.5em;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  color: #555;
  font-size: 0.9em;
}

#contact .addr_line.zip input[type="text"] {
  width: 10em;
  max-width: 100%;
}

#contact .addr_line.zip .field_hint {
  display: inline;
  margin-top: 0;
}

#contact .field_cols {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: flex-start;
  align-items: flex-start;
  gap: 1.25em;
}

#contact .field_opts {
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  min-width: 11em;
}

#contact .field_note {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
  min-width: 0;
  color: #555;
  font-size: 0.85em;
  line-height: 1.75;
}

#contact .def_field .wpcf7-list-item {
  display: block;
  margin: 0 0 0.45em;
}

#contact .def_field .wpcf7-list-item-label {
  color: #333;
  line-height: 1.55;
}

#contact .def_field input[type="checkbox"],
#contact .def_field input[type="radio"] {
  margin-right: 0.45em;
  vertical-align: middle;
}

/* ---- 請求製品セレクタ ---- */
#contact .medix_product_pick {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

#contact .medix_cf7_form .medix_product_pick_select,
#contact .def_field .medix_product_pick_select {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0.65em 2.4em 0.65em 0.8em;
  border: 1px solid #8094DD;
  border: 1px solid var(--medix-blue-deep, #8094DD);
  border-radius: 0;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' fill='none' stroke='%238094DD' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85em center;
  background-size: 12px 8px;
  color: #333;
  line-height: 1.4;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
}

#contact .medix_cf7_form .medix_product_pick_select::-ms-expand,
#contact .def_field .medix_product_pick_select::-ms-expand {
  display: none;
}

#contact .medix_cf7_form .medix_product_pick_select:disabled,
#contact .def_field .medix_product_pick_select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background-color: #f5f7fa;
}

#contact .medix_product_pick_selected {
  display: block;
  margin: 0.75em 0 0;
  padding: 0;
}

#contact .medix_product_pick_selected:empty {
  display: none;
  margin: 0;
}

#contact .medix_product_chip {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  gap: 0.55em;
  margin: 0;
  padding: 0.55em 0.65em;
  border: 1px solid #c5d7e8;
  background: #f7fbff;
  color: #234;
  font-size: 0.95em;
  line-height: 1.45;
}

#contact .medix_product_chip:not(:last-child) {
  margin-bottom: 0.45em;
}

#contact .medix_product_chip_text {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
  min-width: 0;
}

#contact .medix_product_chip_pdf {
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  font-size: 0.8em;
  white-space: nowrap;
}

#contact .medix_product_chip_pdf.has_pdf {
  color: #0a6e3b;
}

#contact .medix_product_chip_pdf.no_pdf {
  color: #888;
}

#contact .medix_product_chip_remove {
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  width: 1.6em;
  height: 1.6em;
  margin: 0;
  padding: 0;
  border: 1px solid #c5d7e8;
  background: #fff;
  color: #567;
  font-size: 1em;
  line-height: 1;
  cursor: pointer;
}

#contact .medix_product_chip_remove:hover {
  border-color: #c0392b;
  color: #c0392b;
}

#contact .medix_product_pick_row .field_hint {
  display: block;
  margin-top: 0.55em;
}

#contact .medix_product_pick_row .wpcf7-form-control-wrap[data-name="product-ids"],
#contact .medix_product_pick_row .wpcf7-form-control-wrap[data-name="product-names"],
#contact .medix_product_pick_row input[name="product-ids"],
#contact .medix_product_pick_row input[name="product-names"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

#contact .cf7_submit {
  margin: 2.25em 0 0;
  text-align: center;
}

#contact .cf7_submit input,
#contact .cf7_submit .wpcf7-submit {
  display: inline-block;
  box-sizing: border-box;
  min-width: 280px;
  padding: 1.05em 2.5em;
  border: 1px solid transparent;
  border-radius: 0;
  background: #e86162;
  background: -webkit-linear-gradient(top, #f2879c, #e04d6c);
  background: linear-gradient(180deg, #f2879c, #e04d6c);
  color: #fff;
  font-size: 1.05em;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  -webkit-transition: opacity 0.25s ease;
  transition: opacity 0.25s ease;
}

#contact .cf7_submit input:hover,
#contact .cf7_submit .wpcf7-submit:hover {
  opacity: 0.92;
}

#contact .medix_confirm_back {
  display: none;
  box-sizing: border-box;
  min-width: 280px;
  margin: 0;
  padding: 1.05em 2.5em;
  border: 1px solid var(--medix-blue-deep);
  border-radius: 0;
  background: #fff;
  color: var(--medix-blue-deep);
  font-size: 1.05em;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  -webkit-transition: opacity 0.25s ease;
  transition: opacity 0.25s ease;
}

#contact .medix_confirm_back:hover {
  opacity: 0.8;
}

#contact .cf7_submit .wpcf7-spinner {
  position: absolute;
  width: 0;
  height: 0;
  margin: 0;
  overflow: hidden;
  visibility: hidden;
}

/* ---- 確認ステップ ---- */
#contact_form.is_confirm .lead_input {
  display: none;
}

#contact_form.is_confirm .medix_confirm_back {
  display: inline-block;
}

#contact_form.is_confirm .cf7_submit {
  position: relative;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-align-items: stretch;
  align-items: stretch;
  gap: 1em;
}

#contact_form.is_confirm .medix_confirm_back,
#contact_form.is_confirm .cf7_submit input,
#contact_form.is_confirm .cf7_submit .wpcf7-submit {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  width: 15em;
  min-width: 15em;
  min-height: 3.6em;
  padding: 0.95em 1.5em;
}

#contact_form.is_confirm .req,
#contact_form.is_confirm .field_hint,
#contact_form.is_confirm .field_note,
#contact_form.is_confirm .medix_product_pick_select,
#contact_form.is_confirm .medix_product_chip_remove,
#contact_form.is_confirm .medix_product_chip_pdf,
#contact_form.is_confirm .wpcf7-list-item.is_unpicked {
  display: none !important;
}

#contact_form.is_confirm .def_field,
#contact_form.is_confirm .def_field * {
  pointer-events: none;
}

#contact_form.is_confirm .cf7_submit,
#contact_form.is_confirm .cf7_submit * {
  pointer-events: auto;
}

#contact_form.is_confirm .def_field input[type="text"],
#contact_form.is_confirm .def_field input[type="email"],
#contact_form.is_confirm .def_field input[type="tel"],
#contact_form.is_confirm .def_field textarea {
  border: none;
  background: transparent;
  padding: 0.2em 0;
  resize: none;
  box-shadow: none;
}

#contact_form.is_confirm .addr_line.zip input[type="text"] {
  width: auto;
  max-width: none;
}

#contact_form.is_confirm .def_field.is_empty_value input[type="text"],
#contact_form.is_confirm .def_field.is_empty_value input[type="email"],
#contact_form.is_confirm .def_field.is_empty_value input[type="tel"],
#contact_form.is_confirm .def_field.is_empty_value textarea {
  display: none;
}

#contact_form.is_confirm .medix_confirm_empty {
  display: inline-block;
  color: #888;
}

#contact_form.is_confirm .wpcf7-list-item {
  margin-bottom: 0.2em;
}

#contact_form.is_confirm .wpcf7-list-item input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

#contact_form.is_confirm .medix_product_chip {
  background: transparent;
  border: none;
  padding: 0.2em 0;
}

#contact_form.is_confirm .medix_cf7_form .def_row > .def_label {
  padding-top: 0.2em;
}

#contact_form.is_sending .cf7_submit input,
#contact_form.is_sending .cf7_submit .wpcf7-submit {
  opacity: 0.75;
  cursor: wait;
}

#contact_form.is_sending .medix_confirm_back {
  opacity: 0.4;
  cursor: wait;
  pointer-events: none;
}

/* ---- 送信中オーバーレイ ---- */
.medix_form_sending {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  z-index: 10000;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  padding: 1.5em;
  background: rgba(0, 30, 70, 0.45);
}

.medix_form_sending[hidden] {
  display: none !important;
}

.medix_form_sending_panel {
  width: 92vw;
  max-width: 360px;
  width: min(92vw, 360px);
  padding: 2.2em 1.6em 1.8em;
  background: #fff;
  text-align: center;
  box-shadow: 0 1em 3em rgba(0, 0, 0, 0.18);
}

.medix_form_sending_spin {
  display: inline-block;
  width: 2.4em;
  height: 2.4em;
  margin: 0 0 1.1em;
  border: 3px solid #d7e0ea;
  border-top-color: #8094dd; /* フォールバック */
  border-top-color: var(--medix-blue-deep);
  border-radius: 50%;
  -webkit-animation: medix_form_sending_spin 0.8s linear infinite;
  animation: medix_form_sending_spin 0.8s linear infinite;
}

@-webkit-keyframes medix_form_sending_spin {
  to {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes medix_form_sending_spin {
  to {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

.medix_form_sending_title {
  margin: 0 0 0.45em;
  color: #3453c3; /* フォールバック */
  color: var(--medix-title-en);
  font-size: 1.15em;
  font-weight: 700;
}

.medix_form_sending_text {
  margin: 0;
  color: #555;
  font-size: 0.92em;
  line-height: 1.7;
}

body.medix_form_is_sending {
  overflow: hidden;
  cursor: wait;
}

@media (prefers-reduced-motion: reduce) {
  .medix_form_sending_spin {
    -webkit-animation: none;
    animation: none;
    border-right-color: #8094dd; /* フォールバック */
    border-right-color: var(--medix-blue-deep);
  }
}

#contact .thanks_box {
  max-width: 640px;
  margin: 0 auto;
  padding: 2.5em 1.5em;
  text-align: center;
  background: #f7fbff;
  border: 1px solid #d7e0ea;
}

#contact .thanks_box .thanks_title {
  margin: 0 0 1em;
  color: var(--medix-blue-deep);
  font-size: 1.3em;
}

#contact .thanks_box .cta_wrap {
  margin-top: 1.75em;
}

@media screen and (max-width: 768px) {
  #contact .steps {
    gap: 0.25em;
  }

  #contact .steps li {
    padding: 0.65em 1.1em 0.65em 1.2em;
    font-size: 0.9em;
  }

  #contact .medix_cf7_form .def_row {
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
  }

  #contact .medix_cf7_form .def_row > .def_label {
    width: auto;
    max-width: calc(100% - 2em);
    padding-top: 0;
  }

  #contact .medix_cf7_form .def_row > .req {
    padding-top: 0.1em;
  }

  #contact .medix_cf7_form .def_row > .def_field {
    width: 100%;
    -webkit-flex-basis: 100%;
    flex-basis: 100%;
  }

  #contact .addr_sub {
    width: 100%;
  }

  #contact .addr_line.zip input[type="text"] {
    width: 12em;
  }

  #contact .field_cols {
    -webkit-flex-direction: column;
    flex-direction: column;
    gap: 0.85em;
  }

  #contact .field_opts {
    min-width: 0;
  }

  #contact .cf7_submit input,
  #contact .cf7_submit .wpcf7-submit,
  #contact .medix_confirm_back,
  #contact_form.is_confirm .medix_confirm_back,
  #contact_form.is_confirm .cf7_submit input,
  #contact_form.is_confirm .cf7_submit .wpcf7-submit {
    width: 100%;
    min-width: 0;
    max-width: 320px;
  }
}
