/* Custom CSS for QuickQuoteAuto */

:root {
    --primary-color: #2c5aa0;
    --secondary-color: #f39c12;
    --accent-color: #e74c3c;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --success-color: #27ae60;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-warning {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background-color: #e67e22;
    border-color: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Navigation */
.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--secondary-color) !important;
}

/* Quick Quote Section */
.quick-quote-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0;
}

.quick-quote-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.quick-quote-card h2 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 30px;
}

.quick-quote-card .form-select,
.quick-quote-card .form-control {
    border-radius: 12px;
    border: 2px solid #e9ecef;
    padding: 12px 16px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.quick-quote-card .form-select:focus,
.quick-quote-card .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.25);
}

.quick-quote-card .btn {
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 16px;
}

#quickQuoteResult {
    background: linear-gradient(135deg, var(--success-color), #2ecc71);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(44, 90, 160, 0.8), rgba(44, 90, 160, 0.8)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll; /* Changed from fixed to scroll to fix scrolling issues */
    min-height: auto; /* Remove fixed height constraints */
    padding: 80px 0 60px 0; /* Add padding instead of min-height */
    display: flex;
    align-items: center;
}

.hero-overlay {
    width: 100%;
    padding: 40px 0; /* Reduced padding */
}

.hero-buttons {
    margin-top: 30px;
}

.hero-buttons .btn {
    margin: 5px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.hero-stats {
    margin-top: 40px;
}

.hero-stats h3 {
    font-size: 2.5rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.hero-image img {
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    max-height: 400px; /* Limit image height */
    object-fit: cover;
    width: 100%;
}

/* Remove problematic min-vh class */
.min-vh-75 {
    /* Removed min-height to fix scrolling issues */
}

/* Service Cards */
.service-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #3498db);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
}

.service-card h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

/* Vehicle Type Cards */
.vehicle-type-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
    cursor: pointer;
}

.vehicle-type-card:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

.vehicle-type-card i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.vehicle-type-card:hover i {
    color: white;
}

/* Vehicle Detail Cards */
.vehicle-detail-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.vehicle-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* Vehicle Cards */
.vehicle-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    height: 100%;
}

.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.vehicle-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vehicle-card:hover .vehicle-image img {
    transform: scale(1.05);
}

.vehicle-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
}

.vehicle-badge.sale {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.vehicle-badge.lease {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.vehicle-badge.rent {
    background: linear-gradient(135deg, #27ae60, #229954);
}

.vehicle-info {
    padding: 20px;
}

.vehicle-info h5 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 600;
}

.vehicle-type {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.vehicle-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.vehicle-specs span {
    font-size: 0.8rem;
    color: #666;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 12px;
}

.vehicle-specs i {
    color: var(--primary-color);
    margin-right: 4px;
}

.vehicle-price {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.vehicle-actions {
    display: flex;
    gap: 10px;
}

.vehicle-actions .btn {
    flex: 1;
    font-size: 0.85rem;
}

/* Vehicle Stats */
.vehicle-stats .badge {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.vehicle-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary-color), #f39c12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: white;
}

.vehicle-features {
    list-style: none;
    padding: 0;
}

.vehicle-features li {
    padding: 5px 0;
    color: #666;
}

.vehicle-features li:before {
    content: "✓";
    color: var(--success-color);
    font-weight: bold;
    margin-right: 10px;
}

/* Quote Form */
.quote-form-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.quote-form-card h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
}

/* Page Headers */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), #3498db);
    color: white;
    padding: 80px 0 60px;
}

/* Service Header */
.service-header {
    background: linear-gradient(135deg, var(--primary-color), #3498db);
    color: white;
    padding: 80px 0 60px;
}

.service-icon-large {
    text-align: center;
}

.service-icon-large i {
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.3);
}

/* Service Features */
.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.feature-item i {
    font-size: 1.5rem;
    margin-top: 5px;
}

.feature-item h5 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Service Sidebar */
.service-sidebar {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    height: fit-content;
}

.pricing-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.pricing-card h5 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

/* About Page Styles */
.about-stats {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    color: #666;
    font-weight: 500;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), #3498db);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: white;
}

.value-card {
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    height: 100%;
}

.value-card h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.team-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.team-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary-color), #f39c12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
}

.team-role {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

/* Contact Page */
.contact-info-details p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.contact-info-details i {
    color: var(--primary-color);
    width: 20px;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Footer */
footer {
    margin-top: auto;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.text-light-50 {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.text-light-50:hover {
    color: var(--secondary-color) !important;
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-info i {
    color: var(--secondary-color);
    width: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
        min-height: 60vh;
    }
    
    .quick-quote-card {
        padding: 25px;
        margin: 20px;
    }
    
    .service-icon-large i {
        font-size: 4rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
}

@media (max-width: 576px) {
    .quick-quote-card .row .col-md-3,
    .quick-quote-card .row .col-md-4,
    .quick-quote-card .row .col-md-2 {
        margin-bottom: 15px;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Utility Classes */
.text-primary-custom {
    color: var(--primary-color) !important;
}

.bg-light-custom {
    background-color: #f8f9fa !important;
}

.border-primary-custom {
    border-color: var(--primary-color) !important;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}



/* Custom Button Styles */
.btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 12px 24px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #3498db);
    border: none;
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2c5aa0, #2980b9);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, var(--secondary-color), #f39c12);
    border: none;
    color: white;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #d68910, #e67e22);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 126, 34, 0.3);
    color: white;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.3);
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #2ecc71);
    border: none;
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #229954, #27ae60);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.3);
}

.btn-lg {
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 700;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
}

/* Button Group Styles */
.btn-group .btn {
    margin: 0;
}

.btn-group .btn:not(:last-child) {
    margin-right: 2px;
}

/* Responsive Button Styles */
@media (max-width: 768px) {
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .btn-lg {
        padding: 12px 25px;
        font-size: 15px;
    }
    
    .hero-buttons .btn {
        margin: 5px 0;
        width: 100%;
        max-width: 200px;
    }
}

/* Fix for Bootstrap button focus states */
.btn:focus {
    box-shadow: none;
    outline: none;
}

.btn:active {
    transform: translateY(0);
}

/* Special CTA Button Style */
.btn-cta {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-cta:hover {
    background: linear-gradient(135deg, #ee5a24, #d63031);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(238, 90, 36, 0.4);
    color: white;
}

.btn-cta::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.btn-cta:hover::after {
    width: 300px;
    height: 300px;
}

