/*
  Contact / recovery offer form redesign
  Scope:
    - https://www.iphone-doctor.net/contact
    - https://www.iphone-doctor.net/recovery_offer/
  Required body class:
    body.sdp-form-modern
  Optional page classes:
    body.sdp-form-contact
    body.sdp-form-recovery
  Load this after legacy rwd.css/import.css and any form plugin CSS.
*/

body.sdp-form-modern {
  --sdp-form-ink: #302829;
  --sdp-form-ink-soft: #514847;
  --sdp-form-muted: #7b706d;
  --sdp-form-red: #a34f4d;
  --sdp-form-red-dark: #803d3c;
  --sdp-form-line: #e3d7d2;
  --sdp-form-line-soft: #eee6e2;
  --sdp-form-paper: #fffdfb;
  --sdp-form-soft: #f8f4f2;
  --sdp-form-soft-2: #f2ebe7;
  --sdp-form-shadow: 0 18px 44px rgb(64 47 44 / 9%);
  color: var(--sdp-form-ink);
  background: linear-gradient(180deg, #fff 0%, #fbf8f6 42%, #fff 100%);
}

body.sdp-form-modern .estimate-dock,
body.sdp-form-modern #fixed_footer,
body.sdp-contact-page .estimate-dock,
body.sdp-contact-page #fixed_footer,
body.page-template-page-contact .estimate-dock,
body.page-template-page-contact #fixed_footer {
  display: none !important;
}

body.sdp-form-modern,
body.sdp-form-modern input,
body.sdp-form-modern select,
body.sdp-form-modern textarea,
body.sdp-form-modern button {
  letter-spacing: 0;
}

body.sdp-form-modern .main-body,
body.sdp-form-modern .main-body-in,
body.sdp-form-modern .main-conts,
body.sdp-form-modern #main_contents,
body.sdp-form-modern .entry-content,
body.sdp-form-modern .post_content {
  width: auto;
  max-width: 1120px;
  min-width: 0;
  margin-right: auto;
  margin-left: auto;
  box-sizing: border-box;
}

body.sdp-form-modern .main-conts,
body.sdp-form-modern #main_contents,
body.sdp-form-modern .entry-content,
body.sdp-form-modern .post_content {
  padding-right: 24px;
  padding-left: 24px;
}

body.sdp-form-modern #main_contents > h1,
body.sdp-form-modern .entry-content > h1,
body.sdp-form-modern .post_content > h1,
body.sdp-form-modern h1.heading_02 {
  margin: 24px 0 22px;
  padding: 0 0 20px;
  border: 0;
  border-bottom: 1px solid var(--sdp-form-line);
  color: var(--sdp-form-ink);
  background: transparent;
  box-shadow: none;
  font-size: 42px;
  line-height: 1.35;
  font-weight: 900;
}

body.sdp-form-modern h1.heading_02::after,
body.sdp-form-modern #main_contents > h1::after {
  content: none;
}

body.sdp-form-modern #main_contents p,
body.sdp-form-modern .entry-content p,
body.sdp-form-modern .post_content p {
  color: var(--sdp-form-ink-soft);
  line-height: 1.9;
}

body.sdp-form-modern a {
  color: var(--sdp-form-red-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

body.sdp-form-modern a:hover,
body.sdp-form-modern a:focus {
  color: var(--sdp-form-red);
}

body.sdp-form-modern a:focus-visible,
body.sdp-form-modern button:focus-visible,
body.sdp-form-modern input:focus-visible,
body.sdp-form-modern select:focus-visible,
body.sdp-form-modern textarea:focus-visible,
body.sdp-form-modern summary:focus-visible {
  outline: 3px solid rgb(163 79 77 / 32%);
  outline-offset: 3px;
}

.sdp-form-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 26px;
  align-items: stretch;
  margin: 24px auto 28px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--sdp-form-line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 86% 18%, rgb(163 79 77 / 9%) 0, transparent 30%),
    linear-gradient(135deg, #fff 0%, #fbf8f6 58%, #f2ebe7 100%);
  box-shadow: var(--sdp-form-shadow);
}

.sdp-form-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--sdp-form-red) 0, var(--sdp-form-red-dark) 100%);
}

