/* ===== Registration Page ===== */

/* Progress steps */
.reg-progress {
  background: var(--color-pale-blue);
  padding: 16px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.reg-progress-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  list-style: none;
  max-width: 540px;
  margin: 0 auto;
}

.reg-progress-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-light-blue);
  white-space: nowrap;
}

.reg-step-abbr {
  display: none;
}

.reg-progress-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.reg-progress-link:hover {
  text-decoration: underline;
}

.reg-progress-step.completed {
  color: var(--color-navy);
}

.reg-progress-step.active {
  color: var(--color-navy);
  font-weight: 700;
}

.reg-progress-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.reg-progress-step.completed .reg-progress-dot {
  background: var(--color-navy);
  color: var(--color-white);
}

.reg-progress-step.active .reg-progress-dot {
  background: var(--color-navy);
  color: var(--color-white);
}

.reg-progress-step.upcoming .reg-progress-dot {
  background: var(--color-light-blue);
  color: var(--color-white);
}

.reg-progress-line {
  width: 40px;
  height: 2px;
  background: var(--color-light-blue);
  flex-shrink: 0;
  margin: 0 4px;
}

.reg-progress-step.completed + .reg-progress-line {
  background: var(--color-navy);
}

.reg-progress-line.completed {
  background: var(--color-navy);
}

/* Main content area */
.reg-content {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 64px;
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.reg-content.reg-content--centered {
  grid-template-columns: 1fr;
  max-width: 560px;
  margin: 0 auto;
}

.reg-content--centered .reg-form-section {
  max-width: 100%;
}

/* Left column: form */
.reg-form-section {
  max-width: 480px;
}

.reg-heading {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
}

.reg-subtitle {
  color: #4a4a4a;
  font-size: 1rem;
  margin-bottom: 32px;
  line-height: 1.5;
}

.reg-subtitle strong {
  color: var(--color-navy);
  font-weight: 600;
}

.reg-form .reg-field {
  margin-bottom: 24px;
}

.reg-form .reg-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.reg-form .reg-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #D0D0D0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.reg-form .reg-input:focus {
  outline: none;
  border-color: var(--color-navy);
  box-shadow: 0 0 0 3px var(--color-pale-blue);
}

.reg-form .reg-input.error {
  border-color: #C53030;
}

.reg-form .reg-input.error:focus {
  box-shadow: 0 0 0 3px rgba(197, 48, 48, 0.15);
}

.reg-field-error {
  color: #C53030;
  font-size: 0.75rem;
  margin-top: 4px;
  display: none;
}

.reg-name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Password field */
.reg-password-wrapper {
  position: relative;
}

.reg-password-wrapper .reg-input {
  padding-right: 48px;
}

.reg-password-toggle {
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 14px;
  min-width: 48px;
  min-height: 48px;
  cursor: pointer;
  color: #4a4a4a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reg-password-toggle:hover {
  color: var(--color-black);
}

/* Password strength meter */
.reg-password-strength {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.reg-strength-bar {
  flex: 0 0 80px;
  height: 4px;
  background: #E5E5E5;
  border-radius: 2px;
  overflow: hidden;
}

.reg-strength-fill {
  height: 100%;
  width: 0;
  border-radius: 2px;
  transition: width 0.25s, background-color 0.25s;
}

.reg-strength-fill.weak { width: 33%; background: #C53030; }
.reg-strength-fill.fair { width: 66%; background: #D69E2E; }
.reg-strength-fill.strong { width: 100%; background: #2F855A; }

.reg-strength-label {
  font-size: 0.8rem;
  color: #4a4a4a;
}

/* Terms */
.reg-terms {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: start;
  gap: 4px 10px;
  margin-bottom: 24px;
}

.reg-terms input[type="checkbox"] {
  margin-top: 1px;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  accent-color: var(--color-navy);
  cursor: pointer;
}

.reg-terms label {
  font-size: 0.875rem;
  line-height: 1.4;
  color: #4a4a4a;
  cursor: pointer;
}

.reg-terms a {
  color: var(--color-navy);
  text-decoration: underline;
}

/* Submit button */
.reg-submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: var(--color-black);
  color: var(--color-white);
  transition: background 0.15s;
}

.reg-submit:hover {
  background: #333;
}

.reg-submit:disabled,
.reg-submit.loading {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.reg-submit.loading::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: reg-spin 0.6s linear infinite;
  margin-left: 8px;
}

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

/* General error */
.reg-general-error {
  background: rgba(197, 48, 48, 0.08);
  color: #C53030;
  border: 1px solid rgba(197, 48, 48, 0.2);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.875rem;
  margin-bottom: 20px;
  display: none;
}

/* Reassurance text under submit */
.reg-form-reassurance {
  text-align: center;
  margin-top: 12px;
  font-size: 0.85rem;
  color: #4a4a4a;
}

/* Inline testimonial below CTA */
.reg-inline-testimonial {
  text-align: center;
  font-size: 0.8rem;
  font-style: italic;
  color: #4a4a4a;
  line-height: 1.5;
  margin-top: 16px;
  padding: 0 8px;
}

.reg-inline-testimonial span {
  display: block;
  font-style: normal;
  font-size: 0.75rem;
  margin-top: 2px;
}

/* Terms error (now inside .reg-terms) */
.reg-terms .reg-field-error {
  grid-column: 1 / -1;
  margin-top: -4px;
  margin-bottom: 0;
}

/* Privacy note below terms */
.reg-privacy-note {
  font-size: 0.75rem;
  color: #4a4a4a;
  margin-top: -16px;
  margin-bottom: 20px;
  padding-left: 34px;
}

/* Sign-in link */
.reg-signin {
  text-align: center;
  margin-top: 24px;
  font-size: 0.9rem;
  color: #4a4a4a;
}

.reg-signin a {
  color: var(--color-navy);
  font-weight: 600;
  text-decoration: none;
}

.reg-signin a:hover {
  text-decoration: underline;
}

/* Divider */
.reg-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: #8C8C8C;
  font-size: 0.85rem;
}

.reg-divider::before,
.reg-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #E5E5E5;
}

/* Social buttons (disabled placeholders) */
.reg-social-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
}

