/**
 * Custom Font Embeds
 **/
 @import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=IBM+Plex+Sans:ital,wght@0,100..700;1,100..700&display=swap');

 /* Reset any box styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


/* -----------------------------------
   Variables (fonts, colors, etc.)
----------------------------------- */
:root {
  --font-body: IBM Plex Sans,Helvetica,Verdana,sans-serif;
  --font-heading: poynter-oldstyle-display,DM Serif Display,Times,Georgia,serif;
  --color-dark: #252931;
  --color-teal: #32AFA3;
  --color-gray-light: #C9C9C9;
  --color-gray-bg: #F5F5F5;
  --color-white: #FFFFFF;
  --color-text: #3E4451;
  --color-heading: #252931;
  --color-error: #D31215;
  --color-banner-bg: rgba(241, 101, 34, 0.9);
  --color-footer-dark: #231F20;
  --color-footer-gray: rgba(201, 201, 201, 1);
  --color-footer-link: var(--color-teal);
  --color-helper-text: #707070; 
  --color-error-outline: #D31215;
}

/* Body defaults */
body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text);
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0; /* Ensure no default margin on <body> */
}

main {
  background-color: var(--color-white);
  max-width: 100%;
  width: auto;
  padding-bottom: 0;
  flex: 1; /* Allow <main> to grow and fill available space */
  display: flex;
  flex-direction: column;
}

/* Headings */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 0.5em;
}
h1 { font-size: 32px; line-height: 1.2; }
h2 { font-size: 32px; line-height: 1.2; }
h3 { font-size: 28px; line-height: 1.3; }

/* Links */
a {
  color: var(--color-teal);
  text-decoration: underline;
}

/* Remove brand styling for phone numbers */
a[href^="tel:"] {
  color: inherit; /* Match the default text color */
  text-decoration: none;
}

/* Prevent line breaks for phone numbers and ensure words don't split */
.phone-number {
  white-space: nowrap; /* Prevent line breaks */
  word-wrap: normal; /* Ensure words don't split */
}

/* -----------------------------------
   Header
----------------------------------- */
.header-bar {
  width: 100%;
  background-color: var(--color-white);
  padding: 0.5rem 1rem;
}
.header-content {
  max-width: 1200px;
  margin: 0 auto;
  height: 120px; /* or 120px per design */
  display: flex;
  align-items: center;
  justify-content: center; /* Center content horizontally */
}
.logo img {
  margin: 0 auto;
  width: 100%;
  height: auto;
  max-width: 350px; /* Limit the maximum width for responsiveness */
}

/* Responsive header logo for mobile */
@media (max-width: 768px) {

  .logo img {
    width: 164px;
    height: 40px;
    display: block;
    margin: .5rem auto;
  }
}

/* -----------------------------------
   Text Banner
----------------------------------- */
.text-banner {
  width: 100%;
  background-color: var(--color-teal);
  padding: 0.75rem;
  text-align: center;
}
.banner-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 15px;
  max-width: 1200px;
  margin: 0 auto;
}

.banner-strong {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: var(--color-white);
}

.banner-call {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  color: var(--color-dark);
}

.banner-call a {
  color: var(--color-dark);
  text-decoration: none;
}

@media (max-width: 768px) {
  .banner-call {
    font-size: 16px;
  }
}

/* -----------------------------------
   Hero
----------------------------------- */
.hero {
  max-width: 1200px;
  margin: 2rem auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  padding: 0 1rem;
}

.hero-image {
  flex: 1;
  min-width: 48%;
}

.hero-image img {
  width: 100%;
  max-width: 600px; /* or your desired size */
  border-radius: 8px;
}
.hero-text {
  flex: 1;
  min-width: 48%;
}
.hero-text h1 {
  margin-bottom: 1rem;
}
.hero-text p {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.3;
  color: var(--color-text);
}

/* -----------------------------------
   Steps Intro (4 steps)
----------------------------------- */

/* Steps Intro Container */
.steps-intro {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;

  h2:first-child {
    font-size: 24px;
  }

}

