body {
    /* font-size: 20px;
     */
}

/* Typography */
p,
.paragraph-medium,
ul {
    font-size: 20px;
    line-height: 1.2;
    color: #0f0f0fa6;
    font-weight: 300;
}

.title {
    font-size: 50px !important;
}

/* Background Colors & Text Colors */
.bg-white {
    background: #fff !important;
}

.bg-black {
    background: #000 !important;
}

.bg-black-light {
    background: #111 !important;
}

.bg-gray {
    background: #e6e6e6 !important;
}

.bg-orange {
    background: #ed6623 !important;
}

.text-white {
    color: #fff !important;
}

.text-black {
    color: #000 !important;
}

.text-orange {
    color: #ed6623 !important;
}

/* General Sections */
.full-menu {
    background: #000;
}

.section-portfolio {
    padding: 50px 2.5%;
}

.section-portfolio .cms-category {
    color: #fff;
    border: 1px solid #fff;
}

/* Hero Backgrounds */
.hero-background-image.hero_gallery {
    background-image: url("../img/cars/banner1.jpeg");
    background-position: 50%;
}

.slider-background.one {
    background-image: linear-gradient(#00000094, #00000080), url("../img/landcrouser/land-two.jpg");
    background-position: 0 0;
}

.slider-background.two {
    background-image: linear-gradient(#000000a6, #000000a8), url("../img/volkswagen/vol_one.jpg");
}

.slider-background.three {
    background-image: linear-gradient(#00000082, #00000082), url("../img/vans/vans_one.jpg");
}

.slider-background.four {
    background-image: linear-gradient(#000c, #0009), url("../img/sedans/sedans_one.jpg");
}
.slider-background.five {
    background-image: linear-gradient(#000c, #0009), url("../img/cars/four.jpg");
}


/* About section */
.about .paragraph-medium {
    color: #fff;
}

.service-image {
    object-fit: unset;
    width: 100%;
    height: auto;
}
.section-titles {
  font-size: 1.5rem;
  font-weight: 600;
  text-align: left;
  margin: 20px 0;
  color: var(--black);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .section-titles {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .section-titles {
    font-size: 1.4rem;
  }
}


/* Section layout */
.section-double-grid {
    z-index: 10;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 0 2.5%;
    display: flex;
    position: relative;
}

.clip.about-title {
    margin-bottom: 15px !important;
    padding: 20px 0 !important;
}

/* Action Background */
.background.action-background {
    background-image: url("img/slides/vans.jpg") !important;
    background-position: 0 0 !important;
    background-size: cover !important;
}

/* Wrapper and Form */
.wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 0;
}

.form-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 900px;
    margin: auto;
    animation: fadeIn 1s ease-out;
}

/* Form Typography */
h2,
h3 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: bold;
    opacity: 0.6;
}

/* Form Group */
.form-group,
.phone-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

label,
.phone-group label {
    width: 150px;
    margin-right: 10px;
    font-weight: bold;
    opacity: 0.6;
}

/* Inputs */
input,
select,
textarea {
    flex: 1;
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 14px;
    opacity: 0.6;
    box-sizing: border-box;
}

textarea {
    resize: vertical;
}

.phone-group .iti {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    width: auto !important;
    box-sizing: border-box;
}

.phone-group input[type="tel"] {
    width: 100% !important;
    height: 40px;
    padding: 7px 12px;
    font-size: 16px;
}

/* Responsive Form Adjustments */
@media (max-width: 600px) {

    .form-group,
    .phone-group {
        flex-direction: column;
        align-items: flex-start;
    }

    label,
    .phone-group label {
        width: 100%;
        margin-bottom: 5px;
    }

    .phone-group .iti,
    .phone-group input[type="tel"],
    input,
    select,
    textarea {
        width: 100% !important;
    }
}

/* Button Styling */
.buttons_rwanda {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.buttons_rwanda button,
#invoiceBtn {
    display: block;
    margin-left: 0;
    padding: 10px 20px;
    background-color: #ed6623;
    color: #fff;
    font-size: 16px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s;
    max-width: 100%;
    text-align: center;
}

.buttons_rwanda button:hover,
#invoiceBtn:hover {
    background-color: #000;
    color: #fff;
}

/* Contact Us Button */
.form-button.outline-button.margin-top {
    background-color: #000 !important;
    color: var(--white);
    margin-top: 20px;
    opacity: 0.2px;
    font-family: 'Nunito Sans', sans-serif;
}

/* Vehicle Selection */
.vehicle-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
}

.vehicle-card {
    background: #f8f8f8;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.vehicle-card:hover {
    transform: scale(1.05);
}

.vehicle-card img {
    width: 100%;
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
}

.vehicle-card label {
    display: block;
    margin-top: 10px;
    width: auto;
}

.vehicle-card input[type="number"] {
    width: 80%;
    margin-top: 10px;
    padding: 8px;
    opacity: 0.6;
}

.buttons-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
}

