:root {
  --bg-a: #262b62;
  --bg-b: #3d459f;
  --glass: rgba(255, 255, 255, 0.08);
  --white: rgba(255, 255, 255, 0.96);
  --muted: rgba(255, 255, 255, 0.8);
  --line: rgba(255, 255, 255, 0.18);
  --primary: #267fff;
  --icon: #26446b;
  --green: #33a74c;
  --danger: #e94444;
  --radius: 20px;
  --shadow: 0 3px 16px rgba(0, 0, 0, 0.16);
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body.pc-body {
  margin: 0;
  font-family: Montserrat, system-ui, Segoe UI, Roboto, Arial, sans-serif;
  color: #fff;
  background: radial-gradient(
      1200px 800px at 50% -200px,
      #4850c2 0%,
      var(--bg-b) 35%,
      var(--bg-a) 90%
    )
    fixed;
}

#pc-submit:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.pc-stage {
  min-height: 100%;
  place-items: start center;
  padding: 26px 16px;
}

#pc-site {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 3px 16px;
  border-radius: 60px;
}

.pc-card {
  width: min(660px, 100%);
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  border-radius: 25px;
  box-shadow: var(--shadow);
  padding: 16px 28px 22px;
  position: relative;
}

.pc-top-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  box-shadow: var(--shadow);
  place-items: center;
  margin: -54px auto 10px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  margin-top: 6px;
}
.pc-ttl {
  margin: 4px 0 0;
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(0deg, #fff, #eaf0ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pc-sub {
  opacity: 0.9;
  text-align: center;
  margin-top: 6px;
  font-weight: 600;
}

.pc-bubbles {
  display: grid;
  gap: 10px;
  margin: 16px auto 14px;
  max-width: 680px;
}
.pc-bubble {
  margin: 0;
  padding: 10px 14px;
  text-align: center;
  line-height: 1.55;
  color: var(--muted);
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 14px;
}
.pc-bubble-small {
  margin: 0;
  padding: 6px 0px;
  font-size: 12px;
  text-align: center;
  background: none;
  border: none;
  border-radius: 0;
}

/* state row */
.pc-state-row {
  display: block;
  position: relative;
  grid-template-columns: 28px 1fr 28px 28px;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 10px;
  margin: 8px auto 6px;
  max-width: 620px;
}
.pc-state-pin,
.pc-state-dd,
.pc-state-ok {
  width: 32px;
  height: 32px;
  background-color: RGBA(38, 127, 255, 0.1);
  border-radius: 50%;
  display: inline-block;
  padding: 6px;
}
.pc-state-dd {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}
.pc-state-ok {
  background: none;
  position: absolute;
  right: 44px; /* 12px + ширина стрелки ~28px */
  top: 50%;
  transform: translateY(-50%);
  display: none;
}
.pc-select {
  appearance: none;
  position: relative;
  margin-left: 6px;
  bottom: 4px;
  width: 86%;
  display: inline-block;
  background: transparent;
  padding-right: 72px;
  border: 0;
  color: rgba(38, 68, 107, 1);
  font-weight: 500;
  font-size: 15px;
  outline: none;
  font-family: Montserrat, system-ui, Segoe UI, Roboto, Arial, sans-serif;
}

/* two columns */
.pc-two {
  display: grid;
  grid-template-columns: 100% 1fr;
  gap: 16px;
  margin-top: 16px;
}
.pc-reasons-box {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  display: grid;
  gap: 10px;
}
.pc-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 14px;
  color: var(--muted);
  user-select: none;
}
.pc-check input {
  display: none;
}
.pc-box {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 2px solid #fff;
  display: inline-block;
  position: relative;
}
.pc-check input:checked + .pc-box {
  background: #2c6ce3;
  border-color: #fff;
}
.pc-check input:checked + .pc-box::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 1px;
  width: 8px;
  height: 12px;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 6'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M1 3 L3 5 L7 1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: left top;
}

