/* ===========================

   RESET AND BASE STYLES

   =========================== */

* {

  margin: 0;

  padding: 0;

  box-sizing: border-box;

}



body {

  font-family: 'Roboto', sans-serif;

  background-color: #fff;

  color: #333;

  line-height: 1.6;

}



/* ===========================

   HEADER & LOGO

   =========================== */

header {

  background-color: #FF8C42;

  padding: 20px 0;

  text-align: center;

  color: white;

}



/* Original snippet for header-content and logo positioning */

.header-content {

  position: relative;

  text-align: center;

}



.logo {

  position: absolute;

  top: 80%;

  left: 100px; /* Adjust to your preferred distance from the edge */

  transform: translateY(-50%);

  height: 225px; /* Desktop logo size */

}



header h1 {

  margin: 0;

  font-size: 2.5em;

}



/* ===========================

   NAVIGATION

   =========================== */

nav {

  margin-top: 10px;

  text-align: center;

}



nav a {

  color: white;

  text-decoration: none;

  margin: 0 15px;

  font-size: 1.1em;

  transition: color 0.3s;

}



nav a:hover {

  color: #ffe0c4;

  text-decoration: underline;

}



/* Mobile: center logo above heading */

@media (max-width: 767px) {

  .header-content {

    display: flex;

    flex-direction: column;

    align-items: center;

  }



  .logo {

    position: static;   /* Reset absolute positioning */

    transform: none;    /* Remove previous transform */

    height: 300px;      /* Larger for mobile if desired */

    margin-bottom: 10px; /* Spacing below logo */

  }



  header h1 {

    text-align: center;

  }

}



/* ===========================

   BASKET (TOP-RIGHT)

   =========================== */

.basket-container {

  position: absolute;

  top: 35px;

  right: 65px;

}



.basket-link {

  display: flex;

  align-items: center;

  text-decoration: none;

  color: white;

  font-weight: bold;

}



.basket-icon {

  width: 30px;

  height: 30px;

  margin-right: 5px;

  transition: transform 0.3s ease;

}



.basket-icon:hover {

  transform: scale(1.2);

}



#basket-count {

  background-color: red;

  color: white;

  font-size: 10px;

  font-weight: bold;

  padding: 2px 6px;

  border-radius: 50%;

}



/* ===========================
   PROCESS SECTION (HOW IT WORKS & Our Repairs)
   =========================== */

.process-container {
  text-align: center;
  padding: 40px 20px;
  background-color: #f2f2f2;
}

.process-container h2 {
  font-size: 2em;
  color: #FF8C42; /* Orange heading color */
  margin-bottom: 20px;
}

.process {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 40px;
  flex-wrap: wrap;
  padding: 20px 0;
}

/* Each step box */
.process .step {
  flex: 1;
  max-width: 280px;
  min-width: 250px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 20px;
  text-align: center;
  position: relative;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;

  height: 300px; /* Uniform height for desktop */
}

/* Centered icons */
.process .step img {
  max-width: 50px;
  height: auto;
  margin-bottom: 10px;
  display: block;
}

/* Step headings */
.process .step h2 {
  color: #FF8C42;
  font-size: 1.2em;
  margin: 10px 0;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Step paragraphs fill remaining space */
.process .step p {
  flex-grow: 1;
  display: flex;
  align-items: center;
  text-align: center;
  margin: 0;
}

.process .step:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-color: #FF8C42;
}

.process .step {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
  width: 250px;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
}


/* ===========================

   SERVICES SECTION

   =========================== */

.services {

  padding: 40px 20px;

  background-color: #f9f9f9;

}



.services .section-header {

  text-align: center;

  margin-bottom: 30px;

}



.services .section-header h2,

.services .section-header p {

  margin: 0 auto;

  max-width: 800px;

}



.grid-container {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

  gap: 20px;

  padding: 20px 0;

  max-width: 1200px;

  margin: 0 auto;

  justify-content: center;

}



.grid-item {

  background-color: #FFFBF5;

  border: 1px solid #FF8C42;

  border-radius: 10px;

  padding: 15px;

  text-align: center;

  transition: transform 0.3s, box-shadow 0.3s;

  display: flex;

  flex-direction: column;

  justify-content: center;

}



.grid-item img {

  width: 100%;

  height: auto;

  border-radius: 8px;

  object-fit: cover;

}



.grid-item h3 {

  margin: 10px 0 5px 0;

  color: #FF8C42;

  font-size: 1.2em;

}



.grid-item p {

  font-size: 1.4em;

  color: #566;

  font-weight: bold;

}



.grid-item a {

  text-decoration: none;

  color: inherit;

  display: block;

  height: 100%;

}



.grid-item:hover {

  transform: translateY(-5px);

  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);

}



.grid-item:hover a {

  background-color: rgba(255, 140, 66, 0.1);

}



/* ===========================

   TESTIMONIALS SECTION

   =========================== */

.testimonials {

  padding: 40px 20px;

  background-color: #FFFBF5;

  text-align: center;

}



.testimonials h2 {

  color: #FF8C42;

  margin-bottom: 20px;

}



.testimonial {

  max-width: 600px;

  margin: 0 auto 20px auto;

  font-style: italic;

}



.testimonial h4 {

  margin-top: 10px;

  color: #333;

}



/* ===========================

   CONTACT SECTION

   =========================== */

.contact {

  padding: 40px 20px;

  background-color: #FFF;

  text-align: center;

}



.contact h2 {

  margin-bottom: 20px;

  color: #FF8C42;

}



.contact form {

  max-width: 500px;

  margin: 0 auto;

  text-align: left;

}



.contact label {

  display: block;

  margin-bottom: 5px;

  color: #333;

}



.contact input,

.contact textarea {

  width: 100%;

  padding: 10px;

  margin-bottom: 15px;

  border: 1px solid #ccc;

  border-radius: 5px;

}



.contact button {

  background-color: #FF8C42;

  color: white;

  padding: 12px 20px;

  border: none;

  border-radius: 5px;

  cursor: pointer;

  font-size: 1em;

  width: 100%;

  transition: background-color 0.3s;

}



