/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-circle {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 207, 95, 0.2);
    border-top: 4px solid #00cf5f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Ensure content is hidden while loading */
body.loading {
    overflow: hidden;
}

body.loading .page-loader {
    display: flex;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8fafc;
}

.hero-slider {
    height: 90vh;
    min-height: 500px;
    position: relative;
    z-index: 1;
    padding-top: calc(var(--top-nav-height, 36px) + 80px);
}

.slider-item {
    background-size: cover;
    background-position: center;
    transition: opacity 1s ease-in-out;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.review-card {
    min-height: 280px;
}

.australia-bg {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23f8fafc"/><path d="M30,10 Q50,30 70,10 Q90,30 90,50 Q70,70 90,90 Q70,70 50,90 Q30,70 10,90 Q30,70 10,50 Q30,30 10,10 Q30,30 50,10" fill="%2300cf5f" opacity="0.05"/></svg>');
    background-size: 200px;
}

.map-container {
    height: 400px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    overflow-y: auto;
    backdrop-filter: blur(4px);
}

.modal-content {
    animation: modalFade 0.3s;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalFade {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.golden-outline {
    position: relative;
}

.golden-outline:after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid var(--accent);
    border-radius: 0.5rem;
    z-index: -1;
}

.file-upload-container {
    border: 2px dashed #cbd5e1;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    background-color: #f1f5f9;
}

.file-upload-container.drag-over {
    border-color: #3b82f6;
    background-color: #dbeafe;
}

.file-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.file-preview:hover {
    transform: translateY(-2px);
}

.file-preview-item {
    position: relative;
    border-radius: 0.25rem;
    overflow: hidden;
    background-color: #e2e8f0;
    transition: all 0.3s ease;
}

.file-preview-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.file-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.file-preview-item:hover img {
    transform: scale(1.05);
}

.file-preview-item .remove-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(0,0,0,0.5);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
    opacity: 0.8;
}

.file-preview-item .remove-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.australia-flag {
    background: linear-gradient(to bottom, #012169 0%, #012169 33%, #FFFFFF 33%, #FFFFFF 66%, #E4002B 66%, #E4002B 100%);
}


.car-logo-grid {
    display: grid;
    place-items: center;
    gap: 1.5rem;
}

.upload-area {
    min-height: 200px;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: #3b82f6 !important;
    background-color: #f8fafc;
}

.upload-area.border-blue-500 {
    border-color: #3b82f6;
}

.upload-area.bg-blue-50 {
    background-color: #eff6ff;
}

/* Add these custom color utilities */
.bg-green-600 {
    --tw-bg-opacity: 1;
    background-color: #00bb57;
}

.text-navy-900 {
    color: #000f36;
}

/* Replace any instances of bg-red-600 with bg-green-600 */
/* Replace any instances of text-blue-900 with text-navy-900 */

/* Mobile menu animations */
#mobileMenu {
    transition: all 0.3s ease-in-out;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    top: calc(var(--top-nav-height, 36px) + 80px); /* top-nav + header height */
}

#mobileMenu:not(.hidden) {
    animation: slideDown 0.3s ease-in-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .car-logo-item {
        width: 100px;
        height: 100px;
    }
}

/* FAQ Animations */
.faq-answer {
    transition: all 0.3s ease-in-out;
}

.faq-question:hover {
    background-color: #f8fafc;
}

/* Floating button animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Call to action improvements */
.cta-button {
    background: linear-gradient(135deg, #00bb57, #00cf5f);
    box-shadow: 0 4px 15px rgba(0, 187, 87, 0.3);
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 187, 87, 0.4);
}

/* Trust badges */
.trust-badge {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.trust-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Improved responsive design */
@media (max-width: 768px) {
    .hero-slider {
        height: auto;
        min-height: 100vh;
        padding-top: calc(var(--top-nav-height) + 90px);
        padding-bottom: 4rem;
    }
    
    .hero-slider h1 {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }
    
    .hero-slider p {
        font-size: 1.0rem;
        margin-bottom: 2rem;
    }
    
    .hero-slider .flex.flex-col.sm\\:flex-row {
        margin-bottom: 3rem;
    }
    
    .floating-cta {
        bottom: 20px;
        right: 20px;
        z-index: 100 !important;
    }
    
    /* Ensure hero badge is always visible */
    .hero-slider .inline-block {
        margin-top: 60px !important;
        margin-bottom: 1rem !important;
    }
    #heroQuoteBtn{
        font-size: 0.9rem;
        line-height: 0.5rem !important;
    }
    #heroCallBtn{
        font-size: 0.9rem;
        line-height: 0.5rem;
    }
    #contact .bg-gray-50 {
        min-height: 50px !important;
    }
}

