/* ==============================================
   File: sell.css
   Project: Zaza Rush Subaru
   Developer: bguvava
   Last Updated: January 31, 2026
   Description: Sell Your Subaru page styles (SELL-001 to SELL-030)
   ============================================== */

/* ---------------------------------------------
   PAGE HEADER - SELL-001
   --------------------------------------------- */
.page-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, #001a52 100%);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='m36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-title {
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.2);
}

.text-white-75 {
  color: rgba(255, 255, 255, 0.85);
}

/* Breadcrumb */
.breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
}

.breadcrumb-item a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
  color: var(--color-white);
}

.breadcrumb-item.active {
  color: var(--color-white);
}

.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.6);
  content: "/";
}

/* ---------------------------------------------
   Sell Hero Section (Legacy)
   --------------------------------------------- */
.sell-hero {
  position: relative;
  min-height: 50vh;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  background-image: url('../images/hero/sell-hero.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding-top: 100px;
}

.sell-hero .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 51, 160, 0.9) 0%, rgba(0, 85, 255, 0.8) 100%);
}

.sell-hero .container {
  position: relative;
  z-index: 2;
}

.sell-hero .breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 1rem;
}

.sell-hero .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.sell-hero .breadcrumb-item a:hover {
  color: var(--color-white);
}

.sell-hero .breadcrumb-item.active {
  color: var(--color-white);
}

.sell-hero .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.6);
}

.sell-hero .hero-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.sell-hero .hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.min-vh-50 {
  min-height: 50vh;
}

/* ---------------------------------------------
   Benefits Section - SELL-002
   --------------------------------------------- */
.sell-benefits {
  background: var(--color-white);
}

.benefit-card {
  background: var(--color-white);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--color-light-gray);
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.benefit-icon {
  width: 80px;
  height: 80px;
  background: var(--color-light-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: var(--color-primary);
  transition: all 0.3s ease;
}

.benefit-card:hover .benefit-icon {
  background: var(--color-primary);
  color: var(--color-white);
}

.benefit-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.75rem;
}

.benefit-text {
  color: var(--color-text);
  margin-bottom: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------------------------------------------
   Process Section - SELL-003 (Horizontal Cards)
   --------------------------------------------- */
.sell-process {
  background: var(--color-light-gray);
}

.process-card {
  background: var(--color-white);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  border: 2px solid transparent;
}

.process-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 51, 160, 0.15);
  border-color: var(--color-primary);
}

.process-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 51, 160, 0.3);
  z-index: 2;
}

.process-icon {
  width: 80px;
  height: 80px;
  background: var(--color-light-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem auto 1.5rem;
  font-size: 2rem;
  color: var(--color-primary);
  transition: all 0.3s ease;
}

.process-card:hover .process-icon {
  background: var(--color-primary);
  color: var(--color-white);
  transform: scale(1.1);
}

.process-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1rem;
}

.process-text {
  color: var(--color-text);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Legacy Timeline Styles (Hidden) */
.process-timeline {
  position: relative;
  padding: 2rem 0;
}

.process-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--color-light-blue);
  transform: translateX(-50%);
}

.process-step {
  display: flex;
  align-items: flex-start;
  margin-bottom: 3rem;
  position: relative;
}

.process-step:last-child {
  margin-bottom: 0;
}

.process-step:nth-child(odd) {
  flex-direction: row;
  padding-right: calc(50% + 40px);
}

.process-step:nth-child(even) {
  flex-direction: row-reverse;
  padding-left: calc(50% + 40px);
}

.step-number {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(0, 51, 160, 0.3);
}

.step-content {
  background: var(--color-white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  flex: 1;
}

.step-icon {
  width: 50px;
  height: 50px;
  background: var(--color-light-blue);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.step-text {
  color: var(--color-text);
  margin-bottom: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------------------------------------------
   Form Section - SELL-004 to SELL-030
   --------------------------------------------- */
.sell-form-section {
  background: var(--color-white);
}

.form-wrapper {
  background: var(--color-white);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--color-light-gray);
}

.form-header {
  margin-bottom: 2rem;
}

.form-section {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-light-gray);
}

.form-section:last-of-type {
  border-bottom: none;
}

.form-section-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
}

.form-section-title i {
  font-size: 1rem;
}

/* Honeypot Field - SELL-014 */
.honeypot-field {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
  opacity: 0;
}

/* Form Controls */
.vehicle-form .form-label {
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.vehicle-form .required {
  color: var(--color-error);
}

.vehicle-form .form-control,
.vehicle-form .form-select {
  padding: 0.875rem 1rem;
  border: 2px solid var(--color-light-gray);
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.vehicle-form .form-control:focus,
.vehicle-form .form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(0, 51, 160, 0.1);
}

.vehicle-form .form-control.is-invalid,
.vehicle-form .form-select.is-invalid {
  border-color: var(--color-error);
}

.vehicle-form .form-control.is-valid,
.vehicle-form .form-select.is-valid {
  border-color: var(--color-success);
}

.vehicle-form textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

.vehicle-form .form-text {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.vehicle-form .input-group-text {
  background: var(--color-light-gray);
  border: 2px solid var(--color-light-gray);
  border-right: none;
  font-weight: 600;
  color: var(--color-dark);
}

.vehicle-form .input-group .form-control {
  border-left: none;
}

.vehicle-form .input-group .form-control:focus {
  border-left: none;
}

/* Condition Options - SELL-011 */
.condition-options {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.condition-option {
  flex: 1;
  min-width: 200px;
  margin: 0 !important;
}

.condition-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--color-white);
  border: 2px solid var(--color-light-gray);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.condition-label i {
  font-size: 1.5rem;
  color: var(--color-text-muted);
}

.condition-label span {
  display: flex;
  flex-direction: column;
}

.condition-label strong {
  font-size: 1rem;
  color: var(--color-dark);
}

.condition-label small {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.condition-option .form-check-input {
  position: absolute;
  opacity: 0;
}

.condition-option .form-check-input:checked + .condition-label {
  border-color: var(--color-primary);
  background: var(--color-light-blue);
}

.condition-option .form-check-input:checked + .condition-label i {
  color: var(--color-primary);
}

#conditionRunner + .condition-label i {
  color: var(--color-success);
}

#conditionNonRunner + .condition-label i {
  color: var(--color-error);
}

/* Description Counter - SELL-013, SELL-025 */
#descriptionCounter {
  transition: color 0.3s ease;
}