.contact button:hover {

  background-color: #e07b3d;

}



/* ===========================

   FOOTER

   =========================== */

footer {

  background-color: #FF8C42;

  color: white;

  text-align: center;

  padding: 15px 0;

  position: relative;

  width: 100%;

}



.social-icons {

  margin-top: 10px;

}



.social-icons a {

  margin: 0 10px;

  display: inline-block;

}



.social-icons img {

  width: 24px;

  height: 24px;

  transition: transform 0.3s;

}



.social-icons img:hover {

  transform: scale(1.2);

}



/* ===========================

   BACK TO TOP BUTTON

   =========================== */

#backToTop {

  display: none;

  position: fixed;

  bottom: 40px;

  right: 40px;

  z-index: 99;

  font-size: 18px;

  border: none;

  outline: none;

  background-color: #FF8C42;

  color: white;

  cursor: pointer;

  padding: 15px;

  border-radius: 50%;

  transition: background-color 0.3s, transform 0.3s;

}



#backToTop:hover {

  background-color: #e07b3d;

  transform: scale(1.1);

}



/* ===========================

   ANIMATIONS & TRANSITIONS

   =========================== */

@keyframes fadeIn {

  from { opacity: 0; transform: translateY(20px); }

  to   { opacity: 1; transform: translateY(0); }

}



.grid-item {

  opacity: 0;

  animation: fadeIn 0.5s forwards;

  animation-delay: var(--delay);

}



.grid-item:nth-child(1) { --delay: 0s; }

grid-item:nth-child(2) { --delay: 0.2s; }

grid-item:nth-child(3) { --delay: 0.4s; }

grid-item:nth-child(4) { --delay: 0.6s; }

grid-item:nth-child(5) { --delay: 0.8s; }



/* ===========================

   CENTERED CONTAINER (GENERAL)

   =========================== */

.centered-container {

  max-width: 600px;

  margin: 0 auto;

  text-align: center;

  padding: 20px;

}



/* ===========================

   FORM STYLING

   =========================== */

form {

  display: flex;

  flex-direction: column;

  gap: 10px;

  background-color: #ffff;

  padding: 20px;

  border-radius: 8px;

}



form label {

  font-weight: bold;

  text-align: left;

  display: block;

  margin-bottom: 5px;

}



form input {

  padding: 10px;

  border: 1px solid #ccc;

  border-radius: 5px;

  font-size: 16px;

}



/* ===========================

   BUTTONS

   =========================== */

.btn-orange {

  background-color: #FF8C42;

  color: white;

  border: none;

  padding: 10px;

  font-size: 16px;

  border-radius: 5px;

  cursor: pointer;

  transition: background-color 0.3s;

}



.btn-orange:hover {

  background-color: #E07B3D;

}



/* ===========================

   BASKET & CHECKOUT PAGE ITEMS

   =========================== */

.basket-list {

  text-align: left;

  margin-bottom: 20px;

}



.basket-item {

  display: flex;

  align-items: center;

  justify-content: flex-start;

  gap: 15px;

}



.basket-item img {

  width: 50px;

  height: 50px;

  margin-right: 10px;

}



.basket-item p {

  font-size: 18px;

  font-weight: bold;

  color: #333;

}



.basket-item p strong {

  color: #FF8C42;

}



/* ===========================

   ORDER CONFIRMATION

   =========================== */

.order-confirmation {

  text-align: left;

  padding: 40px;

  background-color: #FFFBF5;

  border: 1px solid #FF8C42;

  border-radius: 10px;

  max-width: 600px;

  margin: 40px auto;

}



.order-confirmation h2 {

  color: #FF8C42;

  margin-bottom: 10px;

}



.order-confirmation p {

  font-size: 1.2em;

  color: #555;

  margin-bottom: 15px;

}



.order-confirmation ul {

  list-style: none;

  padding: 0;

}



.order-confirmation ul li {

  background-color: #FFE5D0;

  padding: 10px;

  margin: 5px 0;

  border-radius: 5px;

}



.order-item-container {

  display: flex;

  align-items: center;

  gap: 15px;

  margin-bottom: 10px;

  padding: 10px;

  background-color: #f9f9f9;

  border-radius: 8px;

}



.order-item-img {

  width: 180px;

  height: auto;

  border-radius: 5px;

}



.order-item-details {

  font-size: 1em;

  color: #333;

}



/* ===========================

   THANK YOU PAGE

   =========================== */

.thank-you {

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  min-height: 80vh;

  text-align: center;

  padding: 20px;

  background-color: #fff;

}



.thank-you h2 {

  font-size: 2em;

  margin-bottom: 20px;

  color: #333;

}



.thank-you p {

  font-size: 1.2em;

  margin-bottom: 30px;

  color: #555;

}



.thank-you a {

  display: inline-block;

  padding: 10px 20px;

  background-color: #FF8C42;

  color: #fff;

  text-decoration: none;

  border-radius: 5px;

  transition: background-color 0.3s ease;

}



.thank-you a:hover {

  background-color: #e07b3d;

}



/* ===========================

   MODAL STYLES

   =========================== */

.modal {

  display: none;

  position: fixed;

  z-index: 1000;

  left: 0;

  top: 0;

  width: 100%;

  height: 100%;

  background-color: rgba(0, 0, 0, 0.5);

  justify-content: center;

  align-items: center;

}



.modal-content {

  background-color: white;

  padding: 20px;

  border-radius: 10px;

  text-align: center;

  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);

  width: 300px;

}



.modal-content p {

  font-size: 1.2em;

  margin-bottom: 15px;

}



.modal-content button {

  background-color: #FF8C42;

  color: white;

  border: none;

  padding: 10px 15px;

  margin: 5px;

  border-radius: 5px;

  cursor: pointer;

}



.modal-content button:hover {

  background-color: #E07B3D;

}



/* ===========================

   TOAST MESSAGE

   =========================== */

