/* ==========================================================================
   WC Wholesale Registration - Registration Form Styles
   ========================================================================== */

.wcwrp-register-wrap {
  width: 100%;
  max-width: 760px;
  margin: 40px auto;
  padding: 0 16px;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.wcwrp-register-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.wcwrp-register-header {
  background: linear-gradient(135deg, #2f5a1c 0%, #4e8a2e 100%);
  color: #fff;
  padding: 36px 40px 28px;
  text-align: center;
}

.wcwrp-register-header h2 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.wcwrp-register-header p {
  margin: 0;
  opacity: 0.85;
  font-size: 15px;
}

/* Progress bar */
.wcwrp-progress-wrap {
  padding: 24px 40px 0;
}

.wcwrp-progress-bar {
  height: 4px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
}

.wcwrp-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4e8a2e, #7cb342);
  border-radius: 4px;
  transition: width 0.4s ease;
}

.wcwrp-progress-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.wcwrp-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: default;
}

.wcwrp-step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.wcwrp-progress-step--active .wcwrp-step-num,
.wcwrp-progress-step--done .wcwrp-step-num {
  background: #4e8a2e;
  color: #fff;
}

.wcwrp-step-label {
  font-size: 12px;
  color: #9ca3af;
  font-weight: 500;
}

.wcwrp-progress-step--active .wcwrp-step-label {
  color: #4e8a2e;
}

/* Form */
.wcwrp-form {
  padding: 28px 40px 20px;
}

.wcwrp-form-step {
  display: none;
}

.wcwrp-form-step--active {
  display: block;
  animation: wcwrp-fadein 0.25s ease;
}

@keyframes wcwrp-fadein {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.wcwrp-section-title {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin: 20px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e5e7eb;
}

.wcwrp-section-hint {
  font-size: 13px;
  color: #6b7280;
  margin: -6px 0 16px;
}

.wcwrp-form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 0;
}

.wcwrp-form-row--half > .wcwrp-field {
  flex: 1;
  min-width: 0;
}

.wcwrp-form-row--third > .wcwrp-field {
  flex: 1;
  min-width: 0;
}

.wcwrp-field {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
}

.wcwrp-field label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wcwrp-required {
  color: #ef4444;
}

.wcwrp-field input[type="text"],
.wcwrp-field input[type="email"],
.wcwrp-field input[type="tel"],
.wcwrp-field input[type="url"],
.wcwrp-field input[type="password"],
.wcwrp-field select,
.wcwrp-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  color: #1f2937;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
}

.wcwrp-field input:focus,
.wcwrp-field select:focus,
.wcwrp-field textarea:focus {
  outline: none;
  border-color: #4e8a2e;
  box-shadow: 0 0 0 3px rgba(78, 138, 46, 0.12);
}

.wcwrp-field input.wcwrp-error,
.wcwrp-field select.wcwrp-error,
.wcwrp-field textarea.wcwrp-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.wcwrp-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 36px;
}

.wcwrp-field textarea {
  resize: vertical;
  min-height: 90px;
}

.wcwrp-field-error {
  font-size: 12px;
  color: #ef4444;
  margin-top: 4px;
  min-height: 16px;
}

/* Password field */
.wcwrp-password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.wcwrp-password-wrap input {
  padding-right: 42px;
}

.wcwrp-toggle-password {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  padding: 0;
  line-height: 1;
}

.wcwrp-toggle-password:hover { color: #4b5563; }
.wcwrp-toggle-password svg { width: 18px; height: 18px; display: block; }

/* Password strength */
.wcwrp-password-strength {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 500;
  height: 14px;
}

.wcwrp-strength-weak   { color: #ef4444; }
.wcwrp-strength-fair   { color: #f59e0b; }
.wcwrp-strength-good   { color: #22c55e; }
.wcwrp-strength-strong { color: #16a34a; }

/* Checkbox */
.wcwrp-checkbox-row {
  margin-bottom: 18px;
}

.wcwrp-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #374151;
}

.wcwrp-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  accent-color: #4e8a2e;
  cursor: pointer;
  flex-shrink: 0;
}

/* Buttons — unified green design (override theme button styles) */
.wcwrp-btn,
a.wcwrp-btn,
button.wcwrp-btn,
input.wcwrp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px !important;
  border-radius: 999px !important;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: #4e8a2e !important;
  color: #fff !important;
  border: 2px solid #4e8a2e !important;
  box-shadow: none !important;
  text-shadow: none !important;
  transition: all 0.2s ease;
  text-decoration: none !important;
  text-transform: none;
  font-family: inherit;
  line-height: 1.4;
}

.wcwrp-btn:hover,
a.wcwrp-btn:hover,
button.wcwrp-btn:hover,
input.wcwrp-btn:hover,
.wcwrp-btn-primary:hover,
.wcwrp-btn-outline:hover {
  background: #3c6e22 !important;
  border-color: #3c6e22 !important;
  color: #fff !important;
  text-decoration: none !important;
}

/* All variants share the same green fill for a consistent look */
.wcwrp-btn-primary,
.wcwrp-btn-outline {
  background: #4e8a2e !important;
  color: #fff !important;
  border-color: #4e8a2e !important;
}

.wcwrp-btn-block { width: 100%; }

.wcwrp-btn-sm {
  padding: 8px 16px !important;
  font-size: 13px;
}

.wcwrp-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.wcwrp-btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: wcwrp-spin 0.7s linear infinite;
}

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

/* Nav */
.wcwrp-form-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
}

.wcwrp-form-nav .wcwrp-btn:only-child {
  margin-left: auto;
}

/* Notice */
.wcwrp-notice {
  margin: 16px 40px 0;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  border-left: 4px solid;
}

.wcwrp-notice--success {
  background: #f0fdf4;
  border-color: #22c55e;
  color: #166534;
}

.wcwrp-notice--error {
  background: #fef2f2;
  border-color: #ef4444;
  color: #991b1b;
}

.wcwrp-notice--info {
  background: #f1f8e9;
  border-color: #4e8a2e;
  color: #2f5a1c;
}

/* Login link footer */
.wcwrp-login-link {
  text-align: center;
  padding: 16px 40px 28px;
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

.wcwrp-login-link a {
  color: #4e8a2e;
  font-weight: 600;
  text-decoration: none;
}

/* Status Badges */
.wcwrp-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wcwrp-badge--pending  { background: #fff8e1; color: #b45309; }
.wcwrp-badge--approved { background: #f0fdf4; color: #166534; }
.wcwrp-badge--rejected { background: #fef2f2; color: #991b1b; }

/* Responsive */
@media (max-width: 600px) {
  .wcwrp-register-wrap { padding: 0 8px; margin: 20px auto; }
  .wcwrp-register-header { padding: 24px 20px 20px; }
  .wcwrp-form { padding: 20px 20px 16px; }
  .wcwrp-progress-wrap { padding: 16px 20px 0; }
  .wcwrp-notice { margin: 12px 20px 0; }
  .wcwrp-login-link { padding: 12px 20px 20px; }
  .wcwrp-form-row { flex-direction: column; gap: 0; }
  .wcwrp-form-nav { flex-direction: column; gap: 12px; }
  .wcwrp-form-nav .wcwrp-btn { width: 100%; justify-content: center; }
  .wcwrp-register-header h2 { font-size: 20px; }
}