/* Loading animation for images */
.image-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Improved form styling */
.form-input:focus {
    box-shadow: 0 0 0 3px rgba(0, 207, 95, 0.1);
    border-color: #00cf5f;
}

/* Service card hover effects */
.service-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    border-color: #00cf5f;
    box-shadow: 0 10px 30px rgba(0, 207, 95, 0.1);
}

/* Header improvements */
header {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
    position: fixed;
    top: var(--top-nav-height, 36px); /* Adjust based on top-nav height */
    left: 0;
    right: 0;
    z-index: 50;
    width: 100%;
}

/* Navigation Bars Styling */
:root {
    --primary: #000f36;
    --secondary: #00cf5f;
    --accent: #f59e0b;
    --light: #f8fafc;
    --dark: #0f172a;
    --top-nav-height: 36px;
}

.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    width: 100%;
    height: var(--top-nav-height);
    will-change: transform;
    transform: translateZ(0); /* Force hardware acceleration */
}

header {
    position: fixed;
    top: var(--top-nav-height);
    left: 0;
    right: 0;
    z-index: 50;
    width: 100%;
    will-change: transform;
    transform: translateZ(0); /* Force hardware acceleration */
}

/* Adjust mobile menu position to account for both nav bars */
#mobileMenu {
    top: calc(var(--top-nav-height) + 80px); /* top-nav + header height */
}

/* Responsive adjustments for top nav */
@media (max-width: 640px) {
    :root {
        --top-nav-height: 32px;
    }
    
    #mobileMenu {
        top: calc(var(--top-nav-height) + 72px);
    }
}

/* Ensure content starts below both navigation bars */
.hero-slider {
    padding-top: calc(var(--top-nav-height) + 80px);
}

@media (max-width: 640px) {
    .hero-slider {
        padding-top: calc(var(--top-nav-height) + 72px);
    }
}

/* Scroll sections offset for navigation */
section {
    scroll-margin-top: calc(var(--top-nav-height) + 80px);
}

@media (max-width: 640px) {
    section {
        scroll-margin-top: calc(var(--top-nav-height) + 72px);
    }
}

/* Customer Reviews Slider Section */
.reviews-slider {
    position: relative;
}

.reviews-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.review-slide {
    flex: 0 0 auto;
    width: 100%;
    display: flex;
}

.review-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #f3f4f6;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: #10b981;
}

.reviewer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
    background: linear-gradient(135deg, #059669, #10b981);
    box-shadow: 0 4px 8px rgba(5, 150, 105, 0.2);
}

.review-text {
    flex-grow: 1;
}

.dot {
    transition: all 0.3s ease;
    cursor: pointer;
}

.dot.active {
    background-color: #059669 !important;
    transform: scale(1.2);
}

/* Responsive adjustments for reviews */
@media (min-width: 640px) {
    .review-slide {
        width: 50%;
        min-width: 50%;
    }
}

@media (min-width: 1024px) {
    .review-slide {
        width: 25%;
        min-width: 25%;
        padding-left: 12px;
        padding-right: 12px;
    }
    
    .review-card {
        min-height: 320px;
    }
}

@media (max-width: 768px) {
    .reviews-slider .absolute {
        display: none; /* Hide navigation arrows on mobile */
    }
    
    .review-card {
        margin-bottom: 20px;
        padding: 20px;
    }
}

@media (max-width: 639px) {
    .review-slide {
        width: 100%;
        min-width: 100%;
        padding-left: 8px;
        padding-right: 8px;
    }
}

/* Why Us Section */
.why-us-section {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

.benefit-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    border-color: #10b981;
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    background: linear-gradient(135deg, #059669, #10b981);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.benefit-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-description {
    color: #6b7280;
    line-height: 1.6;
    flex-grow: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .review-card {
        margin-bottom: 20px;
    }
    
    .benefit-card {
        margin-bottom: 20px;
        padding: 20px;
    }
    
    .benefit-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .benefit-title {
        font-size: 16px;
        min-height: auto;
    }
}

@media (max-width: 640px) {
    .star-rating {
        justify-content: center;
    }
    
    .reviewer-info {
        justify-content: center;
        flex-direction: column;
        text-align: center;
    }
}

/* Brands Slider - Full Width Edge to Edge */
.brands-slider {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 3rem 0;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.brands-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.brands-slide {
    min-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 0 4rem;
}

.brands-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 1rem 0;
    width: 100%;
}

.brand-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 1.5rem;
    min-width: 140px;
    min-height: 100px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.brand-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 207, 95, 0.1), transparent);
    transition: left 0.6s ease;
}

