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

body {
    font-family: 'Montserrat', sans-serif;
}
html, body {
    height: 100%;
    background-color: black;
    /* color: #ceaf73; */
    color: #a9853f;
}

a,
a:link,
a:visited,
a:hover,
a:active {
    color: #a9853f;
}

footer {
    padding: 10px;
}


h1 {
    font-size: 3rem;
    margin-top: 5px;
    margin-bottom: 10px;
}

h2 {
    font-size: 2.5rem;
    margin-top: 10px;
    margin-bottom: 10px;
}

h3 {
    font-size: 2rem;
    /* margin-top: 10px; */
    margin-bottom: 15px;
}

header {
    width: 100%;
    padding: 15px;
    /* background-color: white; */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
}

p {
    margin-top: 5px;
    padding: 5px;
    font-size:medium;
}

section {
    width: 100%;
    margin-bottom: 20px;
    padding: 10px;
    /* padding-left: 20%;
    padding-right: 20%; */
    padding-left: 10%;
    padding-right: 10%;
    box-sizing: border-box;
    /* border: solid 1px red; */
}

ul {
  margin-top: 0.25em;
  margin-bottom: 1em;
  padding-left: 2.5em;
}
li {
  margin: 0;
  padding: 0;
}

/**********************************************************

CAROUSEL

**********************************************************/
.carousel-container {
  width: 100%;
  max-width: 960px;
  margin: 40px auto;
  overflow: hidden;
  overflow-x: hidden;
  position: relative;
  /* border: red solid 2px; */
  display: flex;
  flex-direction: column;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
  will-change: transform;
}

.carousel-item {
  min-width: 100%;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
  position: relative;
  /* border: yellow solid 2px; */
}

.carousel-media-wrapper {
  display: inline-flex;
  /* display: flex; */
  justify-content: center;
  align-items: center;
  /* width:100%; */
}

/* adjust these percentages to fit the page better */
.carousel-media-wrapper img,
.carousel-media-wrapper video {
  width: auto;
  height: auto;
  max-width: 40%;
  max-height: 40%;
  object-fit: contain;
  border-radius: 12px;
  display: block;
  border: var(--primary-color) solid 3px;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: white;
  background: rgba(0, 0, 0, 0.4);
  border: none;
  cursor: pointer;
  z-index: 2;
  padding: 0.5rem 1rem;
}

.carousel-nav.left {
  left: 10px;
}

.carousel-nav.right {
  right: 10px;
}

.carousel-pagination {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  background: #888;
  border-radius: 50%;
  cursor: pointer;
}

.carousel-dot.active {
  background: #fff;
}

/* Only restrict selection inside carousel */
.carousel-container,
.carousel-nav,
.carousel-track,
.carousel-pagination,
.carousel-dot {
  user-select: none;
}

@media (max-width: 768px) {
  .carousel-item {
    padding: 0;
  }

  .carousel-media-wrapper img,
  .carousel-media-wrapper video {
    /* max-width: 90%; */
    max-width: 50%;
    max-height: 70vh;
    margin: 0 auto;
  }

  .carousel-track {
    gap: 0; /* prevent spacing between items */
  }
}

















.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.phone-section {
    display: flex;
    align-items: center;
    margin-right: 10px;
    white-space: nowrap;
}

.phone-section img {
    width: 24px;
    margin-right: 5px;
}

.logo-section {
    text-align: center;
}

.logo-section img {
    max-width: 100%;
    height: auto;
}

.nav-section {
    display: flex;
    align-items: center;
    /* background-color: black;
    color: var(--primary-color); */
}

.nav-links {
    display: flex;
}

.nav-links a {
    margin: 0 10px;
    text-decoration: none;
    color: var(--primary-color);
    /* font-weight: 500; */
    font-weight: bold;
    white-space: nowrap;
}

/* Mobile menu button */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--primary-color);
}



.alt {
    /* background-color: #ceaf73; */
    background-color: #a9853f;
    color: black;
}






.car {
    width:216.6666%;
    border: solid 1px white;
    float:right;
}

.car-button-view {
    padding: 10px 20px;
    background-color: #a9853f;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    transition: background-color 0.3s;
    width:90%;
    box-sizing: border-box;
    z-index:8000;
}

.car-button-view:hover {
    background-color:#906a20;
}

.car-button-view:active {
    transform: translateY(1px);
}

.car-button-finance {
    padding: 10px 20px;
    margin-top: 10px;
    margin-bottom:5px;
    color: black;
    border: solid 2px black;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    width:90%;
    box-sizing: border-box;
    z-index:8000;
}