.pc-i {
  opacity: 0.75;
}
.pc-error {
  margin-top: 6px;
  color: #ffdede;
  background: #e9444430;
  border: 1px solid #e9444470;
  padding: 4px 8px;
  border-radius: 10px;
  font-size: 12px;
  display: none;
}

.pc-fields {
  display: grid;
  gap: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  align-content: center;
}
.pc-input-row {
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  gap: 6px;
  padding: 2px 4px;
  background: #fff;
  color: #292d32;
  height: 46px;
  width: 100%;
  border-radius: 60px;
  border: solid 1px #8286ba;
}
.pc-input {
  height: 36px;
  border: 0;
  outline: 0;
  border-radius: 10px;
  padding: 0 8px;
  color: #292d32;
  font-weight: 500;
  font-size: 14px;
  background: transparent;
  font-family: Montserrat, system-ui, Segoe UI, Roboto, Arial, sans-serif;
}
.pc-input::placeholder {
  color: rgba(38, 68, 107, 0.65);
}
#pc-fname.pc-input,
#pc-lname.pc-input {
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  gap: 6px;
  padding: 2px 16px;
  background: #fff;
  color: #292d32;
  height: 42px;
  border-radius: 60px;
  border: solid 1px #8286ba;
}
.pc-ok {
  width: 20px;
  height: 20px;
      right: 55px;
      position: absolute;
  border-radius: 50%;
  padding: 2px;
  background: radial-gradient(6px 6px at 50% 50%, #fff 40%, #fff0 41%),
    var(--green);
  display: none;
}
.pc-ico {
  width: 32px;
  height: 32px;
  background-color: RGBA(38, 127, 255, 0.1);
  border-radius: 50%;
  display: inline-block;
  padding: 6px;
  mask-repeat: no-repeat;
  mask-size: 14px;
  mask-position: center;
}

.pc-radio-line {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.pc-radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0.9;
  font-size: 12px;
  font-weight: 600;
}
.pc-radio input {
  display: none;
}
.pc-radio span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #fff;
  display: inline-block;
  position: relative;
}
.pc-radio input:checked + span {
  border-color: var(--primary);
}
.pc-radio input:checked + span::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--primary);
  border-radius: 50%;
}

.pc-grid {
  display: flex;
  grid-template-columns: 1fr 1fr;
  flex-direction: column;
  gap: 10px;
}
#pc-phone-wrap,
#pc-radio-wrap,
#pc-names {
  display: none;
}

/* CTA */
.pc-cta {
  margin-top: 18px;
}
.pc-btn {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 12px;
  font-weight: 600;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 28px rgba(38, 127, 255, 0.35);
  cursor: pointer;
  transition: transform 0.08s ease, filter 0.2s ease;
  font-size: 16px;
  font-family: Montserrat, system-ui, Segoe UI, Roboto, Arial, sans-serif;
}
.pc-btn:hover {
  transform: translateY(-1px);
}
.pc-status {
  margin-top: 8px;
  min-height: 18px;
  color: #ffdede;
  width: fit-content;
  background: #e9444430;
  border: 1px solid #e9444470;
  padding: 4px 12px;
  border-radius: 10px;
}

/* success screen */
.pc-success {
  display: none;
  place-items: center;
  min-height: 100vh;
  padding: 16px 16px;
}
.pc-success-card {
  width: min(660px, 100%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow);
}
.pc-success-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid var(--line);
  font-weight: 800;
  margin-top: 4px;
}
.pc-pill-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(6px 6px at 50% 50%, #fff 40%, #fff0 41%),
    var(--green);
}
.pc-success-text {
  color: var(--muted);
  margin: 14px auto 6px;
  max-width: 540px;
}