.sdp-form-hero__copy,
.sdp-form-hero__side {
  position: relative;
  min-width: 0;
}

.sdp-form-hero__eyebrow {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 13px;
  padding: 6px 11px;
  border-radius: 999px;
  color: #fff !important;
  background: var(--sdp-form-red);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 900;
}

.sdp-form-hero h1,
body.sdp-form-modern .sdp-form-hero h1 {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--sdp-form-ink);
  background: transparent;
  box-shadow: none;
  font-size: 44px;
  line-height: 1.32;
  font-weight: 900;
}

.sdp-form-hero__lead {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--sdp-form-ink-soft);
  font-size: 15px;
  line-height: 1.95;
  font-weight: 700;
}

.sdp-form-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.sdp-form-hero__badges li {
  margin: 0;
  padding: 8px 12px;
  border: 1px solid var(--sdp-form-line);
  border-radius: 999px;
  color: var(--sdp-form-red-dark);
  background: #fff;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 900;
}

.sdp-form-hero__side {
  display: grid;
  gap: 10px;
  align-content: center;
  padding: 20px;
  border: 1px solid var(--sdp-form-line);
  border-radius: 8px;
  background: rgb(255 255 255 / 78%);
}

.sdp-form-hero__side div {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--sdp-form-line-soft);
}

.sdp-form-hero__side div:last-child {
  border-bottom: 0;
}

.sdp-form-hero__side span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  background: var(--sdp-form-red);
  font-size: 13px;
  font-weight: 900;
}

.sdp-form-hero__side strong,
.sdp-form-hero__side small {
  display: block;
}

.sdp-form-hero__side strong {
  color: var(--sdp-form-ink);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 900;
}

.sdp-form-hero__side small {
  margin-top: 3px;
  color: var(--sdp-form-muted);
  font-size: 12px;
  line-height: 1.55;
  font-weight: 700;
}

.sdp-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 330px);
  gap: 26px;
  align-items: start;
  margin: 0 auto 46px;
}

.sdp-form-panel,
.sdp-form-side,
body.sdp-form-modern .mw_wp_form,
body.sdp-form-modern .wpcf7,
body.sdp-form-modern .contact-form,
body.sdp-form-modern .contact_form,
body.sdp-form-modern form {
  box-sizing: border-box;
}

.sdp-form-panel,
body.sdp-form-modern .mw_wp_form,
body.sdp-form-modern .wpcf7,
body.sdp-form-modern .contact-form,
body.sdp-form-modern .contact_form {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--sdp-form-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 38px rgb(80 54 50 / 7%);
}

.sdp-form-panel .mw_wp_form,
.sdp-form-panel .wpcf7,
.sdp-form-panel .contact-form,
.sdp-form-panel .contact_form {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.sdp-form-side {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 14px;
}

.sdp-form-note,
.sdp-form-steps,
.sdp-form-call,
.sdp-form-accordion {
  padding: 20px;
  border: 1px solid var(--sdp-form-line);
  border-radius: 8px;
  background: var(--sdp-form-paper);
  box-shadow: 0 12px 30px rgb(64 47 44 / 6%);
}

.sdp-form-note h2,
.sdp-form-note h3,
.sdp-form-steps h2,
.sdp-form-steps h3,
.sdp-form-call h2,
.sdp-form-call h3,
.sdp-form-accordion h2,
.sdp-form-accordion h3 {
  margin: 0 0 12px;
  color: var(--sdp-form-ink);
  font-size: 18px;
  line-height: 1.5;
  font-weight: 900;
}

.sdp-form-note p,
.sdp-form-steps p,
.sdp-form-call p,
.sdp-form-accordion p {
  margin: 0;
  color: var(--sdp-form-ink-soft);
  font-size: 13px;
  line-height: 1.85;
  font-weight: 700;
}

.sdp-form-steps ol,
.sdp-form-note ul {
  display: grid;
  gap: 9px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.sdp-form-steps li,
.sdp-form-note li {
  position: relative;
  padding: 10px 10px 10px 34px;
  border: 1px solid var(--sdp-form-line-soft);
  border-radius: 8px;
  color: var(--sdp-form-ink-soft);
  background: #fff;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 800;
}

.sdp-form-steps li::before,
.sdp-form-note li::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sdp-form-red);
}

