html,
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: rgb(253, 251, 251);
    height: 100%;
}

a,
.btn-link {
    color: #ffffff;
}

.content {
    /*padding-top: 1.1rem;*/
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating>.form-control-plaintext::placeholder,
.form-floating>.form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating>.form-control-plaintext:focus::placeholder,
.form-floating>.form-control:focus::placeholder {
    text-align: start;
}

/* --- Contact US ---*/

.info-phone-email {
    font-weight: bold;
    background-color: #ffffff;
}

.info-icon {
    padding: 3px;
    background-color: red;
    color: white;
}

.info-list {
    list-style: none;
}

/* --- END Contact US ---*/

/* --- JUSTIFY TEXT --- */
.text-align-justify {
    text-align: justify;
}

/* --- END JUSTIFY TEXT --- */

.btn-primary {
    color: #fff;
    background-color: #850808;
    border-color: #850808;
}

.btn:hover {
    color: #fff;
    background-color: #850808;
    border-color: #850808;
}

.btn-check:checked+.btn,
.btn.active,
.btn.show,
.btn:first-child:active,
:not(.btn-check)+.btn:active {
    color: #fff;
    background-color: #850808;
    border-color: #850808;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #850808;
}

.home-title {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    font-family: snellroundhandw01-scrip, cursive;
    font-style: italic;
}

.btn-outline-primary {
    --bs-btn-color: #850808;
    --bs-btn-border-color: #850808;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #850808;
    --bs-btn-hover-border-color: #850808;
    --bs-btn-focus-shadow-rgb: 133, 8, 8;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #850808;
    --bs-btn-active-border-color: #850808;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #850808;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #850808;
    --bs-gradient: none;
}

.cta-section {
    background: linear-gradient(135deg, #f3f2f1 0%, #aeadac 100%);
    padding: 5rem 6%;
    text-align: center;
    color: #0f172a;
}

/** --- Financing Section --- */
.financing {
    padding: 6rem 6%;
    background: #f8fafc;
}

.financing-subtitle {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #475569;
}

.financing-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 4rem auto;
    padding: 3rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.highlight-item {
    text-align: center;
}

.highlight-number {
    font-size: 3rem;
    font-weight: 800;
    color: #850808;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.highlight-text {
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 600;
}

.financing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto 4rem;
}

.financing-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    transition: all 0.4s;
    position: relative;
}

.financing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border-color: #850808;
}

.financing-card.featured {
    border-color: #850808;
    background: linear-gradient(135deg, #f6cdc7 0%, #fff 100%);
    transform: scale(1.02);
}

.financing-card.featured:hover {
    transform: scale(1.02) translateY(-8px);
}

.financing-icon {
    font-size: 3rem;
    margin-bottom: 1.25rem;
}

.financing-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
}

.financing-card p {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.financing-card strong {
    color: #850808;
    font-weight: 700;
}

.financing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.financing-features li {
    color: #475569;
    padding: 0.6rem 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.financing-btn {
    display: block;
    width: 100%;
    padding: 0.9rem;
    background: #0f172a;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.financing-btn:hover {
    background: #1e293b;
    transform: scale(1.02);
}

.financing-card.featured .financing-btn {
    background: #850808;
    color: #0f172a;
}

.financing-card.featured .financing-btn:hover {
    background: #850808;
}

.financing-process {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 3rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.financing-process h3 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 3rem;
}

.process-steps {
    display: grid;
    grid-template-columns: auto auto auto auto auto auto auto;
    align-items: center;
    gap: 0;
}

.process-step {
    text-align: center;
    padding: 0 1rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #850808 0%, #b13e3e 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 15px rgba(245, 34, 11, 0.3);
}

.process-step h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.process-step p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
}

.process-arrow {
    font-size: 2rem;
    color: #850808;
    font-weight: 700;
}

.financing-cta {
    text-align: center;
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, #fbd6d2 0%, #fff 100%);
    border-radius: 16px;
    border: 2px solid #850808;
}

.financing-cta h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
}

.financing-cta p {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
}

.btn-primary:hover {
    background: #850808;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(246, 73, 34, 0.4);
}

@media (max-width: 968px) {
    .process-steps {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
@media (max-width: 968px) {
    .process-arrow {
        transform: rotate(90deg);
    }
}
/* --- END Financing Section --- */

/* --- Vehicle Details Modal & Carousel --- */
.vehicle-carousel-img {
    width: 100%;
    height: 450px;
    object-fit: contain;
    background-color: #000;
}

#vehicleCarousel .carousel-control-prev,
#vehicleCarousel .carousel-control-next {
    width: 10%;
    opacity: 0.8;
}

#vehicleCarousel .carousel-control-prev-icon,
#vehicleCarousel .carousel-control-next-icon {
    background-color: rgba(133, 8, 8, 0.7);
    border-radius: 50%;
    padding: 20px;
    background-size: 50%;
}

#vehicleCarousel .carousel-indicators button {
    background-color: #850808;
}

#vehicleDetailsModal .modal-header {
    border-bottom: none;
}

#vehicleDetailsModal .modal-footer {
    border-top: 1px solid #dee2e6;
}

@media (max-width: 768px) {
    .vehicle-carousel-img {
        height: 280px;
    }
}
/* --- END Vehicle Details Modal & Carousel --- */

/* --- Inventory Card Carousel --- */
.card-carousel {
    position: relative;
}

