/* Basic Reset and Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    color: #333;
    line-height: 1.6;
    margin: 0;
    background-color: #f8f9fb;
}

/* Main Page Layout */
.page-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
}

/* Hero Section */
.hero {
    background: url('../images/hero.webp') no-repeat center center;
    background-size: cover; /* Ensures the image covers the entire area */
    color: #fff;
    text-align: center;
    padding: 50px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 70vh; /* Adjust the height as needed */
}

.hero-content {
    max-width: 600px;
    margin-bottom: 20px;
    background-color: rgba(75,123,236,0.5); /* Optional: Adds a semi-transparent background to improve text readability */
    padding: 20px;
    border-radius: 10px;
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

.btn-primary {
    background-color: #ff7f50;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    margin-top: 20px;
    cursor: pointer;
}

/* Features Section */
.features {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 20px;
    background-color: #fff;
}

.feature-item {
    max-width: 600px;
    margin-bottom: 40px;
    text-align: center;
}

.feature-item img {
    max-width: 100%;
    height: auto;
    margin-top: 20px;
}

.learn-more {
    color: #ff9800;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    display: inline-block;
}

/* Case Study Section */
.case-study {
    padding: 50px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.accordion {
    list-style: none;
    padding: 0;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.accordion li {
    margin-bottom: 10px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.accordion input[type="checkbox"] {
    display: none;
}

.accordion label {
    display: block;
    padding: 15px;
    cursor: pointer;
    font-weight: bold;
    color: #333;
    border-bottom: 1px solid #ddd;
}

.accordion .accordion-content {
    display: none;
    padding: 15px;
}

.accordion input[type="checkbox"]:checked ~ .accordion-content {
    display: block;
}

/* Call to Action Section */
.cta {
    background-color: #000;
    color: #fff;
    padding: 50px 20px;
    text-align: center;
}

/* Responsive Styles */
@media (min-width: 768px) {
    .hero {
        flex-direction: row;
        justify-content: center;
    }

    .features {
        flex-direction: row;
        justify-content: center;
        gap: 30px;
    }

    .feature-item {
        flex: 1;
        margin-bottom: 0;
    }

    .accordion {
        max-width: 800px;
    }
}

/* Form Submission Page Styles */
.form-page-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    padding: 20px;
    background-color: #f8f9fb;
    height: 100vh;
}

.form-container {
    padding: 40px;
    width: 45%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-container h1 {
    margin-bottom: 10px;
    font-size: 24px;
}

.form-container p {
    margin-bottom: 20px;
    color: #666;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.checkbox-group {
    margin-bottom: 20px;
    font-size: 14px;
}

.checkbox-group label {
    color: #666;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 5px;
}

.image-container {
    width: 50%;
    position: relative;
    background: url('relevant-image.jpg') no-repeat center center;
    background-size: cover;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.testimonial {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 8px;
    max-width: 90%;
}

.testimonial p {
    margin-bottom: 5px;
    font-size: 14px;
}

.testimonial span {
    display: block;
    font-size: 12px;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .form-page-container {
        flex-direction: column;
        padding: 20px;
        height: auto;
    }

    .form-container,
    .image-container {
        width: 100%;
        margin-bottom: 20px;
    }

    .image-container {
        height: 250px;
    }

    .testimonial {
        padding: 10px;
        max-width: 100%;
    }
}