body.sdp-form-modern .form_step .sdp-form-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 28px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  counter-reset: sdp-contact-step;
  list-style: none;
}

body.sdp-form-modern .form_step .sdp-form-steps li {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--sdp-form-line);
  border-radius: 8px;
  background: #f2ebe7;
  color: #5d5350;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
  counter-increment: sdp-contact-step;
}

body.sdp-form-modern .form_step .sdp-form-steps li::before {
  content: counter(sdp-contact-step);
  position: static;
  display: inline-grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--sdp-form-red-dark);
  font-size: 13px;
  font-weight: 900;
}

body.sdp-form-modern .form_step .sdp-form-steps li.is-active {
  border-color: var(--sdp-form-red);
  background: var(--sdp-form-red);
  color: #fff;
}

body.sdp-form-modern .form_step .sdp-form-steps li.is-active::before {
  background: #fff;
  color: var(--sdp-form-red-dark);
}

body.sdp-form-modern .form_step .sdp-form-steps li span {
  color: inherit !important;
}

body.sdp-contact-page .form_step .sdp-form-steps li,
body.page-template-page-contact .form_step .sdp-form-steps li {
  color: #5d5350 !important;
}

body.sdp-contact-page .form_step .sdp-form-steps li.is-active,
body.page-template-page-contact .form_step .sdp-form-steps li.is-active {
  color: #fff !important;
}

body.sdp-contact-page .form_step .sdp-form-steps li span,
body.page-template-page-contact .form_step .sdp-form-steps li span {
  color: inherit !important;
}

.sdp-form-call a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 14px;
  padding: 0 14px;
  border: 1px solid var(--sdp-form-red);
  border-radius: 6px;
  color: var(--sdp-form-red-dark) !important;
  background: #fff;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 900;
  text-decoration: none !important;
}

.sdp-form-call a:hover,
.sdp-form-call a:focus {
  color: #fff !important;
  background: var(--sdp-form-red);
}

body.sdp-form-modern form {
  width: 100%;
  margin: 0;
}

body.sdp-form-modern form table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 14px;
}

body.sdp-form-modern form table,
body.sdp-form-modern form tbody,
body.sdp-form-modern form tr,
body.sdp-form-modern form th,
body.sdp-form-modern form td {
  box-sizing: border-box;
}

body.sdp-form-modern form tr {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--sdp-form-line);
  border-radius: 8px;
  background: #fff;
}

body.sdp-form-modern form th,
body.sdp-form-modern form td {
  display: block;
  min-width: 0;
  padding: 18px 20px;
  border: 0 !important;
  background: transparent !important;
  text-align: left;
  vertical-align: top;
}

body.sdp-form-modern form th {
  color: var(--sdp-form-ink);
  background: var(--sdp-form-soft) !important;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 900;
}

body.sdp-form-modern form td {
  color: var(--sdp-form-ink-soft);
}

body.sdp-form-modern form label,
body.sdp-form-modern .mwform-radio-field,
body.sdp-form-modern .mwform-checkbox-field,
body.sdp-form-modern .wpcf7-list-item-label {
  color: var(--sdp-form-ink);
  font-size: 14px;
  line-height: 1.65;
  font-weight: 800;
}

body.sdp-form-modern .required,
body.sdp-form-modern .must,
body.sdp-form-modern .hissu,
body.sdp-form-modern .mwform-require,
body.sdp-form-modern .req,
body.sdp-form-modern form th em {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 3px 7px;
  border-radius: 999px;
  color: #fff !important;
  background: var(--sdp-form-red) !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  font-style: normal;
  font-weight: 900;
}

