/*
 * Final responsive guardrails shared by the React preview and WordPress.
 * Keep corrective rules here so the reference-scale layers remain readable.
 */

body {
  line-break: strict;
}

:where(h1, h2, h3, h4, .button, .menu-button, .main-nav a) {
  text-wrap: balance;
}

:where(p, li) {
  text-wrap: pretty;
}

.footer-services {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}

.footer-services span {
  white-space: nowrap;
}

.footer-services span:not(:last-child)::after {
  content: "｜";
  margin-inline: 0.2em;
}

.footer-company-phone strong,
.contact-phone-number {
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.faq-answer p,
.faq-list-primary .faq-item:nth-child(n) .faq-answer p {
  min-height: 0 !important;
}

.wpcf7-form-control-wrap > .wpcf7-not-valid-tip ~ .wpcf7-not-valid-tip {
  display: none;
}

.contact-form .wpcf7-form-control-wrap {
  width: 100%;
  display: block;
}

.contact-form .wpcf7-form-control-wrap > .wpcf7-not-valid-tip {
  margin: 6px 0 4px;
  color: var(--red-dark);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.5;
}

.contact-form .wpcf7-response-output {
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.5;
}

.contact-form .form-grid > label:not(.form-full) input,
.contact-form .form-grid > label:not(.form-full) select {
  width: 100%;
  height: 68px;
  min-height: 68px;
  box-sizing: border-box;
}

.desktop-floating-cta {
  display: none;
}

/* Keep postpay visible above the fold and give it a stronger conversion cue
 * without turning the proof row into another CTA block. */
.hero-benefit-postpay {
  border-color: rgba(184, 240, 0, 0.92);
  background: linear-gradient(135deg, #ffffff 0%, #f6ffda 100%);
  box-shadow: inset 5px 0 0 var(--lime), 0 7px 18px rgba(3, 26, 61, 0.11);
}

.hero-benefit-postpay strong {
  color: var(--red);
}

.payment-grid .payment-postpay {
  border: 2px solid var(--lime);
  background: linear-gradient(135deg, #ffffff, #f6ffda);
  box-shadow: 0 10px 24px rgba(3, 26, 61, 0.1);
}

.payment-grid .payment-postpay h3 {
  color: var(--red);
  font-size: 1.08rem;
}

/* Keep the conversion actions continuous after the mobile bottom bar while
 * containing both actions in a compact edge rail at every larger width. */
@media (min-width: 761px) {
  .desktop-floating-cta {
    position: fixed;
    z-index: 48;
    top: 50%;
    right: 0;
    width: clamp(62px, 5vw, 74px);
    display: grid;
    gap: 6px;
    transform: translateY(-50%);
    filter: drop-shadow(0 10px 20px rgba(3, 26, 61, 0.24));
  }

  .desktop-floating-cta a {
    min-width: 0;
    min-height: clamp(68px, 6vw, 78px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-sizing: border-box;
    padding: 8px 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 11px 0 0 11px;
    color: #fff;
    overflow: hidden;
    touch-action: manipulation;
    transition: transform 160ms ease, filter 160ms ease;
  }

  .desktop-floating-phone {
    background: linear-gradient(135deg, #031a3d, #082e59);
  }

  .desktop-floating-estimate {
    background: linear-gradient(135deg, #df0011, #f10a18);
  }

  .desktop-floating-cta a:hover,
  .desktop-floating-cta a:focus-visible {
    transform: translateX(-3px);
    filter: brightness(1.06);
  }

  .desktop-floating-cta a:focus-visible {
    outline: 3px solid var(--lime);
    outline-offset: 2px;
  }

  .desktop-floating-cta a > img:not(.desktop-floating-arrow) {
    width: clamp(32px, 3.5vw, 38px);
    height: clamp(32px, 3.5vw, 38px);
    object-fit: contain;
  }

  .desktop-floating-phone > img {
    transform: scale(1.08);
  }

  .desktop-floating-cta span {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .desktop-floating-cta a::after {
    font-size: clamp(0.68rem, 1.3vw, 0.78rem);
    font-weight: 900;
    line-height: 1;
  }

  .desktop-floating-phone::after {
    content: "電話";
  }

  .desktop-floating-estimate::after {
    content: "見積り";
  }

  .desktop-floating-arrow {
    display: none !important;
  }
}

/* The compressed four-column strip looked unfinished on tablets and small
 * laptops. The statement now anchors a balanced 2x2 set of proof cards. */
@media (min-width: 761px) and (max-width: 1450px) {
  .hero-benefit span {
    font-size: clamp(0.92rem, 1.35vw, 1.05rem);
    line-height: 1.28;
  }

  .hero-benefit strong {
    font-size: clamp(1.04rem, 1.52vw, 1.2rem);
  }

  .trust-bar {
    min-height: 0;
    grid-template-columns: minmax(210px, 0.9fr) repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(70px, auto));
    gap: 12px 14px;
    padding: 18px clamp(22px, 4vw, 52px);
    background: linear-gradient(135deg, #031a3d, #082d59 52%, #031a3d);
  }

  .trust-bar > p {
    grid-column: 1;
    grid-row: 1 / 3;
    min-height: 0;
    margin: 0;
    padding: 20px 22px;
    align-items: flex-start;
    border: 1px solid rgba(184, 240, 0, 0.42);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(184, 240, 0, 0.14), rgba(255, 255, 255, 0.045));
    text-align: left;
    font-size: clamp(1.08rem, 2vw, 1.3rem);
    font-style: normal;
    line-height: 1.4;
  }

  .trust-bar > div {
    position: relative;
    min-height: 70px;
    padding: 12px 14px 12px 58px;
    align-items: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.055);
    text-align: left;
  }

  .trust-bar > div::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 16px;
    width: 29px;
    height: 29px;
    background: url("../generated/banner-check-ref-v2.webp") center / contain no-repeat;
    filter: none;
    opacity: 1;
    transform: translateY(-50%);
  }

  .trust-bar > div::after {
    display: none;
  }

  .trust-bar strong {
    font-size: clamp(0.91rem, 1.55vw, 1.08rem);
    line-height: 1.25;
  }

  .trust-bar small {
    margin-top: 3px;
    font-size: clamp(0.7rem, 1.15vw, 0.82rem);
    line-height: 1.35;
  }

  .section-cases {
    padding-top: clamp(64px, 7vw, 88px);
  }

  .section-cases .container-wide {
    width: min(1120px, calc(100% - 48px));
  }

  .cases-intro {
    position: relative;
    isolation: isolate;
    min-height: clamp(220px, 24vw, 270px);
    display: grid;
    place-items: center;
    margin-bottom: clamp(30px, 4vw, 44px);
    padding: clamp(26px, 3.5vw, 40px);
    overflow: hidden;
    border-radius: 16px;
    background-position: center;
    background-size: cover;
    box-shadow: 0 14px 34px rgba(3, 26, 61, 0.12);
  }

  .cases-intro::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.95) 24%, rgba(255, 255, 255, 0.97) 76%, rgba(255, 255, 255, 0.32));
  }

  .cases-intro .section-heading {
    position: relative;
    z-index: 1;
    width: min(660px, 100%) !important;
    margin: 0 auto !important;
    padding: 20px clamp(18px, 3vw, 32px) !important;
    border: 1px solid rgba(6, 29, 59, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 28px rgba(3, 26, 61, 0.1);
  }

  .cases-intro .section-heading .eyebrow {
    color: var(--navy);
    font-size: clamp(0.78rem, 1.6vw, 1rem) !important;
  }

  .cases-intro .section-heading h2 {
    margin-top: 8px !important;
    color: var(--navy);
    font-size: clamp(3rem, 7vw, 4.6rem) !important;
  }

  .cases-truck {
    display: none !important;
  }

  .section-cases .case-grid {
    margin-top: 0;
    gap: clamp(18px, 2.4vw, 26px);
  }
}

@media (min-width: 1451px) {
  .hero-benefit span {
    font-size: 1rem;
    line-height: 1.28;
  }

  .hero-benefit strong {
    font-size: 1.16rem;
  }
}

@media (min-width: 761px) and (max-width: 1024px) {
  .hero-background {
    min-height: 760px;
  }

  .hero-inner {
    display: block;
    min-height: 760px;
  }

  .hero-copy {
    width: min(720px, 78%);
    max-width: none;
  }
}

@media (min-width: 1025px) and (max-width: 1450px) {
  .hero-inner {
    display: block;
  }

  .hero-copy {
    width: min(790px, 70%);
    max-width: none;
    padding-top: clamp(36px, 5vw, 66px);
  }
}

@media (max-width: 760px) {
  .hero-benefit span {
    font-size: clamp(0.7rem, 3.3vw, 0.82rem);
    line-height: 1.3;
  }

  .hero-benefit strong {
    font-size: clamp(0.8rem, 3.7vw, 0.94rem);
  }

  .hero-benefit-postpay {
    border-top: 3px solid var(--lime);
  }

  .menu-button,
  .main-nav.is-open a,
  .mobile-cta a {
    touch-action: manipulation;
  }

  .menu-button {
    -webkit-user-select: none;
    user-select: none;
  }

  .result-laurel-left {
    transform: translateY(-50%);
  }

  .result-laurel-right {
    transform: translateY(-50%) scaleX(-1);
  }

  .cases-intro .section-heading {
    margin-bottom: clamp(24px, 6vw, 32px) !important;
  }

  .section-cases .case-grid {
    margin-top: 18px;
  }

  .contact-mobile-break {
    display: block;
  }

  .contact-heading h2 {
    max-width: calc(100% - 8px);
    font-size: clamp(1.88rem, 9.45vw, 2.42rem);
    line-height: 1.1;
  }

  .faq-answer p {
    align-items: baseline;
  }

  .faq-answer b {
    line-height: 1;
  }

  .contact-form .form-grid > label:not(.form-full) input,
  .contact-form .form-grid > label:not(.form-full) select {
    width: 100%;
    height: 58px;
    min-height: 58px;
    box-sizing: border-box;
  }

  .contact-form .form-grid > label:not(.form-full) .wpcf7-form-control-wrap {
    height: auto;
    min-height: 0;
  }

  .footer-company-phone {
    width: 100%;
    align-items: center !important;
  }

  .footer-company-phone strong {
    display: block;
    max-width: 100%;
    font-family: "Arial Narrow", Impact, sans-serif;
    font-size: clamp(2rem, 10vw, 2.55rem) !important;
    line-height: 1;
    letter-spacing: 0;
  }

  .footer-services {
    justify-content: center;
    line-height: 1.9 !important;
  }
}

@media (max-width: 359px) {
  .contact-heading h2 {
    font-size: clamp(1.72rem, 9.2vw, 2rem);
  }

  .footer-company-phone strong {
    font-size: clamp(1.82rem, 9.3vw, 2.18rem) !important;
  }
}

/* Distinct media for the three conversion-section headings. The explicit
 * image column is enabled on wide PC only, so tablet/mobile keep their proven
 * compact composition while desktop no longer repeats the MV truck scene. */
.section-intro-photo {
  display: none;
}

@media (min-width: 1451px) {
  .pricing-intro,
  .flow-intro,
  .contact-heading {
    position: relative;
    min-height: 300px;
    display: grid;
    grid-template-columns: minmax(430px, 0.88fr) minmax(0, 1.12fr);
    align-items: stretch;
    margin: 0 0 30px;
    padding: 0;
    border: 1px solid #dce4ed;
    border-radius: 20px;
    background: #fff !important;
    box-shadow: 0 18px 44px rgba(3, 26, 61, 0.11);
    overflow: hidden;
  }

  .pricing-intro,
  .flow-intro {
    height: 320px;
    min-height: 320px;
    max-height: 320px;
  }

  .pricing-intro::before,
  .flow-intro::before {
    display: none !important;
  }

  .pricing-truck,
  .flow-truck {
    display: none !important;
  }

  .section-intro-photo {
    width: 100% !important;
    height: 100% !important;
    min-height: 300px;
    display: block;
    align-self: stretch;
    border: 0;
    object-fit: cover;
    transform: none !important;
  }

  .pricing-intro .section-heading,
  .flow-intro .section-heading {
    width: auto;
    max-width: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
    padding: 42px 48px;
    text-align: left;
    transform: none;
  }

  .pricing-intro .section-heading .eyebrow,
  .flow-intro .section-heading .eyebrow {
    display: block;
    margin: 0 0 12px;
    color: #6d7c8f;
    font-size: 0.8rem;
    letter-spacing: 0.22em;
  }

  .pricing-intro .section-heading h2,
  .flow-intro .section-heading h2 {
    margin: 0;
    padding: 0 0 14px;
    border: 0;
    color: var(--navy);
    font-size: clamp(3.3rem, 4vw, 4.2rem);
    line-height: 1;
    letter-spacing: -0.045em;
    transform: none;
  }

  .pricing-intro .section-heading h2::after,
  .flow-intro .section-heading h2::after {
    content: "";
    position: static;
    width: 84px;
    height: 6px;
    display: block;
    margin-top: 16px;
    background: var(--lime);
    transform: skewX(-24deg);
  }

  .pricing-intro .section-lead,
  .flow-intro .section-lead {
    width: auto;
    max-width: 540px;
    margin: 0;
    color: #435268;
    font-size: clamp(1rem, 1.25vw, 1.18rem);
    line-height: 1.75;
    font-weight: 800;
    transform: none;
  }

  .pricing-intro-photo {
    grid-column: 2;
    grid-row: 1;
    height: 320px !important;
    min-height: 320px;
    max-height: 320px;
    object-position: 50% 56%;
  }

  .flow-intro {
    grid-template-columns: minmax(0, 1.08fr) minmax(470px, 0.92fr);
  }

  .flow-intro-photo {
    grid-column: 1;
    grid-row: 1;
    height: 320px !important;
    min-height: 320px;
    max-height: 320px;
    object-position: 52% 54%;
  }

  .flow-intro .section-heading {
    grid-column: 2;
    grid-row: 1;
  }

  .contact-heading {
    height: 300px;
    color: #fff;
    background: var(--navy) !important;
  }

  .contact-heading > div:first-child {
    width: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 38px 46px;
    transform: none;
  }

  .contact-heading .eyebrow {
    visibility: visible;
    display: block;
    margin: 0 0 12px;
    color: var(--lime);
    font-size: 0.8rem;
    letter-spacing: 0.22em;
  }

  .contact-heading h2 {
    max-width: none;
    display: block;
    margin: 0;
    padding: 0 0 16px;
    border: 0;
    color: #fff;
    font-size: clamp(3.05rem, 3.8vw, 3.85rem);
    line-height: 1.06;
    letter-spacing: -0.055em;
    white-space: normal;
    transform: none;
  }

  .contact-heading h2::after {
    display: none;
  }

  .contact-heading p:last-child {
    margin: 0;
    color: #fff;
    font-size: clamp(1rem, 1.18vw, 1.15rem);
    line-height: 1.55;
    transform: none;
  }

  .contact-heading p:last-child small {
    color: #c8d3e1;
    font-size: 0.82em;
  }

  .contact-intro-photo {
    grid-column: 2;
    grid-row: 1;
    height: 300px !important;
    min-height: 300px;
    max-height: 300px;
    object-position: 54% 48%;
  }

  .contact-vehicle {
    height: 310px;
    border-radius: 16px;
    background-image: url("../generated/contact-estimate-intro-v1.webp") !important;
    background-position: center 50% !important;
    background-size: cover !important;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .contact-copy {
    padding-top: 14px;
  }
}

/* Company details are presented as information, not a second hero. The real
 * supplied GRUP vehicle sits in its own media column and every field remains
 * in normal document flow. */
.footer-company-media {
  position: relative;
  min-width: 0;
  margin: 0;
  background: var(--navy);
  overflow: hidden;
}

.footer-company-media > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 68%;
}

.footer-company-media figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 58px 24px 20px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(3, 26, 61, 0.9));
}

