/* Variables for common colors */
:root {
    --primary-color: #e67e22; /* Custom yellow */
    --primary-dark-color: #cc782e; /* Darker yellow for hover */
    --background-light-gray: #f0f2f5;
    --card-background-light: #f8f9fa;
    --text-dark-gray: #495057;
    --text-light-gray: #ced4da;
    --dark-section-bg: #343a40;
    --border-color: #ced4da;
}

body {
    font-family: "Inter", sans-serif;
    background-color: var(--background-light-gray);
    color: #212529; /* Default text color */
}
.car-info-table td {
    font-size: 16px;
}

.nav-link {
    font-size: 15px!important; /* ปรับขนาดฟอนต์ของเมนู */
}

/* Custom Button Styles */
.btn-custom-yellow {
    background-color: #e67e22;
    color: #ffffff; /* Dark text for contrast */
    font-weight: bold;
    transition: background-color 0.2s ease-in-out;
    border: none; /* Remove default bootstrap border */
}

.btn-custom-yellow:hover {
    background-color: var(--primary-dark-color);
    color: #333; /* Maintain text color on hover */
}

/* Background Colors */
.bg-dark-gray {
    background-color: var(--dark-section-bg);
}

/* Text Colors */
.text-light-gray {
    color: var(--text-light-gray);
}

.text-dark-gray {
    color: var(--text-dark-gray);
}

/* Input Field Styling */
.input-field {
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem; /* Adjust padding for better look */
    border-radius: 0.25rem;
    width: 100%;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.input-field:focus {
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
}

/* Section Specific Styling */
.calculator-section,
.contact-section,
.features-section {
    background-color: var(--card-background-light);
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem; /* Consistent spacing */
}

/* Image Carousel and Thumbnails */
.main-image-carousel-container {
    /* No padding-top trick needed with Bootstrap's img-fluid and direct img tags */
    border-radius: 0.5rem;
    overflow: hidden;
}

.main-image-carousel-container img {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    display: block;
    border-radius: 0.5rem; /* Apply border-radius to images inside carousel too */
}

.thumbnail-image {
    border-radius: 0.25rem;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: 2px solid transparent;
    width: 96px; /* Fixed width for consistency */
    height: 64px; /* Fixed height for consistency */
    object-fit: cover;
}

.thumbnail-image:hover {
    transform: scale(1.05);
}

.thumbnail-image.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.5);
}

/* Custom Carousel Controls for Thumbnails */
/* Position the custom controls to be next to the thumbnail row, not over it */
#thumbnail-container {
    display: flex; /* Ensure gap works */
    flex-wrap: nowrap; /* Prevent wrapping */
    overflow-x: auto; /* Allow horizontal scrolling */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    -ms-overflow-style: none;  /* Hide scrollbar for IE and Edge */
}

#thumbnail-container::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari, and Opera */
}

.carousel-control-prev-custom,
.carousel-control-next-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem; /* Slightly smaller buttons */
    height: 2.5rem;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    color: white;
    opacity: 0.7;
    transition: opacity 0.2s ease-in-out, background-color 0.2s ease-in-out;
    z-index: 10; /* Ensure they are above thumbnails */
    flex-shrink: 0; /* Prevent shrinking */
    margin: 0 0.25rem; /* Add some margin for spacing */
}

.carousel-control-prev-custom:hover,
.carousel-control-next-custom:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.7);
}

/* Contact Section Spacing */
.contact-links > a,
.contact-links > p {
    margin-bottom: 0.5rem;
}

.contact-links > *:last-child {
    margin-bottom: 0;
}

/* Calculator Inputs Spacing */
.calculator-inputs > div {
    margin-bottom: 1rem;
}

.calculator-inputs > div:last-child {
    margin-bottom: 0;
}

/* Car Info Table Styling */
.car-info-table td {
    padding: 0.5rem 0; /* Adjust padding for table cells */
    vertical-align: top; /* Align text to top */
    border-top: none; /* Remove default table borders */
}

.car-info-table td:first-child {
    font-weight: 500; /* Make labels slightly bolder */
    color: #6c757d; /* Lighter color for labels */
    width: 40%; /* Give labels a fixed width */
}

.car-info-table td:last-child {
    color: #212529; /* Darker color for values */
}


/* Monthly Payment Display */
.monthly-payment-display {
    background-color: #fff;
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    margin-top: 1.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid var(--border-color); /* Add a subtle border */
}

.monthly-payment-display h4 {
    color: #e67e22; /* Green for emphasis */
    font-size: 1.75rem;
    margin-top: 0.5rem;
}

.back-to-shop-link {
    color: #212529; /* Default text color (dark) */
    text-decoration: none; /* No underline by default */
    transition: color 0.3s ease-in-out, text-decoration 0.3s ease-in-out; /* Smooth transition for hover effect */
}

.back-to-shop-link:hover {
    color: #e67e22; /* Color on hover */
    text-decoration: underline; /* Underline on hover (optional) */
}

/* Style for the icon within the link */
.back-to-shop-link i {
    margin-right: 5px; /* Space between icon and text */
}

