/* Форма клиента по ссылке от агента */

body.agentpro-client-form-page {
  background: #f4f4f5;
}

.apf {
  --apf-accent: #0e4d4d;
  --apf-accent-dark: #0a3a3a;
  --apf-bg: #f4f4f5;
  --apf-card: #ffffff;
  --apf-border: #e4e4e7;
  --apf-muted: #71717a;
  --apf-text: #18181b;
  --apf-field-h: 40px;
  --apf-gap: 8px;
  --apf-block-pad: 12px 14px;
  width: 100%;
  max-width: min(96vw, 1280px);
  margin: 0 auto;
  padding: 20px max(20px, env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom))
    max(20px, env(safe-area-inset-left));
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--apf-text);
  box-sizing: border-box;
  overflow-x: hidden;
}

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

.apf__header {
  margin-bottom: 12px;
}

.apf__title {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--apf-accent-dark);
}

.apf--gate {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 28px;
}

.apf__gate-shell {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.apf__gate-header {
  margin-bottom: 0;
  text-align: center;
}

.apf__gate-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  max-width: 22em;
  margin-left: auto;
  margin-right: auto;
}

.apf__gate-title-line1,
.apf__gate-title-line2 {
  display: block;
  line-height: 1.3;
}

.apf[hidden] {
  display: none !important;
}

.apf__gate-card {
  max-width: none;
  width: 100%;
  margin: 16px 0 0;
  padding: 24px 20px;
  border-radius: 16px;
  border: 1px solid var(--apf-border);
  background: var(--apf-card);
  box-shadow: 0 8px 24px rgb(24 24 27 / 6%);
}

.apf__gate-lead {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--apf-text);
}

.apf__gate-hint {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--apf-muted);
  text-align: center;
}

.apf__gate-form {
  display: grid;
  gap: 12px;
}

.apf__gate-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--apf-border);
  border-radius: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-align: center;
  color: var(--apf-text);
  background: #fff;
}

.apf__gate-input:focus {
  outline: none;
  border-color: var(--apf-accent);
  box-shadow: 0 0 0 3px rgb(14 77 77 / 12%);
}

.apf__gate-submit {
  width: 100%;
}

.apf__gate-error {
  margin-top: 12px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.apf__resume {
  margin: 12px 0 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.apf__req {
  color: #dc2626;
  font-style: normal;
  font-weight: 700;
}

.apf__section-title {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--apf-accent-dark);
}

.apf__upload {
  display: grid;
  gap: 10px;
}

.apf__docs-checklist-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(14, 77, 77, 0.14) !important;
  border-radius: 12px;
  background: rgba(14, 77, 77, 0.06) !important;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  color: var(--apf-accent) !important;
  cursor: pointer;
  box-shadow: none !important;
  text-align: left;
}

.apf__panel {
  display: block;
  margin-bottom: 16px;
  padding-bottom: 4px;
  scroll-margin-top: 12px;
}

.apf__panel + .apf__panel {
  padding-top: 8px;
  border-top: 1px solid var(--apf-border);
}

.apf__manual-intro {
  margin: 0 0 12px;
  color: var(--apf-muted);
  font-size: 14px;
  line-height: 1.45;
}

/* Ручной ввод: 2 колонки на широком экране — страхователь слева, авто справа */
@media (min-width: 1024px) {
  #apf-panel-manual.is-active {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
  }

  #apf-panel-manual.is-active > .apf__section-title,
  #apf-panel-manual.is-active > .apf__manual-intro {
    grid-column: 1 / -1;
  }

  #apf-panel-manual.is-active > .apf__block:nth-child(3) {
    grid-column: 1;
    grid-row: 3;
  }

  #apf-panel-manual.is-active > .apf__block:nth-child(4) {
    grid-column: 1;
    grid-row: 4;
  }

  #apf-panel-manual.is-active > .apf__block:nth-child(5) {
    grid-column: 2;
    grid-row: 3 / span 2;
  }

  #apf-drivers-section {
    grid-column: 1 / -1;
  }
}

.apf__docs-checklist-toggle:hover,
.apf__docs-checklist-toggle:focus-visible {
  background: rgba(14, 77, 77, 0.1) !important;
  outline: none;
}

.apf__docs-checklist-toggle > span {
  flex: 1;
  min-width: 0;
}

