.vpn-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
}

.vpn-modal.is-open {
  display: block;
}

.vpn-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.52);
}

.vpn-modal__dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(980px, calc(100vw - 24px));
  max-height: calc(100vh - 30px);
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
  padding: 24px;
}

.vpn-modal__close {
  position: absolute;
  right: 12px;
  top: 10px;
  width: 38px;
  height: 38px;
  border: 0;
  background: #f1f5f9;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.vpn-modal__title {
  margin: 0 0 14px;
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
}

.vpn-progress {
  margin-bottom: 18px;
}

.vpn-progress__bar {
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
}

.vpn-progress__fill {
  display: block;
  height: 100%;
  width: 25%;
  background: #125123;
  transition: width 0.25s ease;
}

.vpn-progress__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.vpn-progress__step {
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-align: left;
}

.vpn-progress__step .vpn-progress__num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}

.vpn-progress__step .vpn-progress__text {
  font-weight: 700;
  color: #334155;
  font-size: 14px;
}

.vpn-progress__step.is-active,
.vpn-progress__step.is-done {
  border-color: rgba(18, 81, 35, 0.22);
  background: #f8fffa;
}

.vpn-progress__step.is-active .vpn-progress__num,
.vpn-progress__step.is-done .vpn-progress__num {
  background: #125123;
  color: #fff;
}

.vpn-form {
  margin: 0;
}

.vpn-step {
  display: none;
}

.vpn-step.is-active {
  display: block;
}

.vpn-step__head {
  margin-bottom: 18px;
}

.vpn-step__head h3 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
}

.vpn-step__head p {
  margin: 0;
  color: #64748b;
}

.vpn-grid {
  display: grid;
  gap: 14px;
}

.vpn-grid--1 {
  grid-template-columns: 1fr;
}

.vpn-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vpn-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.vpn-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  color: #0f172a;
}

.vpn-field label span {
  color: #b91c1c;
}

.vpn-field input,
.vpn-field textarea,
.vpn-customer input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  color: #0f172a;
  font-size: 15px;
  outline: none;
}

.vpn-field input:focus,
.vpn-field textarea:focus,
.vpn-customer input:focus {
  border-color: #125123;
  box-shadow: 0 0 0 3px rgba(18, 81, 35, 0.12);
}

.vpn-customers {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #f8fafc;
}

.vpn-customers__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.vpn-customers__head h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.vpn-customers__note {
  color: #64748b;
  font-size: 14px;
  margin-bottom: 14px;
}

.vpn-customers__list {
  display: grid;
  gap: 12px;
}

.vpn-customer {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
}

.vpn-customer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.vpn-customer__title {
  font-weight: 800;
  color: #0f172a;
}

.vpn-customer__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.vpn-review {
  display: grid;
  gap: 16px;
}

.vpn-review__section {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
  background: #fff;
}

.vpn-review__section h4 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 800;
}

.vpn-review__list {
  display: grid;
  gap: 8px;
}

.vpn-review__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px dashed #e2e8f0;
  padding-bottom: 8px;
}

.vpn-review__row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.vpn-review__label {
  color: #64748b;
  font-weight: 600;
}

.vpn-review__value {
  color: #0f172a;
  font-weight: 700;
  text-align: right;
}

.vpn-pricebox {
  border: 1px solid rgba(18, 81, 35, 0.18);
  background: #f8fffa;
}

.vpn-total {
  font-size: 18px;
  font-weight: 800;
  color: #125123;
}

.vpn-modal__footer {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.vpn-modal__actions {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.vpn-btn {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  padding: 11px 18px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
  transition: 0.18s ease;
}

.vpn-btn:hover {
  transform: translateY(-1px);
}

.vpn-btn--primary {
  background: #125123;
  border-color: #125123;
  color: #fff;
}

.vpn-btn--ghost {
  background: #fff;
  color: #0f172a;
}

.vpn-btn--danger {
  background: #fff1f2;
  color: #b91c1c;
  border-color: #fecdd3;
}

.vpn-modal__msg {
  min-height: 22px;
  color: #64748b;
  font-weight: 700;
}

.vpn-modal__msg.is-error {
  color: #b91c1c;
}

.vpn-modal__msg.is-ok {
  color: #125123;
}

.vpn-hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .vpn-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vpn-customer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .vpn-modal__dialog {
    width: calc(100vw - 14px);
    padding: 16px;
    top: 50%;
  }

  .vpn-modal__title {
    font-size: 22px;
    padding-right: 34px;
  }

  .vpn-progress__steps {
    grid-template-columns: 1fr 1fr;
  }

  .vpn-grid--2,
  .vpn-grid--4,
  .vpn-customer__grid {
    grid-template-columns: 1fr;
  }

  .vpn-customers__head,
  .vpn-modal__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .vpn-modal__actions {
    width: 100%;
    margin-left: 0;
  }

  .vpn-modal__actions .vpn-btn {
    flex: 1;
  }
}
