/* Reset styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Shared styles for body and services-body */
body, .services-body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Navigation styles */
nav {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: fixed;
    width: 100%;
    z-index: 50; /* Ensure the navigation bar stays on top of other content */
}

.navbar-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
   
}

.logo {
    height: 75px;
}

.navbar-links {
    display: flex;
}

.navbar-links a {
    font-family: 'Crimson Text', serif;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    transition: color 0.3s;
    text-shadow:
        0 0 7px #fff,
        0 0 10px #fff,
        0 0 21px #fff,
        0 0 42px #526cff,
        0 0 82px #52a3ff,
        0 0 92px #52abff,
        0 0 102px #52ceff,
        0 0 151px #52baff;
}

.navbar-links a:hover {
    background-color: transparent;
    color: #000;
}

.menu-toggle {
    cursor: pointer;
    display: none;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: black;
    margin: 6px 0;
}

/* Mission statement styles */
.mission-statement {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 100vh;
    background-image: url('media/Vette/IMG_7605.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding-bottom: 5%;
}

.mission-statement h1 {
    padding: 5%;
}

.mission-text {
    font-size: 5vw;
    font-family: 'Crimson Text', serif;
    color: #fff;
    text-shadow: 0 0 7px #fff, 0 0 10px #fff, 0 0 21px #fff, 0 0 42px #526cff, 0 0 82px #52a3ff, 0 0 92px #52abff, 0 0 102px #52ceff, 0 0 151px #52baff;
}

/* Media query for smaller screens */
@media only screen and (max-width: 768px) {
    .mission-statement h1 {
        padding: 2%;
    }

    .mission-text {
        font-size: 5vw;
    }

    .mission-logo {
        max-width: 60%;
        margin-top: 40px;
    }
}

/* Footer styles */
footer {
    background-color: #f0f0f0;
    padding: 20px;
    text-align: center;
}

.contact-info, .business-info {
    margin-bottom: 20px;
}

.contact-info h3, .business-info h3 {
    color: #0672ffd2;
}

.contact-info p, .business-info p {
    margin: 5px 0;
}

/* Detail section styles */
.detail-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-bottom: 40px;
    margin-top: 125px;
    padding: 30px;
    border-bottom: 2px solid #ddd;
}