/* utils */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* responsive */
@media (max-width: 706px) {
  .pc-two {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .pc-ok {
      right: 39px;
}
  .pc-stage {
    padding: 16px 12px;
  }
  .pc-card {
    padding: 12px;
  }
  .pc-bubbles {
    gap: 8px;
  }
}

/* ---- tooltips ---- */
.pc-tip {
  position: fixed;
  z-index: 50;
  max-width: 320px;
  color: #292d32;
  background: #d4d5e0;
  border: 1px solid #8286ba;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
  pointer-events: none;
  font-weight: 500;
}
.pc-tip::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background: #d4d5e0;
  border-left: 1px solid #8286ba;
  border-bottom: 1px solid #8286ba;
  transform: rotate(45deg);
  top: 16%;
  left: -6px;
}

/* invalid phone state */
.pc-input.invalid {
  outline: 2px solid #ff6c6c;
  outline-offset: 2px;
}












select, select option {
  pointer-events: none;
}
@media (max-width: 706px) {
select, select option {
  pointer-events: all;
}
}




.pc-state-panel {
  position: relative;
  margin-top: 10px;
}
.pc-state-panel[hidden] {
  display: none;
}
.pc-state-panel-inner {
  display: grid;
  grid-template-columns: 0fr 1.2fr;
  gap: 10px;
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  transform-origin: top;
  animation: pc-slide 0.24s ease both;
  height: 300px;
}
@keyframes pc-slide {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.pc-state-col--list {
  min-height: 260px;
  max-height: 360px;
  display: grid;
  grid-template-rows: auto 1fr;
}
.pc-state-search {
  margin-bottom: 8px;
}
.pc-state-search .pc-input {
  background: RGBA(38, 127, 255, 0.1);
  color: rgba(38, 68, 107, 0.65);
  height: 36px;
  border-radius: 10px;
}
.pc-state-list {
  list-style: none;
  margin: 0;
  padding: 4px;
  overflow: auto;
  border: 1px solid #e8e9f1;
  border-radius: 10px;
}
.pc-state-item {
  padding: 7px 12px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  font-size: 14px;
  font-weight: 600;
  color: rgba(38, 68, 107, 0.65);
  align-items: center;
  gap: 8px;
  transition: transform 0.12s ease, background 0.12s ease, color 0.12s ease;
}
.pc-state-item:hover {
  background: #267FFF;
  transform: translateX(2px);
  color: #FFF;
}

/* cross-hover highlight: apply soft highlight when hovering via the map or list */
.pc-state-item.is-hover {
  background: #267FFF;
  color: #FFF;
}
.pc-state-item.is-active {
  background: #267FFF;
  color: #FFF;
  font-weight: 700;
}
.pc-state-item .pc-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #c3c8d6;
}

.pc-state-col--map {
  display: grid;
  place-items: center;
  background: #f6f7fb;
  border: 1px solid #e8e9f1;
  border-radius: 10px;
}
.pc-state-map svg {
  max-width: 100%;
  height: auto;
  display: block;
}
.pc-map-state {
  fill: #e9ecf6;
  stroke: #97A6B8;
  stroke-width: 0.8;
}
.pc-map-state:hover {
  fill: #267FFF;
  transition: fill 0.12s ease;
}
.pc-map-state.is-hover {
  fill: #267FFF;
}
.pc-map-state.is-active {
  fill: #267FFF;
  stroke: #1e63c8;
}

@media (max-width: 706px) {
  #pc-state-panel {
    display: none !important;
  }
}


/* Map hover badge */
.pc-state-map { position: relative; }
.pc-map-badge{
  position: absolute;
  top: -1.2rem;
  left: .5rem;
  padding: 6px 10px;
  background: #fff;
  color: #26446B;
  border: 1px solid #d5dde7;
  border-radius: 10px;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.2;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
  pointer-events: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .15s ease, transform .15s ease;
}
.pc-map-badge.is-visible{ opacity:1; transform: translateY(0); }


/* US map: remove default focus ring on states */
#pc-state-map .pc-map-state {
  outline: none;                 /* base */
  -webkit-tap-highlight-color: transparent;
}
#pc-state-map .pc-map-state:focus,
#pc-state-map .pc-map-state:focus-visible {
  outline: none;                 /* no black rectangle */
}