.pf-auth-modal[hidden] {
  display: none;
}

.pf-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.pf-auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 16, 13, 0.68);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.pf-auth-modal.is-open .pf-auth-modal-backdrop {
  opacity: 1;
}

.pf-auth-modal-dialog {
  position: relative;
  width: min(700%px, 100%);
  max-height: min(92vh, 860px);
  overflow: hidden;
  background: #fff;
  border: 1px solid #e8f0ec;
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(7, 16, 13, 0.28);
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.pf-auth-modal.is-open .pf-auth-modal-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.pf-auth-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: #71827b;
  background: #fff;
  border: 1px solid #e8f0ec;
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(18, 49, 37, 0.08);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.pf-auth-modal-close:hover {
  color: #333982;
  border-color: rgba(51, 57, 130, 0.2);
  transform: translateY(-1px);
}

.pf-auth-modal-view {
  max-height: min(92vh, 860px);
  overflow-y: auto;
  opacity: 0;
  transform: translateX(18px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.pf-auth-modal-view.is-active {
  opacity: 1;
  transform: translateX(0);
}

.pf-auth-form-panel {
  max-width: 560px;
  margin: 0 auto;
  padding: 48px;
}

.pf-auth-compact-panel {
  max-width: 500px;
}

.pf-auth-modal-header {
  margin-bottom: 8px;
}

.pf-auth-modal-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  color: #fff;
  background: #333982;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
}

.pf-auth-modal-kicker {
  margin: 0 0 10px;
  color: #00ac1f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.pf-auth-modal-header h2,
.pf-onboarding-step h3,
.pf-onboarding-complete h3 {
  color: #1f2b27;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 8px;
}

.pf-auth-modal-header p,
.pf-onboarding-heading p,
.pf-onboarding-complete p {
  color: #71827b;
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

.pf-auth-modal-form {
  display: grid;
  gap: 18px;
}

.pf-auth-field label,
.pf-auth-check label {
  color: #1f2b27;
  font-size: 14px;
  font-weight: 700;
}

.pf-auth-field label {
  display: block;
  margin-bottom: 8px;
}

.pf-auth-field label span {
  color: #91a29b;
  font-size: 12px;
  font-weight: 600;
}

.pf-auth-field input,
.pf-auth-field select,
.pf-auth-field textarea,
.pf-auth-input-icon input {
  width: 100%;
  min-height: 50px;
  color: #1f2b27;
  background: #fff;
  border: 1px solid #e8f0ec;
  border-radius: 8px;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pf-auth-field input,
.pf-auth-field select,
.pf-auth-field textarea {
  padding: 11px 14px;
}

.pf-auth-field textarea {
  resize: vertical;
}

.pf-auth-field input:focus,
.pf-auth-field select:focus,
.pf-auth-field textarea:focus,
.pf-auth-input-icon input:focus {
  outline: 0;
  border-color: rgba(0, 172, 31, 0.55);
  box-shadow: 0 0 0 4px rgba(0, 172, 31, 0.08);
}

.pf-auth-input-icon {
  position: relative;
}

.pf-auth-input-icon > i {
  position: absolute;
  top: 50%;
  left: 15px;
  color: #91a29b;
  transform: translateY(-50%);
  pointer-events: none;
}

.pf-auth-input-icon input {
  padding: 0 16px 0 44px;
}

.pf-auth-password-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.pf-auth-password-toggle,
.pf-auth-link-button,
.pf-auth-switch-text button {
  border: 0;
  background: transparent;
  font: inherit;
}

.pf-auth-password-toggle {
  min-width: 72px;
  min-height: 50px;
  color: #333982;
  background: rgba(51, 57, 130, 0.06);
  border: 1px solid rgba(51, 57, 130, 0.1);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

.pf-auth-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pf-auth-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  padding-left: 0;
}

.pf-auth-check .form-check-input {
  float: none;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  border-color: #cbd8d2;
}

.pf-auth-check .form-check-input:checked {
  background-color: #00ac1f;
  border-color: #00ac1f;
}

.pf-auth-terms-check {
  align-items: flex-start;
}

.pf-auth-link-button,
.pf-auth-switch-text button {
  color: #15804c;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.pf-auth-link-button:hover,
.pf-auth-switch-text button:hover {
  color: #333982;
}

.pf-auth-primary-button,
.pf-auth-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.pf-auth-primary-button {
  color: #fff;
  background: #333982;
  border: 1px solid #333982;
}

.pf-auth-primary-button:hover,
.pf-auth-primary-button:focus {
  color: #fff;
  background: #252a69;
  box-shadow: 0 14px 32px rgba(51, 57, 130, 0.22);
  transform: translateY(-2px);
}

.pf-auth-primary-button:disabled {
  pointer-events: none;
  opacity: 0.55;
  box-shadow: none;
  transform: none;
}

.pf-auth-secondary-button {
  color: #333982;
  background: #fff;
  border: 1px solid rgba(51, 57, 130, 0.18);
}

.pf-auth-secondary-button:hover,
.pf-auth-secondary-button:focus {
  color: #333982;
  border-color: #333982;
  transform: translateY(-1px);
}

.pf-auth-switch-text {
  margin: 22px 0 0;
  color: #71827b;
  font-size: 14px;
  text-align: center;
}

.pf-onboarding {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 640px;
}

.pf-onboarding-stepper {
  position: relative;
  padding: 42px 24px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(51, 57, 130, 0.96), rgba(0, 172, 31, 0.82)),
    url("../images/bg/3.webp") center/cover no-repeat;
}

.pf-onboarding-stepper .pf-auth-modal-mark {
  color: #333982;
  background: #fff;
}

.pf-onboarding-stepper .pf-auth-modal-kicker {
  color: rgba(255, 255, 255, 0.82);
}

.pf-onboarding-stepper h2 {
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 30px;
}

.pf-stepper-list {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pf-stepper-list li {
  position: relative;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  min-height: 74px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  font-weight: 700;
}

.pf-stepper-list li::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 36px;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.22);
}

.pf-stepper-list li:last-child::after {
  display: none;
}

.pf-stepper-dot {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
}

.pf-stepper-dot i {
  display: none;
}

.pf-stepper-list li.is-active {
  color: #fff;
}

.pf-stepper-list li.is-active .pf-stepper-dot {
  color: #333982;
  background: #fff;
}

.pf-stepper-list li.is-complete {
  color: rgba(255, 255, 255, 0.92);
}

.pf-stepper-list li.is-complete .pf-stepper-dot {
  color: #fff;
  background: #00ac1f;
  border-color: #00ac1f;
}

.pf-stepper-list li.is-complete .pf-stepper-dot b {
  display: none;
}

.pf-stepper-list li.is-complete .pf-stepper-dot i {
  display: inline;
}

.pf-onboarding-content {
  position: relative;
  padding: 22px;
  overflow-y: auto;
}

.pf-onboarding-progress {
  height: 5px;
  overflow: hidden;
  background: #edf3f0;
  border-radius: 999px;
  margin-bottom: 15px;
}

.pf-onboarding-progress span {
  display: block;
  width: 25%;
  height: 100%;
  background: linear-gradient(90deg, #333982, #00ac1f);
  border-radius: inherit;
  transition: width 0.3s ease;
}

.pf-onboarding-step {
  animation: pfModalStepIn 0.28s ease both;
}

.pf-onboarding-heading {
  margin-bottom: 18px;
}

.pf-onboarding-heading h3 {
  margin-bottom: 8px;
}

.pf-service-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.pf-service-choice {
  position: relative;
  min-height: 174px;
  padding: 22px;
  text-align: left;
  color: #1f2b27;
  background: #fff;
  border: 1px solid #e8f0ec;
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(18, 49, 37, 0.06);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease, background-color 0.24s ease;
}

.pf-service-choice > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  color: #333982;
  background: rgba(51, 57, 130, 0.08);
  border-radius: 8px;
  font-size: 18px;
}

.pf-service-choice strong,
.pf-service-choice small {
  display: block;
}

.pf-service-choice strong {
  color: #1f2b27;
  font-size: 16px;
  margin-bottom: 8px;
}

.pf-service-choice small {
  color: #71827b;
  font-size: 13px;
  line-height: 1.55;
}

.pf-service-choice:hover {
  border-color: rgba(0, 172, 31, 0.28);
  box-shadow: 0 18px 42px rgba(18, 49, 37, 0.1);
  transform: translateY(-3px);
}

.pf-service-choice.is-selected {
  background: rgba(0, 172, 31, 0.05);
  border-color: #00ac1f;
  box-shadow: 0 18px 42px rgba(0, 172, 31, 0.12);
}

.pf-service-check {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: #fff;
  background: #00ac1f;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.pf-service-choice.is-selected .pf-service-check {
  opacity: 1;
  transform: scale(1);
}

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

.pf-review-grid article {
  padding: 20px;
  background: #f7faf8;
  border: 1px solid #e8f0ec;
  border-radius: 8px;
}

.pf-review-grid h4 {
  color: #333982;
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 12px;
}

.pf-review-grid p {
  margin: 0;
  color: #1f2b27;
  font-weight: 700;
}

.pf-review-grid dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.pf-review-grid dl div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
}

.pf-review-grid dt,
.pf-review-grid dd {
  margin: 0;
  font-size: 14px;
}

.pf-review-grid dt {
  color: #71827b;
  font-weight: 700;
}

.pf-review-grid dd {
  color: #1f2b27;
}

.pf-onboarding-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  /* margin-top: 28px; */
  padding-top: 22px;
  border-top: 1px solid #e8f0ec;
}

.pf-onboarding-actions .pf-auth-primary-button,
.pf-onboarding-actions .pf-auth-secondary-button {
  min-width: 136px;
}

.pf-onboarding-complete {
  display: grid;
  place-items: center;
  min-height: 420px;
  text-align: center;
  animation: pfModalStepIn 0.28s ease both;
}

.pf-onboarding-complete span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  color: #fff;
  background: #00ac1f;
  border-radius: 50%;
  font-size: 22px;
  box-shadow: 0 16px 34px rgba(0, 172, 31, 0.2);
}

.pf-onboarding-complete .pf-auth-primary-button {
  margin-top: 22px;
  min-width: 150px;
}

body.pf-auth-modal-lock {
  overflow: hidden;
}

@keyframes pfModalStepIn {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media only screen and (max-width: 991px) {
  .pf-auth-modal {
    padding: 16px;
  }

  .pf-onboarding {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .pf-onboarding-stepper {
    padding: 28px 28px 22px;
  }

  .pf-stepper-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }

  .pf-stepper-list li {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: auto;
    text-align: center;
    font-size: 12px;
  }

  .pf-stepper-list li::after {
    left: calc(50% + 18px);
    right: calc(-50% + 18px);
    top: 17px;
    bottom: auto;
    width: auto;
    height: 2px;
  }

  .pf-onboarding-content {
    padding: 30px;
  }
}

@media only screen and (max-width: 767px) {
  .pf-auth-modal {
    align-items: stretch;
    padding: 10px;
  }

  .pf-auth-modal-dialog,
  .pf-auth-modal-view {
    max-height: calc(100vh - 20px);
  }

  .pf-auth-modal-close {
    top: 10px;
    right: 10px;
  }

  .pf-auth-form-panel,
  .pf-onboarding-content {
    padding: 28px 20px;
  }

  .pf-auth-modal-header h2,
  .pf-onboarding-step h3,
  .pf-onboarding-complete h3 {
    font-size: 25px;
  }

  .pf-auth-password-row,
  .pf-service-choice-grid,
  .pf-review-grid dl div {
    grid-template-columns: 1fr;
  }

  .pf-auth-meta-row,
  .pf-onboarding-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .pf-auth-secondary-button,
  .pf-auth-primary-button,
  .pf-onboarding-actions .pf-auth-primary-button,
  .pf-onboarding-actions .pf-auth-secondary-button {
    width: 100%;
  }

  .pf-onboarding-stepper {
    padding: 22px 18px;
  }

  .pf-stepper-list {
    overflow-x: auto;
    grid-template-columns: repeat(4, 118px);
    padding-bottom: 4px;
  }
}
.pf-auth-input-icon {
  position: relative;
}

.pf-auth-input-icon input {
  padding-right: 2.75rem;
}

.pf-auth-input-icon .pf-auth-password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--pf-muted, #60706a);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transform: translateY(-50%);
}

.pf-auth-input-icon .pf-auth-password-toggle:hover {
  color: var(--pf-green, #0f7a4e);
  background: rgba(15, 122, 78, 0.08);
}

.pf-auth-input-icon .pf-auth-password-toggle:focus-visible {
  outline: 3px solid rgba(24, 166, 106, 0.28);
  outline-offset: 2px;
}

.pf-auth-error-summary {
  margin: 0 0 4px;
  padding: 12px 14px;
  color: var(--pf-danger, #b33a3a);
  font-size: 13px;
  font-weight: 700;
  background: rgba(179, 58, 58, 0.08);
  border: 1px solid rgba(179, 58, 58, 0.22);
  border-radius: var(--pf-radius, 8px);
}

.pf-auth-error-summary[hidden] {
  display: none;
}

.pf-auth-field-error {
  display: block;
  margin-top: 6px;
  color: var(--pf-danger, #b33a3a);
  font-size: 12px;
  font-weight: 600;
}

.pf-auth-field-error[hidden] {
  display: none;
}

.pf-auth-input-icon input.is-invalid,
.pf-auth-field select.is-invalid,
.pf-auth-field textarea.is-invalid {
  border-color: var(--pf-danger, #b33a3a) !important;
}

.pf-auth-primary-button.is-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.pf-auth-primary-button.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: pf-auth-spin 0.7s linear infinite;
}

@keyframes pf-auth-spin {
  to {
    transform: rotate(360deg);
  }
}