.car-button-finance:hover {
    background-color: black;
    color: white;
}

.car-button-finance:active {
    transform: translateY(1px);
}

.car-content {
    box-sizing: border-box;
    position: relative;
    padding-bottom: 140px;
    height: 100%;
}

.car-content-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

.car-content-text {
    padding-left: 10px;
    padding-right: 10px;
}

.car-image {
    width: 100%;           /* Make image take full width of container */
    aspect-ratio: 4/3;     /* Modern browsers: maintain 4:3 ratio */
    object-fit: cover;     /* Ensure image covers the area without distortion */
    display: block;
    z-index:8000;
}

.car-name {
    font-weight: bold;
    font-size: 1.5rem;
    color: black;
    margin-bottom:5px;
}

.car-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #a9853f;
    padding-top:0px;
    margin-top:0px;
    margin-bottom:0px;
}

.car-terms {
    font-size: smaller;
    padding-top:0px;
    margin-top:0px;
    margin-bottom:0px;
}

.car-text {
    color: black;
    margin-bottom:5px;
}

.car-weekly {

    color: black;
    font-style: italic;
    margin-top:0px;
}

.cars-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    background-color: black;
    padding: 0px;
}

.cars-grid-item {
    background-color: white;
    padding: 0px;
    text-align: center;
    flex: 1;
}







.footer-link {
    color: black !important;
}


.menu a {
    color:#a9853f;
    text-decoration: none;
    font-weight:bold;
}

.p-0 {
    padding:0px;
}

.pl-5 {
    padding-left: 5px;
}

.pl-10 {
    padding-left: 10px;
}