.brand-item:hover::before {
    left: 100%;
}

.brand-item:hover {
    transform: translateY(-12px) scale(1.08);
    box-shadow: 0 20px 40px rgba(0, 207, 95, 0.15);
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    border-color: rgba(0, 207, 95, 0.3);
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: brightness(1) contrast(1);
}

.brand-logo:hover {
    filter: brightness(1.1) contrast(1.1);
}

.brand-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 120px;
    max-height: 70px;
    transition: transform 0.3s ease;
}

.brand-item:hover .brand-image {
    transform: scale(1.1);
}

/* Navigation Buttons */
.brands-nav {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.brands-nav:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.brands-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.brands-nav:disabled:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Dots Navigation */
.brands-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 1rem;
}

.brands-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.brands-dot.active {
    background: #10b981;
    transform: scale(1.2);
}

.brands-dot:hover {
    background: #059669;
    transform: scale(1.1);
}

/* Responsive Design for Full Width Brands Slider */
@media (min-width: 1920px) {
    .brands-slide {
        padding: 0 4rem;
    }
    
    .brands-row {
        gap: 2.5rem;
    }
    
    .brand-item {
        min-width: 160px;
        min-height: 110px;
        padding: 2rem;
    }
    
    .brand-image {
        max-width: 140px;
        max-height: 80px;
    }
}

@media (max-width: 1400px) {
    .brands-slide {
        padding: 0 3rem;
    }
    
    .brands-row {
        gap: 1.8rem;
    }
    
    .brand-item {
        min-width: 130px;
        min-height: 90px;
        padding: 1.2rem;
    }
}

@media (max-width: 1200px) {
    .brands-slide {
        padding: 0 2.5rem;
    }
    
    .brands-row {
        gap: 1.5rem;
    }
    
    .brand-item {
        min-width: 120px;
        min-height: 85px;
        padding: 1rem;
    }
    
    .brand-image {
        max-width: 100px;
        max-height: 60px;
    }
}

@media (max-width: 768px) {
    .brands-slide {
        padding: 0 2rem;
    }
    
    .brands-row {
        gap: 1.2rem;
    }
    
    .brand-item {
        min-width: 110px;
        min-height: 75px;
        padding: 0.8rem;
    }
    
    .brand-image {
        max-width: 90px;
        max-height: 50px;
    }
    
    .brands-nav {
        width: 44px;
        height: 44px;
    }
    
    .brands-prev {
        left: 1rem;
    }
    
    .brands-next {
        right: 1rem;
    }
}

@media (max-width: 640px) {
    .brands-slide {
        padding: 0 1.5rem;
    }
    
    .brands-row {
        gap: 1rem;
    }
    
    .brand-item {
        min-width: 100px;
        min-height: 70px;
        padding: 0.6rem;
    }
    
    .brand-image {
        max-width: 80px;
        max-height: 45px;
    }
    
    .brands-prev {
        left: 0.5rem;
    }
    
    .brands-next {
        right: 0.5rem;
    }
}

@media (max-width: 480px) {
    .brands-slide {
        padding: 0 1rem;
    }
    
    .brands-row {
        gap: 0.8rem;
    }
    
    .brand-item {
        min-width: 90px;
        min-height: 65px;
        padding: 0.5rem;
    }
    
    .brand-image {
        max-width: 70px;
        max-height: 40px;
    }
    
    .brands-nav {
        width: 40px;
        height: 40px;
    }
}

/* About Section Image Container */
.about-image-container {
    position: relative;
    min-height: 350px;
    height: 450px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}



/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .about-image-container {
        min-height: 300px;
        height: 300px;
    }
    .about-image-container img {
        object-fit: cover;
        border-radius: 0.5rem;
        position: unset !important;

    }
}

@media (max-width: 640px) {
    .about-image-container {
        min-height: 250px;
        height: 250px;
    }
}

@media (max-width: 480px) {
    .about-image-container {
        min-height: 220px;
        height: 220px;
    }
}