body.sdp-form-modern input,
body.sdp-form-modern textarea,
body.sdp-form-modern select {
  max-width: 100% !important;
}

body.sdp-form-modern input[type="text"],
body.sdp-form-modern input[type="email"],
body.sdp-form-modern input[type="tel"],
body.sdp-form-modern input[type="url"],
body.sdp-form-modern input[type="number"],
body.sdp-form-modern input[type="date"],
body.sdp-form-modern input[type="password"],
body.sdp-form-modern select,
body.sdp-form-modern textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--sdp-form-line);
  border-radius: 6px;
  color: var(--sdp-form-ink);
  background: #fff;
  box-shadow: inset 0 1px 0 rgb(48 40 41 / 3%);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
  box-sizing: border-box;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

body.sdp-form-modern textarea {
  min-height: 168px;
  resize: vertical;
}

body.sdp-form-modern select {
  padding-right: 38px;
  appearance: auto;
}

body.sdp-form-modern input[type="text"]:focus,
body.sdp-form-modern input[type="email"]:focus,
body.sdp-form-modern input[type="tel"]:focus,
body.sdp-form-modern input[type="url"]:focus,
body.sdp-form-modern input[type="number"]:focus,
body.sdp-form-modern input[type="date"]:focus,
body.sdp-form-modern input[type="password"]:focus,
body.sdp-form-modern select:focus,
body.sdp-form-modern textarea:focus {
  border-color: var(--sdp-form-red);
  background: #fffdfb;
  box-shadow: 0 0 0 4px rgb(163 79 77 / 11%);
}

body.sdp-form-modern input::placeholder,
body.sdp-form-modern textarea::placeholder {
  color: #9a8f8b;
}

body.sdp-form-modern input[type="radio"],
body.sdp-form-modern input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0 8px 0 0;
  accent-color: var(--sdp-form-red);
  vertical-align: -4px;
}

body.sdp-form-modern .mwform-radio-field,
body.sdp-form-modern .mwform-checkbox-field,
body.sdp-form-modern .wpcf7-list-item {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin: 0 8px 8px 0;
  padding: 8px 12px;
  border: 1px solid var(--sdp-form-line);
  border-radius: 999px;
  background: #fff;
  box-sizing: border-box;
}

body.sdp-form-modern input[type="file"] {
  width: 100%;
  max-width: 100% !important;
  padding: 12px;
  border: 1px dashed var(--sdp-form-line);
  border-radius: 8px;
  background: var(--sdp-form-soft);
  color: var(--sdp-form-ink-soft);
  box-sizing: border-box;
}

body.sdp-form-modern .error,
body.sdp-form-modern .mw_wp_form .error,
body.sdp-form-modern .wpcf7-not-valid-tip,
body.sdp-form-modern .validation-error {
  display: block;
  margin: 8px 0 0;
  padding: 9px 11px;
  border: 1px solid #dfc8c3;
  border-radius: 6px;
  color: var(--sdp-form-red-dark) !important;
  background: #fff7f4;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 800;
}

body.sdp-form-modern .wpcf7-response-output,
body.sdp-form-modern .mw_wp_form_complete,
body.sdp-form-modern .mw_wp_form .complete {
  margin: 18px 0 0 !important;
  padding: 18px !important;
  border: 1px solid var(--sdp-form-line) !important;
  border-radius: 8px !important;
  color: var(--sdp-form-ink);
  background: var(--sdp-form-soft);
  font-weight: 800;
}

body.sdp-form-modern .submit,
body.sdp-form-modern .btn-area,
body.sdp-form-modern .form_btn,
body.sdp-form-modern .form-submit {
  margin-top: 22px;
  text-align: center;
}