.apf__docs-checklist-chevron {
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.apf__docs-checklist-toggle.is-open .apf__docs-checklist-chevron {
  transform: rotate(180deg);
}

.apf__docs-checklist {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(14, 77, 77, 0.06);
  border: 1px solid rgba(14, 77, 77, 0.12);
}

.apf__docs-checklist ul {
  margin: 0;
  padding: 0 0 0 18px;
  display: grid;
  gap: 8px;
}

.apf__docs-checklist li {
  font-size: 14px;
  line-height: 1.45;
  color: var(--apf-text);
}

.apf__docs-checklist li strong {
  font-weight: 700;
}

.apf__upload-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: 2px dashed #b9dce1;
  border-radius: 14px;
  background: #f8fcfb;
  padding: 24px 16px 18px;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.apf__upload-drop-icon {
  flex-shrink: 0;
  color: var(--apf-accent);
}

.apf__upload-drop.is-dragover {
  border-color: var(--apf-accent);
  background: #eef9f6;
}

.apf__upload-drop.has-files {
  border-color: #9fd1c9;
  background: #f3fbf9;
}

.apf__upload-drop-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--apf-text);
}

.apf__upload-drop-hint {
  margin: 0;
  max-width: 28rem;
  font-size: 13px;
  line-height: 1.45;
  color: var(--apf-muted);
}

.apf__upload-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 420px;
  margin-top: 4px;
}

.apf__upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #b9dce1 !important;
  background: #fff !important;
  color: var(--apf-accent-dark) !important;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: none !important;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.apf__upload-btn:hover,
.apf__upload-btn:focus {
  background: #eaf7f4 !important;
  border-color: #6bb9ac !important;
  outline: none;
}

.apf__upload-btn--camera::before,
.apf__upload-btn--gallery::before {
  content: '';
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: center / contain no-repeat;
}

.apf__upload-btn--camera::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230e4d4d' stroke-width='1.8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M6.827 6.828a4 4 0 015.656 0M9 10h6M7 4h2l1-2h4l1 2h2a2 2 0 012 2v12a2 2 0 01-2 2H7a2 2 0 01-2-2V6a2 2 0 012-2z'/%3E%3C/svg%3E");
}

.apf__upload-btn--gallery::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230e4d4d' stroke-width='1.8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z'/%3E%3C/svg%3E");
}

.apf__files-count {
  margin: 16px 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--apf-muted);
}

.apf__files-count:empty {
  display: none;
}

.apf__file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.apf__files {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 100%;
}

.apf__files:empty {
  display: none;
}

.apf__file-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 10px 12px;
  background: var(--apf-card);
  border: 1px solid var(--apf-border);
  border-radius: 12px;
}

.apf__file-meta {
  min-width: 0;
  overflow: hidden;
}

.apf__file-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  background: #f1f5f9;
  border: 1px solid var(--apf-border);
}

.apf__file-thumb--doc {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
}

.apf__file-name {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.apf__file-size {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--apf-muted);
}

.apf__file-remove {
  border: none !important;
  background: none !important;
  color: var(--apf-muted) !important;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 4px;
  min-width: auto;
  min-height: 44px;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  box-shadow: none !important;
}

.apf__file-remove:hover {
  color: #b91c1c !important;
}

.apf__block {
  margin-bottom: 10px;
  padding: var(--apf-block-pad);
  background: var(--apf-card);
  border: 1px solid var(--apf-border);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.apf__contacts {
  margin-bottom: 12px;
}

.apf__block-title {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--apf-accent-dark);
}

.apf__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--apf-gap);
}

.apf__fields--driver {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .apf__fields--driver {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .apf__field--drv-fio {
    grid-column: 1 / -1;
  }

  .apf__field--vin {
    max-width: 13.5rem;
  }
}

.apf__field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.apf__field--full {
  grid-column: 1 / -1;
}

.apf__field--vin {
  max-width: 100%;
}

.apf__field--vin input {
  font-family: ui-monospace, 'Cascadia Code', 'Segoe UI Mono', monospace;
  letter-spacing: 0.04em;
}

.apf__field span {
  font-size: 12px;
  font-weight: 600;
  color: var(--apf-muted);
  line-height: 1.25;
}

.apf__field input,
.apf__field select {
  width: 100%;
  min-height: var(--apf-field-h);
  padding: 7px 10px;
  border: 1px solid var(--apf-border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: var(--apf-text);
}

.apf__check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.35;
  cursor: pointer;
  margin-bottom: 8px;
}

.apf__check--driver-ph {
  margin-bottom: 8px;
}

.apf__drivers {
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
}

.apf__driver-card {
  padding: 10px 12px;
  border: 1px solid var(--apf-border);
  border-radius: 10px;
  background: #fafafa;
}

.apf__driver-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.apf__driver-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--apf-accent-dark);
}

.apf__driver-remove {
  margin: 0;
  border: none !important;
  background: none !important;
  color: var(--apf-muted) !important;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
  min-height: auto;
  box-shadow: none !important;
  flex-shrink: 0;
}

