/* Перевірка покриття одного провайдера: модалка public/libs/provider-check.js
   і поле-кнопка views/partials/provider-check-cta.ejs. Підключає views/partials/provider-check.ejs.
   Кольори — сайтові: помаранчева дія #ff6423 (.btn-warning), рамка поля #ff5209 */

html.pc-open { overflow: hidden; }
.pc { position: fixed; inset: 0; z-index: 1065; display: flex; align-items: center; justify-content: center; padding: 16px; font-family: inherit; }
.pc[hidden] { display: none; }
.pc__backdrop { position: absolute; inset: 0; background: rgba(20, 24, 33, .55); }
.pc__box {
  position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow: auto;
  background: #fff; border-radius: 18px; box-shadow: 0 18px 50px rgba(20, 24, 33, .35);
  font-size: 16px; line-height: 1.45; color: #1f2329; text-align: left;
}
.pc__box--wide { max-width: 760px; }
.pc__close {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px; padding: 6px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); color: #4a5563; cursor: pointer;
}
.pc__close:hover, .pc__close:focus { background: #f3f4f6; color: #1f2329; outline: 0; }
.pc__close:focus-visible { box-shadow: 0 0 0 3px rgba(255, 100, 35, .4); }
.pc__close svg { display: block; width: 100%; height: 100%; }
.pc__head { display: flex; align-items: center; gap: 16px; min-height: 80px; padding: 16px 60px 14px 24px; border-bottom: 1px solid #eceef1; background: #fafafa; }
.pc__brand { flex: none; }
.pc__logo { display: block; width: 112px; height: 48px; object-fit: contain; }
.pc__tariff { min-width: 0; }
.pc__tariff b { display: block; font-size: 16px; }
.pc__tariff span { display: block; font-size: 14px; color: #5f6672; }
.pc__body { padding: 22px 24px 24px; }
.pc__title { margin: 0 0 16px; font-size: 21px; line-height: 1.3; font-weight: 700; color: #1f2329; }
.pc__title--sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pc__title:focus { outline: 0; }
.pc__msg { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: #fff4e5; color: #6b4210; font-size: 15px; }

.pc__last {
  display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 14px; padding: 10px 14px; text-align: left;
  border: 1.5px dashed #ffb48f; border-radius: 12px; background: #fff8f4; color: #1f2329; font: inherit; font-size: 15px; cursor: pointer;
}
.pc__last:hover, .pc__last:focus { border-style: solid; border-color: #ff6423; outline: 0; }
.pc__last svg { width: 22px; height: 22px; flex: none; color: #ff6423; }
.pc__last small { display: block; font-size: 12.5px; color: #6b7280; }

.pc__crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.pc__crumb {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 12px; border: 1.5px solid #ffd2bd; border-radius: 999px;
  background: #fff4ee; color: #9a3412; font-size: 14px; font-weight: 600; cursor: pointer;
}
.pc__crumb:hover, .pc__crumb:focus { border-color: #ff6423; outline: 0; }
.pc__crumb svg { width: 14px; height: 14px; }

.pc__field { position: relative; }
.pc .pc__input {
  display: block; width: 100%; height: 56px; margin: 0; padding: 0 22px; font-size: 18px; color: #1f2329;
  background: #fff; border: 2px solid #ff5209; border-radius: 40px; box-shadow: none; -webkit-appearance: none; appearance: none;
}
.pc .pc__input:focus { border-color: #ef4700; box-shadow: 0 0 0 4px rgba(255, 100, 35, .18); outline: 0; }
/* список у потоці, а не поверх: модалка сама прокручується, і довгий список не обрізається її краєм */
.pc__sugg {
  max-height: 264px; overflow: auto;
  margin: 6px 0 0; padding: 6px 0; list-style: none; background: #fff; border: 1px solid #e3e5e8; border-radius: 12px;
  box-shadow: 0 8px 22px rgba(20, 24, 33, .1);
}
.pc__sugg[hidden] { display: none; }
.pc__sugg li { padding: 10px 18px; cursor: pointer; font-size: 16px; }
.pc__sugg li small { display: block; color: #7a818c; font-size: 13px; word-break: break-all; }
.pc__sugg li:hover, .pc__sugg li.is-active { background: #fff4ee; }
.pc__sugg .pc__empty { color: #6b7280; font-size: 14px; cursor: default; }
.pc__sugg .pc__empty:hover { background: none; }

.pc__alt { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; }
.pc__link {
  display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none;
  font-size: 15px; font-weight: 600; color: #c2410c; text-decoration: none; cursor: pointer;
}
.pc__link:hover, .pc__link:focus { color: #9a3412; text-decoration: underline; outline: 0; }
.pc__link svg { width: 18px; height: 18px; flex: none; }
.pc__link--small { font-size: 14px; }
.pc__link[hidden] { display: none; }
.pc__note { margin: 16px 0 0; font-size: 13.5px; color: #7a818c; }

.pc__houses { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pc__house {
  width: 100%; padding: 12px 16px; text-align: left; font-size: 16px; color: #1f2329; cursor: pointer;
  background: #fff8f4; border: 2px solid #ffe0d1; border-radius: 12px;
}
.pc__house:hover, .pc__house:focus { border-color: #ff6423; outline: 0; }

.pc__map { height: 400px; border-radius: 12px; overflow: hidden; background: #e8eaee; }
.pc__mapbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.pc__maphint { font-size: 14px; color: #5f6672; }

.pc__loading { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 140px; color: #5f6672; }
.pc__spin { width: 26px; height: 26px; border: 3px solid #ffe0d1; border-top-color: #ff6423; border-radius: 50%; animation: pc-spin .8s linear infinite; }
@keyframes pc-spin { to { transform: rotate(360deg); } }

.pc__addr { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 15px; color: #4a5563; }
.pc__addr svg { width: 18px; height: 18px; flex: none; color: #ff6423; }
.pc__addr span { min-width: 0; }
.pc__addr .pc__link { margin-left: auto; flex: none; }
.pc__verdict { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; padding: 14px 16px; border-radius: 12px; }
.pc__verdict svg { width: 28px; height: 28px; flex: none; }
.pc__verdict b { display: block; font-size: 18px; line-height: 1.3; }
.pc__verdict span { display: block; margin-top: 2px; font-size: 15px; color: #4a5563; }
.pc__verdict--ok { background: #ecf9f0; color: #17803d; }
.pc__verdict--ok b { color: #11552a; }
/* trial і неактивні: покриття є, але заявку не приймаємо — нейтрально, без зеленого */
.pc__verdict--info { background: #f3f5f8; color: #64748b; }
.pc__verdict--info b { color: #1f2329; }
.pc__sitelink { display: inline-block; margin-top: 6px; font-size: 14px; color: #5f6672; text-decoration: underline; text-underline-offset: 2px; }
.pc__sitelink:hover, .pc__sitelink:focus { color: #c2410c; outline: 0; }
.pc__verdict--no { background: #fdf0ef; color: #d33a2c; }
.pc__verdict--no b { color: #7f1d16; }

.pc__sub { margin: 16px 0 8px; padding: 0; font-size: 16px; font-weight: 700; color: #1f2329; border: 0; }

.pc__choice { margin: 4px 0 6px; padding: 0; border: 0; min-width: 0; }
.pc__opt {
  display: flex; align-items: flex-start; gap: 10px; margin: 0 0 8px; padding: 10px 14px;
  border: 1.5px solid #e3e5e8; border-radius: 12px; font-weight: 400; cursor: pointer;
}
.pc__opt:hover { border-color: #ffb48f; }
.pc__opt input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: #ff6423; }
.pc__opt span { min-width: 0; }
.pc__opt b { display: block; font-size: 15.5px; }
.pc__opt small { display: block; font-size: 13.5px; color: #5f6672; }
.pc__opt:has(input:checked) { border-color: #ff6423; background: #fff8f4; }
.pc__opt:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(255, 100, 35, .3); }

.pc__form { margin-top: 6px; }
.pc__formnote { margin: 0 0 12px; font-size: 14px; color: #5f6672; }
.pc__lbl { display: block; margin: 0 0 10px; font-weight: 400; }
.pc__lbl span { display: block; margin-bottom: 4px; font-size: 14px; color: #4a5563; }
.pc .pc__in {
  display: block; width: 100%; padding: 12px 14px; font-size: 17px; color: #1f2329;
  border: 1.5px solid #d5d9df; border-radius: 12px; background: #fff; box-shadow: none;
}
.pc .pc__in:focus { border-color: #ff6423; box-shadow: 0 0 0 4px rgba(255, 100, 35, .15); outline: 0; }
.pc textarea.pc__in { margin-top: 8px; font-size: 16px; resize: vertical; } /* 16px: iOS не наближає сторінку на фокусі */
.pc__err { min-height: 0; margin: 8px 0; color: #c62828; font-size: 14px; }
.pc__err:empty { margin: 4px 0; }

.pc__cta {
  display: inline-flex; align-items: center; justify-content: center; padding: 13px 26px; border: 0; border-radius: 999px;
  background: #ff6423; color: #fff; font-size: 17px; font-weight: 700; text-decoration: none; cursor: pointer;
  box-shadow: 0 6px 16px rgba(255, 100, 35, .3); transition: background .15s ease;
}
.pc__cta:hover, .pc__cta:focus { background: #ef4700; color: #fff; text-decoration: none; outline: 0; }
.pc__cta:focus-visible { box-shadow: 0 0 0 4px rgba(255, 100, 35, .35); }
.pc__cta:disabled { background: #ffb796; box-shadow: none; cursor: default; }
.pc__cta.is-busy { opacity: .7; cursor: progress; }
.pc__cta--block { display: flex; width: 100%; margin-top: 4px; }
.pc__more { display: block; margin-top: 14px; text-align: center; font-size: 15px; color: #c2410c; text-decoration: underline; text-underline-offset: 2px; }
.pc__more:hover, .pc__more:focus { color: #9a3412; }

.pc__sum { margin: 4px 0 14px; padding: 14px 16px; border: 1px solid #eceef1; border-radius: 12px; background: #fafbfc; }
.pc__sumtitle { margin-bottom: 10px; font-size: 15px; color: #4a5563; }
.pc__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px 16px; margin: 0; padding: 0; list-style: none; }
.pc__facts li { display: grid; grid-template-columns: 26px 1fr; column-gap: 8px; align-items: baseline; }
.pc__ico { grid-row: span 2; font-size: 18px; color: #ff6423; text-align: center; }
.pc__facts b { font-size: 16px; }
.pc__facts small { font-size: 13px; color: #6b7280; }

@media (max-width: 575px) {
  .pc { padding: 0; align-items: flex-end; }
  .pc__box, .pc__box--wide { max-width: none; max-height: 94vh; border-radius: 18px 18px 0 0; }
  .pc__head { min-height: 68px; padding: 12px 56px 10px 16px; }
  .pc__logo { width: 96px; height: 42px; }
  .pc__body { padding: 18px 16px 20px; }
  .pc__title { font-size: 19px; }
  .pc .pc__input { font-size: 16px; } /* iOS не наближає сторінку на фокусі */
  .pc .pc__in { font-size: 16px; }
  .pc__map { height: 52vh; }
  .pc__mapbar { flex-direction: column; align-items: stretch; }
  .pc__mapbar .pc__cta { width: 100%; }
}

/* Поле-кнопка «Вкажіть адресу · Перевірити покриття» (provider-check-cta.ejs) */
.pcf { display: flex; width: 100%; max-width: 820px; margin: 0 auto; padding: 6px; gap: 0; align-items: center;
  background: #fff; border: 2px solid #ff5209; border-radius: 999px; box-shadow: 0 8px 24px rgba(20, 24, 33, .08);
  font: inherit; text-align: left; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.pcf:hover, .pcf:focus { border-color: #ef4700; box-shadow: 0 0 0 4px rgba(255, 100, 35, .15); outline: 0; }
.pcf__ph { flex: 1 1 auto; min-width: 0; padding: 0 20px; font-size: 17px; color: #8a9099; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcf__btn { flex: none; display: inline-flex; align-items: center; height: 52px; padding: 0 28px; border-radius: 999px;
  background: #ff6423; color: #fff; font-size: 16px; font-weight: 700; white-space: nowrap; box-shadow: 0 6px 16px rgba(255, 100, 35, .32); }
.pcf:hover .pcf__btn { background: #ef4700; }
.pcf--stack { flex-direction: column; align-items: stretch; gap: 10px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.pcf--stack:hover, .pcf--stack:focus { box-shadow: none; }
.pcf--stack .pcf__ph { display: flex; align-items: center; height: 56px; background: #fff; border: 2px solid #ff5209; border-radius: 999px; }
.pcf--stack:hover .pcf__ph, .pcf--stack:focus .pcf__ph { border-color: #ef4700; }
.pcf--stack .pcf__btn { justify-content: center; padding: 16px 24px; height: auto; }
@media (max-width: 767px) {
  .pcf { flex-direction: column; align-items: stretch; gap: 10px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
  .pcf__ph { display: flex; align-items: center; height: 56px; font-size: 16px; background: #fff; border: 2px solid #ff5209; border-radius: 999px; }
  .pcf__btn { justify-content: center; height: auto; padding: 16px 24px; font-size: 17px; }
}