.footer-company-media figcaption strong {
  color: var(--lime);
  font-size: 0.9rem;
  letter-spacing: 0.13em;
}

.footer-company-media figcaption span {
  font-size: 0.78rem;
  font-weight: 800;
}

.footer-company-copy .eyebrow {
  display: block;
  margin: 0 0 8px;
  color: #6d7c8f;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
}

.footer-company-details {
  display: grid;
  margin: 16px 0;
  border-top: 1px solid #dce4ed;
}

.footer-company-details div {
  min-width: 0;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid #dce4ed;
}

.footer-company-details dt {
  color: #6d7c8f;
  font-size: 0.76rem;
  font-weight: 900;
}

.footer-company-details dd {
  min-width: 0;
  margin: 0;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.45;
}

.footer-company-copy .footer-company-phone {
  width: 100%;
  max-width: 520px;
  min-height: 72px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 13px;
  margin: 12px 0 0;
  padding: 10px 16px;
  border-left: 6px solid var(--lime);
  border-radius: 10px;
  color: #fff;
  background: var(--navy);
  box-sizing: border-box;
}

.footer-company-phone > img {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  object-fit: contain;
}

.footer-company-phone > span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-company-copy .footer-company-phone small {
  display: block;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
}

.footer-company-copy .footer-company-phone strong {
  color: #fff;
  font-family: "Arial Narrow", Impact, sans-serif;
  font-size: clamp(2.15rem, 3vw, 2.75rem) !important;
  line-height: 1;
  letter-spacing: 0.025em;
}

