.pf-page {
  --pf-text: var(--kt-color-text, #172540);
  --pf-muted: var(--kt-color-text-muted, #6b7b93);
  --pf-subtle: var(--kt-color-text-subtle, #8a98ad);
  --pf-border: var(--kt-color-border, #d7e0eb);
  --pf-border-strong: var(--kt-color-border-strong, #afbed0);
  --pf-surface: var(--kt-color-surface, #fff);
  --pf-soft: var(--kt-color-surface-soft, #f6f8fb);
  --pf-control: var(--kt-color-control, #fbfcfe);
  --pf-primary: var(--kt-color-primary, #1c4778);
  --pf-primary-strong: var(--kt-color-primary-strong, #12365f);
  --pf-primary-soft: var(--kt-color-primary-soft, #edf3fa);
  --pf-accent: var(--kt-color-accent, #d88c32);
  --pf-danger: var(--kt-color-danger, #cf4253);
  width: 100%;
  padding: 8px 0 38px;
  color: var(--pf-text);
}

.pf-page *,
.pf-page *::before,
.pf-page *::after {
  box-sizing: border-box;
}

.pf-container {
  width: min(100% - 32px, 1040px);
  margin-inline: auto;
}

.pf-hero {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border: 1px solid var(--pf-border);
  border-radius: 20px;
  background: var(--pf-surface);
  box-shadow: 0 12px 32px rgba(24, 49, 82, .07);
}

.pf-hero__identity,
.pf-surface__identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
}

.pf-hero__icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, #265786, #153c68);
  box-shadow: 0 8px 18px rgba(21, 60, 104, .18);
  font-size: 21px;
}

.pf-hero__eyebrow {
  display: block;
  margin-bottom: 3px;
  color: var(--pf-accent);
  font-size: 10px;
  font-weight: 850;
}

.pf-hero h1 {
  margin: 0;
  color: var(--pf-text);
  font-size: clamp(20px, 2vw, 27px);
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: 1.3;
}

.pf-hero p {
  margin: 4px 0 0;
  color: var(--pf-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
}

.pf-surface {
  margin-top: 16px;
  overflow: visible;
  border: 1px solid var(--pf-border);
  border-radius: 20px;
  background: var(--pf-surface);
  box-shadow: 0 15px 38px rgba(24, 49, 82, .075);
}

.pf-surface__header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--pf-border);
  border-radius: 20px 20px 0 0;
  background: color-mix(in srgb, var(--pf-soft) 62%, var(--pf-surface));
}

.pf-surface__icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--pf-border);
  border-radius: 11px;
  color: var(--pf-primary);
  background: var(--pf-primary-soft);
  font-size: 17px;
}

.pf-surface__header h2 {
  margin: 0;
  color: var(--pf-text);
  font-size: 15px;
  font-weight: 850;
}

.pf-surface__header p {
  margin: 3px 0 0;
  color: var(--pf-muted);
  font-size: 11px;
  font-weight: 600;
}

.pf-language-pair {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid var(--pf-border);
  border-radius: 999px;
  color: var(--pf-muted);
  background: var(--pf-surface);
  font-size: 10px;
  letter-spacing: .04em;
}

.pf-language-pair i {
  color: var(--pf-accent);
}

.pf-form__body {
  padding: 22px;
}

.pf-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.pf-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.pf-field label {
  min-height: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  color: var(--pf-text);
  font-size: 12px;
  font-weight: 800;
}

.pf-field label b {
  min-width: 27px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--pf-border);
  border-radius: 6px;
  color: var(--pf-muted);
  background: var(--pf-soft);
  font-size: 9px;
  letter-spacing: .05em;
}

.pf-control {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  border: 1px solid var(--pf-border);
  border-radius: 13px;
  outline: 0;
  color: var(--pf-text);
  background: var(--pf-control);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.pf-control::placeholder {
  color: var(--pf-subtle);
  opacity: 1;
}

.pf-control:hover {
  border-color: var(--pf-border-strong);
}

.pf-control:focus {
  border-color: var(--pf-primary);
  background: var(--pf-surface);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pf-primary) 12%, transparent);
}

.pf-field__error {
  min-height: 18px;
  display: flex !important;
  align-items: center;
  gap: 4px;
  margin: 0 !important;
  color: var(--pf-danger);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-2px);
  transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
}

.pf-field.is-invalid .pf-control {
  border-color: var(--pf-danger);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pf-danger) 11%, transparent);
}

.pf-field.is-invalid .pf-field__error {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.pf-field--status {
  grid-column: 1 / -1;
  width: min(100%, 340px);
}

.pf-select {
  position: relative;
}

.pf-select > i {
  position: absolute;
  inset-inline-start: 14px;
  top: 50%;
  z-index: 3;
  color: var(--pf-primary);
  font-size: 16px;
  transform: translateY(-50%);
  pointer-events: none;
}

.pf-select__native {
  width: 100%;
  height: 50px;
  padding-inline: 42px 38px;
  border: 1px solid var(--pf-border);
  border-radius: 13px;
  color: var(--pf-text);
  background: var(--pf-control);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.pf-select[data-pf-select-enhanced="true"] .pf-select__native {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

.pf-select__trigger {
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-inline: 42px 14px;
  border: 1px solid var(--pf-border);
  border-radius: 13px;
  outline: 0;
  color: var(--pf-text);
  background: var(--pf-control);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.pf-select__trigger:hover {
  border-color: var(--pf-border-strong);
}

.pf-select__trigger:focus,
.pf-select.is-open .pf-select__trigger {
  border-color: var(--pf-primary);
  background: var(--pf-surface);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pf-primary) 12%, transparent);
}

.pf-select__trigger > i {
  transition: transform .18s ease;
}

.pf-select.is-open .pf-select__trigger > i {
  transform: rotate(180deg);
}

.pf-select__menu {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 7px);
  z-index: 30;
  overflow: hidden;
  padding: 5px;
  border: 1px solid var(--pf-border);
  border-radius: 13px;
  background: var(--pf-surface);
  box-shadow: 0 16px 38px rgba(19, 43, 75, .16);
}

.pf-select__menu[hidden] {
  display: none !important;
}

.pf-select__option {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border: 0;
  border-radius: 9px;
  outline: 0;
  color: var(--pf-text);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  text-align: start;
  cursor: pointer;
}

.pf-select__option:hover,
.pf-select__option:focus {
  color: var(--pf-primary);
  background: var(--pf-primary-soft);
}

.pf-select__option > i {
  color: var(--pf-primary);
  opacity: 0;
}

.pf-select__option.is-selected {
  color: var(--pf-primary);
  background: var(--pf-primary-soft);
  font-weight: 850;
}

.pf-select__option.is-selected > i {
  opacity: 1;
}

.pf-form__footer {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 11px 20px;
  border-top: 1px solid var(--pf-border);
  border-radius: 0 0 20px 20px;
  background: color-mix(in srgb, var(--pf-soft) 65%, var(--pf-surface));
}

.pf-form__message {
  margin: 8px 0 0;
  color: var(--pf-danger);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.pf-form__message:empty {
  display: none;
}

.pf-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.pf-button:hover {
  transform: translateY(-1px);
}

.pf-button--primary {
  min-width: 126px;
  color: #fff !important;
  border-color: var(--pf-primary-strong);
  background: linear-gradient(145deg, #265786, #153c68);
  box-shadow: 0 8px 17px rgba(21, 60, 104, .18);
}

.pf-button--secondary {
  color: var(--pf-primary) !important;
  border-color: var(--pf-border);
  background: var(--pf-surface);
}

.pf-button:disabled {
  color: #64748b !important;
  border-color: #c5cfdb;
  background: #dfe6ee;
  box-shadow: none;
  opacity: 1;
  cursor: not-allowed;
  transform: none;
}

.pf-spinner {
  animation: pf-spin .8s linear infinite;
}

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

[data-theme="dark"] .pf-page,
[data-bs-theme="dark"] .pf-page,
.dark-layout .pf-page {
  --pf-text: #edf3fb;
  --pf-muted: #aab8ca;
  --pf-subtle: #8493a8;
  --pf-border: #394b62;
  --pf-border-strong: #53677f;
  --pf-surface: #1d2837;
  --pf-soft: #222f40;
  --pf-control: #192432;
  --pf-primary: #8fb9e7;
  --pf-primary-strong: #557fae;
  --pf-primary-soft: #263c55;
}

@media (max-width: 767.98px) {
  .pf-container {
    width: min(100% - 20px, 1040px);
  }

  .pf-hero {
    align-items: flex-start;
    padding: 16px;
  }

  .pf-hero__icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .pf-hero .pf-button {
    min-width: 42px;
    width: 42px;
    padding: 0;
  }

  .pf-hero .pf-button span {
    display: none;
  }

  .pf-form__grid {
    grid-template-columns: 1fr;
  }

  .pf-field--status {
    grid-column: auto;
    width: 100%;
  }

  .pf-form__body {
    padding: 17px;
  }
}

@media (max-width: 479.98px) {
  .pf-language-pair {
    display: none;
  }

  .pf-surface__header {
    padding: 12px 15px;
  }

  .pf-form__footer {
    padding-inline: 15px;
  }

  .pf-button--primary {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pf-page *,
  .pf-page *::before,
  .pf-page *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
