/* General body and layout settings */
/* General body styling */
body {
    font-size: 16px; /* Base font size for all devices */
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}
/* Mobile adjustments */
@media screen and (max-width: 480px) {
    body {
        font-size: 14px; /* Smaller font size for mobile screens */
    }

    .form-section {
        padding: 15px;
    }

    .form-group input,
    .form-group select {
        font-size: 0.9rem;
    }

    .submit-btn {
        font-size: 1rem;
    }
}
/* Ensure the hero image adapts to different screen sizes */
.hero {
    background: url('./images/hero-bg.webp') no-repeat center center;
    background-size: cover;
    height: 100vh; /* Full viewport height */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Aligns content to the bottom */
    align-items: flex-start;
    color: white;
    position: relative;
    padding: 20px;
    max-width: 100%; /* Prevent overflow */
}

/* Add a dark overlay for better text contrast */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay with 50% opacity */
    z-index: 1;
}

.hero h1, .hero p, .hero .btn {
    position: relative;
    z-index: 2;
}

/* Styling the main hero heading */
.hero h1 {
    font-size: 2.5rem;
    margin-left: 10px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9); /* Stronger shadow for readability */
    position: relative;
}

/* Styling for hero paragraph text */
.hero p {
    font-size: 1.2rem;
    margin-left: 10px;
    margin-top: 10px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9); /* Stronger shadow for readability */
    margin-bottom: 20px;
}

/* Position text and buttons at the bottom of the hero section */
.hero .content {
    margin-bottom: 20px; /* Adjust this value to move the content further up or down */
    width: 100%;
    text-align: left; /* Align content to the left */
}

/* Button styles for hero section */
.hero .btn {
    padding: 10px 20px;
    background-color: #008cba;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin: 10px 10px 0 0; /* Adds spacing between buttons */
}

/* Two buttons styled side by side */
.hero .btn-cpap-mask {
    background-color: #004080;
    margin-top: 10px;
}

.hero .btn:hover, .btn-cpap-mask:hover {
    background-color: #005f8a;
}

/* Responsive product grid layout */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

/* Product card styling */
.product {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for a clean look */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; /* Force all cards to be the same height */
}

/* Ensure all images are the same size */
.product img {
    max-width: 100%;
    height: 200px; /* Fixed height to ensure uniformity */
    object-fit: contain; /* Ensure images fit within the space without being stretched */
    margin-bottom: 10px;
}

/* Product title styling */
.product h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #333;
}

/* Price and additional product information */
.product p {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #555;
}

/* Styling for the product rating */
.product .rating {
    margin-bottom: 10px;
}

/* Call-to-action buttons in product cards */
.product .btn {
    margin-top: auto; /* Push the button to the bottom */
    padding: 10px 20px;
    background-color: #008cba;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

/* Product button hover effect */
.product .btn:hover {
    background-color: #005f8a;
}

/* Footer styling */
.footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: white;
    margin-top: 40px;
}

/* Lead form styling */
.form-section {
    background-color: #f4f4f4;
    padding: 30px;
    margin: 40px auto;
    width: 100%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for a clean look */
    text-align: left;
}

.form-section h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #008cba;
    outline: none;
}

/* Align the form button */
.submit-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #008cba;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
}

.submit-btn:hover {
    background-color: #005f8a;
}

/* Center the form container */
.container {
    max-width: 600px;
    margin: 0 auto;
}

.form-section p {
    color: #555;
    text-align: center;
}

/* Media Queries for better responsiveness */
@media screen and (max-width: 768px) {
    .form-section {
        padding: 20px;
    }
    
    .form-group input, 
    .form-group select {
        font-size: 1rem;
    }

    .submit-btn {
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .form-section {
        padding: 15px;
    }

    .form-group input,
    .form-group select {
        font-size: 0.9rem;
    }

    .submit-btn {
        font-size: 1rem;
    }
}


/* Media query for tablets and smaller screens */
@media screen and (max-width: 768px) {
    .hero {
        background-position: center top; /* Adjust background position for mobile */
        background-size: contain; /* Make sure the entire image is visible */
        padding: 20px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .hero .btn {
        font-size: 1rem;
        padding: 8px 16px;
    }

    /* Adjusting product grid for smaller screens */
    .product-grid {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .lead-form {
        width: 90%; /* Ensure the form fits within smaller screens */
        margin: 10px auto;
    }
}

/* Media query for mobile screens */
@media screen and (max-width: 480px) {
    .hero {
        background-position: center top; /* Keep the image centered */
        background-size: cover;
        padding: 10px;
        height: 80vh; /* Shorten the height for better viewing on mobile */
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero .btn {
        font-size: 1rem;
        padding: 8px 16px;
    }

    /* Adjusting product grid for mobile screens */
    .product-grid {
        grid-template-columns: 1fr;
    }

    .lead-form {
        width: 95%;
        padding: 15px;
    }

    /* Product adjustments */
    .product h3 {
        font-size: 1rem;
    }
}

/* Footer Styling */
.footer {
    background-color: #222; /* Darker background for contrast */
    color: #ddd; /* Softer text color for readability */
    padding: 50px 0;
    position: relative;
    margin-top: 40px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 20px; /* Add gap between the columns */
}

.footer-about,
.footer-links,
.footer-contact {
    width: 30%;
    min-width: 250px;
    text-align: left;
}

.footer-about h4,
.footer-links h4,
.footer-contact h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.footer-about p {
    font-size: 1rem;
    line-height: 1.6;
    color: #bbb; /* Slightly lighter text */
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ddd; /* Lighter link color */
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #008cba;
}

.footer-contact p {
    margin-bottom: 10px;
    font-size: 1rem;
    color: #bbb;
}

.footer-contact i {
    margin-right: 10px;
    color: #008cba;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #444; /* Subtle border on top */
    font-size: 0.9rem;
    color: #777;
}

.footer-bottom p {
    margin: 0;
}

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #008cba;
}

/* Responsive footer styling */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-about,
    .footer-links,
    .footer-contact {
        width: 100%;
        margin-bottom: 20px;
    }
}