.footer-company-copy .footer-services {
  gap: 6px;
  margin: 15px 0 0 !important;
  font-size: 0.72rem !important;
  line-height: 1.2;
}

.footer-company-copy .footer-services span {
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--navy);
  background: #eef2f6;
}

.footer-company-copy .footer-services span::after {
  content: none !important;
}

@media (max-width: 760px) {
  .footer-company {
    padding-top: 0;
  }

  .footer-company-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 38px 16px 0;
    background: #fff !important;
  }

  .footer-company-copy {
    width: 100%;
    padding: 0;
  }

  .footer-company-copy h2 {
    width: auto;
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 4px solid var(--lime);
  }

  .footer-company-copy .footer-company-logo {
    width: 205px;
    height: auto;
    margin: 0 auto 8px;
  }

  .footer-company-copy h3 {
    margin-top: 4px;
  }

  .footer-company-details {
    margin: 15px 0;
    text-align: left;
  }

  .footer-company-details div {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 8px;
  }

  .footer-company-details dt,
  .footer-company-details dd {
    font-size: 0.68rem;
  }

  .footer-company-copy .footer-company-phone {
    margin-inline: auto;
    text-align: left;
  }

  .footer-company-copy .footer-company-phone strong {
    font-size: clamp(1.9rem, 9vw, 2.35rem) !important;
  }

  .footer-company-copy .footer-services {
    justify-content: center;
  }

  .footer-company-media {
    width: calc(100% + 32px);
    height: 260px;
    margin: 24px -16px 0;
  }

  .footer-company-media figcaption {
    padding-inline: 16px;
  }
}

