* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --background: #f5f7fa;
  --surface: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --primary: #111827;
  --primary-hover: #374151;
  --success-bg: #ecfdf5;
  --success-text: #047857;
  --error-bg: #fef2f2;
  --error-text: #b91c1c;
}

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  background: var(--background);
  color: var(--text);
  min-height: 100vh;
}


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

.page-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 32px 20px;
}


/* ================================
   Hero
================================ */

.hero {
  position: relative;
  min-height: 260px;
  border-radius: 20px;
  overflow: hidden;

  background:
    linear-gradient(
      rgba(0, 0, 0, 0.52),
      rgba(0, 0, 0, 0.52)
    ),
    url("https://gomechanic.in/blog/wp-content/uploads/2020/07/Used-Cars-for-Sale.jpg");

  background-size: cover;
  background-position: center;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;
}

.hero-content {
  color: white;
  padding: 30px 20px;
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  margin-bottom: 14px;

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;

  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50px;

  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -1.5px;
  margin-bottom: 10px;
}

.hero p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
}


/* ================================
   Prediction Card
================================ */

.prediction-card {
  margin-top: 24px;
  padding: 32px;

  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.section-header {
  margin-bottom: 28px;
}

.section-header h2 {
  font-size: 24px;
  font-weight: 650;
  margin-bottom: 6px;
}

.section-header p {
  color: var(--muted);
  font-size: 14px;
}


/* ================================
   Form
================================ */

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.form-group input,
.form-group select {
  width: 100%;
  height: 48px;

  padding: 0 14px;

  border: 1px solid var(--border);
  border-radius: 10px;

  background: #fafafa;
  color: var(--text);

  font-size: 14px;
  font-family: inherit;

  outline: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.form-group input::placeholder {
  color: #9ca3af;
}

.form-group input:hover,
.form-group select:hover {
  border-color: #d1d5db;
}

.form-group input:focus,
.form-group select:focus {
  background: white;
  border-color: #6b7280;

  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}


/* ================================
   Price Input
================================ */

.input-with-unit {
  position: relative;
}

.input-with-unit input {
  padding-right: 70px;
}

.input-with-unit span {
  position: absolute;
  right: 14px;
  top: 50%;

  transform: translateY(-50%);

  font-size: 12px;
  font-weight: 600;
  color: var(--muted);

  pointer-events: none;
}


/* ================================
   Predict Button
================================ */

.predict-btn {
  width: 100%;
  height: 52px;

  margin-top: 28px;

  border: none;
  border-radius: 10px;

  background: var(--primary);
  color: white;

  font-family: inherit;
  font-size: 15px;
  font-weight: 600;

  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.predict-btn span {
  font-size: 20px;
  transition: transform 0.2s ease;
}

.predict-btn:hover {
  background: var(--primary-hover);
}

.predict-btn:hover span {
  transform: translateX(4px);
}

.predict-btn:active {
  transform: scale(0.99);
}


/* ================================
   Result
================================ */

.result-card {
  margin-top: 24px;
  padding: 22px;

  text-align: center;

  background: var(--success-bg);
  border: 1px solid #a7f3d0;
  border-radius: 12px;

  color: var(--success-text);
}

.result-label {
  display: block;

  margin-bottom: 6px;

  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.result-value {
  font-size: 24px;
  font-weight: 700;
}


/* ================================
   Error
================================ */

.error-card {
  margin-top: 24px;
  padding: 16px;

  text-align: center;

  background: var(--error-bg);
  border: 1px solid #fecaca;
  border-radius: 10px;

  color: var(--error-text);

  font-size: 14px;
  font-weight: 500;
}


/* ================================
   Footer
================================ */

footer {
  text-align: center;
  padding: 24px 0 8px;
}

footer p {
  color: #9ca3af;
  font-size: 12px;
}


/* ================================
   Responsive
================================ */

@media (max-width: 700px) {

  .page-container {
    padding: 16px 12px;
  }

  .hero {
    min-height: 220px;
    border-radius: 16px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero p {
    font-size: 15px;
  }

  .prediction-card {
    padding: 22px 18px;
    border-radius: 16px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .full-width {
    grid-column: auto;
  }

  .section-header h2 {
    font-size: 21px;
  }
}


/* ================================
   Small Mobile
================================ */

@media (max-width: 400px) {

  .page-container {
    padding: 10px;
  }

  .hero {
    min-height: 200px;
  }

  .hero h1 {
    font-size: 29px;
  }

  .hero p {
    font-size: 14px;
  }

  .prediction-card {
    padding: 20px 15px;
  }

  .predict-btn {
    height: 50px;
  }
}