.exterior-bg {
    background-image: url(media/IMG_7094.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.addon-bg {
    background-image: url(media/393F2BA8-DFCB-408E-A1D3-6041DD29AFCA__42524.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.interior-bg {
    background-image: url(media/Vette/IMG_7949.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.paint-bg {
    background-image: url(media/Vette/IMG_7825.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.section-title {
    font-size: 2.5em;
    color: white;
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    width: 100%;
    text-shadow:
        0 0 7px #fff,
        0 0 10px #fff,
        0 0 21px #fff,
        0 0 42px #526cff,
        0 0 82px #52a3ff,
        0 0 92px #52abff,
        0 0 102px #52ceff,
        0 0 151px #52baff;
}

.detail-container {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.detail-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 20px;
    flex: 0 0 calc(30% - 40px);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.detail-card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Specific styles for nested detail cards in PPF and Tint section */
#ppf-tint-section .detail-card .detail-card {
    flex: 0 0 calc(100% - 40px); /* Full width within parent card, accounting for margins */
    margin: 10px 0; /* Reduced margin for nested cards */
    padding: 15px; /* Slightly smaller padding for nested cards */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Lighter shadow for nested cards */
}

/* Ensure parent detail-card in PPF and Tint section accommodates nested cards */
#ppf-tint-section .detail-card {
    flex: 0 0 calc(33.33% - 40px); /* Adjust parent card width to align with other sections */
    padding: 20px;
    margin: 20px;
}

.detail-card h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #333;
    font-weight: bold;
}

.detail-card ul {
    list-style-type: none;
    padding: 0;
    text-align: left;
}

.detail-card ul li {
    padding: 8px 0;
    color: #555;
}

.detail-card p.price {
    margin-top: 15px;
    font-weight: bold;
    color: #0672ffd2;
}

.detail-card p.note {
    margin-top: 15px;
    color: #888;
    font-size: 14px;
}

/* Media query for smaller screens */
@media only screen and (max-width: 768px) {
    .detail-card {
        display: none; /* Hide detail cards on mobile */
        flex: 0 0 calc(100% - 40px); /* Full width on mobile */
    }

    #ppf-tint-section .detail-card {
        flex: 0 0 calc(100% - 40px); /* Full width for parent cards on mobile */
    }

    #ppf-tint-section .detail-card .detail-card {
        flex: 0 0 calc(100% - 20px); /* Full width for nested cards, reduced margin */
        margin: 10px; /* Consistent margin for nested cards */
        padding: 10px; /* Reduced padding for nested cards on mobile */
    }

    .exterior-bg, .addon-bg, .interior-bg, .paint-bg {
        background-image: none;
    }

    .section-title {
        height: 250px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .one {
        background-image: url(media/Vette/IMG_7825.jpg);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    .two {
        background-image: url(media/Vette/IMG_7831.jpg);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    .three {
        background-image: url(media/Vette/IMG_7825.jpg);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    .four {
        background-image: url(media/Vette/IMG_7825.jpg);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    .five {
        background-image: url(media/Vette/IMG_7825.jpg);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
}

.detail-card p.service-description {
    color: #555;
    margin-top: 10px;
    font-size: 14px;
}

/* Styles for Shopping Cart Popup */
.shopping-cart-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    max-height: 400px;
    overflow-y: auto;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: block;
    z-index: 1000;
}

.cart-content {
    padding: 10px;
}

.shopping-cart-popup h2 {
    margin-bottom: 10px;
}

#cart-list-popup {
    list-style-type: none;
    padding: 0;
}

#cart-list-popup li {
    margin-bottom: 5px;
}

#total-price-popup {
    margin-top: 10px;
    font-weight: bold;
}

#user-info-form {
    margin-top: 10px;
}

#user-info-form label,
#user-info-form input,
#user-info-form textarea,
#user-info-form button {
    margin-bottom: 10px;
}

#close-cart-popup {
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

/* Modify the existing button styles */
button {
    background-color: #0672ffd2;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 10px;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
}

button:hover {
    background-color: #004080;
    color: #fff;
    transform: scale(1.05);
}

/* Shopping Cart Popup */
.shopping-cart-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    max-height: 400px;
    overflow-y: auto;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
    padding: 10px;
}

#close-cart-popup {
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    margin-top: 10px;
}

/* Add this style for the "Request Quote" button */
#request-quote-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #0672ffd2;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1001;
}

/* Update this style to hide the shopping cart initially */
.shopping-cart-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    max-height: 400px;
    overflow-y: auto;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
    padding: 10px;
}

.note-paint {
    margin-right: 25%;
    margin-left: 25%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    flex: 0 0 calc(30% - 40px);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.contact-form {
    max-width: 400px;
    margin: 20px auto;
    padding: 0 20px;
}

.title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 16px;
    margin-bottom: 20px;
}

.input-container {
    position: relative;
    margin-bottom: 20px;
}

.input {
    width: calc(100% - 24px);
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.3s;
}

.input:focus {
    border-color: #08d;
}

.cut {
    background-color: #f8f8f8;
    border-radius: 5px;
    height: 12px;
    left: 20px;
    position: absolute;
    top: -12px;
    transform: translateY(0);
    transition: transform 0.3s;
    width: calc(100% - 40px);
}

.cut-short {
    width: 50px;
}

.input:focus ~ .cut,
.input:not(:placeholder-shown) ~ .cut {
    transform: translateY(8px);
}

.placeholder {
    color: #ddd;
    font-size: 14px;
    position: absolute;
    left: 20px;
    top: 15px;
    transition: transform 0.3s, color 0.3s;
}

.input:focus ~ .placeholder,
.input:not(:placeholder-shown) ~ .placeholder {
    transform: translateY(-20px) translateX(5px) scale(0.75);
    color: #08d;
}

.submit {
    background-color: #08d;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    width: 100%;
    transition: background-color 0.3s;
}

.submit:hover {
    background-color: #06b;
}

#map-container {
    width: 100%;
    margin: 20px auto;
    justify-content: center;
}

/* Additional styles for responsiveness */
@media only screen and (max-width: 600px) {
    .input {
        width: 100%;
    }

    .cut,
    .cut-short {
        width: calc(100% - 40px);
    }

    #map-container {
        width: 100%;
        margin-top: 20px;
        height: 300px;
    }
}

@media only screen and (min-width: 769px) {
    #choosePackageBtn, .choose-package-btn {
        display: none;
    }
}

@media only screen and (max-width: 768px) {
    .detail-card {
        display: none;
        flex: 0 0 calc(100% - 40px);
    }
}