.reg-btn-social {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid #D0D0D0;
  border-radius: 8px;
  background: var(--color-white);
  font-size: 0.9rem;
  font-weight: 500;
  font-family: inherit;
  cursor: not-allowed;
  opacity: 0.45;
  color: var(--color-black);
}

.reg-btn-social-soon {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8C8C8C;
}

/* Right column: sidebar with two boxes */
.reg-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-self: start;
  position: sticky;
  top: calc(var(--header-height) + 80px);
}

/* Box 1: Order details */
.reg-order-panel {
  background: var(--color-cream);
  border-radius: 12px;
  padding: 24px 28px;
}

.reg-order-heading {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.reg-order-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.95rem;
  color: #111827;
}

.reg-order-item-muted {
  color: #6b7280;
  font-size: 0.875rem;
}

.reg-order-total {
  display: flex;
  justify-content: space-between;
  padding: 12px 0 0;
  font-weight: 700;
  font-size: 1.1rem;
  color: #111827;
}

.reg-order-note {
  font-size: 0.8rem;
  color: #4a4a4a;
  margin-top: 12px;
  text-align: center;
}

/* Box 2: Benefits + trust */
.reg-value-panel {
  background: var(--color-pale-blue);
  border-radius: 12px;
  padding: 24px 28px;
}

.reg-value-heading {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.reg-urgency {
  font-size: 0.8rem;
  color: var(--color-navy);
  font-weight: 500;
  font-style: italic;
  margin-bottom: 16px;
}

.reg-value-list {
  list-style: none;
  margin-bottom: 20px;
}

.reg-value-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.9rem;
  color: #1f2937;
}

.reg-value-list li svg {
  flex-shrink: 0;
  color: var(--color-navy);
  margin-top: 2px;
}

.reg-trust-badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.reg-trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #1f2937;
}

.reg-trust-badge svg {
  flex-shrink: 0;
  color: var(--color-navy);
}

.reg-testimonial {
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.reg-testimonial-stars {
  display: flex;
  gap: 2px;
  color: #D69E2E;
  margin-bottom: 8px;
}

.reg-testimonial blockquote {
  font-size: 0.85rem;
  font-style: italic;
  color: #1f2937;
  line-height: 1.5;
  margin-bottom: 8px;
}

.reg-testimonial cite {
  font-size: 0.8rem;
  font-style: normal;
  color: #4a4a4a;
}

/* ===== Responsive ===== */
@media (max-width: 834px) {
  .reg-content {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 20px 48px;
  }

  .reg-form-section {
    max-width: 100%;
  }

  .reg-sidebar {
    position: static;
    order: -1;
  }

  .reg-step-full {
    display: none;
  }

  .reg-step-abbr {
    display: inline;
    font-size: 0.75rem;
  }

  .reg-progress-line {
    width: 24px;
  }
}

@media (max-width: 480px) {
  .reg-name-row {
    grid-template-columns: 1fr;
  }

  .reg-social-buttons {
    flex-direction: column;
  }
}