@media (max-width: 768px) {
  /* Steps Intro Container */
  .steps-intro {

    h2:first-child {
      font-size: 24px;
    }

    h2 {
      font-size: 16px;
    }

  }
}

/* The existing .steps-container grid */
.steps-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background-color: transparent;
}

/* 2 columns on medium screens */
@media (max-width: 992px) {
  .steps-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 1 column on very small screens */
@media (max-width: 576px) {
  .steps-container {
    grid-template-columns: 1fr;
  }
}

/* Each individual step (image + heading) */
.step-box {
  background: transparent; 
  border-radius: 8px;
  padding: 1rem 1rem 1rem 0;
  display: flex;              /* make this a flex container */
  flex-direction: column;     /* stack children vertically */
  align-items: center;        /* center them horizontally */
  text-align: center;         /* center text within the box */
}

/* The step image */
.step-box img {
  max-width: 100%; 
  height: auto;
  margin-bottom: 0.5rem; /* space below the image */
}

/* The heading under the "step" image */
.step-box h2 {
  font-size: 20px;
  margin-bottom: 0;
}

.vin-disclaimer {
  font-size: 16px;
  margin-bottom: 1.5rem;
}

.vin-info {
  margin-top: 2rem;
}

/* -----------------------------------
   Teal line break (7px height)
----------------------------------- */
.teal-line {
  width: 100%;
  height: 7px;
  background-color: var(--color-teal);
  margin: 0;
}

/* -----------------------------------
   Form Section
----------------------------------- */

#bottom-section {
  background-color: var(--color-gray-bg);
}

#form-heading {
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 32px;
  margin-bottom: 1rem;
}

/* Add a gap under the form */
.form-section form {
  margin-bottom: 2rem;
}

.form-section {
  background-color: transparent;
  padding: 1rem 1rem;
  max-width: 1000px;
  margin: 0 auto 2rem;
  border-radius: 4px; /* optional if you want a subtle corner */
}

.form-section h2 {
  margin-bottom: 1rem;
}

.form-intro {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 32px;
  margin-bottom: 1rem;
}

.form-disclaimer {
  color: var(--color-error);
  margin-bottom: 2rem;
}

.form-section h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 28px;
}

/* Basic form styling */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-field {
  padding: 0 0 1rem 0;
}

.form-field label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--color-gray-light);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 16px;
}

select#zip {
  width: 50%;
}

.form-field textarea {
  resize: vertical;
}

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

@media (max-width: 768px) {
  .indicate-required {
    font-size: 12px;
  }
}

/* form-row allows multiple fields side by side */
.form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.form-row .form-field {
  flex: 1;
}
.contact-info, .vehicle-info-equal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/**
  * Vehicle Information Section
  */

.vehicle-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.vehicle-info .form-field {
  flex: 1;
}

.vehicle-info input#color {
  width: 150px;
}

.vehicle-info input#year {
  width: 90px
}

input[type="radio"] {
  accent-color: var(--color-teal)
}

/* small or half widths if you prefer more control */
.form-field.small {
  flex: 0 0 200px; /* or 1 if you want them to shrink equally */
}
.form-field.half {
  flex: 1 0 calc(50% - 1rem);
}

/* disclaimers / helper text */
.privacy-disclaimer,
.helper-text {
  font-size: 14px;
  color: var(--color-helper-text);
  margin-top: 0.25rem;
}

/* handle validation/error */
.helper-text.error {
  color: var(--color-error);
  display: block;
}

.error-outline {
  outline: 2px solid var(--color-error-outline);
}

/* Radio group example */
.form-radio-group {
  background: transparent;
  padding: 0 0 1rem 0;
  border: none;
}

.form-radio-group p {
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-radio-group label {
  margin-right: 1.5rem;
}

.form-radio-group input[type="radio"] {
  margin-right: 0.25rem;
}

/**
  * Hide strange required field as vendor does.
  */
.charityDescription {
  border: none;
  height: 50px;
  display: none;
}

/* Submit Button */
.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 56px;
  background-color: var(--color-teal);
  border: none;
  border-radius: 6px;
  color: #FBFAFA;
  font-weight: 700;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.2s ease;
  width: 10rem;
}