@media (min-width: 761px) {
  .footer-company {
    padding: 52px 0 0;
    background: #eef2f6;
  }

  .footer-company-inner {
    width: min(1340px, calc(100% - 64px));
    max-width: none;
    min-height: 440px;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: stretch;
    margin: 0 auto;
    padding: 0;
    border: 1px solid #dce4ed;
    border-radius: 20px;
    background: #fff !important;
    box-shadow: 0 20px 52px rgba(3, 26, 61, 0.13);
    overflow: hidden;
  }

  .footer-company-copy {
    position: relative;
    inset: auto;
    z-index: 2;
    width: auto;
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 34px 38px;
    border: 0;
    background: #fff;
    box-shadow: none;
  }

  .footer-company-copy h2,
  .footer-company-copy > img,
  .footer-company-copy h3,
  .footer-company-copy > p,
  .footer-company-copy > a {
    position: static;
    inset: auto;
    transform: none;
  }

  .footer-company-copy h2 {
    width: 184px;
    margin: 0 0 14px;
    padding: 0 0 8px;
    border-bottom: 4px solid var(--lime);
    font-size: 1.85rem !important;
    line-height: 1.05;
  }

  .footer-company-copy .footer-company-logo {
    width: 220px;
    height: auto;
    display: block;
    margin: 0 0 8px;
    object-fit: contain;
  }

  .footer-company-copy h3 {
    display: block;
    margin: 0;
    padding: 0;
    font-size: 1.45rem !important;
    line-height: 1.2;
    font-style: normal;
  }

  .footer-company-copy > a.footer-company-phone {
    position: static;
    min-height: 72px;
    padding: 10px 16px;
    background: var(--navy);
  }

  .footer-company-media {
    height: 500px;
    min-height: 440px;
    max-height: 500px;
  }
}

