/**
 * Homepage mobile + elderly-friendly UX (index.html only).
 * Large tap targets, readable type, scrollable modals, strong focus rings.
 */

body.pcs-home .pc-modal-close {
  min-width: 48px;
  min-height: 48px;
}

body.pcs-home .pc-modal-formhint {
  font-size: clamp(1rem, 2.8vw, 1.0625rem);
  line-height: 1.5;
  font-weight: 700;
  color: rgba(18, 34, 65, 0.88);
}

body.pcs-home .pc-modal-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 14px;
  font-size: 1rem;
}

body.pcs-home .pc-modal .pc-modal-btn {
  min-height: 80px;
}

body.pcs-home #callbackModal .pc-modal-card,
body.pcs-home #quoteModal .pc-modal-card {
  width: min(100%, calc(100vw - 20px));
  max-height: min(94dvh, 94vh);
  display: flex;
  flex-direction: column;
}

body.pcs-home #callbackModal .pc-modal-body,
body.pcs-home #quoteModal .pc-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: clip;
  -webkit-overflow-scrolling: touch;
}

body.pcs-home .pcs-native-callback-form__field > span:not(.pcs-native-callback-form__phone):not(.pcs-native-callback-form__flag),
body.pcs-home .pcs-native-quote-form__field > span:not(.pcs-native-quote-form__phone):not(.pcs-native-quote-form__flag) {
  font-size: clamp(16px, 2.5vw, 18px) !important;
}

body.pcs-home .pcs-native-callback-form__agree,
body.pcs-home .pcs-native-quote-form__agree {
  font-size: clamp(16px, 2.5vw, 17px);
  gap: 14px;
}

body.pcs-home .pcs-native-callback-form__agree input,
body.pcs-home .pcs-native-quote-form__agree input {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

body.pcs-home .pcs-native-callback-form__submit,
body.pcs-home .pcs-native-quote-form__submit {
  min-height: 52px;
  font-size: clamp(17px, 2.5vw, 18px);
}

body.pcs-home .header-two-area .header__main .bars {
  min-width: 48px;
  min-height: 48px;
}

body.pcs-home .sidebar-area #closeButton {
  min-width: 48px;
  min-height: 48px;
}

body.pcs-home .sidebar-area .mean-nav ul li > a:not(.mean-expand) {
  min-height: 48px;
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: clamp(16px, 3.8vw, 17px);
}

@media (max-width: 767.98px) {
  body.pcs-home .pcs-native-callback-form,
  body.pcs-home .pcs-native-quote-form {
    --pcs-callback-input-height: 52px;
  }

  body.pcs-home .pcs-native-callback-form__field input,
  body.pcs-home .pcs-native-callback-form__field select,
  body.pcs-home .pcs-native-quote-form__field input,
  body.pcs-home .pcs-native-quote-form__field textarea {
    font-size: 16px;
  }
}

@media (max-width: 390px) {
  body.pcs-home .pc-modal-header h3 {
    font-size: clamp(1.2rem, 5.5vw, 1.35rem);
  }

  body.pcs-home .pc-modal .pc-modal-btn {
    min-height: 76px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.pcs-home .sidebar-area,
  body.pcs-home #pcsSidebarBackdrop.pcs-sidebar-backdrop {
    transition-duration: 0.01ms !important;
  }
}