.apf__driver-remove:hover {
  color: #b91c1c !important;
}

.apf__add-driver {
  width: 100%;
  min-height: 40px;
  padding: 8px 14px;
  font-size: 14px;
}

@media (min-width: 1024px) {
  .apf__add-driver {
    width: auto;
    min-width: 200px;
  }

  /* В узкой колонке — 2 поля в ряд */
  #apf-panel-manual.is-active > .apf__block:nth-child(1) .apf__fields,
  #apf-panel-manual.is-active > .apf__block:nth-child(2) .apf__fields,
  #apf-panel-manual.is-active > .apf__block:nth-child(3) .apf__fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #apf-drivers-section .apf__fields--driver {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: end;
  }

  #apf-drivers-section .apf__field--drv-fio {
    grid-column: auto;
  }
}

.apf__field select {
  appearance: auto;
}

.apf__field input:focus {
  outline: none;
  border-color: var(--apf-accent);
  box-shadow: 0 0 0 3px rgba(14, 77, 77, 0.12);
}

.apf__field--suggest .apf__suggest-wrap {
  position: relative;
}

.apf__suggest-list {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  margin: 0;
  padding: 6px;
  list-style: none;
  max-height: 240px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--apf-border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.apf__suggest-item {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.35;
  cursor: pointer;
}

.apf__suggest-item:hover,
.apf__suggest-item.is-active {
  background: #ecfdf5;
  color: var(--apf-accent-dark);
}

.apf__check input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  flex-shrink: 0;
}

.apf__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  box-shadow: none;
  text-decoration: none;
}

.apf__btn--secondary {
  background: #fff !important;
  border-color: #b9dce1 !important;
  color: var(--apf-accent-dark) !important;
}

.apf__btn--primary {
  width: 100%;
  min-height: 52px;
  background: var(--apf-accent) !important;
  color: #fff !important;
  border-color: var(--apf-accent-dark) !important;
  box-shadow: 0 4px 14px rgba(14, 77, 77, 0.22) !important;
  white-space: normal;
  line-height: 1.25;
  text-align: center;
}

.apf__btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.apf__footer {
  position: sticky;
  bottom: 0;
  z-index: 20;
  margin: 0;
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--apf-bg) 75%, rgba(244, 244, 245, 0));
}

.apf__field input.apf__input--error,
.apf__field select.apf__input--error,
.apf__field textarea.apf__input--error {
  border-color: #f43f5e;
  background: #fff1f2;
}

.apf__field-hint {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.3;
  color: #be123c;
}

.apf__field-note {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.35;
  color: #64748b;
}

.apf__error {
  margin: 0 0 12px;
  padding: 12px;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  font-size: 14px;
}

.apf__saved {
  margin-top: 16px;
  padding: 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--apf-border);
}

.apf__saved-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--apf-muted);
}

.apf__saved-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.apf__saved-item {
  font-size: 14px;
  padding: 8px 10px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--apf-border);
}

.apf__success {
  margin-bottom: 14px;
  padding: 18px;
  border-radius: 14px;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  text-align: center;
}

.apf__success-title {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 800;
  color: #065f46;
}

.apf__success-text {
  margin: 0;
  font-size: 15px;
  color: #047857;
}

.apf--invalid,
.apf--done {
  max-width: min(96vw, 640px);
  margin: 24px auto;
  padding: 20px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--apf-border);
}

@media (min-width: 900px) {
  .apf__fields:not(.apf__fields--driver) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .apf__field--full {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .apf {
    padding-top: 12px;
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }

  .apf__title {
    font-size: 1.25rem;
  }

  .apf__block {
    padding: 10px 12px;
  }

  .apf__field input,
  .apf__field select {
    font-size: 16px;
  }

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

  .apf__upload-drop {
    padding: 18px 12px;
  }

  .apf__upload-drop-hint {
    font-size: 12px;
    line-height: 1.4;
  }

  .apf__upload-actions {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .apf__upload-btn {
    min-height: 48px;
  }

  .apf__btn--primary {
    font-size: 15px;
    padding: 14px 12px;
  }

  .apf__file-item {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px 10px;
  }

  .apf__file-thumb {
    width: 48px;
    height: 48px;
  }

  .apf__file-remove {
    font-size: 12px;
    padding: 8px 2px;
  }
}

.apf__agree a {
  color: var(--apf-accent);
  text-decoration: underline;
  font-weight: 600;
}

.apf__agree a:hover {
  color: var(--apf-accent-dark);
}

.apf-privacy {
  max-width: min(96vw, 800px);
  margin: 0 auto;
  padding: 24px 20px 48px;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #18181b;
  line-height: 1.55;
}

.apf-privacy__meta {
  margin: 0 0 8px;
  font-size: 13px;
  color: #71717a;
}

.apf-privacy__title {
  margin: 0 0 16px;
  font-size: 1.75rem;
  line-height: 1.2;
}

.apf-privacy h2 {
  margin: 28px 0 10px;
  font-size: 1.125rem;
}

.apf-privacy p,
.apf-privacy ul {
  margin: 0 0 12px;
}

.apf-privacy ul {
  padding-left: 1.25rem;
}

.apf-privacy a {
  color: #0e4d4d;
}

/* Проверка актуальности данных */

.apf--verify .apf__verify-lead {
  margin: 8px 0 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--apf-muted);
}

.apv-sections {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 12px 0 20px;
}

.apv-missing-banner {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fef9c3;
  border: 1px solid #fde047;
  color: #854d0e;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.apv-section {
  background: var(--apf-card);
  border: 1px solid var(--apf-border);
  border-radius: 12px;
  padding: 14px 16px;
}

.apv-section__title {
  margin: 0 0 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--apf-accent-dark);
}

