/* prediction.css — MotorVault */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body { background: #0a0a0a; color: #f0ede8; font-family: 'DM Sans', sans-serif; font-size: 14px; line-height: 1.75; }
a { color: inherit; text-decoration: none; }

/* NAV */
.nav { display: flex; align-items: center; gap: 2rem; padding: 0 5vw; height: 64px; background: #0a0a0a; border-bottom: 1px solid rgba(255,255,255,0.07); position: sticky; top: 0; z-index: 100; }
.logo { font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; letter-spacing: 0.08em; }
.logo span { color: #e8c84a; }
.nav-links { display: flex; gap: 2rem; flex: 1; }
.nav-links a { font-size: 13px; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.nav-links a:hover { color: #fff; }
.btn-ghost { font-size: 13px; color: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.1); padding: 7px 16px; border-radius: 8px; white-space: nowrap; transition: border-color 0.2s, color 0.2s; }
.btn-ghost:hover { border-color: rgba(255,255,255,0.3); color: #fff; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; margin-left: auto; }

/* HEADER */
.header { padding: 4rem 5vw 3rem; max-width: 900px; margin: 0 auto; text-align: center; }
.badge { display: inline-block; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 14px; border-radius: 999px; border: 1px solid rgba(232,200,74,0.3); background: rgba(232,200,74,0.08); color: #e8c84a; margin-bottom: 1rem; }
.header__title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: 0.04em; line-height: 1; margin-bottom: 0.75rem; }
.header__title span { color: #e8c84a; }
.header__sub { font-size: 14px; color: rgba(255,255,255,0.4); max-width: 480px; margin: 0 auto; }

/* MAIN WRAP */
.main-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 900px; margin: 0 auto; padding: 0 5vw 3rem; align-items: start; }

/* FORM CARD */
.form-card { background: #111; border: 1px solid rgba(255,255,255,0.07); border-radius: 14px; padding: 1.75rem; }
.form-card__title { font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; letter-spacing: 0.06em; margin-bottom: 1.5rem; padding-bottom: 0.75rem; border-bottom: 1px solid rgba(255,255,255,0.07); }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }

.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.field label { font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.35); }

.field input, .field select {
  background: #181818; border: 1px solid rgba(255,255,255,0.08); border-radius: 8px;
  color: #f0ede8; font-family: 'DM Sans', sans-serif; font-size: 13.5px;
  padding: 0.65rem 0.9rem; outline: none; width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s; -webkit-appearance: none;
}
.field input::placeholder { color: rgba(255,255,255,0.2); }
.field input:focus, .field select:focus { border-color: rgba(232,200,74,0.5); box-shadow: 0 0 0 3px rgba(232,200,74,0.07); }
.field select { cursor: pointer; }
.hint { font-size: 11.5px; color: rgba(255,255,255,0.25); }
.err  { font-size: 12px; color: #e05252; }

.input-prefix-wrap, .input-suffix-wrap { position: relative; display: flex; align-items: center; }
.input-prefix-wrap input { padding-left: 1.75rem; }
.input-suffix-wrap input { padding-right: 2.5rem; }
.prefix { position: absolute; left: 10px; color: #e8c84a; font-weight: 500; font-size: 14px; pointer-events: none; }
.suffix { position: absolute; right: 10px; color: rgba(255,255,255,0.3); font-size: 12px; pointer-events: none; }

.btn-predict {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: #e8c84a; color: #0a0a0a; font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 700; padding: 0.85rem; border: none;
  border-radius: 8px; cursor: pointer; transition: background 0.2s, transform 0.2s;
  letter-spacing: 0.04em; margin-top: 0.5rem;
}
.btn-predict:hover { background: #f5d76a; transform: translateY(-1px); }

/* RESULT CARD */
.result-card {
  background: #111; border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px; padding: 1.75rem;
  display: flex; flex-direction: column; gap: 1.25rem;
}
.result-card--empty { justify-content: center; min-height: 300px; }

/* Empty state */
.result-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; text-align: center; padding: 2rem; }
.result-empty svg { color: rgba(255,255,255,0.1); margin-bottom: 0.5rem; }
.result-empty__title { font-size: 15px; font-weight: 500; color: rgba(255,255,255,0.3); }
.result-empty__sub { font-size: 13px; color: rgba(255,255,255,0.2); }

/* Result */
.result-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; color: rgba(255,255,255,0.3); }

.result-center {
  background: rgba(232,200,74,0.07); border: 1px solid rgba(232,200,74,0.2);
  border-radius: 10px; padding: 2.5rem 1.5rem; text-align: center; margin: 0.5rem 0;
}
.result-center__label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.35); margin-bottom: 0.5rem; }
.result-center__value { font-family: 'Bebas Neue', sans-serif; font-size: 4.5rem; color: #e8c84a; letter-spacing: 0.04em; line-height: 1; }

.result-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag { font-size: 12px; padding: 4px 12px; border-radius: 999px; background: #1a1a1a; border: 1px solid rgba(255,255,255,0.08); color: rgba(255,255,255,0.5); }

.result-note { font-size: 11px; color: rgba(255,255,255,0.2); }

/* HOW IT WORKS */
.how-it-works { max-width: 900px; margin: 0 auto; padding: 0 5vw 4rem; text-align: center; }
.how-label { font-size: 10px; letter-spacing: 0.16em; color: rgba(255,255,255,0.25); margin-bottom: 1.5rem; }
.how-steps { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.how-step { background: #111; border: 1px solid rgba(255,255,255,0.07); border-radius: 12px; padding: 1.25rem 1.5rem; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; flex: 1; min-width: 160px; }
.how-step__num { width: 32px; height: 32px; border-radius: 50%; background: rgba(232,200,74,0.1); border: 1px solid rgba(232,200,74,0.3); color: #e8c84a; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.how-step__text { font-size: 13px; color: rgba(255,255,255,0.45); text-align: center; }
.how-arrow { font-size: 1.25rem; color: rgba(255,255,255,0.15); }

/* FOOTER */
.footer { background: #111; border-top: 1px solid rgba(255,255,255,0.07); padding: 1.5rem 5vw; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; }
.footer p { font-size: 12px; color: rgba(255,255,255,0.2); }
.footer div { display: flex; gap: 1.5rem; }
.footer div a { font-size: 12px; color: rgba(255,255,255,0.3); transition: color 0.2s; }
.footer div a:hover { color: #e8c84a; }

/* RESPONSIVE */
@media (max-width: 760px) {
  .main-wrap { grid-template-columns: 1fr; }
  .row-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: #111; border-bottom: 1px solid rgba(255,255,255,0.07); padding: 1rem 5vw; gap: 1rem; z-index: 99; }
  .nav-toggle { display: block; }
  .row-2, .row-3 { grid-template-columns: 1fr; }
  .header, .main-wrap, .how-it-works { padding-left: 1.25rem; padding-right: 1.25rem; }
  .footer { flex-direction: column; align-items: flex-start; }
  .how-arrow { display: none; }
}