@media (min-width: 761px) and (max-width: 1024px) {
  .footer-company-inner {
    height: auto;
    max-height: none;
    grid-template-columns: 1fr;
  }

  .footer-company-copy {
    padding: 34px 42px;
  }

  .footer-company-media {
    height: 340px;
    min-height: 340px;
    max-height: 340px;
  }
}

@media (min-width: 1451px) {
  .footer-company {
    padding-top: 64px;
  }

  .footer-company-inner {
    width: min(1420px, calc(100% - 96px));
    height: 540px;
    min-height: 540px;
    max-height: 540px;
    grid-template-columns: minmax(470px, 0.84fr) minmax(620px, 1.16fr);
    background-image: none !important;
  }

  .footer-company-copy {
    height: 540px;
    min-height: 540px;
    max-height: 540px;
    padding: 32px 48px;
  }

  .footer-company-copy .eyebrow {
    font-size: 0.76rem;
  }

  .footer-company-copy h2 {
    font-size: 2rem !important;
  }

  .footer-company-copy .footer-company-logo {
    width: 230px;
  }

  .footer-company-copy h3 {
    font-size: 1.55rem !important;
  }

  .footer-company-details dd {
    font-size: 0.92rem;
  }

  .footer-company-media {
    height: 540px;
    min-height: 540px;
    max-height: 540px;
  }

  .footer-photo-strip {
    display: none;
  }
}

