/*
 * Verification wizard styles — adapted from the local design export
 * ("Нить-сайт-демо/Верификация.html"). Loaded after landing.css, so it reuses
 * shared tokens, nav, footer, and button primitives.
 */

/* ─── Form primitives ───────────────────────────────────────────────────── */
.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--text-dark);
  font-size: 0.88rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--surface);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(112, 95, 217, 0.12);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-light);
}

.form-input[aria-invalid],
.form-select[aria-invalid],
.form-textarea[aria-invalid] {
  border-color: var(--error);
  box-shadow: 0 0 0 4px rgba(212, 65, 65, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236B6B80' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  cursor: pointer;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 2px;
  width: 19px;
  height: 19px;
  min-width: 19px;
  accent-color: var(--primary);
  cursor: pointer;
}

.checkbox-label a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 500;
}

.form-group--agreement {
  margin-top: 24px;
}

.field-error {
  display: block;
  margin-top: 6px;
  color: var(--error);
  font-size: 0.8rem;
}

.form-error {
  margin-top: 20px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--error-bg);
  color: var(--error);
  font-size: 0.9rem;
  font-weight: 500;
}

.noscript-notice {
  max-width: 760px;
  margin: 0 auto 24px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--warning-bg);
  color: var(--warning);
  text-align: center;
  font-weight: 500;
}

.verify-hero {
  padding: 122px 0 0;
  background:
    radial-gradient(800px 460px at 82% -20%, #e7e1fb 0%, rgba(231, 225, 251, 0) 60%),
    radial-gradient(700px 400px at 0% 0%, #f1ecdf 0%, rgba(241, 236, 223, 0) 55%),
    var(--bg);
}

.verify-hero .container {
  text-align: center;
}

.verify-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  margin-bottom: 16px;
}

.verify-hero p {
  color: var(--text-muted);
  font-size: 1.14rem;
  max-width: 560px;
  margin: 0 auto;
}

.verify-wrap {
  padding: 56px 0 100px;
}

.verify-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: start;
}

.rail {
  position: sticky;
  top: 104px;
}

.vstep {
  display: flex;
  gap: 16px;
  padding: 4px 0;
}

.vstep-line {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.vstep-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all var(--transition);
  z-index: 1;
}

.vstep-rod {
  width: 2px;
  flex: 1;
  background: var(--border);
  margin: 4px 0;
  min-height: 30px;
  transition: background var(--transition);
}

.vstep:last-child .vstep-rod {
  display: none;
}

.vstep-body {
  padding-bottom: 22px;
}

.vstep-title {
  font-weight: 600;
  color: var(--text-light);
  font-size: 0.98rem;
  transition: color var(--transition);
}

.vstep-desc {
  font-size: 0.84rem;
  color: var(--text-light);
  margin-top: 3px;
  line-height: 1.45;
}

.vstep.active .vstep-num {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 5px rgba(124, 107, 242, 0.15);
}

.vstep.active .vstep-title {
  color: var(--text-dark);
}

.vstep.done .vstep-num {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.vstep.done .vstep-rod {
  background: var(--success);
}

.vstep.done .vstep-title {
  color: var(--text-body);
}

.rail-card {
  margin-top: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-xs);
}

.rail-card h5 {
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rail-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: var(--shadow-sm);
}

.form-card h3 {
  margin-bottom: 6px;
  font-size: 1.4rem;
}

.form-section-subtitle {
  color: var(--text-muted);
  font-size: 0.96rem;
  margin-bottom: 28px;
}

.captcha-wrap {
  margin: 24px 0 8px;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.spacer {
  flex: 1;
}

.dropzone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 46px 32px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--surface-2);
  position: relative;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--primary);
  background: var(--info-bg);
}

.dropzone.dragover {
  transform: scale(1.01);
}

.dropzone-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--info-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--primary);
}

.dropzone.dragover .dropzone-icon {
  background: var(--soft-purple);
}

.dropzone h4 {
  margin-bottom: 6px;
  color: var(--text-dark);
}

.dropzone p {
  color: var(--text-light);
  font-size: 0.9rem;
}

.dropzone input {
  display: none;
}

.dropzone-link {
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
}

.dropzone-hint {
  margin-top: 8px;
  font-size: 0.82rem;
}

.dropzone--compact {
  padding: 32px 24px;
}

.nc-check {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 22px;
  cursor: pointer;
  font-size: 0.96rem;
  color: var(--text-dark);
  font-weight: 500;
  user-select: none;
}

.nc-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nc-box {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 2px solid var(--border-strong);
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
  transition: all var(--transition);
}

.nc-box svg {
  opacity: 0;
  transition: opacity var(--transition);
}

.nc-check input:checked + .nc-box {
  background: var(--primary);
  border-color: var(--primary);
}

.nc-check input:checked + .nc-box svg {
  opacity: 1;
}

.nc-panel {
  margin-top: 18px;
  padding: 22px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.nc-panel .form-section-subtitle {
  margin-bottom: 18px;
}

.is-hidden {
  display: none;
}

.file-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-list--nested {
  margin-top: 14px;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  animation: file-in 0.3s var(--ease-out);
}

.file-item--error {
  background: var(--error-bg);
}

@keyframes file-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.file-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--info-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 700;
  min-width: 38px;
}

.file-info {
  flex: 1;
  min-width: 0;
}

.file-name {
  font-weight: 500;
  color: var(--text-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-size {
  font-size: 0.8rem;
  color: var(--text-light);
}

.file-status {
  font-size: 0.8rem;
  font-weight: 600;
}

.file-status.uploading {
  color: var(--primary);
}

.file-status.done {
  color: var(--success);
}

.file-status.error {
  color: var(--error);
}

.file-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  padding: 5px;
  border-radius: 6px;
  transition: all var(--transition);
  display: flex;
  align-items: center;
}

.file-remove:hover {
  color: var(--error);
  background: var(--error-bg);
}

.file-progress {
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 7px;
  overflow: hidden;
}

.file-progress-bar {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.success-state {
  text-align: center;
  padding: 36px 24px;
  animation: file-in 0.4s var(--ease-out);
}

.success-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--success-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 26px;
  color: var(--success);
}

.success-state h2 {
  margin-bottom: 14px;
  font-size: 1.9rem;
}

.success-state p {
  color: var(--text-muted);
  font-size: 1.04rem;
  max-width: 440px;
  margin: 0 auto;
}

.success-actions {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .verify-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .rail {
    position: static;
  }

  .rail .vstepper {
    display: flex;
    gap: 0;
  }

  .rail .vstep {
    flex: 1;
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .rail .vstep-line {
    flex-direction: row;
    width: auto;
    justify-content: center;
  }

  .rail .vstep-rod {
    display: none;
  }

  .rail .vstep-body {
    padding-bottom: 0;
  }

  .rail .vstep-desc {
    display: none;
  }

  .rail-card {
    display: none;
  }
}

@media (max-width: 600px) {
  .verify-hero h1 {
    font-size: 2rem;
  }

  .verify-hero p {
    font-size: 1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-card {
    padding: 28px 22px;
  }

  .form-actions {
    flex-wrap: wrap;
  }

  .rail .vstep-title {
    font-size: 0.8rem;
  }
}