.toast {

  visibility: hidden;

  min-width: 250px;

  background-color: #FF8C42;

  color: white;

  text-align: center;

  padding: 12px;

  border-radius: 5px;

  position: fixed;

  bottom: 30px;

  left: 50%;

  transform: translateX(-50%);

  font-size: 1em;

  z-index: 1000;

  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);

  opacity: 0;

  transition: opacity 0.5s, bottom 0.5s;

}



.toast.show {

  visibility: visible;

  opacity: 1;

  bottom: 50px;

}

/* General Page Styling */
body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  margin: 0;
  padding: 0;
  text-align: center;
}



nav a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  font-size: 18px;
}

nav a:hover {
  text-decoration: underline;
}


/* Search Box */
#searchBox {
  width: 80%;
  max-width: 400px;
  padding: 10px;
  font-size: 16px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

/* Filter Buttons */
button {
  background-color: #FF8C42; /* SwiftFix Muted Orange */
  color: white;
  border: none;
  padding: 10px 15px;
  margin: 5px;
  cursor: pointer;
  border-radius: 5px;
  font-size: 16px;
}

button:hover {
  background-color: #E07B3D; /* Darker Orange */
}


.process .step:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-color: #FF8C42;
}

.process .step {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
  width: 250px;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
}

.repair-item:hover {
transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-color: #FF8C42;
}
/* Repairs Grid */
#repairs-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px;
}

/* Individual Repair Item */
.repair-item {
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin: 15px;
  width: 300px;
  border: 2px solid transparent;
  text-align: center;
  transition: transform 0.2s ease-in-out;
}



/* Repair Images */
.repair-item img {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 5px;
}

/* Repair Title */
.repair-item h3 {
  font-size: 18px;
  color: #333;
  margin: 10px 0;
}

/* Repair Price */
.repair-item p {
  font-size: 16px;
  font-weight: bold;
  color: #E07B3D; /* Darker Orange */
}

/* Add to Basket Button */
.repair-item button {
  background-color: #FF8C42;
  padding: 8px 12px;
  font-size: 14px;
}

.repair-item button:hover {
  background-color: #E07B3D;
}
/* Search & Filters Container */
.filters-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px; /* Spacing between elements */
  flex-wrap: wrap; /* Ensures responsiveness on smaller screens */
  margin-bottom: 20px;
}

/* Search Box */
#searchBox {
  flex: 1;
  max-width: 450px;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

/* Dropdown Filters */
select {
  background-color: #FF8C42;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  border-radius: 5px;
  font-size: 16px;
  min-width: 150px;
  text-align: center;
}

select:hover {
  background-color: #E07B3D;
}
.search-container {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.search-container input {
  width: 100%;
  max-width: 400px;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.filters-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}







/* ========== SEARCH BAR STYLING ========== */
.search-box-container {
  position: relative;
  width: 400px;
  margin-right: 10px;
}

.search-box-container input {
  width: 100%;
  padding: 8px 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  transition: all 0.3s ease-in-out;
}

.search-box-container input:focus {
  border-color: #E07B3D;
  outline: none;
}

/* ========== SEARCH DROPDOWN STYLING ========== */
.search-dropdown {
  position: absolute;
  top: 105%;
  left: 0;
  width: 100%;
  background: white;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  display: none;
  max-height: 300px;
  overflow-y: auto;
  z-index: 9999;
  white-space: nowrap;
}

/* Dropdown item: Flexbox for table-like alignment */
.dropdown-item {
  display: flex;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #f1f1f1;
  background: white;
  gap: 15px;
}

/* Search result images */
.dropdown-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 5px;
}

/* Text container */
.search-result-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.search-result-details strong {
  font-size: 14px;
  color: #333;
  font-weight: bold;
}

.search-result-details p {
  font-size: 12px;
  color: #666;
  margin: 2px 0;
}

/* Align "Add" Button */
.dropdown-item button {
  background-color: #FF8C42;
  color: white;
  padding: 8px 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  flex-shrink: 0;
  align-self: center;
}

.dropdown-item button:hover {
  background-color: #E07B3D;
}

/* ========== HEADER & NAVIGATION ========== */
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  background-color: #FF8C42;
  text-align: center;
  position: relative;
}

.header-content h1 {
  flex-grow: 1;
  text-align: center;
  font-size: 2em;
  color: white;
  margin: 0;
}

/* Navigation Bar */
nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 10px 0;
  background-color: #FF8C42;
}

/* Centered Search Bar in Navigation */
.nav-search-container {
  position: relative;
  width: 380px;
}

.nav-search-container input {
  width: 100%;
  padding: 8px 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  transition: all 0.3s ease-in-out;
}

.nav-search-container input:focus {
  border-color: #E07B3D;
  outline: none;
}

/* ========== MOBILE RESPONSIVENESS ========== */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
  }

  /* Ensure navigation items stack nicely */
  nav {
    flex-direction: column;
    gap: 10px;
  }

  /* Make search bar full-width on mobile */
  .nav-search-container {
    width: 90%;
    max-width: 400px;
    margin: 10px auto;
  }

  /* Search dropdown adapts for mobile */
  .search-dropdown {
    width: 100%;
    left: 0;
    font-size: 14px;
  }

  .dropdown-item {
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 8px;
  }

  .dropdown-item img {
    width: 40px;
    height: 40px;
  }

  .search-result-details {
    font-size: 12px;
  }

  .dropdown-item button {
    font-size: 12px;
    padding: 6px 10px;
  }
}

@media (min-width: 992px) {
  #repairs-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 20px;
  }
  /* Remove margins and let grid handle widths */
  .repair-item {
    margin: 0;
    width: 275;
  }
}
/* ===========================
   CHECKOUT PAGE SPECIFIC STYLES
   =========================== */

/* Target checkout-specific styles without affecting other pages */
.checkout-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.checkout-details {
    flex: 1.2;
    background-color: #f8f8f8;
    padding: 25px;
    border-radius: 8px;
}