body.sdp-form-modern input[type="submit"],
body.sdp-form-modern input[type="button"],
body.sdp-form-modern button[type="submit"],
body.sdp-form-modern .btn-form01,
body.sdp-form-modern .btn-form02,
body.sdp-form-modern .mw_wp_form button,
body.sdp-form-modern .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  min-height: 54px;
  padding: 0 28px !important;
  border: 1px solid var(--sdp-form-red) !important;
  border-radius: 6px;
  color: #fff !important;
  background: var(--sdp-form-red) !important;
  box-shadow: 0 14px 28px rgb(163 79 77 / 18%);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 900;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}

body.sdp-form-modern input[type="submit"]:hover,
body.sdp-form-modern input[type="button"]:hover,
body.sdp-form-modern button[type="submit"]:hover,
body.sdp-form-modern .btn-form01:hover,
body.sdp-form-modern .btn-form02:hover,
body.sdp-form-modern .wpcf7-submit:hover {
  background: var(--sdp-form-red-dark) !important;
  box-shadow: 0 18px 34px rgb(128 61 60 / 22%);
  transform: translateY(-1px);
}

body.sdp-form-modern input[name="submitBack"],
body.sdp-form-modern input[value*="戻"],
body.sdp-form-modern .btn-back,
body.sdp-form-modern .back {
  color: var(--sdp-form-red-dark) !important;
  background: #fff !important;
  box-shadow: none;
}

body.sdp-form-modern input[name="submitBack"]:hover,
body.sdp-form-modern input[value*="戻"]:hover,
body.sdp-form-modern .btn-back:hover,
body.sdp-form-modern .back:hover {
  color: #fff !important;
  background: var(--sdp-form-red) !important;
}

body.sdp-form-modern .mw_wp_form_confirm form tr,
body.sdp-form-modern .mw_wp_form_preview form tr,
body.sdp-form-modern .confirm form tr {
  grid-template-columns: 220px minmax(0, 1fr);
  background: var(--sdp-form-paper);
}

body.sdp-form-modern .mw_wp_form_confirm input[type="text"],
body.sdp-form-modern .mw_wp_form_confirm input[type="email"],
body.sdp-form-modern .mw_wp_form_confirm input[type="tel"],
body.sdp-form-modern .mw_wp_form_confirm textarea,
body.sdp-form-modern .mw_wp_form_confirm select {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.sdp-form-accordion {
  margin-top: 20px;
}

.sdp-form-accordion details {
  border-top: 1px solid var(--sdp-form-line-soft);
}

.sdp-form-accordion details:first-of-type {
  border-top: 0;
}

.sdp-form-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 52px;
  color: var(--sdp-form-ink);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.sdp-form-accordion summary::-webkit-details-marker {
  display: none;
}

.sdp-form-accordion summary::after {
  content: "+";
  display: inline-flex;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--sdp-form-line);
  border-radius: 50%;
  color: var(--sdp-form-red-dark);
  background: #fff;
  font-size: 18px;
  line-height: 1;
}

.sdp-form-accordion details[open] summary::after {
  content: "-";
  color: #fff;
  background: var(--sdp-form-red);
}

.sdp-form-accordion details > div {
  padding: 0 0 16px;
}

.sdp-form-mini-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0;
}

.sdp-form-mini-nav a {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid var(--sdp-form-line);
  border-radius: 6px;
  color: var(--sdp-form-red-dark) !important;
  background: #fff;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 900;
  text-align: center;
  text-decoration: none !important;
}

.sdp-form-mini-nav a:hover,
.sdp-form-mini-nav a:focus {
  border-color: var(--sdp-form-red);
  background: #fff8f5;
}

body.sdp-form-modern [style*="#E85E6A"],
body.sdp-form-modern [style*="#e85e6a"],
body.sdp-form-modern [style*="#00a651"],
body.sdp-form-modern [style*="#00A651"],
body.sdp-form-modern .btn-green {
  border-color: var(--sdp-form-red) !important;
  color: #fff !important;
  background-color: var(--sdp-form-red) !important;
}

body.sdp-form-modern img {
  max-width: 100%;
  height: auto;
}

/* Keep the legacy header search untouched on form pages. */
body.sdp-form-modern #srchBox form {
  width: auto;
  margin: 0;
}

