/* Shared page-specific overrides extracted from inline <style> blocks */

/* SEO content cards used on index/services/fleet */
.seo-content-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.seo-content-card {
    max-width: 1142px;
    margin: 0 auto;
    border-radius: 12px;
    padding: 24px 8px;
}

.seo-content-card h3 {
    font-size: 1.45rem;
    color: var(--dark-gray);
    margin-bottom: 14px;
    padding-left: 12px;
    border-left: 4px solid var(--primary-red);
}

.seo-content-card p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 14px;
}

.seo-content-card a {
    color: var(--primary-red);
    font-weight: 600;
}

.seo-faq-group {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #f1e3e3;
}

.seo-faq-list {
    display: grid;
    gap: 10px;
}

.seo-faq-item {
    background: #fff7f7;
    border: 1px solid #ffd7d7;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 0;
}

/* Fleet page */
.fleet-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.fleet-detail-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.fleet-detail-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.fleet-detail-image {
    width: 100%;
    height: 300px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid #eee;
}

.fleet-detail-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

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

.fleet-detail-content {
    padding: 30px 35px 40px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.fleet-detail-content h3 {
    font-size: 1.75rem;
    color: var(--dark-gray);
    margin-bottom: 8px;
    font-weight: 700;
}

.fleet-model-text-alt {
    color: var(--primary-red);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: block;
}

.fleet-specs {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.fleet-spec {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f3f5;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--dark-gray);
    font-weight: 500;
}

.fleet-spec i {
    color: var(--primary-red);
    font-size: 0.9rem;
}

.fleet-detail-content p {
    color: var(--gray);
    margin-bottom: 30px;
    line-height: 1.8;
    font-size: 0.95rem;
}

.fleet-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
}

.fleet-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--dark-gray);
    font-weight: 500;
}

.fleet-feature i {
    color: #28a745;
    font-size: 0.9rem;
}

.fleet-detail-content .btn {
    margin-top: auto;
    width: 100%;
    padding: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Contact page */
.booking-section {
    padding: 50px 0; /* Reduced from 80px */
    background: var(--light-gray);
}

.booking-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.booking-header {
    background: linear-gradient(135deg, #ec2623, #c91f1d);
    color: #fff;
    padding: 25px 40px; /* Reduced from 40px */
    text-align: center;
}

.booking-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.booking-header p {
    opacity: 0.9;
}

.booking-form {
    padding: 30px; /* Reduced from 50px */
}

.form-section-title {
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin-bottom: 12px; /* Reduced from 20px */
    padding-bottom: 8px;
    border-bottom: 2px solid var(--light-gray);
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section-title i {
    color: var(--primary-red);
}

.form-section {
    margin-bottom: 20px; /* Reduced from 35px */
}

.address-input-wrapper {
    position: relative;
}

.address-input-wrapper input {
    padding-right: 40px;
}

.address-input-wrapper i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

.selected-info {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.selected-info i {
    color: #856404;
    font-size: 1.2rem;
}

.selected-info span {
    color: #856404;
    font-weight: 500;
}

.selected-info.service-info {
    background: #e7f3ff;
    border-color: #0066cc;
}

.selected-info.service-info i,
.selected-info.service-info span {
    color: #0066cc;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.contact-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.contact-card i {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ec2623, #c91f1d);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 15px;
}

.contact-card h4 {
    color: var(--dark-gray);
    margin-bottom: 5px;
}

.contact-card a {
    color: var(--primary-red);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Quote Success Detail Screen */
.quote-success-screen {
    padding: 40px;
    animation: fadeIn 0.6s ease;
}

.success-header {
    text-align: center;
    margin-bottom: 35px;
}

.success-header i {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 20px;
    display: block;
}

.success-header h2 {
    font-size: 2.2rem;
    color: var(--dark-gray);
    margin-bottom: 10px;
}

.success-header p {
    color: var(--gray);
    font-size: 1.1rem;
}

.quote-details-summary {
    background: #f8fafc;
    border: 1px solid #e1e4e8;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 35px;
}

.quote-details-summary h3 {
    font-size: 1.2rem;
    color: var(--dark-gray);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e1e4e8;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #e1e4e8;
}

.detail-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.detail-label {
    font-weight: 600;
    color: #64748b;
    min-width: 100px;
}

.detail-value {
    color: var(--dark-gray);
    text-align: right;
    font-weight: 500;
}

.success-footer {
    display: flex;
    justify-content: center;
}

.success-footer .btn {
    max-width: 300px;
}

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

@media (max-width: 600px) {
    .quote-success-screen {
        padding: 25px 20px;
    }
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .detail-value {
        text-align: left;
    }
}

.info-section {
    padding: 80px 0;
    background: var(--white);
}

.info-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 24px;
}

.info-card {
    background: var(--light-gray);
    border-radius: 15px;
    padding: 28px;
    box-shadow: var(--shadow);
}

.info-card h3 {
    margin-bottom: 12px;
    color: var(--dark-gray);
}

.info-card p {
    color: var(--gray);
    margin-bottom: 10px;
}

.info-list {
    margin-top: 12px;
    padding-left: 18px;
    list-style: disc;
    color: var(--dark-gray);
}

.info-list li {
    margin-bottom: 7px;
}

.faq-section {
    padding: 0 0 90px;
    background: var(--white);
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.faq-item {
    background: #fff7f7;
    border: 1px solid #ffd9d8;
    border-radius: 12px;
    padding: 0 18px;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--dark-gray);
    padding: 16px 0;
}

.faq-item p {
    color: var(--gray);
    padding-bottom: 16px;
}

/* Shared footer social styling */
.footer-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.footer-social-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.9rem;
}

.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    text-decoration: none;
}

.whatsapp-button:hover {
    background-color: #20ba5a;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.whatsapp-button i {
    color: #fff;
    font-size: 30px;
}

/* Hero Split Layout */
.hero-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Smart Quote Card */
.smart-quote-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    position: relative;
    z-index: 10;
}

.sqc-tabs {
    display: flex;
    background: #f1f3f5;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 20px;
}

.sqc-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    border: none;
    background: transparent;
    font-weight: 600;
    color: #646970;
    cursor: pointer;
    border-radius: 6px;
    transition: 0.3s;
}