#descriptionCounter.text-warning {
  color: var(--color-warning) !important;
}

#descriptionCounter.text-success {
  color: var(--color-success) !important;
}

/* ---------------------------------------------
   Photo Upload - SELL-015 to SELL-021
   --------------------------------------------- */
.upload-zone {
  border: 3px dashed var(--color-light-gray);
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--color-white);
  position: relative;
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--color-primary);
  background: var(--color-light-blue);
}

.upload-zone.dragover {
  transform: scale(1.02);
}

.upload-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-icon {
  font-size: 3rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.upload-text {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.upload-hint {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.upload-counter {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}

.upload-counter.max-reached {
  color: var(--color-error);
}

/* Preview Grid - SELL-018 */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
}

.preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--color-light-gray);
  background: var(--color-light-gray);
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-item .loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--color-primary);
}

.preview-remove {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 28px;
  height: 28px;
  background: var(--color-error);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.875rem;
}

.preview-remove:hover {
  background: #c82333;
  transform: scale(1.1);
}

/* Upload Errors - SELL-019, SELL-020 */
.upload-errors {
  font-size: 0.875rem;
}

.upload-error {
  color: var(--color-error);
  padding: 0.5rem;
  background: rgba(220, 53, 69, 0.1);
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.upload-error:last-child {
  margin-bottom: 0;
}

/* ---------------------------------------------
   Form Submit - SELL-026 to SELL-030
   --------------------------------------------- */
.form-actions {
  margin-top: 2rem;
}

.btn-submit {
  padding: 1rem 3rem;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 51, 160, 0.3);
}

.btn-submit:disabled {
  opacity: 0.7;
  transform: none;
}

.btn-submit .btn-loading {
  display: none;
}

.btn-submit.loading .btn-text {
  display: none;
}

.btn-submit.loading .btn-loading {
  display: inline-flex;
  align-items: center;
}

.submit-note {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.submit-note i {
  color: var(--color-success);
}

/* ---------------------------------------------
   Sidebar
   --------------------------------------------- */
.sell-sidebar {
  position: sticky;
  top: 120px;
}

.sidebar-card {
  background: var(--color-white);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--color-light-gray);
}

.sidebar-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1rem;
}

.sidebar-text {
  color: var(--color-text);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-list li {
  padding: 0.5rem 0;
  color: var(--color-text);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
}

.sidebar-list li i {
  width: 20px;
  text-align: center;
}

.tips-list li {
  position: relative;
  padding-left: 1.5rem;
}

.tips-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

/* ---------------------------------------------
   CTA Section
   --------------------------------------------- */
.sell-cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

.sell-cta h2 {
  font-family: var(--font-heading);
  font-weight: 700;
}

.sell-cta .btn-light {
  color: var(--color-primary);
  font-weight: 600;
}

.sell-cta .btn-light:hover {
  background: var(--color-white);
  transform: translateY(-2px);
}

.sell-cta .btn-outline-light {
  border-width: 2px;
}

.sell-cta .btn-outline-light:hover {
  transform: translateY(-2px);
}

/* ---------------------------------------------
   Responsive Styles
   --------------------------------------------- */
@media (max-width: 991.98px) {
  .page-title {
    font-size: 2.5rem;
  }
  
  .form-wrapper {
    padding: 2rem;
  }
  
  /* Process cards on tablets */
  .process-card {
    margin-bottom: 2rem;
  }
}

@media (max-width: 767.98px) {
  .page-title {
    font-size: 2rem;
  }
  
  .form-wrapper {
    padding: 1.5rem;
  }
  
  .benefit-card {
    padding: 1.5rem;
  }
  
  .benefit-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .process-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .condition-options {
    flex-direction: column;
  }
  
  .condition-option {
    min-width: 100%;
  }
  
  .upload-zone {
    padding: 2rem 1rem;
  }
  
  .upload-icon {
    font-size: 2rem;
  }
  
  .preview-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .btn-submit {
    width: 100%;
    padding: 1rem 2rem;
  }
}

@media (max-width: 575.98px) {
  .page-title {
    font-size: 1.75rem !important;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .process-number {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
    top: -15px;
  }
  
  .process-card {
    padding: 2rem 1rem;
  }
  
  .preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .page-header .btn {
    width: 100%;
    display: block !important;
    margin: 0.25rem 0 !important;
  }
  
  .sell-cta .btn {
    width: 100%;
    margin: 0 !important;
  }
}