/* MV proof points are primary sales messages. Keep all visible benefits
 * unmistakably readable at every viewport, with enough card space for the
 * larger type rather than squeezing the copy around the icons. */
.hero-benefit span {
  font-weight: 900;
}

.hero-benefit strong {
  color: var(--red);
  font-weight: 950;
}

/* All six MV benefits remain visible below wide desktop as well. Earlier
 * reference CSS hid the last two cards to save height, which removed useful
 * sales points on phones and tablets. */
@media (max-width: 1450px) {
  .hero-benefit:nth-child(n + 5) {
    display: flex;
  }
}

@media (max-width: 760px) {
  .hero-benefit {
    min-height: 80px;
  }

  .hero-benefit span {
    font-size: clamp(0.82rem, 4.2vw, 1rem);
    line-height: 1.22;
  }

  .hero-benefit strong {
    font-size: clamp(0.96rem, 4.8vw, 1.15rem);
  }
}

@media (max-width: 359px) {
  .hero-benefit {
    min-height: 76px;
  }

  .hero-benefit img {
    width: 30px;
    height: 30px;
  }

  .hero-benefit span {
    font-size: 0.8rem;
  }

  .hero-benefit strong {
    font-size: 0.92rem;
  }
}

@media (min-width: 761px) and (max-width: 1450px) {
  .hero-benefit {
    min-height: 82px;
  }

  .hero-benefit span {
    font-size: clamp(1.02rem, 1.55vw, 1.18rem);
    line-height: 1.25;
  }

  .hero-benefit strong {
    font-size: clamp(1.18rem, 1.78vw, 1.34rem);
  }
}