.card-carousel-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-carousel .carousel-control-prev,
.card-carousel .carousel-control-next {
    width: 15%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-carousel:hover .carousel-control-prev,
.card-carousel:hover .carousel-control-next {
    opacity: 1;
}

.card-carousel .carousel-control-prev-icon,
.card-carousel .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    padding: 14px;
    background-size: 55%;
}

.card-photo-count {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 10px;
    pointer-events: none;
    z-index: 2;
}
/* --- END Inventory Card Carousel --- */

/* --- Featured Vehicles Carousel --- */
.featured-vehicles-section {
    background: #f8f9fa;
}

.featured-vehicles-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0f172a;
}

.featured-vehicle-container {
    position: relative;
    width: 100%;
}

.featured-carousel-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
}

.featured-vehicle-overlay {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.featured-vehicle-overlay .btn {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

#featuredVehiclesCarousel .carousel-control-prev-icon,
#featuredVehiclesCarousel .carousel-control-next-icon {
    background-color: rgba(133, 8, 8, 0.7);
    border-radius: 50%;
    padding: 20px;
    background-size: 50%;
}

#featuredVehiclesCarousel .carousel-indicators button {
    background-color: #850808;
}

@media (max-width: 768px) {
    .featured-carousel-img {
        height: 300px;
    }

    .featured-vehicle-overlay {
        bottom: 10px;
    }

    .featured-vehicle-overlay .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}
/* --- END Featured Vehicles Carousel --- */

/* --- Schedule Appointment Section --- */
.schedule-appointment-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.appointment-content {
    padding: 2rem 0;
}

.appointment-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
}

.appointment-subtitle {
    font-size: 1.1rem;
    color: #475569;
    line-height: 1.8;
}

.appointment-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
}

.appointment-benefits li {
    padding: 0.75rem 0;
    color: #334155;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.appointment-benefits li i {
    color: #850808;
    font-size: 1.2rem;
    margin-right: 0.75rem;
}

.appointment-image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.appointment-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.appointment-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 2rem;
}

.appointment-badge {
    background: #850808;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(133, 8, 8, 0.3);
}

.appointment-badge i {
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .appointment-title {
        font-size: 2rem;
    }

    .appointment-image {
        height: 300px;
    }

    .appointment-badge {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }

    .appointment-badge i {
        font-size: 1.2rem;
    }
}
/* --- END Schedule Appointment Section --- */

/* --- Mobile Responsive Adjustments for Home Page --- */
@media (max-width: 768px) {
    /* Ensure body doesn't overflow */
    body {
        overflow-x: hidden;
    }

    /* Container padding adjustments */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Hero section adjustments */
    .position-relative.w-100 {
        height: 300px !important;
    }

    .position-relative.w-100 img {
        height: 300px !important;
    }

    /* Hero title adjustments */
    .home-title {
        font-size: 1.5rem !important;
        padding: 0 15px;
    }

    /* Hero button adjustments */
    .position-absolute.bottom-0 .btn-lg {
        font-size: 0.9rem !important;
        padding: 0.5rem 1.5rem !important;
    }

    /* Welcome section text */
    .container.my-5 {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .container.my-5 h2 {
        font-size: 1.3rem !important;
    }

    .container.my-5 p,
    .container.my-5 ul,
    .container.my-5 li {
        font-size: 0.9rem !important;
        word-wrap: break-word;
    }

    /* Financing section */
    .financing {
        padding: 2rem 15px !important;
    }

    .section-header h2 {
        font-size: 1.5rem !important;
        padding: 0 15px;
    }

    .financing-subtitle {
        font-size: 0.9rem !important;
        padding: 0 15px;
    }

    .financing-highlights {
        padding: 1.5rem 1rem !important;
        gap: 1rem;
        margin: 2rem 15px !important;
    }

    .highlight-number {
        font-size: 1.8rem !important;
    }

    .highlight-text {
        font-size: 0.8rem !important;
    }

    /* CTA section */
    .cta-section {
        padding: 2rem 15px !important;
    }

    .cta-section h2 {
        font-size: 1.4rem !important;
    }

    .cta-section p {
        font-size: 0.9rem !important;
    }

    .cta-section .btn-lg {
        font-size: 0.9rem !important;
        padding: 0.6rem 1.5rem !important;
    }

    /* Reviews section */
    .card-text {
        font-size: 0.85rem !important;
    }

    /* Schedule appointment section mobile */
    .appointment-content {
        padding: 1rem 15px !important;
    }

    .appointment-title {
        font-size: 1.5rem !important;
        padding: 0 15px;
    }

    .appointment-subtitle {
        font-size: 0.9rem !important;
        padding: 0 15px;
    }

    .appointment-benefits li {
        font-size: 0.85rem !important;
    }

    .appointment-benefits {
        padding: 0 15px;
    }

    /* Featured vehicles section */
    .featured-vehicles-section h2 {
        font-size: 1.5rem !important;
        padding: 0 15px;
    }

    /* Row adjustments to prevent overflow */
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .row > * {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

@media (max-width: 480px) {
    /* Extra small devices */
    .home-title {
        font-size: 1.5rem !important;
    }

    .position-absolute.bottom-0 .btn-lg {
        font-size: 0.9rem;
        padding: 0.5rem 1.5rem;
    }

    .container.my-5 h2 {
        font-size: 1.25rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .financing-subtitle {
        font-size: 0.9rem;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }

    .appointment-title {
        font-size: 1.5rem !important;
    }

    .featured-vehicles-section h2 {
        font-size: 1.75rem;
    }
}
/* --- END Mobile Responsive Adjustments --- */