/* Ensure proper aspect ratio and visibility */
@media (min-width: 769px) {
    .about-image-container {
        height: 384px; /* Equivalent to h-96 */
        min-height: 384px;
    }
}

/* Select2 Custom Styling */
.select2-container--default .select2-selection--single {
    height: 48px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 0.5rem !important;
    padding: 0.75rem 1rem !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-left: 0 !important;
    padding-right: 0 !important;
    height: auto !important;
    margin-top: 0 !important;
    line-height: 1.5 !important;
    color: #374151 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
    top: 1px !important;
    right: 8px !important;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #00cf5f !important;
    color: white !important;
}

.select2-dropdown {
    border: 1px solid #d1d5db !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

/* Ensure Select2 dropdowns appear above modal */
.select2-container {
    z-index: 1001 !important;
}

.select2-dropdown {
    z-index: 1002 !important;
}

.select2-search--dropdown .select2-search__field {
    border: 1px solid #d1d5db !important;
    border-radius: 0.375rem !important;
    padding: 0.5rem !important;
    font-size: 14px !important;
}

/* Additional Select2 styling fixes */
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #9ca3af !important;
}

.select2-container--default .select2-selection--single:focus {
    outline: none !important;
}

.select2-results__option {
    padding: 8px 12px !important;
    font-size: 14px !important;
}

.select2-search--dropdown {
    padding: 8px !important;
}

/* Responsive adjustments for Select2 */
@media (max-width: 768px) {
    .select2-container--default .select2-selection--single {
        height: 44px !important;
        font-size: 14px !important;
    }
    
    .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 42px !important;
    }
}

/* Car Details Section Styling */
.car-detail-item {
    background: #f9fafb;
    transition: all 0.3s ease;
}

.car-detail-item:hover {
    background: #f3f4f6;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.remove-car-btn {
    transition: all 0.2s ease;
}

.remove-car-btn:hover {
    transform: scale(1.05);
}

/* Car Add Button Styling */
#addCarBtn {
    transition: all 0.3s ease;
}

#addCarBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 207, 95, 0.3);
}

/* Modal Improvements */
.modal {
    backdrop-filter: blur(4px);
}

.modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

/* Custom scrollbar for modal */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #00cf5f;
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #00b84f;
}

/* Animation for new car items */
.car-detail-item {
    animation: slideInFromTop 0.3s ease-out;
}

@keyframes slideInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Upload Area Styles */
.upload-area {
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: #3b82f6 !important;
    background-color: #f8fafc;
}

.upload-area.drag-over {
    border-color: #3b82f6 !important;
    background-color: #eff6ff !important;
    transform: scale(1.02);
}

/* Enhanced Smart Upload Button */
#smartUploadButton {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    border: none;
    transition: all 0.3s ease;
}

#smartUploadButton:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

#smartUploadButton:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}

/* Mobile Upload Options Modal */
.upload-modal {
    animation: modalFadeIn 0.3s ease-out;
}

.upload-modal > div {
    animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Upload Area for Mobile */
@media (max-width: 768px) {
    .upload-area {
        padding: 2rem 1rem;
    }
    
    #smartUploadButton {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
    }
    
    .upload-area .fa-images {
        font-size: 3rem;
        margin-bottom: 1rem;
    }
}

/* File Preview Enhancements */
.file-preview-item {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.file-preview-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.file-preview-item .remove-btn {
    transition: all 0.3s ease;
    opacity: 0.9;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.file-preview-item:hover .remove-btn {
    opacity: 1;
    transform: scale(1.1);
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.5);
}

.file-preview-item .remove-btn:hover {
    background: linear-gradient(135deg, #991b1b 0%, #7f1d1d 100%) !important;
    transform: scale(1.15) !important;
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.6) !important;
}

.file-preview-item .remove-btn:active {
    transform: scale(1.05) !important;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.4) !important;
}