.order-summary {
    flex: 0.8;
    background-color: #FFE5D4;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: auto; /* Remove fixed height */
}

.basket-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

.basket-item img {
    width: 80px;
    height: 80px;
    border-radius: 6px;
}

.basket-item p {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 5px 0;
}

.basket-item p strong {
    color: #333; /* Ensure device name is the same color as repair type */
}

.total-price {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    margin-top: 15px;
}

.form-row {
    display: flex;
    gap: 15px;
    justify-content: space-between;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

label {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

input {
    padding: 12px;
    border: 2px solid #E07B3D;
    border-radius: 6px;
    font-size: 16px;
    width: 100%;
}

.terms-container {
    background-color: #f0f0f0;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-top: 20px;
}

.checkout-container .btn-orange {
    display: block;
    width: 100%;
    padding: 14px;
    background-color: #FF8C42;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.checkout-container .btn-orange:hover {
    background-color: #E07B3D;
}

/* ===========================
   MOBILE RESPONSIVENESS
   =========================== */
@media screen and (max-width: 768px) {
    .checkout-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 15px;
    }

    .checkout-details, .order-summary {
        width: 100%;
        flex: none;
    }

    .form-row {
        flex-direction: column;
        gap: 10px;
    }

    .basket-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .basket-item img {
        width: 60px;
        height: 60px;
    }
}
/* Desktop styles */
.checkout-container {
  display: flex;
  flex-direction: row;
}

/* Put the checkout details first, order summary second */
.checkout-details {
  order: 1;
  flex: 1;
}

.order-summary {
  order: 2;
  width: 300px; /* Adjust as needed */
}


/* Hide desktop version on mobile */
@media (max-width: 768px) {
  .process-desktop {
    display: none !important;
  }
  .process-mobile {
    display: block !important;
  }
}


@media (max-width: 768px) {
  /* Hide the desktop version */
  .process-desktop {
    display: none !important;
  }
  /* Ensure mobile version is shown */
  .process-mobile {
    display: block !important;
    margin-top: -10px; /* Reduce spacing between sections */
  }

  /* Mobile Grid Layout: Compact and evenly spaced */
  .process-container.process-mobile .process {
    display: grid;
    grid-template-columns: repeat(2, minmax(8px, 1fr)); /* Force smaller width */
    grid-template-rows: repeat(2, auto);
    gap: 4px; /* Smaller gap for tighter layout */
    padding: 0 5px;
    width: 100%;
    justify-content: center;
  }

  /* Shrinking individual grid items */
  .process-container.process-mobile .process .step {
    width: 150px !important; /* Force smaller box width */
    min-width: 60px !important;
    max-width: 200px !important;
    height: 150px !important; /* Reduce height */
    min-height: 120px !important;
    max-height: 200px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 5px; /* Reduce padding */
    font-size: 9px; /* Smaller text */
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin: auto; /* Ensure proper centering */
  }

  /* Shrink icons */
  .process-container.process-mobile .process .step img {
    max-width: 50px !important; /* Force smaller icon */
    height: auto;
    margin-bottom: -5px;
  }

  /* Adjust text */
  .process-container.process-mobile .process .step h2 {
    font-size: 18px !important; /* Smaller heading */
    margin-bottom: -8px;
  }

  .process-container.process-mobile .process .step p {
    font-size: 12px !important; /* Smaller description text */
    margin: 0;
  }
}


@media (max-width: 768px) {
  /* Force .grid-container to use grid layout with 2 columns */
  #repairs-list.grid-container {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    width: 100%;
    margin: 0 auto;
  }
  
  /* Ensure each repair item occupies the full width of its grid cell */
  #repairs-list.grid-container .repair-item {
    width: 100%;
    box-sizing: border-box;
    padding: 4px;
    margin: 0;
  }
}

/* ===== Desktop Version: Ensure Desktop Process is Shown, Mobile is Hidden ===== */
@media (min-width: 769px) {
  .process-desktop {
    display: block !important; /* Show desktop version on large screens */
  }
  .process-mobile {
    display: none !important; /* Hide mobile version on desktop */
  }
}

/* ===== Mobile Version: Ensure Mobile Process is Shown, Desktop is Hidden ===== */
@media (max-width: 768px) {
  .process-desktop {
    display: none !important; /* Hide desktop version on mobile */
  }
  .process-mobile {
    display: block !important; /* Show mobile version on mobile */
  }
}
@media (max-width: 768px) {
  .checkout-container {
    display: flex;
    flex-direction: column-reverse; /* Reverse order on mobile */
  }

  .order-summary {
    order: -1; /* Force order summary to the top */
  }
}

@media (max-width: 768px) {
  .order-summary-container {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content */
    justify-content: center;
    text-align: center; /* Ensure text is centered */
    margin: 0 auto;
  }
}

/* ===== Checkout Page Fix ===== */
@media (max-width: 768px) {
  /* Ensure the checkout container uses a column layout */
  .checkout-container {
    display: flex;
    flex-direction: column;
  }
  /* Force order summary to appear first (above details) */
  .checkout-container .order-summary {
    order: -1 !important;
    width: 100%;
    margin-bottom: 10px;  /* Adjust spacing as needed */
  }
  .checkout-container .checkout-details {
    order: 1 !important;
    width: 100%;
  }
}
/* ===== Order Confirmation Page Centering ===== */

/* This rule applies only on the Order Confirmation page, thanks to the unique class */
.order-confirmation-page .order-summary {
  margin: 0 auto !important;
  text-align: center !important;
  width: 100%;
  padding: 0 10px;
}

/* Optionally, center the overall content of the Order Confirmation page */
.order-confirmation-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}


/* Ensure order summary content is left-aligned on the Order Confirmation page */
.order-confirmation-page .order-summary {
  margin: 0 auto !important;
  text-align: left !important;  /* Change from center to left */
  width: 100%;
  max-width: 500px;  /* Optional: limit the width if needed */
  padding: 0 10px;
}

/* ===========================
   HEADER & NAVIGATION
   =========================== */

