:root {
  --mss-font-main: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html,
body,
button,
input,
textarea,
select {
  font-family: var(--mss-font-main) !important;
}

body :where(
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p,
  a,
  span,
  strong,
  b,
  em,
  small,
  label,
  button,
  input,
  textarea,
  select,
  li,
  dt,
  dd,
  th,
  td,
  blockquote,
  figcaption
) {
  font-family: var(--mss-font-main) !important;
}

body :where(
  .mss-price-card__price strong,
  .mss-service-price__value,
  .mss-service-price__amount,
  .mss-page-hero h1,
  .mss-doctor-hero h1,
  .mss-staff-hero__title,
  .mss-staff-card__name,
  .mss-hero__title,
  .mss-price__title
) {
  letter-spacing: 0;
}

.mss-header-modal__body .wpcf7,
.mss-cf7-modal .wpcf7 {
  color: #10241c;
}

.mss-header-modal__body .wpcf7-form,
.mss-cf7-modal .wpcf7-form {
  display: grid !important;
  gap: 16px !important;
}

.mss-header-modal__body .wpcf7-form p,
.mss-cf7-modal .wpcf7-form p {
  display: grid;
  gap: 7px;
  margin: 0 !important;
}

.mss-header-modal__body .wpcf7-form label,
.mss-cf7-modal .wpcf7-form label {
  color: #324c43;
  display: grid;
  font-size: 14px;
  font-weight: 750;
  gap: 7px;
  line-height: 1.35;
}

.mss-header-modal__body .wpcf7-form-control-wrap,
.mss-cf7-modal .wpcf7-form-control-wrap {
  display: block;
  position: relative;
  width: 100%;
}

.mss-header-modal__body .wpcf7 input:not([type="submit"]):not([type="radio"]):not([type="checkbox"]),
.mss-header-modal__body .wpcf7 textarea,
.mss-header-modal__body .wpcf7 select,
.mss-cf7-modal .wpcf7 input:not([type="submit"]):not([type="radio"]):not([type="checkbox"]),
.mss-cf7-modal .wpcf7 textarea,
.mss-cf7-modal .wpcf7 select {
  background: #f7fbf9 !important;
  border: 1px solid #dfe9e5 !important;
  border-radius: 14px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  color: #10241c !important;
  font-size: 15px;
  font-weight: 650;
  min-height: 50px;
  outline: none;
  padding: 0 15px !important;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  width: 100% !important;
}

.mss-header-modal__body .wpcf7 textarea,
.mss-cf7-modal .wpcf7 textarea {
  min-height: 116px;
  padding-top: 13px !important;
  resize: vertical;
}

.mss-header-modal__body .wpcf7 input:not([type="submit"]):not([type="radio"]):not([type="checkbox"]):focus,
.mss-header-modal__body .wpcf7 textarea:focus,
.mss-header-modal__body .wpcf7 select:focus,
.mss-cf7-modal .wpcf7 input:not([type="submit"]):not([type="radio"]):not([type="checkbox"]):focus,
.mss-cf7-modal .wpcf7 textarea:focus,
.mss-cf7-modal .wpcf7 select:focus {
  background: #ffffff !important;
  border-color: var(--mss-brand-secondary, #f26722) !important;
  box-shadow: 0 0 0 4px rgba(242, 103, 34, 0.13);
}

.mss-header-modal__body .wpcf7 input.wpcf7-not-valid,
.mss-header-modal__body .wpcf7 textarea.wpcf7-not-valid,
.mss-header-modal__body .wpcf7 select.wpcf7-not-valid,
.mss-cf7-modal .wpcf7 input.wpcf7-not-valid,
.mss-cf7-modal .wpcf7 textarea.wpcf7-not-valid,
.mss-cf7-modal .wpcf7 select.wpcf7-not-valid {
  background: #fff7f4 !important;
  border-color: rgba(242, 103, 34, 0.48) !important;
}

.mss-header-modal__body .wpcf7-not-valid-tip,
.mss-cf7-modal .wpcf7-not-valid-tip {
  align-items: center;
  color: #d84f14 !important;
  display: flex;
  font-size: 12px;
  font-weight: 750;
  gap: 6px;
  line-height: 1.3;
  margin-top: 6px;
}

.mss-header-modal__body .wpcf7-not-valid-tip::before,
.mss-cf7-modal .wpcf7-not-valid-tip::before {
  background: currentColor;
  border-radius: 50%;
  content: "";
  flex: 0 0 5px;
  height: 5px;
  width: 5px;
}

.mss-header-modal__body .wpcf7-radio,
.mss-header-modal__body .wpcf7-checkbox,
.mss-cf7-modal .wpcf7-radio,
.mss-cf7-modal .wpcf7-checkbox {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 2px;
}

.mss-header-modal__body .wpcf7-list-item,
.mss-cf7-modal .wpcf7-list-item {
  margin: 0 !important;
}

.mss-header-modal__body .wpcf7-list-item label,
.mss-cf7-modal .wpcf7-list-item label {
  align-items: center;
  background: #f7fbf9;
  border: 1px solid #dfe9e5;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  gap: 10px;
  min-height: 50px;
  padding: 12px 13px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.mss-header-modal__body .wpcf7-list-item label:has(input:checked),
.mss-cf7-modal .wpcf7-list-item label:has(input:checked) {
  background: #fff4ec;
  border-color: rgba(242, 103, 34, 0.42);
  box-shadow: 0 10px 22px rgba(242, 103, 34, 0.1);
}

.mss-header-modal__body .wpcf7-list-item input[type="radio"],
.mss-header-modal__body .wpcf7-list-item input[type="checkbox"],
.mss-cf7-modal .wpcf7-list-item input[type="radio"],
.mss-cf7-modal .wpcf7-list-item input[type="checkbox"] {
  accent-color: var(--mss-brand-secondary, #f26722);
  flex: 0 0 auto;
  height: 16px;
  margin: 0;
  width: 16px;
}

.mss-header-modal__body .wpcf7-list-item-label,
.mss-cf7-modal .wpcf7-list-item-label {
  color: #324c43;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.25;
}

.mss-header-modal__body .wpcf7-submit,
.mss-cf7-modal .wpcf7-submit,
.mss-header-modal__body input[type="submit"].wpcf7-submit,
.mss-cf7-modal input[type="submit"].wpcf7-submit {
  background: var(--mss-brand-secondary, #f26722) !important;
  border: 0 !important;
  border-radius: 14px !important;
  box-shadow: 0 14px 28px rgba(242, 103, 34, 0.22);
  color: #ffffff !important;
  cursor: pointer;
  font-size: 15px;
  font-weight: 850;
  min-height: 52px;
  padding: 0 22px !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  width: 100%;
}

.mss-header-modal__body .wpcf7-submit:hover,
.mss-cf7-modal .wpcf7-submit:hover {
  background: #dd5618 !important;
  box-shadow: 0 18px 34px rgba(242, 103, 34, 0.28);
  transform: translateY(-1px);
}

.mss-header-modal__body .wpcf7-spinner,
.mss-cf7-modal .wpcf7-spinner {
  margin: 8px auto 0;
}

.mss-header-modal__body .wpcf7-response-output,
.mss-cf7-modal .wpcf7-response-output {
  border: 1px solid rgba(242, 103, 34, 0.28) !important;
  border-radius: 14px;
  color: #324c43;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
  margin: 2px 0 0 !important;
  padding: 12px 14px !important;
}

.mss-header-modal__body .wpcf7 form.sent .wpcf7-response-output,
.mss-cf7-modal .wpcf7 form.sent .wpcf7-response-output {
  background: #effaf5;
  border-color: rgba(0, 168, 107, 0.28) !important;
}

.mss-header-modal__body .wpcf7 form.invalid .wpcf7-response-output,
.mss-cf7-modal .wpcf7 form.invalid .wpcf7-response-output {
  background: #fff4ec;
}

@media (max-width: 520px) {
  .mss-header-modal__dialog,
  .mss-cf7-modal__dialog {
    border-radius: 18px !important;
    width: calc(100% - 20px) !important;
  }

  .mss-header-modal__body,
  .mss-cf7-modal__dialog {
    padding: 20px !important;
  }

  .mss-header-modal__body .wpcf7-radio,
  .mss-header-modal__body .wpcf7-checkbox,
  .mss-cf7-modal .wpcf7-radio,
  .mss-cf7-modal .wpcf7-checkbox {
    grid-template-columns: 1fr;
  }
}