/* Enhanced image preview sizing */
.file-preview-item img {
    min-height: 128px; /* h-32 equivalent */
    max-height: 140px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.file-preview-item:hover img {
    transform: scale(1.05);
}

/* Responsive dropzone improvements */
@media (max-width: 640px) {
    .upload-area {
        border-radius: 0.5rem;
        margin: 0 -0.5rem;
    }
    
    #fileList {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .file-preview-item img {
        min-height: 120px;
        max-height: 130px;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    #fileList {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (min-width: 1025px) {
    #fileList {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

/* Top Navigation Bar */
.top-nav {
    background: linear-gradient(135deg, #60ae11 0%, #047857 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-nav a {
    transition: all 0.2s ease;
}

.top-nav a:hover {
    transform: translateY(-1px);
}

/* Adjust mobile menu for top bar */
@media (max-width: 768px) {
    .top-nav .hidden {
        display: none !important;
    }
}

/* Professional contact styling */
.top-nav .phone-link {
    font-weight: 500;
    letter-spacing: 0.5px;
}

.top-nav .abn-info {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Contact Section Mobile Fixes */
#contact .grid {
    min-height: auto;
}

@media (max-width: 1023px) {
    #contact .grid {
        min-height: auto;
        grid-template-rows: auto auto;
    }
    
    #contact .bg-gray-50 {
        min-height: 500px;
        position: relative;
    }
    
    #contact .absolute {
        position: relative;
        height: auto;
        min-height: 500px;
    }
    
    #serviceAreasMap {
        min-height: 350px !important;
        height: 350px !important;
    }
    
    #contact .bg-white {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 768px) {
    #contact {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    #contact .bg-gray-50 {
        min-height: 450px;
    }
    
    #contact .absolute {
        padding: 1.5rem;
        min-height: 450px;
    }
    
    #serviceAreasMap {
        min-height: 300px !important;
        height: 300px !important;
    }
    
    #contact .flex-1 {
        min-height: 300px !important;
    }
}

@media (max-width: 640px) {
    #contact .bg-gray-50 {
        min-height: 400px;
    }
    
    #contact .absolute {
        padding: 1rem;
        min-height: 400px;
    }
    
    #serviceAreasMap {
        min-height: 250px !important;
        height: 250px !important;
    }
    
    #contact .flex-1 {
        min-height: 250px !important;
    }
}

/* Extra small mobile devices */
@media (max-width: 360px) {
    .hero-slider {
        padding-top: calc(var(--top-nav-height) + 140px);
    }
    
    .hero-slider .container {
        padding-top: 2.5rem;
    }
    
    .hero-badge {
        margin-top: 1.5rem !important;
        font-size: 0.7rem !important;
        padding: 0.35rem 0.8rem !important;
    }
    
    .hero-badge span,
    .hero-badge i {
        font-size: 0.7rem !important;
    }
    
    .hero-slider .flex.flex-col.sm\\:flex-row a,
    .hero-slider .flex.flex-col.sm\\:flex-row button {
        font-size: 0.75rem !important;
        padding: 0.5rem 0.8rem !important;
        min-height: 36px;
        max-width: 220px;
    }
}

/* Ensure hero content never overlaps with navigation */
@media (max-width: 640px) {
    .hero-slider .slider-item {
        padding-top: 2rem;
    }
    
    .hero-slider .container {
        margin-top: 1rem;
        overflow: visible !important;
    }
    
    /* Force badge to be visible above everything */
    .hero-badge {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 100 !important;
        clear: both !important;
    }
}

/* Location Input Styling - Ensure white background */
#location {
    background-color: white !important;
    box-shadow: 0 0 0 1000px white inset !important;
    -webkit-box-shadow: 0 0 0 1000px white inset !important;
    -webkit-text-fill-color: #374151 !important;
}

/* Override browser autocomplete styling */
#location:-webkit-autofill,
#location:-webkit-autofill:hover,
#location:-webkit-autofill:focus,
#location:-webkit-autofill:active {
    box-shadow: 0 0 0 1000px white inset !important;
    -webkit-box-shadow: 0 0 0 1000px white inset !important;
    -webkit-text-fill-color: #374151 !important;
    background-color: white !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

/* Google Maps Autocomplete Dropdown Styling */
.pac-container {
    background-color: white !important;
    border: 1px solid #d1d5db !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    font-family: inherit !important;
    z-index: 9999 !important;
}

.pac-container .pac-item {
    background-color: white !important;
    border-bottom: 1px solid #f3f4f6 !important;
    padding: 12px 16px !important;
    cursor: pointer !important;
    color: #374151 !important;
}

.pac-container .pac-item:hover,
.pac-container .pac-item-selected {
    background-color: #f9fafb !important;
    color: #1f2937 !important;
}

.pac-container .pac-item .pac-matched {
    font-weight: 600 !important;
    color: #059669 !important;
}

.pac-container .pac-item .pac-icon {
    background-image: none !important;
    color: #6b7280 !important;
}

.pac-container .pac-item .pac-icon::before {
    content: "📍" !important;
    font-size: 14px !important;
}