/* ── PAGE WRAPPER ── */
.page-wrapper {
  padding: 110px 32px 80px;
  display: flex;
  justify-content: center;
}

.reg-container {
  width: 100%;
  max-width: 640px;
}

/* ── HEADER ── */
.reg-header {
  text-align: center;
  margin-bottom: 36px;
}

.reg-header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.reg-header p {
  font-size: 0.95rem;
  color: var(--gray-500);
}

.reg-header p a {
  color: var(--blue-500);
  text-decoration: none;
  font-weight: 600;
}

.reg-header p a:hover {
  text-decoration: underline;
}

/* ── FORM CARD ── */
.form-card {
  background: var(--bg);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

/* ── FORM SECTIONS ── */
.form-section {
  padding: 28px 36px;
  border-bottom: 1px solid var(--gray-100);
}

.form-section:last-of-type {
  border-bottom: none;
}

.form-section .form-group:last-child {
  margin-bottom: 0;
}

.form-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-section-title .s-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.form-section-title .s-icon svg {
  width: 17px;
  height: 17px;
}

.s-icon.personal {
  background: var(--blue-50);
  color: var(--blue-500);
}

.s-icon.security {
  background: #FEF3C7;
  color: #D97706;
}

.s-icon.company {
  background: #F0FDF4;
  color: #16A34A;
}

.s-icon.address {
  background: #FDF4FF;
  color: #A855F7;
}

.optional-tag {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gray-400);
  background: var(--gray-50);
  padding: 2px 8px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── FORM FIELD OVERRIDES ── */
.form-hint strong {
  color: var(--gray-700);
}

/* ── CHECKBOX LINKS ── */
.form-checkbox a {
  color: var(--blue-500);
  text-decoration: none;
  font-weight: 600;
}

.form-checkbox a:hover {
  text-decoration: underline;
}

.form-checkbox.has-error .check-mark {
  border-color: var(--red-500);
  box-shadow: 0 0 5px rgba(255, 0, 0, 0.2);
}

/* ── PASSWORD STRENGTH ── see shared.passwordStrength.css ── */

/* ── FORM ACTIONS ── */
.form-actions {
  padding: 24px 36px 28px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
  border-top: 1px solid var(--gray-100);
  background: var(--gray-50);
}

/* ── SUCCESS ── */
.reg-success {
  display: none;
  text-align: center;
  padding: 64px 36px;
  background: var(--bg);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.reg-success.show {
  display: block;
}

.reg-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 2px solid var(--green-100);
}

.reg-success h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.reg-success p {
  font-size: 0.95rem;
  color: var(--gray-500);
  max-width: 380px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

.reg-success .btn-primary {
  display: inline-flex;
}

/* ── ANIMATIONS ── */
.fade-in {
  opacity: 0;
  animation: fadeUp .6s ease forwards;
}

.fade-in.d1 {
  animation-delay: .08s;
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .page-wrapper {
    padding: 90px 16px 60px;
  }


  .pw-reqs {
    grid-template-columns: 1fr;
  }

  .reg-header h1 {
    font-size: 1.5rem;
  }
}