.sqc-tab.active {
    background: #ffffff;
    color: var(--primary-red);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.sqc-input-group {
    position: relative;
    margin-bottom: 15px;
}

.sqc-input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-red);
}

.sqc-input-group input,
.sqc-input-group select {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid #e2e4e7;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
    background: #ffffff;
}

.sqc-input-group input:focus,
.sqc-input-group select:focus {
    border-color: var(--primary-red);
}

.sqc-row {
    display: flex;
    gap: 15px;
}

.sqc-row .sqc-input-group {
    flex: 1;
}

.sqc-btn-submit {
    width: 100%;
    background: var(--primary-red);
    color: var(--white);
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 5px;
}

.sqc-btn-submit:hover {
    background: #b52a2c;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border: 1px solid #e2e4e7;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.18);
    z-index: 9999;
    max-height: 350px;
    overflow-y: auto;
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
    border-top: none;
    text-align: left; /* Ensure left alignment */
}
.autocomplete-dropdown li {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f1f3f5;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    text-align: left;
}
.autocomplete-dropdown li:last-of-type {
    border-bottom: none;
}
.autocomplete-dropdown li:hover {
    background: #fdf2f2;
}
.autocomplete-icon {
    font-size: 1.1rem;
    color: #ec2623; /* Matching brand color */
    margin-right: 15px;
    min-width: 20px;
    display: flex;
    justify-content: center;
}
.autocomplete-text-wrap {
    flex-grow: 1;
    display: flex;
    flex-direction: column; /* Stacked layout like Google */
    align-items: flex-start;
    gap: 2px;
    overflow: hidden;
}
.autocomplete-item-main {
    font-weight: 500;
    color: #1a1a1a;
    font-size: 1rem;
    display: block;
    line-height: 1.2;
}
.autocomplete-item-main strong {
    font-weight: 700;
    color: #000;
}
.autocomplete-item-sub {
    font-size: 0.85rem;
    color: #64748b;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.autocomplete-dropdown li:hover .autocomplete-item-main {
    color: var(--primary-red);
}
.autocomplete-powered {
    padding: 6px 12px;
    background: #f8f9fa;
    text-align: right;
    font-size: 9px;
    color: #bbb;
    border-top: 1px solid #eee;
}
.autocomplete-powered span {
    color: #2c3e50;
    font-weight: 700;
}