.submit-btn:hover {
  background-color: var(--color-dark);
  color: var(--color-teal);
}

/* Center the submit button on mobile */
@media (max-width: 768px) {
  .submit-btn {
    display: block;
    margin: 0 auto; /* Center horizontally */
    padding: .5rem;
  }
}

.post-form-text {
  margin: 2rem 0 1rem 0;
  font-size: 16px;
}

/* -----------------------------------
   Footer
----------------------------------- */
.footer {
  width: 100%;
}

/* Dark area (320px tall in design, but can be flexible) */
.footer-dark {
  background: var(--color-footer-dark);
  padding: 2rem 1rem;
  color: var(--color-white);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-left img {
  width: 100%;
  max-width: 200px; /* or your desired size */
}

.footer-left, .footer-middle, .footer-right {
  flex: 1;
}

.footer-heading {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* Example for the text in these columns */
.footer-left p,
.footer-middle p {
  font-size: 16px;
  line-height: 1.3;
}

/* Gray line (49px tall in design) */
.footer-gray-line {
  width: 100%;
  height: 49px;
  background-color: var(--color-gray-light);
}

/* narrow text above submit button */
.narrow-text {
  width: 25rem;
}

/* Footer bottom nav */
.footer-bottom {
  background-color: var(--color-gray-bg);
  padding: 1rem;
}

.footer-nav {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 20px;
  color: #252931;
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
}

.footer-menu a {
  font-weight: 400;
  font-size: 16px;
  color: var(--color-text);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.footer-menu a:hover {
  color: var(--color-teal);
}

/* Responsive footer adjustments */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
  }
  .footer-nav {
    flex-direction: column;
    gap: 1rem;
  }
}

/**
 * TESTING NEW FOOTER CSS 
 */
.footer-container {
  display: flex;
  flex-direction: column;
  font-family: "IBM Plex Sans", sans-serif;
}

.footer-main {
  background-color: var(--color-footer-dark);
  display: flex;
  width: 100%;
  padding: 4rem 2rem;
  flex-direction: column;
  align-items: center;
  font-size: 20px;
  color: var(--color-white);
  font-weight: 700;
}

.footer-content {
  display: flex;
  width: 100%;
  max-width: 1175px;
  align-items: center;
  gap: 100px;
}

.footer-logo {
  aspect-ratio: 4.22;
  object-fit: contain;
  width: 20rem;
  align-self: stretch;
  margin: 0 auto;
}

.footer-info, .footer-hours {
  align-self: stretch;
  flex-grow: 1;
  max-width: 18rem;
  margin: 0 auto
}

@media (max-width: 768px) {
  .footer-info, .footer-text-regular {
    font-size: 16px;
  }

}

.footer-text-regular {
  font-weight: 400;
}

.footer-link {
  font-weight: 400;
  text-decoration: underline;
  color: var(--color-footer-link);
}

.footer-nav {
  background-color: var(--color-footer-gray);
  display: flex;
  width: 100%;
  padding: 5px 70px;
  flex-direction: column;
  align-items: center;
}

.footer-nav-content {
  display: flex;
  width: 100%;
  max-width: 1175px;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  color: rgba(37, 41, 49, 1);
  font-size: 20px;
  font-weight: 700;
}

.footer-nav-links {
  display: flex;
  gap: 51px;
  font-size: 16px;
  color: rgba(62, 68, 81, 1);
  font-weight: 400;
}

.footer-nav-item {
  text-decoration: none;
  color: inherit;
}

@media (max-width: 991px) {
  .footer-main {
    padding: 100px 40px;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }
  
  .footer-logo {
    width: 300px;
  }
  
  .footer-nav-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .footer-nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .footer-main {
    padding: 60px 20px;
  }
  
  .footer-logo {
    width: 164px;
  }
  
  .footer-nav {
    padding: 5px 20px;
  }
  
  .footer-nav-links {
    gap: 15px;
    font-size: 14px;
  }


  a[href^="tel:"] {
    font-size: 16px;
    text-wrap: nowrap;
  }

}


/**
  * Validation CSS
  */
.error-message {
  color: var(--color-error);
  font-size: 14px;
  margin-top: 0.25rem;
}

.error-outline {
  outline: 2px solid var(--color-error-outline); /* Replaced hardcoded #D31215 */
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
  /* Hero text above hero image */
  .hero {
    flex-direction: column; /* Stack hero-text above hero-image */
    align-items: center;
    padding: 0 1rem;
    gap: 0;
  }

  .hero-text, 
  .hero-text p {
    order: -1; /* Ensure hero-text comes before hero-image */
    text-align: center; /* Center-align text for mobile */
    margin-bottom: 1rem;
    font-size: 16px;
  }

  .hero-image {
    order: 0; /* Ensure hero-image comes after hero-text */
  }

  /* vin-info text size adjustment */
  .vin-info {
    font-size: 12px;
    margin-top: 0;
  }

  /* General h3 text size adjustment */
  h1#hero-heading,
  h3 {
    font-size: 24px; /* Default for h3 outside the form-section */
  }

  #form-heading {
    color: var(--color-text);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 1rem;
  }

  /* h3 inside the form-section */
  .form-section h3 {
    font-size: 20px; /* Smaller text size for h3 inside the form-section */
  }

  /* Steps box: 2x2 layout for 4 steps */
  .steps-container {
    grid-template-columns: repeat(2, 1fr); /* Two columns */
    gap: 0rem;
  }

  .step-box img {
    max-width: 90%; /* Shrink images slightly */
    height: auto;
  }

  /* Steps box h2 text size adjustment */
  .step-box h2 {
    font-size: 16px;
  }

  /* Form section: stack fields vertically */
  .form-row {
    flex-direction: column;
  }

  .form-row .form-field {
    flex: 1 0 100%; /* Full width for each field */
  }

  .contact-info, .vehicle-info-equal {
    grid-template-columns: 1fr; /* Single column layout */
  }

  .vehicle-info {
    grid-template-columns: 1fr; /* Single column layout */
  }

  .form-field.small,
  .form-field.half {
    flex: 1 0 100%; /* Full width for small/half fields */
  }

  /* Ensure all form fields are full-width */
  .form-field input[type="text"],
  .form-field input[type="email"],
  .form-field input[type="tel"],
  .form-field select,
  .form-field textarea {
    width: 100%; /* Full width for all form fields */
  }

  /* Adjust form section padding for smaller screens */
  .form-section {
    padding: 0 1rem;
    max-width: 100%;
  }
}

