/* Phone Numbers › Bring your numbers (porting.js): panel, wizard sheet, status timeline. */

.port-panel .panel-header .field-help {
  margin: 4px 0 0;
}
.port-list {
  list-style: none;
  margin: 0;
  padding: 14px 18px 18px;
  display: grid;
  gap: 10px;
}
.port-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid #ececf6;
  border-radius: 16px;
  background: #fff;
  transition: border-color 200ms, box-shadow 200ms, transform 220ms var(--ease-out, ease);
  animation: rise-in 360ms var(--ease-out, ease) both;
}
.port-card:hover {
  border-color: #dcd6fb;
  box-shadow: 0 8px 22px #1b1a4a12;
  transform: translateY(-1px);
}
.port-card.exception {
  border-color: #f6dfb5;
  background: linear-gradient(150deg, #fffaf1, #fff);
}
.port-card.ported {
  border-color: #cfe9da;
  background: linear-gradient(150deg, #f4fbf7, #fff);
}
.port-card-main {
  flex: 1;
  display: grid;
  gap: 8px;
  min-width: 0;
}
.port-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.port-numbers {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.port-foc {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: #128a4b;
}
.port-foc .icon {
  width: 14px;
  height: 14px;
}
.port-pill {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 650;
  background: #f1f1f8;
  color: #5b5f7a;
}
.port-pill.blue {
  background: #efeaff;
  color: #4a35c0;
}
.port-pill.amber {
  background: #fff4e5;
  color: #b45309;
}
.port-pill.green {
  background: #1fbf6a1f;
  color: #128a4b;
}

/* Progress timeline */
.port-timeline {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 4px 0 0;
  padding: 0;
  counter-reset: none;
}
.port-timeline li {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 6px;
  font-size: 11.5px;
  color: #8a8ea8;
}
.port-timeline li::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 12px;
  right: 0;
  height: 2px;
  background: #e6e6f2;
}
.port-timeline li:last-child::before {
  display: none;
}
.port-timeline li span {
  position: relative;
  z-index: 1;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #d6d6e6;
}
.port-timeline li.done {
  color: #3d4160;
}
.port-timeline li.done::before {
  background: linear-gradient(90deg, #22c06f, #16a35a);
}
.port-timeline li.done span {
  background: #16a35a;
  border-color: #16a35a;
}
.port-timeline li.current {
  color: #2d2170;
  font-weight: 650;
}
.port-timeline li.current span {
  border-color: #5843ce;
  box-shadow: 0 0 0 4px #5843ce26;
  animation: port-pulse 1.8s ease-in-out infinite;
}
.port-timeline li.attention {
  color: #b45309;
  font-weight: 650;
}
.port-timeline li.attention span {
  border-color: #d97706;
  background: #fff4e5;
}
@keyframes port-pulse {
  50% {
    box-shadow: 0 0 0 7px #5843ce12;
  }
}

/* Empty state */
.port-empty {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 28px;
  padding: 22px 24px 26px;
}
.port-empty-art {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 22px;
  border-radius: 20px;
  background: linear-gradient(150deg, #f6f4ff, #fff);
  border: 1px solid #ebe7fd;
}
.port-empty-art > .icon {
  width: 34px;
  height: 34px;
  color: #8a8ea8;
}
.port-empty-art > span .icon {
  width: 22px;
  height: 22px;
  color: #5843ce;
  animation: port-slide 1.8s var(--ease-in-out, ease-in-out) infinite;
}
.port-empty-art img {
  width: 40px;
  height: 40px;
}
@keyframes port-slide {
  0%, 100% {
    transform: translateX(-3px);
    opacity: 0.6;
  }
  50% {
    transform: translateX(4px);
    opacity: 1;
  }
}
.port-empty ul,
.port-notes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.port-empty li,
.port-notes li {
  display: flex;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #4b4f66;
}
.port-empty li .icon {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: #128a4b;
}
.port-notes li .icon {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: #5843ce;
}

/* Wizard sheet */
.port-sheet .pay-sheet-body {
  grid-template-columns: minmax(220px, 0.62fr) minmax(0, 1.4fr);
}
.port-stepper {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 4px;
}
.port-stepper li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  color: #8a8ea8;
  transition: background-color 220ms, color 220ms;
}
.port-stepper li span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  background: #efeff7;
  color: #6b6f8c;
}
.port-stepper li span .icon {
  width: 14px;
  height: 14px;
}
.port-stepper li.current {
  background: #fff;
  color: #14172b;
  font-weight: 650;
  box-shadow: 0 1px 3px #1b1a4a14;
}
.port-stepper li.current span {
  background: #5843ce;
  color: #fff;
}
.port-stepper li.done {
  color: #3d4160;
}
.port-stepper li.done span {
  background: #16a35a;
  color: #fff;
}
.port-foc-big {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 14px 0;
  padding: 14px;
  border-radius: 14px;
  background: #f0faf4;
  color: #128a4b;
}
.port-foc-big .icon {
  width: 26px;
  height: 26px;
}
.port-foc-big span {
  display: grid;
  font-size: 12.5px;
}
.port-foc-big strong {
  font-size: 16px;
  color: #0f5132;
}
.port-step {
  display: grid;
  gap: 14px;
  padding: 10px 10px 4px;
  animation: rise-in 320ms var(--ease-out, ease) both;
}
.port-step h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.3px;
}
.port-step h4 {
  margin: 8px 0 0;
  font-size: 13px;
}
.port-step > .field-help {
  margin: -6px 0 0;
}
.port-step textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  line-height: 1.7;
  resize: vertical;
}
.port-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.port-form > h3,
.port-form > .field-help,
.port-form .span-2 {
  grid-column: 1 / -1;
}
.port-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #3d4160;
}
.port-form label {
  align-content: start;
}
.port-form label small {
  font-weight: 400;
  color: #8a8ea8;
}
.port-form input,
.port-form select {
  width: 100%;
  min-height: 40px;
  font-weight: 400;
}
.port-form fieldset {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 4px 0 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.port-form fieldset legend {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 650;
}
.port-form .port-address .span-2 {
  grid-column: 1 / -1;
}
.port-type {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
.port-type .reason > span {
  display: grid;
  gap: 2px;
}
.port-type .reason small {
  font-weight: 400;
  color: #6b6f8c;
}
.port-type .reason input:checked + span small {
  color: #4a35c0;
}
.port-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.port-actions .button .icon {
  width: 16px;
  height: 16px;
}
.port-actions .danger {
  margin-right: auto;
}

/* Portability results */
.port-check {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.port-check li {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13.5px;
  animation: rise-in 280ms var(--ease-out, ease) both;
}
.port-check li:nth-child(2) { animation-delay: 60ms; }
.port-check li:nth-child(3) { animation-delay: 120ms; }
.port-check li:nth-child(4) { animation-delay: 180ms; }
.port-check li.ok {
  background: #f0faf4;
}
.port-check li.no {
  background: #fff3f4;
}
.port-check li > span:last-child {
  color: #5b5f7a;
}
.port-check-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #fff;
}
.ok .port-check-icon {
  background: #16a35a;
}
.no .port-check-icon {
  background: #c4162c;
}
.port-check-icon .icon {
  width: 12px;
  height: 12px;
}

/* Documents */
.port-doc {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #ececf6;
  border-radius: 16px;
  background: #fcfcff;
  transition: border-color 200ms, background-color 200ms;
}
.port-doc.done {
  border-color: #cfe9da;
  background: linear-gradient(150deg, #f4fbf7, #fff);
}
.port-doc-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.port-doc-head p {
  margin: 2px 0 0;
}
.port-doc-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #efeaff;
  color: #5843ce;
}
.port-doc.done .port-doc-icon {
  background: #16a35a;
  color: #fff;
  animation: pop-in 380ms var(--ease-spring, ease) both;
}
.port-doc-icon .icon {
  width: 18px;
  height: 18px;
}
.port-loa {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.port-drop {
  position: relative;
  display: block;
  cursor: pointer;
}
.port-drop input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.port-drop > span {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 16px;
  border: 1.5px dashed #d0cbef;
  border-radius: 14px;
  font-size: 13px;
  color: #5b5f7a;
  text-align: center;
  transition: border-color 200ms, background-color 200ms, transform 200ms var(--ease-out, ease);
}
.port-drop > span .icon {
  width: 22px;
  height: 22px;
  color: #5843ce;
}
.port-drop > span small {
  color: #8a8ea8;
}
.port-drop:hover > span,
.port-drop.over > span {
  border-color: #5843ce;
  background: #f8f6ff;
}
.port-drop.over > span {
  transform: scale(1.01);
}
.port-drop input:focus-visible + span {
  outline: 2px solid #5843ce;
  outline-offset: 2px;
}

/* Review */
.port-review {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 14px;
  border-radius: 14px;
  background: #f8f8fc;
}
.port-review dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #8a8ea8;
}
.port-review dd {
  margin: 4px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
.port-missing,
.port-ready,
.port-live {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13.5px;
}
.port-missing {
  background: #fff4e5;
  color: #92400e;
}
.port-ready {
  background: #efeaff;
  color: #2d2170;
}
.port-live {
  background: #f0faf4;
  color: #0f5132;
}
.port-missing .icon,
.port-ready .icon,
.port-live .icon {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
}
.port-confirm {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1.5px solid #e3e4f1;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.5;
  cursor: pointer;
}
.port-confirm input {
  flex: none;
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 2px 0 0;
  padding: 0;
  accent-color: #5843ce;
}
.port-exception {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(150deg, #fff8ec, #fff);
  border: 1px solid #f6dfb5;
}
.port-exception > .icon {
  flex: none;
  width: 20px;
  height: 20px;
  color: #b45309;
}
.port-exception .button {
  margin-top: 10px;
}
.port-exception p {
  margin: 4px 0 0;
  font-size: 13.5px;
}

/* Status activity */
.port-events {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.port-events li {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 0 0 14px;
}
.port-events li::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 14px;
  bottom: 0;
  width: 2px;
  background: #ececf6;
}
.port-events li:last-child::before {
  display: none;
}
.port-event-dot {
  position: relative;
  z-index: 1;
  flex: none;
  width: 12px;
  height: 12px;
  margin-top: 3px;
  border-radius: 50%;
  background: #5843ce;
}
.port-events li.comment .port-event-dot {
  background: #f59e0b;
}
.port-events li.note .port-event-dot {
  background: #16a35a;
}
.port-events strong {
  font-size: 13.5px;
}
.port-events p {
  margin: 2px 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: #4b4f66;
  white-space: pre-wrap;
}
.port-events time {
  font-size: 11.5px;
  color: #8a8ea8;
}
.port-message {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}
.port-message textarea {
  font-weight: 400;
}

@media (max-width: 800px) {
  .port-sheet .pay-sheet-body {
    grid-template-columns: 1fr;
  }
  .port-stepper {
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    margin-bottom: 8px;
  }
  .port-stepper li {
    flex-direction: column;
    gap: 4px;
    padding: 8px 4px;
    font-size: 11px;
    text-align: center;
  }
  .port-steps .pay-note {
    display: none;
  }
}
@media (max-width: 700px) {
  .port-panel .panel-header {
    flex-wrap: wrap;
    gap: 12px;
  }
  .port-card {
    flex-direction: column;
    align-items: stretch;
  }
  .port-empty {
    grid-template-columns: 1fr;
  }
  .port-empty-art {
    justify-self: start;
  }
  .port-form,
  .port-form fieldset,
  .port-type,
  .port-review {
    grid-template-columns: 1fr !important;
  }
  .port-timeline li {
    font-size: 10.5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .port-card,
  .port-step,
  .port-check li,
  .port-doc.done .port-doc-icon,
  .port-timeline li.current span,
  .port-empty-art > span .icon {
    animation: none;
  }
}
