/* Basis-Styles */
:root {
    --primary-color: #1d4ed8;
    --secondary-color: #1e293b;
}

body {
    overflow-x: hidden;
}

.page-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

.page.active {
    opacity: 1;
    transform: translateX(0);
}

.page.exit-left {
    opacity: 0;
    transform: translateX(-100%);
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Custom Button Styles */
.btn-primary {
    @apply bg-blue-600 text-white px-6 py-2 rounded-md hover:bg-blue-700 transition-colors;
}

.btn-secondary {
    @apply bg-gray-600 text-white px-6 py-2 rounded-md hover:bg-gray-700 transition-colors;
}

/* Custom Card Styles */
.vehicle-card {
    @apply bg-white shadow-lg rounded-lg overflow-hidden transition-transform hover:scale-[1.02];
}

.vehicle-card img {
    @apply w-full h-48 object-cover;
}

/* Contact Form Styles */
.contact-form .form-input,
.contact-form .form-select {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #4b5563;
    background-color: #f3f4f6;
    background-clip: padding-box;
    border: 1px solid transparent;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    margin-top: 0.25rem;
}

.contact-form .form-input:focus,
.contact-form .form-select:focus {
    color: #4b5563;
    background-color: #fff;
    border-color: #2563eb;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
}

.contact-form .form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.contact-form textarea.form-input {
    height: 12rem;
}

.contact-form .btn-primary {
    display: inline-block;
    font-weight: 600;
    color: #fff;
    background-color: #2563eb;
    border: 1px solid #2563eb;
    padding: 0.75rem 1.5rem;  
    font-size: 0.875rem;
    line-height: 1.25rem;
    border-radius: 0.375rem;
    user-select: none;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    width: 100%;
}

.contact-form .btn-primary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}
/* Cookie Consent Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}