/* banner */

/* Carousel Container */
#carouselExampleCaptions {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    margin-top: 10%; /* Adjust as needed */
    
   
}

/* Carousel Items */
#carouselExampleCaptions .carousel-item {
    height: auto; /* Adjusts height to fit content */
}

/* Image Styling */
#carouselExampleCaptions .carousel-item img {
    width: 100%;
    height: auto;
    object-fit: cover; /* Cover container while maintaining aspect ratio */
}

/* Carousel Caption */
#carouselExampleCaptions .carousel-caption {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    padding: 0 15px;
    text-align: center;
    z-index: 10; /* Ensure caption is above other content */
}

/* Heading and Text Sizes */
#carouselExampleCaptions .carousel-caption h5 {
    color: #fff; /* Adjust color as needed */
    font-size: 1.5rem; /* Default size for large screens */
    margin-bottom: 10px;
}

#carouselExampleCaptions .carousel-caption p {
    color: #fff; /* Adjust color as needed */
    font-size: 1rem; /* Default size for large screens */
}

/* Carousel Controls */
#carouselExampleCaptions .carousel-control-prev,
#carouselExampleCaptions .carousel-control-next {
    width: 5%;
    z-index: 15; /* Ensure controls are above other content */
}

#carouselExampleCaptions .carousel-control-prev-icon,
#carouselExampleCaptions .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5); /* Adjust color as needed */
    border-radius: 50%;
}

/* Responsive Design */
@media (max-width: 768px) {
    #carouselExampleCaptions .carousel-caption h5 {
        font-size: 1.25rem; /* Adjust font size for tablets and smaller screens */
    }

    #carouselExampleCaptions .carousel-caption p {
        font-size: 0.875rem; /* Adjust font size for tablets and smaller screens */
    }

    #carouselExampleCaptions .carousel-control-prev,
    #carouselExampleCaptions .carousel-control-next {
        width: 10%;
    }
}

@media (max-width: 576px) {
    #carouselExampleCaptions .carousel-caption h5 {
        font-size: 1rem; /* Adjust font size for mobile screens */
    }

    #carouselExampleCaptions .carousel-caption p {
        font-size: 0.75rem; /* Adjust font size for mobile screens */
    }

    #carouselExampleCaptions .carousel-control-prev,
    #carouselExampleCaptions .carousel-control-next {
        width: 15%;
    }
}

/* end banner */


/* heding */
#quote-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    margin: 20px;
    animation: fadeIn 2s ease-in-out;
}



#quote-container h1 {
    font-size: 2em;
    color: red;
    text-align: center;
    margin-bottom: 20px;
    animation: slideInFromLeft 1.5s ease-out;
    font-weight: bold;


}

#quote-container p {
    font-size: 15px;
    color: rgba(0, 0, 0, 0.733);
    text-align: justify;
    animation: slideInFromRight 1.5s ease-out;
    width: 70%;
    margin-left: 15%;

}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 600px) {
    #quote-container {
        padding: 15px;
    }

    #quote-container h1 {
        font-size: 1.5em;
    }

    #quote-container h3 {
        font-size: 1em;
    }
}

/* end heding */



/* form */
#form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#form-container h2 {
    text-align: center;
    margin-bottom: 20px;
}

#form-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

#form-container input,
#form-container select,
#form-container textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

#form-container input[type="radio"],
#form-container input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

#form-container .form-group {
    margin-bottom: 20px;
}

#form-container .form-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#form-container .form-inline label,
#form-container .form-inline input {
    flex: 1;
    min-width: 48%;
}

#form-container button {
    width: 100%;
    padding: 15px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

#form-container button:hover {
    background-color: #0056b3;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.checkbox-group .checkbox-item {
    display: flex;
    align-items: center;
    width: 48%;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
}

.address-line-container {
    display: flex;
    justify-content: space-between;
}

.address-line-left {
    flex: 1;
    margin-right: 10px;
    /* Adjust spacing between the address fields */
}

.address-line-right {
    flex: 1;
    margin-left: 10px;
    /* Adjust spacing between the address fields */
}

.town-county-container {
    display: flex;
    justify-content: space-between;
}

.town,
.county {
    flex: 1;
    margin-right: 10px;
    /* Adjust spacing between the town and county fields */
}

.postcode-phone-container {
    display: flex;
    justify-content: space-between;
}

.postcode,
.phone {
    flex: 1;
    margin-right: 10px;
    /* Adjust spacing between the postcode and phone fields */
}

/* Apply styles to the form container */
#form-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgb(224, 243, 253);
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Style the form headings */
#form-container h2 {
    text-align: center;
    color: #333;
}

/* Style form groups */
#form-container .form-group {
    margin-bottom: 15px;
}

/* Style form labels */
#form-container label {
    display: block;
    margin-bottom: 5px;
    color: #666;
}

/* Style radio and checkbox options */
#form-container input[type="radio"],
#form-container input[type="checkbox"] {
    margin-right: 5px;
}

/* Style textarea */
#form-container textarea {
    width: 100%;
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Style text inputs */
#form-container input[type="text"],
#form-container input[type="email"],
#form-container input[type="tel"],
#form-container input[type="number"],
#form-container select {
    width: 100%;
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Style buttons */
#form-container button[type="submit"] {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

#form-container button[type="submit"]:hover {
    background-color: #45a049;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    #form-container {
        padding: 10px;
    }

    #form-container button[type="submit"] {
        width: 100%;
    }
}

/* Animation for form elements */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#form-container .form-group {
    animation: fadeIn 0.5s ease-in-out;
}

#form-container .form-group a {
    color: #007BFF;
    font-weight: bold;
}

/* end form */

/* navbar */
/* Container holding the buttons */
.button-container {
    display: flex;
    flex-wrap: wrap;
    /* Allows buttons to wrap if container width is too small */
    gap: 10px;
    /* Adds space between buttons */
    margin-top: 1%;
    width: 50%;
    margin-left: 25%;
    justify-content: center;
    /* Centers the buttons within the container */
    transition: all 0.3s ease-in-out;
    /* Adds a smooth transition effect */
}

/* Button styles */
.button-container .btn {
    flex: 1;
    /* Makes buttons grow and shrink equally */
    max-width: calc(25% - 10px);
    /* Ensures four buttons per row with space */
    background-color: rgb(76, 165, 211);
    color: white;
    transition: transform 0.3s, background-color 0.3s;
    /* Adds animation effects */
}

/* Button styles */
.button-container .btn span {
    font-size: 12px;
    color: #000;
}

/* Button hover effect */
.button-container .btn:hover {
    transform: scale(1.1);
    /* Slightly enlarges the button */
    background-color: #0056b3;
    /* Changes background colour on hover */

}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .button-container {
        width: 100%;
        margin-left: 0;
    }

    .button-container .btn {
        max-width: calc(50% - 10px);
        /* Two buttons per row on smaller screens */
    }
}

@media (max-width: 480px) {
    .button-container .btn {
        max-width: 100%;
        /* Single button per row on very small screens */
    }
}

/* end navbar */