/* Review refinements preserve TESAT's existing colors, typography and anchors. */
@media (min-width:901px) {
  .hero h1 { font-size:clamp(42px,4vw,56px); }
  .hero-description { max-width:480px; font-size:19px; line-height:1.7; }
}

.contact-form .form-status:not(:empty) {
  padding:14px 16px;
  border:1px solid #c8dcd2;
  border-radius:10px;
  background:#f1f7f3;
  font-size:14px;
  line-height:1.7;
}
.contact-form .form-status.is-error:not(:empty) {
  border-color:#d5a8a3;
  border-left:3px solid #a52d2d;
  color:#8d2727;
  background:#fff5f4;
}
.contact-form [aria-invalid="true"] { background-color:#fff9f8; }
.contact-form .form-intro { font-size:14px; line-height:1.7; }
.contact-form .field label { font-size:14px; }
.contact-form .step-insight { font-size:13px; }
.contact-form .project-review>div { font-size:14px; line-height:1.7; }
.contact-form .form-privacy,.contact-form .form-help { font-size:13px; }
.contact-form .phone-group>legend { font-size:14px; }

.landing-footer .footer-presentation>p:not(.presentation-format) { font-size:14px; line-height:1.8; }
.landing-footer .footer-location h3,.landing-footer .footer-navigation h3 { font-size:13px; line-height:1.6; }
.landing-footer .footer-phone,.landing-footer .footer-location address,.landing-footer .footer-navigation a { font-size:13px; line-height:1.8; }
.landing-footer .footer-email,.landing-footer .footer-phone,.landing-footer .footer-navigation a { min-height:44px; }
.landing-footer .footer-bottom { font-size:12px; }
.landing-footer .legal-links a,.landing-footer .legal-links button { font-size:12px; min-height:44px; }

/* A tablet needs a wide form, rather than two narrow image/input columns. */
@media (min-width:768px) and (max-width:1023px) {
  .contact-intro { max-width:640px; margin-inline:auto; }
  .contact-grid { grid-template-columns:1fr; gap:0; max-width:640px; margin-inline:auto; }
  .contact-options { border-radius:22px 22px 0 0; overflow:hidden; }
  .contact-options .contact-render { height:265px; aspect-ratio:auto; max-height:none; border-radius:0; }
  .contact-render>img { object-position:50% 61%; }
  .contact-form { border-radius:0 0 22px 22px; border-top:0; padding:35px 40px; }
  .js .contact-form { min-height:0; }
  .implementation-intro { grid-template-columns:1fr; gap:24px; margin-bottom:38px; }
  .implementation-purpose { max-width:680px; font-size:17px; }
  .implementation-journey { grid-template-columns:1fr; gap:0; }
  .implementation-journey>li {
    display:grid; grid-template-columns:1fr 1.15fr; gap:0 32px;
    padding:27px 0 28px 43px; border-top:0; border-bottom:1px solid #dce6df;
  }
  .implementation-journey .journey-number { top:23px; }
  .implementation-journey h3 { grid-row:1/span 2; min-height:0; margin:0; font-size:24px; }
  .implementation-journey>li>p:not(.journey-result) { font-size:15px; margin-bottom:18px; max-width:none; }
  .implementation-journey .journey-result { min-height:0; margin:0; padding:12px 15px; }
}

@media (max-width:767px) {
  .hero-description { font-size:17px; line-height:1.7; }
  .hero-actions .button { min-height:48px; font-size:12px; }
  .solution-tab { font-size:12px; line-height:1.45; min-height:62px; padding:11px 8px; }
  .solution-tab .icon { width:18px; height:18px; }
  /* Keep all five selectable workflows visible without a hidden tab strip. */
  .workspace-chapters {
    display:grid; grid-template-columns:repeat(2,minmax(0,1fr));
    gap:5px; padding:9px; overflow:visible;
  }
  .workspace-chapters>button {
    width:100%; min-width:0; min-height:54px; padding:11px 9px 14px;
    font-size:12px; line-height:1.5; border-radius:8px;
  }
  .workspace-chapters>button:last-child { grid-column:1/-1; }
  .workspace-chapters>button.is-current { box-shadow:inset 0 0 0 1px #a7c9b8; }
  .workspace-chapters .chapter-progress { left:10px; right:10px; bottom:5px; }
  .contact-form .project-review dt { font-size:12px; }
  .contact-form .phone-group .field-help { font-size:12px; }
  .landing-footer .footer-information { grid-template-columns:1.4fr 1fr; column-gap:22px; }
  .landing-footer .footer-identity { flex-wrap:wrap; gap:12px 22px; }
  .landing-footer .footer-identity>p { font-size:12px; }
  .landing-footer .footer-phone { max-width:none; }
  .landing-footer .footer-bottom { flex-direction:column; gap:8px; }
  .landing-footer .legal-links { gap:0 18px; justify-content:flex-start; }
}
@media (max-width:359px) {
  .hero-actions .button { font-size:11px; padding-inline:16px; }
  .solution-tab { font-size:11px; gap:6px; padding-inline:6px; }
  .contact-form .phone-fields label { font-size:12px; }
  .landing-footer .footer-information { grid-template-columns:1fr; gap:25px; }
  .landing-footer .footer-navigation ul { display:grid; grid-template-columns:1fr 1fr; column-gap:15px; }
}
@media (forced-colors:active) {
  .contact-form .form-status:not(:empty),.contact-form .form-status.is-error:not(:empty) {
    color:CanvasText; background:Canvas; border-color:CanvasText;
  }
  .contact-form [aria-invalid="true"] { background-color:Canvas; }
  .workspace-chapters>button.is-current { box-shadow:none; outline:2px solid Highlight; outline-offset:-3px; }
}