/* Global Header Styles (applies to all devices) */
header {
  background-color: #FF8C42;
  padding: 20px 10px;
  color: white;
  text-align: center;
}

.header-content {
  position: relative;
  text-align: center;
  /* For mobile, we’ll use a column layout */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.logo {
  width: 120px; /* Adjust as needed */
  height: auto;
  position: static;  /* Remove absolute positioning */
  transform: none;
  margin-bottom: 10px;
}

header h1 {
  font-size: 2em; /* Slightly smaller than before */
  margin: 0;
}

/* Navigation: Force a column layout so the search bar is below */
nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background-color: #FF8C42;
  padding: 10px 20px;
}

/* Nav-top: This container holds nav links and basket in one row */
.nav-top {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 20px;
  width: 100%;
}

/* Nav links styling */
.nav-top a {
  font-size: 1.1em;
  text-decoration: none;
  color: white;
}

/* Basket link styles (remains inline with nav links) */
.basket-link {
  display: flex;
  align-items: center;
}

.basket-icon {
  width: 30px;
  height: 30px;
  margin-right: 5px;
  transition: transform 0.3s ease;
}

.basket-icon:hover {
  transform: scale(1.2);
}

#basket-count {
  background-color: red;
  color: white;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 50%;
}

/* Nav Search Container: Always full width and below nav-top */
.nav-search-container {
  width: 100%;
  max-width: 800px;
  margin: 10px auto 0;
  text-align: center;
}

.nav-search-container input {
  width: 100%;
  padding: 8px 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  transition: border-color 0.3s;
}

.nav-search-container input:focus {
  border-color: #E07B3D;
  outline: none;
}

/* ===========================
   MEDIA QUERIES (if additional tweaks needed)
   =========================== */

/* Desktop (min-width: 768px) */
@media (min-width: 768px) {
  .header-content {
    /* On desktop, you might revert to a row layout if you prefer */
    flex-direction: row;
    justify-content: space-between;
    padding: 0 20px;
  }
  .logo {
    width: 150px;
  }
  header h1 {
    font-size: 2.5em;
    margin: 0;
  }
  
  /* Navigation remains column-based because we want search always below links */
  /* Adjust spacing if desired */
  nav {
    flex-direction: column;
    gap: 10px;
  }
  .nav-top {
    justify-content: center;
  }
}

/* Make repair service steps look clickable */
.process .step {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.process .step:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


/* Back to Top Button - Base Style */
#backToTop {
  display: none;               /* Hidden by default */
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 1000;
  font-size: 18px;
  background-color: #FF8C42;
  color: white;
  border: none;
  padding: 15px;
  border-radius: 80%;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s, opacity 0.5s;
  opacity: 0;
}

/* Show button when active (via JS adding .show) */
#backToTop.show {
  display: block;
  opacity: 1;
}

/* Hover effect */
#backToTop:hover {
  background-color: #E07B3D;
  transform: scale(1.1);
}

/* Mobile adjustments (optional) */
@media (max-width: 768px) {
  #backToTop {
    bottom: 20px;  /* Closer to the bottom on small screens */
    right: 20px;   /* Adjust right margin */
    padding: 12px; /* Slightly smaller padding */
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .process-desktop {
    display: none !important;
  }
  .process-mobile {
    display: block !important;
  }
}

@media (min-width: 769px) {
  .process-desktop {
    display: block !important;
  }
  .process-mobile {
    display: none !important;
  }
}
/* 1) Default: Show desktop version, hide mobile version */
.process-desktop {
  display: block; /* Show by default */
}
.process-mobile {
  display: none;  /* Hide by default */
}

/* 2) On small screens (up to 768px), show mobile & hide desktop */
@media (max-width: 768px) {
  .process-desktop {
    display: none !important;
  }
  .process-mobile {
    display: block !important;
  }
}

/* Make the section stand out with a subtle background */
.brand-repairs-desktop {
  background: linear-gradient(to bottom, #f8f8f8, #ffffff);
  padding: 50px 20px;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Style the heading to make it pop */
.brand-repairs-desktop h2 {
  font-size: 32px;
  color: #FF8C42;
  font-weight: bold;
  margin-bottom: 15px;
}

/* Style the paragraph for better readability */
.brand-repairs-desktop p {
  max-width: 850px;
  margin: 0 auto 25px;
  font-size: 18px;
  line-height: 1.6;
  color: #444;
}

/* Make the repair cards more appealing */
.brand-repairs-desktop .process {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Style each repair brand box */
.brand-repairs-desktop .step {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
  width: 250px;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
}

.brand-repairs-desktop .step:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-color: #FF8C42;
}

/* Improve the brand logos */
.brand-repairs-desktop .step img {
  width: 60px;
  height: auto;
  margin-bottom: 10px;
}

/* Style the brand names */
.brand-repairs-desktop .step h2 {
  font-size: 22px;
  color: #FF8C42;
  font-weight: bold;
  margin-bottom: 8px;
}

/* Adjust text inside cards */
.brand-repairs-desktop .step p {
  font-size: 16px;
  color: #555;
}

/* Mobile styling */
@media (max-width: 768px) {
  .brand-repairs-desktop {
    padding: 40px 15px;
  }
  
  .brand-repairs-desktop .process {
    flex-direction: column;
    align-items: center;
  }

  .brand-repairs-desktop .step {
    width: 100%;
    max-width: 300px;
  }
}









@media (min-width: 1024px) {
  header {
    /* Shrink the header height */
    min-height: 150px;
    padding: 10px 50px;

    /* Make the entire header area a positioning context 
       and center everything by default */
    position: relative;
    text-align: center;
    background-color: #FF8C42; /* if you want the orange background */
  }

  /* Absolutely position the logo on the left */
  .header-content {
    position: absolute;
    left: 50px;              /* adjust how far from the left edge */
    top: 50%;                /* vertically center it */
    transform: translateY(-50%);
  }

  /* Keep the logo at a comfortable size */
  .header-content img {
    height: 140px;           /* adjust to taste */
  }

  /* Make nav an inline-block so it can be centered by text-align: center */
  nav {
    display: inline-block;
    vertical-align: middle;  /* keep it aligned nicely in the header */
  }

  /* Center the nav links themselves in a row */
  .nav-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
  }

  /* Keep the search bar centered below the links */
  .nav-search-container {
    margin-top: 5px;
    text-align: center;
  }
}


@media (min-width: 1024px) {
  /* Increase spacing between nav links themselves */
  .nav-top {
    gap: 100px; /* or however wide you want */
  }

  /* Give extra space above the search bar and center it */
  .nav-search-container {
    margin-top: 30px; /* increase vertical space above */
    text-align: center;
  }

  /* Make the search box wider and more comfortable */
  #globalSearchBox {
    width: 650px;   /* increase width */
    padding: 8px 12px; /* increase internal padding */
    font-size: 16px;   /* make the text bigger if you like */
  }
}