@media (min-width: 1451px) {
  .hero-benefits {
    width: min(700px, 100%);
  }

  .hero-benefit {
    min-height: 84px;
  }

  .hero-benefit span {
    font-size: 1.12rem;
    line-height: 1.25;
  }

  .hero-benefit strong {
    font-size: 1.3rem;
  }
}

/* Restore the two assurance icons present in the source design for the text-only CF7 markup. */
.contact-form-notes .note-fast::before,
.contact-form-notes .note-safe::before {
  content: "";
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.contact-form-notes .note-fast::before {
  background-image: url("../generated/feature-fast.webp");
}

.contact-form-notes .note-safe::before {
  background-image: url("../generated/feature-insurance.webp");
}

/* The four proof points below the MV stay readable on phones as a 2 x 2
 * matrix. The heading remains hidden at this width so the block does not
 * become taller than the message it supports. */
@media (max-width: 760px) {
  .trust-bar {
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    padding: 0;
    background: rgba(255, 255, 255, 0.2);
  }

  .trust-bar > p {
    display: none;
  }

  .trust-bar > div {
    min-height: 88px;
    padding: 12px 8px;
    border: 0 !important;
    background: var(--navy);
  }

  .trust-bar strong {
    font-size: clamp(0.8rem, 4vw, 1rem);
    line-height: 1.3;
  }

  .trust-bar small {
    margin-top: 4px;
    font-size: clamp(0.67rem, 3.2vw, 0.8rem);
    line-height: 1.35;
  }

  .contact-form-notes .note-fast::before,
  .contact-form-notes .note-safe::before {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }

  /* The compact legal links in .footer-bottom already cover these
   * destinations on phones, so avoid showing the larger duplicate cards. */
  #grup-roadservice-app .footer-disclosures {
    display: none;
  }
}

/* Contact Form 7 adds its own wrappers around acceptance and submit controls.
 * Keep those controls out of the broad text-input rules. */
.contact-form .form-consent {
  margin: 20px 0;
}

.contact-form .form-consent .wpcf7-list-item {
  margin: 0;
}

.contact-form .form-consent label {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  font-size: 0.8rem;
  line-height: 1.65;
}

.contact-form .form-consent input[type="checkbox"] {
  -webkit-appearance: checkbox;
  appearance: auto;
  width: 20px;
  height: 20px;
  min-height: 20px;
  flex: 0 0 20px;
  margin: 0.1em 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  accent-color: var(--red);
}

.contact-form .form-consent .wpcf7-list-item-label {
  min-width: 0;
}

.contact-form .form-consent a {
  color: var(--navy-2);
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.contact-form .cf7-submit-wrap {
  position: relative;
  padding: 0;
  overflow: hidden;
}

.contact-form .cf7-submit-control {
  -webkit-appearance: none;
  appearance: none;
  align-self: stretch;
  width: 100%;
  min-height: inherit;
  margin: 0;
  padding: 0 24px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: inherit;
  font: inherit;
  font-style: inherit;
  letter-spacing: inherit;
  text-align: center;
  cursor: pointer;
  box-shadow: none;
}

.contact-form .cf7-submit-control:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: -5px;
}

.contact-form .cf7-submit-control:disabled {
  cursor: wait;
}

.contact-form .cf7-submit-wrap .wpcf7-spinner {
  position: absolute;
  top: 50%;
  right: 16px;
  margin: 0;
  transform: translateY(-50%);
}

@media (max-width: 760px) {
  .cases-intro .section-heading .eyebrow {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    white-space: nowrap;
  }

  .cases-intro .section-heading .eyebrow::before,
  .cases-intro .section-heading .eyebrow::after {
    flex: 1 1 30px;
    min-width: 0;
    max-width: 30px;
    margin-inline: 0 !important;
  }
}
