/* ==========================================
   SELLER REGISTRATION - MAIN STYLES
   Colors: Grocery Green (#2D7A3E) & Orange (#FF6B35)
   ========================================== */

:root {
  --primary-green: #2D7A3E;
  --primary-green-dark: #1f5a2e;
  --primary-green-light: #e8f5e9;
  --primary-orange: #FF6B35;
  --primary-orange-dark: #e85a25;
  --primary-orange-light: #fff3f0;
  --text-dark: #1a1a1a;
  --text-gray: #666666;
  --text-light: #999999;
  --border-color: #e0e0e0;
  --background: #f8f9fa;
  --white: #ffffff;
  --success: #4caf50;
  --error: #f44336;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--background);
  color: var(--text-dark);
  line-height: 1.6;
}

/* ==========================================
   MAIN CONTAINER
   ========================================== */

.seller-registration-container {
  min-height: 100vh;
  padding: 40px 20px;
  background: linear-gradient(135deg, #e8f5e9 0%, #fff3f0 100%);
}

.registration-wrapper {
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* ==========================================
   HEADER
   ========================================== */

.registration-header {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
  color: var(--white);
  padding: 40px 30px;
  text-align: center;
}

.registration-header h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.registration-header p {
  font-size: 16px;
  opacity: 0.95;
  font-weight: 400;
}

/* ==========================================
   PROGRESS STEPPER
   ========================================== */

.progress-stepper {
  display: flex;
  justify-content: space-between;
  padding: 40px 30px 30px;
  background: var(--white);
  border-bottom: 2px solid var(--border-color);
  position: relative;
}

.step-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.step-indicator-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
  position: relative;
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  background: var(--white);
}

.step-circle.pending {
  border: 2px solid var(--border-color);
  color: var(--text-light);
  background: var(--white);
}

.step-circle.active {
  border: 3px solid var(--primary-orange);
  color: var(--primary-orange);
  background: var(--white);
  box-shadow: 0 0 0 4px var(--primary-orange-light);
}

.step-circle.completed {
  background: var(--primary-green);
  border: 2px solid var(--primary-green);
  color: var(--white);
}

.step-number {
  font-weight: 600;
}

.step-line {
  flex: 1;
  height: 2px;
  background: var(--border-color);
  margin: 0 -20px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.step-line.completed {
  background: var(--primary-green);
}

.step-label {
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  color: var(--text-gray);
  max-width: 140px;
  line-height: 1.4;
}

.step-label .active-label {
  color: var(--primary-orange);
  font-weight: 600;
}

/* ==========================================
   FORM CONTAINER
   ========================================== */

.form-container {
  padding: 40px 30px;
}

.step-content {
  max-width: 700px;
  margin: 0 auto;
}

.step-header {
  margin-bottom: 32px;
}

.step-header h2 {
  font-size: 26px;
  color: var(--text-dark);
  margin-bottom: 8px;
  font-weight: 700;
}

.step-subtitle {
  font-size: 15px;
  color: var(--text-gray);
  margin-top: 8px;
}

/* ==========================================
   FORM ELEMENTS
   ========================================== */

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.info-icon {
  display: inline-block;
  margin-left: 6px;
  color: var(--text-light);
  cursor: help;
  font-size: 14px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.3s ease;
  font-family: inherit;
  background: var(--white);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px var(--primary-green-light);
}

.form-input:disabled {
  background: #f5f5f5;
  cursor: not-allowed;
  opacity: 0.6;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.input-hint {
  display: block;
  font-size: 13px;
  color: var(--text-light);
  margin-top: 6px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ==========================================
   CHECKBOX & RADIO STYLES
   ========================================== */

.checkbox-group {
  margin: 24px 0;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-dark);
}

.checkbox-input {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--primary-green);
}

.checkbox-text {
  line-height: 1.6;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 12px;
}

.radio-label {
  display: flex;
  align-items: flex-start;
  padding: 16px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.radio-label:hover {
  border-color: var(--primary-green);
  background: var(--primary-green-light);
}

.radio-input {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--primary-green);
}

.radio-input:checked + .radio-text {
  color: var(--primary-green);
}

.radio-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.radio-text strong {
  font-size: 15px;
  font-weight: 600;
}

.radio-text small {
  font-size: 13px;
  color: var(--text-gray);
}

/* ==========================================
   SECTIONS & DIVIDERS
   ========================================== */

.section-divider {
  height: 1px;
  background: var(--border-color);
  margin: 32px 0;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.info-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--primary-green-light);
  border-left: 4px solid var(--primary-green);
  border-radius: 8px;
  margin-bottom: 24px;
}

.info-box svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.info-box p {
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.6;
  margin: 0;
}

/* ==========================================
   BUTTONS
   ========================================== */

.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.btn-primary,
.btn-secondary,
.btn-submit {
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  min-width: 140px;
}

.btn-primary {
  background: var(--primary-green);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-green-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--white);
  color: var(--text-gray);
  border: 2px solid var(--border-color);
}