/* FAQ Section */
.faq-section {
  padding: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-section h2 {
  text-align: center;
  color: #FF8C42;
  margin-bottom: 30px;
  font-size: 2rem;
}

/* Each Category Title */
.faq-category h3 {
  background-color: #FFEDE3;
  color: #E07B3D;
  padding: 15px 20px;
  margin: 10px 0;
  cursor: pointer;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  position: relative;
  transition: background-color 0.2s ease;
}

.faq-category h3:hover {
  background-color: #FFE0CC;
}

.faq-category h3::after {
  content: "+";
  position: absolute;
  right: 20px;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-category.open h3::after {
  content: "–";
}

/* FAQ Content */
.faq-content {
  display: none;
  padding: 0 20px 20px 20px;
  background-color: #fff5ec;
  border-radius: 0 0 10px 10px;
  line-height: 1.6;
  font-size: 0.95rem;
}

.faq-content p {
  margin: 15px 0;
}

/* Responsive Styling */
@media (max-width: 600px) {
  .faq-section {
    padding: 20px;
  }

  .faq-section h2 {
    font-size: 1.5rem;
  }

  .faq-category h3 {
    font-size: 1rem;
    padding: 12px 15px;
  }

  .faq-content {
    font-size: 0.95rem;
  }
}

.brand-repairs-desktop ul li {
  margin: 8px 0;
}

.brand-repairs-desktop .step:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Mobile Header Container */
.mobile-header {
  background-color: #FF8C42;
  color: white;
  font-family: Arial, sans-serif;
}

/* Top Bar Styles */
.mobile-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
}

.mobile-left,
.mobile-center,
.mobile-right {
  flex: 1;
}

.mobile-left {
  text-align: left;
}

.mobile-center {
  text-align: center;
}

.mobile-right {
  text-align: right;
}

.mobile-logo {
  height: 100px;
}

.menu-toggle, 
.menu-close {
  background: none;
  border: none;
  font-size: 30px;
  color: white;
  cursor: pointer;
}

/* Basket Icon (if present) */
.basket-icon {
  height: 30px;
  vertical-align: middle;
}

#basket-count-mobile {
  background-color: red;
  color: white;
  font-size: 10px;
  padding: 5px 6px;
  border-radius: 75%;
  margin-left: 5px;
}

/* Mobile Search Container (outside hamburger menu) */
.nav-search-container-mobile {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 400px;
  background-color: #fff;
  padding: 0px 0px;
  box-sizing: border-box;
}
.nav-search-container-mobile input {
  width: 100%;
  padding: 10px 40px 10px 40px; /* Extra padding for the icon */
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  color: #333;
  outline: none;
  background-color: #fafafa;
  background-image: url("images/search-icon.svg");
  background-repeat: no-repeat;
  background-position: 10px center;
  
}
.nav-search-container-mobile input::placeholder {
  color: #999;
  opacity: 1;
}

/* Search Dropdown Styles */
.search-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  color: #333;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  z-index: 100;
}
.dropdown-item {
  padding: 10px;
  border-bottom: 1px solid #ccc;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.dropdown-item img {
  width: 50px;
  height: auto;
}
.search-result-details {
  flex-grow: 1;
}
.btn-orange {
  background-color: #FF8C42;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
}

/* Mobile Menu Panel (Hamburger Navigation) */
.mobile-menu-panel {
  display: none; /* Hidden by default */
  background-color: #FF8C42;
  padding: 20px;
  margin-top: 10px;
}
.mobile-menu-panel.open {
  display: block;
}
.mobile-nav a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.3);
}

/* ✅ Show mobile header on small screens (phones + small tablets) */
@media (max-width: 768px) {
  .desktop-header {
    display: none !important;
  }
  .mobile-header {
    display: block !important;
  }
}

/* ✅ Additionally: show mobile header on touch devices ONLY if screen isn't massive */
@media (hover: none) and (pointer: coarse) and (max-width: 1024px) {
  .desktop-header {
    display: none !important;
  }
  .mobile-header {
    display: block !important;
  }
}

/* ✅ Ensure desktop header shows by default otherwise */
.desktop-header {
  display: block;
}
.mobile-header {
  display: none;
}

.mobile-menu-panel {
  display: none;
  background-color: #FF8C42;
  padding: 0;
  margin-top: 0;
}

.mobile-menu-panel.open {
  display: block;
}

.mobile-nav {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 8px; /* Tighter spacing */
  padding: 10px 0;
}

.mobile-nav a {
  color: white;
  text-decoration: none;
  padding: 6px 10px;
  font-size: 1rem;
  border-radius: 0px;
  background: transparent;
  transition: background 0.2s ease;
}

.mobile-nav a:hover,
.mobile-nav a:focus {
  background-color: rgba(255, 255, 255, 0.1);
}

.email-reminder {
  background-color: #fff3cd;
  border-left: 5px solid #ff8c42;
  padding: 10px;
  margin: 10px 0;
  font-size: 1rem;
}


/* Blog Section Styling */

