/* ======================
   GLOBAL STYLES & RESET
   ====================== */
* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

body, html { 
  font-family: 'Montserrat', sans-serif; 
  color: #1a1a1a; 
  line-height: 1.5; 
}

a { 
  text-decoration: none; 
  color: inherit; 
}

input:focus, 
select:focus, 
textarea:focus { 
  outline: none; 
  border-color: #0077b6; 
}

/* =============
   LAYOUT STYLES
   ============= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* NEW: FWD Banner Styling */
.fwd-banner {
  text-align: center;
  padding: 1.5rem 0;
  margin: 1rem 0;
  background: transparent; /* Remove or use #f8f8f8 for a background */
}

.fwd-text {
  font-size: 3.5rem;
  font-weight: 900;
  color: #0077b6; /* Matches your theme's primary blue */
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.sub-text {
  font-size: 1.5rem;
  font-weight: 600;
  color: #555; /* Subdued gray */
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Optional gradient effect for "FWD" */
.fwd-text.gradient {
  background: linear-gradient(90deg, #0077b6, #00b4d8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =============
   HEADER & NAV
   ============= */
header { 
  background: #ffffff; 
  border-bottom: 1px solid #e0e0e0; 
  position: sticky; 
  top: 0; 
  z-index: 100; 
}

nav { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  padding: 1rem; 
}

.logo { 
  font-size: 1.5rem; 
  font-weight: 700; 
  color: #0077b6; 
  text-transform: uppercase; 
  letter-spacing: 1px; 
}

.menu { 
  display: flex; 
  gap: 2rem; 
}

.menu a { 
  font-weight: 600; 
  color: #333; 
  transition: color 0.2s; 
}

.menu a:hover,
.menu a.active { 
  color: #0077b6; 
}

/* =========
   HERO SECTION
   ========= */
.hero { 
  position: relative; 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  justify-content: center; 
  height: 70vh; 
  background: linear-gradient(135deg, #0077b6, #00b4d8); 
  color: #fff; 
  text-align: center; 
  padding: 0 1rem; 
}

.hero h1 { 
  font-size: 3rem; 
  font-weight: 700; 
  margin-bottom: 1rem; 
  text-shadow: 0 2px 4px rgba(0,0,0,0.3); 
}

.hero p { 
  font-size: 1.2rem; 
  max-width: 500px; 
  margin-bottom: 2rem; 
}

.hero .buttons { 
  display: flex; 
  gap: 1rem; 
  flex-wrap: wrap; 
}

/* =============
   BUTTON STYLES
   ============= */
button,
.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

button.apply, 
button.next, 
.dealer-form-submit button {
  background: #0077b6; 
  color: #fff;
}

button.clear, 
button.prev { 
  background: #f0f0f0; 
  color: #333;
}

button[type="submit"] { 
  background: #0077b6; 
  color: #fff;
}

button.sell { 
  background: #ff6b6b; 
  color: #fff; 
}

button.buy { 
  background: #fff; 
  color: #0077b6; 
}

button.next:hover, 
button.apply:hover, 
button.sell:hover,
button.buy:hover,
.dealer-form-submit button:hover,
button[type="submit"]:hover {
  transform: translateY(-2px);
}

button.prev:hover, 
button.clear:hover { 
  background: #e0e0e0; 
}

.hero .buttons button:hover { 
  transform: translateY(-3px); 
}

/* =============
   FORM STYLES
   ============= */
.form-group { 
  margin-bottom: 1.5rem; 
}

label { 
  display: block; 
  margin-bottom: 0.5rem; 
  font-weight: 600; 
  color: #333;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  transition: border-color 0.2s;
}

.radio-group, 
.checkbox-group { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 1rem; 
  margin-top: 0.5rem;
}

.radio-group label, 
.checkbox-group label { 
  display: flex; 
  align-items: center; 
  gap: 0.5rem; 
  cursor: pointer;
  font-weight: normal;
}

.sell-form-section { 
  padding: 4rem 1rem; 
  background: #f9f9f9; 
}

.form-container { 
  max-width: 800px; 
  margin: 0 auto; 
  background: #fff; 
  border-radius: 8px; 
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
  overflow: hidden; 
}

.form-step { 
  display: none; 
  padding: 2.5rem; 
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-step.active { 
  display: block; 
}

.form-step h2 { 
  color: #0077b6; 
  margin-bottom: 1.5rem; 
  font-size: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.form-step h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: #00b4d8;
}

.form-buttons { 
  display: flex; 
  justify-content: space-between; 
  margin-top: 2rem; 
}

input[type="file"] {
  margin-top: 0.5rem;
  width: 100%;
}

.progress-bar {
  height: 6px;
  background: #e0e0e0;
  margin-bottom: 2rem;
  border-radius: 3px;
  overflow: hidden;
}

.progress {
  height: 100%;
  background: #00b4d8;
  width: 20%;
  transition: width 0.3s ease;
}

.dealer-form-container {
  max-width: 800px; 
  margin: 2rem auto 4rem; 
  padding: 2rem;
  border: 2px solid #0077b6; 
  border-radius: 8px; 
  background: #fff;
}

.dealer-form-container h2 { 
  color: #0077b6; 
  margin-bottom: 1.5rem; 
}

.dealer-form-group { 
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); 
  gap: 1rem; 
  margin-bottom: 1.5rem; 
}

.filters { 
  background: #e6f7ff; 
  padding: 1rem; 
  border-radius: 8px; 
}

.filters h3 { 
  color: #0077b6; 
  margin-bottom: 0.5rem; 
}

.filters .actions { 
  display: flex; 
  gap: 1rem; 
  margin-top: 1rem; 
}

/* =============
   CARD STYLES
   ============= */
.results { 
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
  gap: 1rem; 
  margin-top: 2rem; 
}

.card { 
  background: #fff; 
  border: 1px solid #ddd; 
  border-radius: 8px; 
  overflow: hidden; 
  transition: box-shadow 0.2s; 
}

.card:hover { 
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); 
}

.card img { 
  width: 100%; 
  display: block; 
}

.card-content { 
  padding: 1rem; 
}

.card-content h4 { 
  margin: 0 0 0.5rem; 
  font-size: 1.1rem; 
}

.card-content .price { 
  color: #28a745; 
  font-weight: 700; 
  margin-bottom: 0.5rem; 
}

.card-content .details { 
  font-size: 0.9rem; 
  color: #555; 
}

/* =============
   MODAL STYLES
   ============= */
.modal { 
  display: none; 
  position: fixed; 
  inset: 0; 
  background: rgba(0,0,0,0.6); 
  align-items: center; 
  justify-content: center; 
  z-index: 2000; /* ensure above all */
}

.modal.active { 
  display: flex; 
}

.modal-content { 
  background: #fff; 
  border-radius: 8px; 
  padding: 2rem; 
  width: 90%; 
  max-width: 600px; /* narrower for terms readability */
  max-width: 1000px; 
  position: relative; 
}

.modal-content h2 { 
  margin-bottom: 1rem; 
  color: #0077b6; 
}

.modal-content .close { 
  position: absolute; 
  top: 1rem; 
  right: 1rem; 
  background: none; 
  border: none; 
  font-size: 1.25rem; 
  cursor: pointer; 
}

/* =============
   FOOTER STYLES
   ============= */
footer { 
  background: var(--dark);
  color: var(--light); 
  padding: 4rem 0 2rem; 
}

.footer-container { 
  display: flex; 
  flex-wrap: wrap; 
  justify-content: space-between; 
}

.footer-section { 
  flex: 1 1 200px; 
  margin: 1rem; 
}

.footer-section h3 { 
  font-weight: 600; 
  margin-bottom: 0.5rem; 
  color: #0077b6; 
}

.footer-links a { 
  display: block; 
  color: rgba(255, 255, 255, 0.7);
  margin: 0.3rem 0; 
  transition: color 0.2s; 
}

.footer-links a:hover { 
  color: #0077b6; 
}

.footer-bottom { 
  text-align: center; 
  width: 100%; 
  margin-top: 2rem; 
  font-size: 0.85rem; 
  color: #666; 
}

.footer-bottom a { 
  color: #666; 
  margin: 0 0.5rem; 
}

.footer-bottom a:hover { 
  color: #0077b6; 
}
.sell-form-section {
  margin-bottom: 100px;
}
.form-step {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.form-step.active {
  display: block;
  opacity: 1;
}