.apv-section__rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.apv-section__row {
  display: grid;
  grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
  gap: 8px 12px;
  padding: 8px 10px;
  border-radius: 8px;
}

.apv-section__row--missing {
  background: #fef9c3;
  border: 1px solid #fde68a;
}

.apv-section__row--missing .apv-section__value {
  color: #92400e;
  font-weight: 600;
}

.apv-section__row--required {
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.apv-section__row--required .apv-section__label,
.apv-section__row--required .apv-section__value {
  color: #b91c1c;
  font-weight: 600;
}

.apv-section__label-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.apv-section__label {
  font-size: 0.8125rem;
  color: var(--apf-muted);
}

.apv-section__hint {
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--apf-muted);
  opacity: 0.9;
}

.apv-section__value {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--apf-text);
  word-break: break-word;
}

.apv-section__list {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
  gap: 6px 12px;
}

.apv-section__list dt {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--apf-muted);
}

.apv-section__list dd {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--apf-text);
}

.apv-empty {
  margin: 0;
  padding: 16px;
  border-radius: 12px;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.9375rem;
}

.apv-choice {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

.apv-choice__legend {
  margin-bottom: 10px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--apf-text);
}

.apv-choice__item {
  display: block;
  margin-bottom: 8px;
  cursor: pointer;
}

.apv-choice__item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.apv-choice__card {
  display: block;
  padding: 12px 14px;
  border: 2px solid var(--apf-border);
  border-radius: 12px;
  background: var(--apf-card);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.apv-choice__card strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.9375rem;
}

.apv-choice__card span {
  display: block;
  font-size: 0.8125rem;
  color: var(--apf-muted);
}

.apv-choice__item input:checked + .apv-choice__card {
  border-color: var(--apf-accent);
  box-shadow: 0 0 0 1px var(--apf-accent);
}

.apv-changes {
  margin: 12px 0 16px;
}

.apv-changes-card {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--apf-border);
  background: var(--apf-card);
  box-shadow: 0 1px 2px rgb(24 24 27 / 4%);
}

.apv-changes-intro {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--apf-muted);
}

.apv-changes-step + .apv-changes-step {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--apf-border);
}

.apv-changes-step__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.apv-changes-step__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(14, 77, 77, 0.1);
  color: var(--apf-accent-dark);
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

.apv-changes-step__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--apf-text);
  line-height: 1.3;
}

.apv-changes-optional {
  margin-left: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--apf-muted);
}

.apv-notes {
  margin: 0;
}

.apv-notes textarea {
  width: 100%;
  min-height: 88px;
  padding: 10px 12px;
  border: 1px solid var(--apf-border);
  border-radius: 10px;
  font: inherit;
  font-size: 16px;
  line-height: 1.45;
  resize: vertical;
  background: #fff;
}

.apv-notes textarea:focus {
  outline: none;
  border-color: var(--apf-accent);
  box-shadow: 0 0 0 3px rgb(14 77 77 / 12%);
}

.apv-upload {
  margin-top: 0;
}

.apv-upload .apf__upload-drop {
  padding: 20px 14px 16px;
}

.apv-upload .apf__files-count {
  margin-top: 10px;
  margin-bottom: 0;
}

.apf--verify-done .apf__success--standalone {
  display: block;
  margin-top: 24px;
  padding: 24px;
  border-radius: 16px;
  background: var(--apf-card);
  border: 1px solid var(--apf-border);
}

@media (max-width: 640px) {
  .apv-section__row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .apv-section__list {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .apv-section__list dt {
    margin-top: 8px;
  }

  .apv-section__list dt:first-child {
    margin-top: 0;
  }
}