.btn-confirm,
.btn-invoice {
    padding: 12px 24px;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.btn-confirm {
    background-color: #ed6623;
    border-radius: 25px;
    color: white;
}

.btn-invoice {
    display: block;
    margin-left: 0;
    padding: 10px 20px;
    background-color: #ed6623;
    color: #fff;
    font-size: 16px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s;
    max-width: 100%;
    text-align: center;
}

/* Responsive tweak: stack buttons on small screens */
@media (max-width: 600px) {
    .buttons-container {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-confirm,
    .btn-invoice {
        width: 100%;
    }
}

/* Total Cost */
.total-cost {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin: 20px 0;
    color: #ed6623;
}

/* Responsive Layout for Vehicles */
@media (max-width: 768px) {
    .vehicle-container {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 480px) {
    .vehicle-container {
        grid-template-columns: 1fr;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #0f0f0fa6;
    letter-spacing: 0;
    font-family: Nunito Sans, sans-serif;
    color: #fff;
    font-size: 14px;
    color: #000;
    opacity: 0.6;
}

/* Container styling */
.section-portfolio {
    padding: 40px 20px;
    background-color: #f9f9f9;
}

/* Title styles */


/* Case studies grid */
.case-studies {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Each image box */
.case-study {
    flex: 1 1 20%;
    max-width: 25%;
    min-width: 150px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;

}


.case-study img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

/* Hover animation */
.case-study:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.case-study img:hover {
    transform: scale(1.05);
}

/* Fade-in animation */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Responsive layout */
@media (max-width: 1024px) {
    .case-study {
        max-width: 45%;
    }
}

@media (max-width: 600px) {
    .case-study {
        max-width: 100%;
    }
}


.more-case-studies {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.case-studys {
    flex: 0 1 calc(33.333% - 20px);
    /* 3 per row */
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-studys img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
}

/* Hover animation */
.case-studys:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Make the last two centered on the second row */


/* Responsive layout */
@media screen and (max-width: 992px) {
    .case-studys {
        flex: 0 1 calc(50% - 20px);
        /* 2 per row */
    }

    .more-case-studies .case-studys:nth-child(5) {
        margin-left: 0;
    }
}

@media screen and (max-width: 600px) {
    .case-studys {
        flex: 0 1 100%;
        /* 1 per row on mobile */
    }
}


.large-heading {
    font-size: 2.5rem;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeIn 1s forwards;
}


.image-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.image-box {
    flex: 1 1 calc(33.333% - 20px);
    /* 3 per row with gap */
    animation: fadeSlideUp 1s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.image-box img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.image-box:hover img {
    transform: scale(1.05);
}

/* Animations */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes fadeSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive tweaks */
@media (max-width: 992px) {
    .image-box {
        flex: 1 1 calc(50% - 20px);
        /* 2 per row on medium screens */
    }
}

@media (max-width: 600px) {
    .image-box {
        flex: 1 1 100%;
        /* Full width on small screens */
    }
}

.menu-container {
    position: relative;
    display: inline-block;
    z-index: 10;
    /* Ensure it stays on top */
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 160px;
    flex-direction: column;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    overflow: visible;
    /* ensure it's not clipped */
}

.dropdown a.dropdown-item {
    padding: 12px 16px;
    display: block;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid orange;
    border-top: 1px solid orange;
    white-space: nowrap;
    transition: background 0.3s;
}

.dropdown a.dropdown-item:hover {
    background-color: #f0f0f0;
}

/* Show dropdown on hover */
.menu-container:hover .dropdown {
    display: flex;
    /* changed from block to flex column */
}
@media (max-width: 600px) {
  .custom-footer {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem; /* Space between lines */
  }
 
}
.error-message {
    display: none;
    background-color: red!important;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    margin-bottom: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    animation: fadeIn 0.5s ease-in-out;
}