.btn-secondary:hover:not(:disabled) {
  border-color: var(--primary-green);
  color: var(--primary-green);
  background: var(--primary-green-light);
}

.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-submit {
  background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-dark) 100%);
  color: var(--white);
  box-shadow: var(--shadow-sm);
  flex: 1;
}

.btn-submit:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-submit:active {
  transform: translateY(0);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

/* Tablets (768px and below) */
@media (max-width: 768px) {
  .seller-registration-container {
    padding: 20px 10px;
  }

  .registration-header {
    padding: 30px 20px;
  }

  .registration-header h1 {
    font-size: 26px;
  }

  .registration-header p {
    font-size: 14px;
  }

  .progress-stepper {
    padding: 30px 20px 20px;
    overflow-x: auto;
  }

  .step-circle {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .step-label {
    font-size: 11px;
    max-width: 100px;
  }

  .form-container {
    padding: 30px 20px;
  }

  .step-header h2 {
    font-size: 22px;
  }

  .step-subtitle {
    font-size: 14px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-actions {
    flex-direction: column-reverse;
    gap: 12px;
  }

  .btn-primary,
  .btn-secondary,
  .btn-submit {
    width: 100%;
    min-width: auto;
  }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
  .seller-registration-container {
    padding: 10px 5px;
  }

  .registration-wrapper {
    border-radius: 12px;
  }

  .registration-header {
    padding: 24px 16px;
  }

  .registration-header h1 {
    font-size: 22px;
  }

  .registration-header p {
    font-size: 13px;
  }

  .progress-stepper {
    padding: 20px 12px 16px;
  }

  .step-circle {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .step-circle.active {
    border: 2px solid var(--primary-orange);
    box-shadow: 0 0 0 3px var(--primary-orange-light);
  }

  .step-label {
    font-size: 10px;
    max-width: 80px;
    margin-top: 8px;
  }

  .step-line {
    margin: 0 -10px;
  }

  .form-container {
    padding: 24px 16px;
  }

  .step-header {
    margin-bottom: 24px;
  }

  .step-header h2 {
    font-size: 20px;
  }

  .step-subtitle {
    font-size: 13px;
  }

  .form-group {
    margin-bottom: 20px;
  }

  .form-group label {
    font-size: 13px;
  }

  .form-input,
  .form-textarea {
    padding: 10px 14px;
    font-size: 14px;
  }

  .radio-label {
    padding: 12px;
  }

  .radio-text strong {
    font-size: 14px;
  }

  .radio-text small {
    font-size: 12px;
  }

  .section-title {
    font-size: 18px;
  }

  .info-box {
    padding: 12px;
    font-size: 13px;
  }

  .btn-primary,
  .btn-secondary,
  .btn-submit {
    padding: 12px 24px;
    font-size: 15px;
  }
}

/* Extra small devices (360px and below) */
@media (max-width: 360px) {
  .registration-header h1 {
    font-size: 20px;
  }

  .step-header h2 {
    font-size: 18px;
  }

  .step-circle {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .step-label {
    font-size: 9px;
    max-width: 70px;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-content {
  animation: fadeIn 0.4s ease;
}

/* Error States */
.form-input.error,
.form-textarea.error {
  border-color: #F44336;
  background-color: #ffebee;
}

.form-input.error:focus,
.form-textarea.error:focus {
  border-color: #F44336;
  box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1);
}

.error-message {
  display: block;
  color: #F44336;
  font-size: 12px;
  margin-top: 4px;
  font-weight: 500;
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: #2D7A3E;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-overlay p {
  color: white;
  margin-top: 20px;
  font-size: 16px;
  font-weight: 600;
}
/* Validation Messages */
.validation-message {
  display: block;
  font-size: 12px;
  margin-top: 4px;
  font-weight: 500;
}

.validation-message.validating {
  color: #2196F3;
}

.validation-message.success {
  color: #4CAF50;
}

.validation-message.error {
  color: #F44336;
}

/* Bank Info Box */
.bank-info-box {
  margin-top: 12px;
  padding: 12px;
  background: #e8f5e9;
  border-left: 3px solid #2D7A3E;
  border-radius: 4px;
}

.bank-info-box p {
  margin: 4px 0;
  font-size: 13px;
  color: #1a1a1a;
}

.bank-info-box strong {
  color: #2D7A3E;
}
input[type="password"]::-ms-reveal {
  display: none;
}