body.sdp-form-modern #srchBox table {
  display: table;
  width: auto;
  border: 0;
  border-collapse: collapse;
  border-spacing: 0;
  background: transparent;
}

body.sdp-form-modern #srchBox tbody {
  display: table-row-group;
}

body.sdp-form-modern #srchBox tr {
  display: table-row;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.sdp-form-modern #srchBox th,
body.sdp-form-modern #srchBox td {
  display: table-cell;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
}

body.sdp-form-modern #srchBox input[type="text"] {
  width: auto;
  min-height: 0;
  max-width: none !important;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: inherit;
  font-weight: inherit;
}

body.sdp-form-modern #srchBox input[type="image"] {
  width: auto;
  min-height: 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
}

@media (min-width: 901px) {
  body.sdp-form-modern .mwform-radio-field:hover,
  body.sdp-form-modern .mwform-checkbox-field:hover,
  body.sdp-form-modern .wpcf7-list-item:hover,
  .sdp-form-note li:hover,
  .sdp-form-steps li:hover,
  .sdp-form-mini-nav a:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgb(64 47 44 / 8%);
  }

  body.sdp-form-modern .mwform-radio-field,
  body.sdp-form-modern .mwform-checkbox-field,
  body.sdp-form-modern .wpcf7-list-item,
  .sdp-form-note li,
  .sdp-form-steps li,
  .sdp-form-mini-nav a {
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background-color .16s ease;
  }
}

@media (max-width: 900px) {
  body.sdp-form-modern .main-conts,
  body.sdp-form-modern #main_contents,
  body.sdp-form-modern .entry-content,
  body.sdp-form-modern .post_content {
    padding-right: 18px;
    padding-left: 18px;
  }

  .sdp-form-hero,
  .sdp-form-layout {
    grid-template-columns: 1fr;
  }

  .sdp-form-side {
    position: static;
  }

  body.sdp-form-modern form tr,
  body.sdp-form-modern .mw_wp_form_confirm form tr,
  body.sdp-form-modern .mw_wp_form_preview form tr,
  body.sdp-form-modern .confirm form tr {
    grid-template-columns: 1fr;
  }

  body.sdp-form-modern form th {
    padding-bottom: 10px;
  }

  body.sdp-form-modern form td {
    padding-top: 14px;
  }
}