.video-section {
    padding-top: 0;
    padding-bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-section video {
    /* width: 100%; */
    display: block;
}

.w-100 {
    width:100%;
}

.w-100p {
    width:100%;
}

.w-68 {
    width:68%;
}

/***************************************************
*
*    CLAUDE FORM
*
****************************************************/
/* Modern Form CSS - Contemporary Styling */
:root {
/* --primary-color: #4361ee;
--primary-hover: #3a56d4; */
--primary-color: #a9853f;
--primary-hover: #906a20;
--error-color: #ef476f;
--success-color: #06d6a0;
--text-color: #2b2d42;
--text-light: #8d99ae;
--bg-color: #ffffff;
--bg-light: #f8f9fa;
--border-radius: 8px;
--input-padding: 12px 16px;
--transition: all 0.3s ease;
--shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Base Form Styling */
.form-container {
/* max-width: 600px; */
max-width: 1000px;
margin: 0 auto;
padding: 24px;
margin-top: 10px;
background-color: var(--bg-color);
border-radius: 12px;
box-shadow: var(--shadow);
/* font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; */
/* box-sizing: border-box; */
}

.form-group {
margin-bottom: 20px;
font-size:14px;
}

.form-label {
display: block;
margin-bottom: 8px;
font-weight: 500;
color: var(--text-color);
font-size: 14px;
}

/* Input Styling */
.form-input,
.form-textarea,
.form-select {
width: 100%;
padding: var(--input-padding);
font-family: 'Montserrat', sans-serif;
font-size: 16px;
border: 1px solid #e0e0e0;
border-radius: var(--border-radius);
background-color: var(--bg-light);
color: var(--text-color);
transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
outline: none;
border-color: var(--primary-color);
box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.form-textarea {
min-height: 120px;
resize: vertical;
}

/* Select Element Styling */
.form-select {
appearance: none;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238d99ae' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 16px center;
padding-right: 40px;
}

/* Checkbox and Radio Styling */
.form-checkbox-group,
.form-radio-group {
display: flex;
align-items: center;
margin-bottom: 8px;
}

.form-checkbox,
.form-radio {
position: absolute;
opacity: 0;
}

.form-checkbox + label,
.form-radio + label {
position: relative;
cursor: pointer;
padding-left: 28px;
font-size: 14px;
color: var(--text-color);
user-select: none;
}

.form-checkbox + label:before,
.form-radio + label:before {
content: '';
position: absolute;
left: 0;
top: 0;
width: 18px;
height: 18px;
border: 1px solid #e0e0e0;
background: var(--bg-light);
transition: var(--transition);
}

.form-checkbox + label:before {
border-radius: 4px;
}

.form-radio + label:before {
border-radius: 50%;
}

.form-checkbox:checked + label:before {
background-color: var(--primary-color);
border-color: var(--primary-color);
}

.form-radio:checked + label:before {
border-color: var(--primary-color);
border-width: 5px;
background-color: var(--bg-light);
}

.form-checkbox:checked + label:after {
content: '';
position: absolute;
left: 6px;
top: 2px;
width: 6px;
height: 11px;
border: solid white;
border-width: 0 2px 2px 0;
transform: rotate(45deg);
}

.form-checkbox:focus + label:before,
.form-radio:focus + label:before {
box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

/* Button Styling */
.btn {
display: inline-block;
padding: 12px 24px;
font-size: 16px;
font-weight: 500;
text-align: center;
text-decoration: none;
border-radius: var(--border-radius);
border: none;
cursor: pointer;
transition: var(--transition);
background-color: var(--primary-color);
color: white;
}

.btn:hover {
background-color: var(--primary-hover);
transform: translateY(-1px);
}

.btn-secondary {
background-color: #f8f9fa;
color: var(--text-color);
border: 1px solid #e0e0e0;
}

.btn-secondary:hover {
background-color: #edf2f7;
}

/* Form Validation Styling */
.form-input.error,
.form-textarea.error,
.form-select.error {
border-color: var(--error-color);
}

.form-input.success,
.form-textarea.success,
.form-select.success {
border-color: var(--success-color);
}

.error-message {
color: var(--error-color);
font-size: 12px;
margin-top: 4px;
}

/* Fix the form overflow issues */

/* Adjust the form-row margins and widths */
.form-row {
display: flex;
flex-wrap: wrap;
margin: 0 -10px;
width: 100%; /* Ensure the row doesn't exceed parent width */
box-sizing: border-box; /* Include padding in width calculation */
}

/* Fix the form-col sizing */
.form-col {
flex: 1 0 calc(50% - 20px);
margin: 0 10px 20px;
max-width: calc(50% - 20px); /* Prevent columns from growing too wide */
box-sizing: border-box; /* Include padding in width calculation */
}

/* Apply box-sizing to all elements */
*,
*::before,
*::after {
box-sizing: border-box;
}

/* Fix nested form-row inside form-col */
.form-col .form-row {
margin: 0 -5px; /* Smaller margin for nested rows */
}

.form-col .form-row .form-col {
margin: 0 5px 10px; /* Smaller margin for nested columns */
}

/* Make sure inputs don't overflow */
.form-input,
.form-textarea,
.form-select {
width: 100%;
max-width: 100%; /* Ensure no overflow */
}

/* Adjust container padding for small screens */
@media (max-width: 768px) {
.form-container {
padding: 16px;
}

.form-col {
flex: 1 0 calc(100% - 20px); /* Full width on mobile */
max-width: calc(100% - 20px);
}
}

/* Responsive Styles */
@media (max-width: 768px) {
.form-container {
padding: 16px;
}

.form-input,
.form-textarea,
.form-select,
.btn {
padding: 10px 14px;
font-size: 14px;
}
}

/* Media query for mobile devices */
@media (max-width: 768px) {
    .cars-grid {
        flex-direction: column;
    }

    .cars-grid-item {
        width: 100%;
    }

    p {
        font-size:small;
    }
}

/* Responsive styles */
        @media (max-width: 992px) {
            section {
                padding-left: 5%;
                padding-right: 5%;
            }
            .header-container {
                flex-wrap: wrap;
            }

            .logo-section {
                order: 1;
                width: 100%;
                /* margin-bottom: 15px; */
            }

            .phone-section {
                order: 2;
                flex: 1;
            }

            .nav-section {
                order: 3;
                flex: 2;
                justify-content: flex-end;
            }
        }

        @media (max-width: 768px) {
            section {
                padding-left: 3%;
                padding-right: 3%;
            }
            .nav-links {
                display: none;
                position: absolute;
                top: 100%;
                left: 0;
                width: 100%;
                /* background-color: white; */
                background-color: black;
                flex-direction: column;
                padding: 15px;
                box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            }

            .nav-links.active {
                display: flex;
            }

            .nav-links a {
                padding: 10px 0;
                margin: 0;
                text-align: center;
                cursor:pointer;
                z-index: 9999;
            }

            .hamburger {
                display: block;
            }

            #backToTop {
                bottom: 15px;
                right: 15px;
                padding: 12px;
                min-width: 48px;
                min-height: 48px;
                font-size: 16px;
            }
        }


#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #333;
    color: #fff;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 999999; /* High but reasonable z-index */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    border: none;
    outline: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    /* Ensure minimum touch target size for mobile */
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Prevent text selection */
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
}

#backToTop.show {
    opacity: 0.8;
    pointer-events: auto;
}

#backToTop:hover {
    opacity: 1;
    background-color: #555;
}

#backToTop:active {
    transform: scale(0.95);
    background-color: #222;
}