/*
 * ============================================================
 *  AutoPrime — Sell Your Car Page CSS
 *  sell.css
 *
 *  Depends on: autoprime-frontend.css (must load first)
 *  Used by: resources/views/frontend/sell.blade.php
 *
 *  Sections:
 *   1. Sell Hero Banner (dark gradient)
 *   2. Form Card (floating over hero)
 *   3. Form Inputs & Labels
 *   4. Condition Selector Cards
 *   5. Image Upload Drop Zone
 *   6. Submit Button & Trust Badges
 *   7. Why AutoPrime Section
 *   8. Responsive Overrides
 * ============================================================
 */


/* ============================================================
   1. SELL HERO BANNER — dark blue gradient with grid pattern
   ============================================================ */

/* Full-width dark hero with animated dot-grid background */
.hero-sell {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1a56db 100%);
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle repeating dot texture overlay */
.hero-sell::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 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.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Eyebrow label above headline */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
  border-radius: 50px;
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}

/* Hero headline styling */
.hero-sell h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-sell h1 span {
  color: var(--ap-blue-light);
}

.hero-sell p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

/* 3-step process badges row */
.hero-steps {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

/* Individual step badge */
.hero-step {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Numbered circle inside step badge */
.hero-step .step-num {
  width: 28px;
  height: 28px;
  background: var(--ap-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
  color: #fff;
  flex-shrink: 0;
}


/* ============================================================
   2. FORM CARD — floats over the hero, overlapping it
   ============================================================ */

/* Wrapper that pulls the form up over the hero */
.form-wrap {
  max-width: 820px;
  margin: -2rem auto 3rem;
  padding: 0 1rem;
  position: relative;
  z-index: 1;
}

/* White card with deep shadow */
.form-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

/* Dark gradient header bar inside card */
.form-header {
  background: linear-gradient(135deg, var(--ap-navy), var(--ap-blue));
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Icon box in form header */
.form-header-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
}

.form-header h2 {
  font-size: 1.2rem;
  color: #fff;
  margin: 0;
  font-family: 'Syne', sans-serif;
}

.form-header p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

/* Inner form padding */
.form-body {
  padding: 2rem;
}

/* Section heading inside the form (e.g. "Your Details", "Vehicle Info") */
.sec-head {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ap-muted);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sec-head i {
  color: var(--ap-blue);
}


/* ============================================================
   3. FORM INPUTS & LABELS
   ============================================================ */

.form-label {
  font-size: 0.81rem;
  font-weight: 600;
  color: #374151;
}

.form-control,
.form-select {
  border-radius: 10px;
  border-color: #e2e8f0;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--ap-blue);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}


/* ============================================================
   4. CONDITION SELECTOR CARDS — Excellent / Good / Fair / Poor
   ============================================================ */

/* 4-column grid for condition options */
.condition-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

/* Each condition card is a styled label wrapping a hidden radio */
.cond-card {
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
  position: relative;
}

.cond-card:hover {
  border-color: var(--ap-blue);
  background: #eff6ff;
}

/* Hide the actual radio input — styling handled by .cond-card */
.cond-card input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Checked state — highlight card */
.cond-card:has(input:checked) {
  border-color: var(--ap-blue);
  background: #eff6ff;
}

.cond-card input:checked ~ .cond-inner {
  color: var(--ap-blue);
}

/* Emoji icon */
.cond-icon {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
  display: block;
}

/* Label text */
.cond-label {
  font-size: 0.82rem;
  font-weight: 700;
  display: block;
}

/* Sub-label description */
.cond-sub {
  font-size: 0.7rem;
  color: var(--ap-muted);
  display: block;
  margin-top: 0.15rem;
}


/* ============================================================
   5. IMAGE UPLOAD DROP ZONE
   ============================================================ */

/* Dashed upload zone — click to open file picker */
.img-drop {
  border: 2px dashed #e2e8f0;
  border-radius: 14px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: #fafafa;
}

.img-drop:hover {
  border-color: var(--ap-blue);
  background: #eff6ff;
}

.img-drop i {
  font-size: 2.5rem;
  color: var(--ap-muted);
  display: block;
  margin-bottom: 0.5rem;
}

.img-drop p {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0;
}

/* Preview image strip */
#imgPreview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/* Individual preview thumbnail */
.img-prev-item {
  width: 80px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid #e2e8f0;
}


/* ============================================================
   6. SUBMIT BUTTON & TRUST BADGES
   ============================================================ */

/* Full-width gradient submit CTA */
.submit-btn {
  background: linear-gradient(135deg, var(--ap-blue), #3b82f6);
  border: none;
  color: #fff;
  padding: 0.9rem 2.5rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  width: 100%;
  letter-spacing: 0.02em;
}

.submit-btn:hover {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(26, 86, 219, 0.35);
}

/* Trust row — icons + text below the submit button */
.trust-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* Single trust item */
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #64748b;
}

.trust-item i {
  color: var(--ap-blue);
  font-size: 0.9rem;
}


/* ============================================================
   7. WHY AUTOPRIME SECTION
   ============================================================ */

/* Full-width white section below the form */
.why-section {
  background: #fff;
  padding: 4rem 2rem;
}

/* Auto-fit 4-column grid for benefit cards */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 2rem auto 0;
}

/* Individual benefit card */
.why-card {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: 20px;
  transition: background 0.2s;
}

.why-card:hover {
  background: #f8faff;
}

/* Icon box */
.why-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--ap-blue);
  margin: 0 auto 1rem;
}

.why-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--ap-navy);
}

.why-sub {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.6;
}


/* ============================================================
   8. RESPONSIVE OVERRIDES
   ============================================================ */

@media (max-width: 600px) {
  /* 2-column condition grid on mobile */
  .condition-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-steps {
    gap: 1rem;
  }

  .form-body {
    padding: 1.25rem;
  }

  /* Hide nav text labels on very small screens */
  .nav-links .nav-text {
    display: none;
  }

  .trust-row {
    gap: 1rem;
  }
}