.blog-container {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.blog-container h1 {
  font-size: 36px;
  text-align: center;
  margin-bottom: 40px;
  color: #333;
}

/* Blog grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* Blog preview cards */
.blog-post {
  background: #ffffff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.blog-post:hover {
  transform: translateY(-5px);
}

.blog-post h2 {
  font-size: 22px;
  margin-bottom: 10px;
  color: #222;
}

.blog-post p {
  font-size: 16px;
  color: #555;
  margin-bottom: 15px;
}

.read-more {
  background-color: #FF8C42;
  color: white;
  border: none;
  padding: 10px 20px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 8px;
  font-size: 14px;
}

.read-more:hover {
  background-color: #e07b3d;
}

.blog-full {
  max-width: 900px;
  margin: 40px auto;
  background: white;
  padding: 40px 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
}

.blog-full h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #333;
}

.blog-full p {
  font-size: 18px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 30px;
}

.back-button {
  background-color: #FF8C42;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

.back-button:hover {
  background-color: #e07b3d;
}


.back-button:hover {
  background-color: #333;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-post {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.blog-post h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

.blog-post p {
  font-size: 16px;
  margin-bottom: 20px;
}

.read-more {
  background-color: #FF8C42;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.read-more:hover {
  background-color: #e07b3d;
}

.blog-container {
  padding: 20px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.blog-post {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.3s ease;
}

.blog-post:hover {
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
}

.blog-post h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.blog-post p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 15px;
}

.read-more {
  background-color: #ff8c42;
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.read-more:hover {
  background-color: #e07b3d;
}

/* Full blog view */
.blog-full {
  background: white;
  padding: 30px;
  margin-top: 20px;
  border-radius: 10px;
  text-align: center;
}

.blog-full h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.blog-full p {
  font-size: 1.05rem;
  color: #333;
}

.back-button {
  margin-top: 20px;
  background-color: #333;
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.back-button:hover {
  background-color: #ff8c42;
}

/* RESPONSIVE: Mobile adjustment */
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 side-by-side */
  }
}

@media (max-width: 480px) {
  .blog-grid {
    grid-template-columns: 1fr; /* 1 column on very small screens */
  }
}

.blog-main-title {
  text-align: center;
  font-size: 2.2rem;
  color: #ff8c42;
  margin-bottom: 30px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px; /* Was 20px, now 30px for slight extra breathing room */
  margin-top: 30px;
}


.blog-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.blog-meta {
  margin: 10px 0;
  font-size: 0.9rem;
  color: #777;
  text-align: center;
}

.blog-date {
  font-style: italic;
}

.blog-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
  width: 100%;
}

.blog-link:hover {
  background-color: #f8f8f8;
  border-radius: 10px;
}

.blog-full {
  text-align: left;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.blog-full h2, 
.blog-full h3, 
.blog-full p, 
.blog-full ul, 
.blog-full li {
  text-align: left;
}
.blog-post-image {
  width: 100%;
  max-width: 800px;
  margin: 20px auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.mobile-nav {
  display: flex;
  flex-wrap: wrap; /* <-- THIS allows them to wrap onto a new line */
  justify-content: center; /* center them nicely */
  gap: 20px; /* space between items */
  margin-top: 20px;
}

.mobile-nav a {
  font-size: 18px;
  color: white;
  text-decoration: none;
  padding: 5px 10px;
}

.mobile-nav a:hover {
  text-decoration: underline;
}

.footer-wrapper {
  position: relative;
  background-color: #FF8C42;
  color: white;

  text-align: center;
}

.footer-center {
  max-width: 100%;
}

.footer-payments {
  position: absolute;
  right: 350px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 16px;
}

.pay-icon {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.social-icons {
  margin: 10px 0;
  display: flex;
  justify-content: center;
  gap: 15px;
}

footer a {
  color: white;
  text-decoration: underline;
}
@media (max-width: 768px) {
  .footer-wrapper {
    text-align: center;
  }

  .footer-payments {
    position: static;
    transform: none;
    margin-top: 20px;
    justify-content: center;
  }
}


.reviews-section {
  max-width: 1000px;
  margin: 50px auto;
  padding: 0 20px;
}

.splide__title {
  text-align: center;
  color: #FF8C42;
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* Card styling */
.review-card {
  background: #fff;
  padding: 1rem;
  border-left: 4px solid #FF8C42;
  border-radius: 6px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.review-card em {
  font-style: italic;
  margin-bottom: 0.75rem;
  flex-grow: 1;
}

/* ★ stars above the name */
.review-stars {
  font-size: 1.2rem;
  color: #FF8C42;
  margin: 0.5rem 0;
  letter-spacing: 2px;
}

/* Name & source */
.review-author {
  font-weight: bold;
  color: #333;
  margin: 0.25rem 0;
}

.review-source {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.5rem;
}

/* Hide Splide pagination dots */
.splide__pagination {
  display: none;
}

/* Responsive: 1 card on mobile */
@media (max-width: 768px) {
  .review-card {
    padding: 1rem;
  }
}
/* Make each slide a centered flex container */
.splide__slide {
  display: flex !important;
  justify-content: center;
  align-items: flex-start;
}

/* Stack card contents and center them */
.review-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  justify-content: flex-start;
}

/* Limit quote width so it wraps centrally */
.review-card em {
  max-width: 85% !important;
  margin: 0 0 1rem !important;
  line-height: 1.4 !important;
  text-align: center !important;
}

/* Center the stars and tighten spacing */
.review-stars {
  margin: 0 0 0.5rem !important;
}

/* Name snug beneath stars */
.review-author {
  margin: 0 0.25rem 0.75rem !important;
}

/* Ensure the “Google Review” text sits centered too */
.review-source {
  text-align: center !important;
}

/* Vertically center the arrows over the track */
.splide__arrow {
  top: 50% !important;
  transform: translateY(-50%) !important;
}
/* Make each slide a centered flex container */
.splide__slide {
  display: flex !important;
  justify-content: center;
  align-items: flex-start;
}

/* Stack card contents and center them */
.review-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  justify-content: flex-start;
}

/* Limit quote width so it wraps centrally */
.review-card em {
  max-width: 85% !important;
  margin: 0 0 1rem !important;
  line-height: 1.4 !important;
  text-align: center !important;
}

/* Center the stars and tighten spacing */
.review-stars {
  margin: 0 0 0.5rem !important;
}

/* Name snug beneath stars */
.review-author {
  margin: 0 0.25rem 0.75rem !important;
}

/* Ensure the “Google Review” text sits centered too */
.review-source {
  text-align: center !important;
}

/* Vertically center the arrows over the track */
.splide__arrow {
  top: 50% !important;
  transform: translateY(-50%) !important;
}
/* — Make the list itself stretch slides to equal height — */
.splide__list {
  display: flex !important;
  align-items: flex-start !important;
}

/* — Ensure each slide is top-aligned, not centered — */
.splide__slide {
  display: flex !important;
  align-items: flex-start !important;
  /* remove any lingering justify or center */
  justify-content: flex-start !important;
}

/* — Make the card fill its slide and stack items top→bottom — */
.review-card {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: center !important;
  height: 100%;
}

/* — Optional: give every card the same minimum height — */
.review-card {
  min-height: 240px; /* tweak this to whatever “tall enough” is for your longest quote */
}

/* — Cap the quote width again so it centers — */
.review-card em {
  max-width: 85% !important;
  margin: 0 0 1rem !important;
  line-height: 1.4 !important;
  text-align: center !important;
}
.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}

.splide__arrow {
  background: #FF8C42;
}



/* Trade-In Wrapper */
.tradein-wrapper {
  max-width: 600px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}

.tradein-wrapper h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
}

/* Search Box */
.search-box {
  position: relative;
  margin-bottom: 20px;
}

#modelSearch {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  border: 2px solid #ccc;
  border-radius: 8px;
  background-color: #fff;
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  border: 1px solid #ddd;
  border-top: none;
  max-height: 250px;
  overflow-y: auto;
  text-align: left;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.search-results div {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
}

.search-results div:hover {
  background: #f8f8f8;
}

/* Quote Box */
.quote-box {
  display: none;
  margin-top: 30px;
  padding: 24px;
  background: #f4fef4;
  border: 2px solid #bde5b8;
  border-radius: 10px;
  text-align: center;
}

.quote-box img {
  width: 90px;
  height: auto;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.quote-box h3 {
  margin: 0 0 6px;
  font-size: 20px;
  color: #333;
}

.quote-box p {
  margin: 8px 0 4px;
  font-size: 16px;
  color: #333;
}

#quoteAmount {
  font-size: 24px;
  font-weight: bold;
  color: #118c4f;
}

/* GB and Grade Buttons */
.gb-buttons,
.grade-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 10px;
}

.gb-buttons button,
.grade-buttons button {
  padding: 10px 14px;
  font-size: 15px;
  background-color: #f2f2f2;
  color: #333;
  border: 1px solid #bbb;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-weight: 500;
}

.gb-buttons button:hover,
.grade-buttons button:hover {
  background-color: #eaeaea;
  color: #000;
  border-color: #999;
}

.gb-buttons button.active,
.grade-buttons button.active {
  background-color: #118c4f;
  color: white;
  border-color: #118c4f;
}

/* Continue Button */
.continue-button {
  margin-top: 20px;
  padding: 12px 24px;
  font-size: 16px;
  background-color: #118c4f;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.continue-button:hover {
  background-color: #0d6d3a;
}

/* Trade-In Confirm Page */
.tradein-confirm-wrapper {
  max-width: 700px;
  margin: 60px auto;
  padding: 0 20px;
  font-family: 'Arial', sans-serif;
}

.tradein-confirm-wrapper h2 {
  text-align: center;
  font-size: 26px;
  margin-bottom: 30px;
  color: #222;
}

.quote-summary {
  text-align: center;
  padding: 20px;
  border: 2px solid #cceacc;
  border-radius: 10px;
  background-color: #f4fef4;
  margin-bottom: 30px;
}

.quote-summary img {
  width: 100px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.quote-summary h3 {
  margin: 10px 0 5px;
  font-size: 20px;
  color: #333;
}

.quote-summary p {
  margin: 4px 0;
  font-size: 16px;
  color: #444;
}

.summary-price strong {
  font-size: 22px;
  color: #118c4f;
}

.tradein-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tradein-form h3 {
  font-size: 18px;
  margin-top: 10px;
  color: #222;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
}

.tradein-form label {
  display: flex;
  flex-direction: column;
  font-weight: 500;
  color: #333;
  font-size: 15px;
}

.tradein-form input {
  margin-top: 6px;
  padding: 10px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.tradein-form button[type='submit'] {
  margin-top: 10px;
  padding: 12px;
  font-size: 16px;
  background-color: #118c4f;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.tradein-form button[type='submit']:hover {
  background-color: #0d6d3a;
}

/* Mobile Adjustments */
@media (max-width: 600px) {
  .tradein-wrapper {
    padding: 0 15px;
  }

  .quote-box img,
  .quote-summary img {
    width: 70px;
  }

  .quote-box h3,
  .quote-summary h3 {
    font-size: 18px;
  }

  #quoteAmount,
  .summary-price strong {
    font-size: 20px;
  }
}
#condition-description {
  background: #f2f2f2;
  padding: 10px;
  border-left: 4px solid #118c4f;
  border-radius: 4px;
  margin-top: 8px;
  font-size: 0.95rem;
}









.tradein-how-wrapper {
  background: #f9f9f9;
  padding: 60px 40px;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}


.tradein-how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}


.how-it-box {
  background: #fff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.2s ease;
}

.how-it-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.how-icon {
  font-size: 36px;
  margin-bottom: 10px;
}

.how-title {
  font-size: 18px;
  font-weight: bold;
  color: #FF8C42;
  margin-bottom: 10px;
}

.how-description {
  font-size: 15px;
  color: #444;
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .tradein-how-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