@media (max-width: 736px) {
  body.sdp-form-modern {
    padding-bottom: 76px;
  }

  body.sdp-form-modern #main_contents > h1,
  body.sdp-form-modern .entry-content > h1,
  body.sdp-form-modern .post_content > h1,
  body.sdp-form-modern h1.heading_02 {
    margin-top: 18px;
    font-size: 26px;
  }

  .sdp-form-hero {
    margin: 18px auto 22px;
    padding: 24px 18px;
  }

  .sdp-form-hero h1,
  body.sdp-form-modern .sdp-form-hero h1 {
    font-size: 27px;
  }

  .sdp-form-hero__side,
  .sdp-form-panel,
  body.sdp-form-modern .mw_wp_form,
  body.sdp-form-modern .wpcf7,
  body.sdp-form-modern .contact-form,
  body.sdp-form-modern .contact_form,
  .sdp-form-note,
  .sdp-form-steps,
  .sdp-form-call,
  .sdp-form-accordion {
    padding: 18px;
  }

  body.sdp-form-modern .form_step .sdp-form-steps {
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 18px 0 24px;
  }

  body.sdp-form-modern form table {
    border-spacing: 0 12px;
  }

  body.sdp-form-modern form th,
  body.sdp-form-modern form td {
    padding-right: 14px;
    padding-left: 14px;
  }

  body.sdp-form-modern .mwform-radio-field,
  body.sdp-form-modern .mwform-checkbox-field,
  body.sdp-form-modern .wpcf7-list-item {
    display: flex;
    width: 100%;
    border-radius: 6px;
  }

  body.sdp-form-modern input[type="submit"],
  body.sdp-form-modern input[type="button"],
  body.sdp-form-modern button[type="submit"],
  body.sdp-form-modern .btn-form01,
  body.sdp-form-modern .btn-form02,
  body.sdp-form-modern .mw_wp_form button,
  body.sdp-form-modern .wpcf7-submit {
    width: 100%;
    min-width: 0;
  }

  .sdp-form-mini-nav {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  body.sdp-form-modern .main-conts,
  body.sdp-form-modern #main_contents,
  body.sdp-form-modern .entry-content,
  body.sdp-form-modern .post_content {
    padding-right: 14px;
    padding-left: 14px;
  }

  .sdp-form-hero h1,
  body.sdp-form-modern .sdp-form-hero h1 {
    font-size: 24px;
  }

  .sdp-form-hero__lead {
    font-size: 14px;
  }

  body.sdp-form-modern input[type="text"],
  body.sdp-form-modern input[type="email"],
  body.sdp-form-modern input[type="tel"],
  body.sdp-form-modern input[type="url"],
  body.sdp-form-modern input[type="number"],
  body.sdp-form-modern input[type="date"],
  body.sdp-form-modern input[type="password"],
  body.sdp-form-modern select,
  body.sdp-form-modern textarea {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.sdp-form-modern *,
  body.sdp-form-modern *::before,
  body.sdp-form-modern *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* STEPバー 番号重複の修正(2026-06-28): HTMLの <span class="n"> を唯一の番号にし、
   repair-offer/contact-recovery 両CSSの li::before(counter/dot)を無効化。 */
.form_step .sdp-form-steps li::before { content: none !important; }
.form_step .sdp-form-steps li .n {
  display: inline-grid !important;
  width: 24px; height: 24px; flex: 0 0 24px;
  place-items: center;
  border-radius: 50%;
  background: #fff !important;
  color: #803d3c !important;
  font-size: 13px; font-weight: 900;
  line-height: 1;
}
.form_step .sdp-form-steps li.is-active .n { background: #fff !important; color: #a34f4d !important; }

/* 番号サークルの色: repair-offer の #main_contents li span{color:inherit} に勝つよう詳細度を上げる */
article#main_contents .form_step .sdp-form-steps li .n { color: #803d3c !important; background: #fff !important; }
article#main_contents .form_step .sdp-form-steps li.is-active .n { color: #a34f4d !important; background: #fff !important; }


/* ===== 確認画面(#formWrap table.formTable)をPC/SP両幅で整える 2026-06-29 =====
   全 -confirmation テンプレ共通。body.sdp-offer-form-modern / sdp-form-modern 両対応。
   PC幅でラベル列(th)が縦1文字に潰れる不具合を、ID+!important+keep-allで是正。 */
#formWrap{width:100%!important;max-width:760px!important;margin:0 auto!important;padding:0 16px;box-sizing:border-box;}
#formWrap table.formTable{width:100%!important;border-collapse:separate!important;border-spacing:0 12px!important;table-layout:fixed!important;}
#formWrap table.formTable tr{display:grid!important;grid-template-columns:240px minmax(0,1fr)!important;align-items:stretch!important;overflow:hidden!important;border:1px solid #e3dcd9!important;border-radius:8px!important;background:#fff!important;}
#formWrap table.formTable th,
#formWrap table.formTable td{display:block!important;width:auto!important;min-width:0!important;padding:14px 18px!important;border:0!important;text-align:left!important;vertical-align:top!important;line-height:1.6!important;}
#formWrap table.formTable th{background:#f7f4f3!important;color:#333!important;font-weight:bold!important;word-break:keep-all!important;overflow-wrap:anywhere;}
#formWrap table.formTable td{color:#3a3a3a!important;word-break:break-word!important;}
@media (max-width:768px){
 #formWrap{padding:0 12px;}
 #formWrap table.formTable tr{grid-template-columns:1fr!important;}
 #formWrap table.formTable th{padding-bottom:8px!important;}
 #formWrap table.formTable td{padding-top:8px!important;}
}