/* Responsive adjustments for very small screens */
@media (max-width: 576px) {
  .steps-container {
    grid-template-columns: repeat(2, 1fr); /* Keep 2x2 layout for very small screens */
  }

  .step-box img {
    max-width: 100%; /* Ensure images fit container */
  }
}

/**
 * Thank You Page Styles
 **/
 .clean-bg {
  background-color: var(--color-gray-bg);
 }

.thank-you-page {
  background-color: var(--color-gray-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  text-align: center;
  margin-top: 2rem; /* Reduce gap near the header */
  margin-bottom: 4rem; /* Allow for a larger bottom gap */
}

.main-title {
  color: var(--color-heading);
  margin: 1rem 0 1rem; /* Adjust top margin for tighter spacing */
  font-weight: 700;
  font-size: 40px;
  font-family: var(--font-heading);
}

.confirmation-image {
  width: 280px;
  margin: 1.5rem 0;
  max-width: 100%;
}

.confirmation-message {
  color: var(--color-text);
  margin: 1rem auto;
  max-width: 576px;
  font: 400 16px var(--font-body);
}

@media (max-width: 768px) {
  .main-title {
    font-size: 32px;
  }

  .confirmation-message {
    font-size: 16px;
    max-width: 100%;
  }

  .confirmation-image {
    width: 200px;
  }
}

@media (max-width: 576px) {
  .main-title {
    font-size: 28px;
  }

  .confirmation-message {
    font-size: 16px;
  }

  .confirmation-image {
    width: 150px;
  }
}