@media (max-width: 900px) {
    .hero-split {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .fleet-detail-grid {
        grid-template-columns: 1fr;
    }

    .fleet-detail-image {
        height: 220px;
    }

    .seo-content-card {
        padding: 24px;
    }

    .booking-form {
        padding: 30px;
    }

    .contact-cards {
        grid-template-columns: 1fr;
    }

    .info-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }
}
/* --- Mobile-First Booking Form Overhaul --- */
@media (max-width: 600px) {
    .booking-section {
        padding: 40px 15px;
    }
    
    .booking-container {
        border-radius: 12px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }
    
    .booking-header {
        padding: 30px 20px;
    }
    
    .booking-header h2 {
        font-size: 1.6rem;
    }
    
    .booking-form {
        padding: 25px 20px;
    }
    
    /* Stack form rows vertically on mobile */
    .form-row {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    
    .form-group {
        width: 100% !important;
        margin-bottom: 20px;
    }
    
    /* Premium Look for Inputs */
    .booking-form input[type="text"],
    .booking-form input[type="email"],
    .booking-form input[type="tel"],
    .booking-form input[type="date"],
    .booking-form input[type="time"],
    .booking-form select,
    .booking-form textarea {
        width: 100%;
        height: 52px; /* Larger hit area for mobile */
        padding: 12px 18px;
        font-size: 15px; /* Prevent iOS zoom-on-focus */
        border: 1px solid #e1e4e8;
        border-radius: 10px;
        background-color: #f8fafc;
        box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
        transition: all 0.3s ease;
    }
    
    .booking-form textarea {
        height: auto;
        min-height: 100px;
    }
    
    .booking-form label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        color: #334155;
        font-size: 14px;
    }
    
    /* Section Separation */
    .form-section {
        margin-bottom: 40px;
        padding-bottom: 10px;
    }
    
    .form-section-title {
        font-size: 1.15rem;
        margin-bottom: 25px;
        border-bottom: 1px solid #f1f5f9;
        padding-bottom: 15px;
    }
    
    /* Full-Width Action Button */
    .btn-submit-full {
        width: 100% !important;
        height: 58px;
        border-radius: 12px;
        font-size: 1.1rem;
        font-weight: 700;
        letter-spacing: 0.5px;
        box-shadow: 0 4px 15px rgba(236, 38, 35, 0.4);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }
    
    .form-note {
        text-align: center;
        font-size: 13px;
        color: #64748b;
        margin-top: 20px;
        line-height: 1.5;
    }

    /* --- Mobile Header & Contact Cards Compact View --- */
    .page-header {
        padding: 40px 15px !important;
        min-height: auto !important;
    }
    
    .page-header h1 {
        font-size: 1.8rem !important;
        margin-bottom: 10px !important;
    }
    
    .page-header p {
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
    }
    
    .contact-cards-section {
        padding: 20px 0 !important;
    }
    
    /* --- Final Mobile Streamline: Hide Top Image/Header --- */
    .page-header {
        display: none !important;
    }
    
    /* Ensure form is tight against navigation on mobile */
    .booking-section {
        order: 1 !important;
        padding-top: 10px !important;
        padding-bottom: 30px !important;
    }
    
    /* Layout Reordering for Mobile: Form First, Cards Second */
    main {
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* Flip the form above the contact cards */
    .contact-cards-section {
        order: 2 !important;
        background-color: #f8fafc !important;
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
    
    /* Move lower info sections further down */
    .info-section, 
    .faq-section, 
    .map-embed {
        order: 3 !important;
    }
    
    .contact-card {
        padding: 15px !important;
        margin-bottom: 10px !important;
        display: flex !important;
        align-items: center !important;
        text-align: left !important;
        gap: 15px !important;
    }
    
    .contact-card i {
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem !important;
        margin: 0 !important;
    }
    
    .contact-card h4 {
        font-size: 0.9rem !important;
        margin-bottom: 2px !important;
    }
    
    .contact-card a, 
    .contact-card .availability-text {
        font-size: 0.95rem !important;
    }
}

/* Final Step Animations */
@keyframes slideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.booking-confirmed-toast {
    animation: slideDown 0.5s ease;
}
