/* Reset some default styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fff;
}

/* Layout containers */
header,
section {
    padding: 2rem 1rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

footer {
    padding: 1.5rem;
    text-align: center;
    background-color: #f4f4f4;
    font-size: 0.9rem;
}

/* Header section styling */
#header {
    background: #2a9d8f;
    color: #fff;
    padding: 4rem 1rem;
}

#header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

#header p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.cta-button {
    display: inline-block;
    background: #e76f51;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-size: 1rem;
    text-decoration: none;
    margin: 0.5rem;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: #f4a261;
}

/* Section styling */
h2 {
    font-size: 1.8rem;
    color: #2a9d8f;
    margin-bottom: 1rem;
}

.feature {
    background: #f4f4f4;
    padding: 1.5rem;
    border-radius: 5px;
    margin: 1rem 0;
    text-align: left;
}

.feature h3 {
    color: #264653;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

/* FAQs styling */
#faq {
    margin: 2rem 0;
    text-align: left;
}

#faq h3 {
    margin-bottom: 1rem;
    color: #264653;
}

details {
    background: #f9f9f9;
    margin: 0.5rem 0;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
}

details summary {
    font-weight: bold;
    color: #2a9d8f;
}

details p {
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

/* Center-align the entire signup section (grey box) */
#signup {
    background: #f4f4f4;
    padding: 2rem;
    border-radius: 5px;
    margin: 2rem auto; /* Centers the section horizontally */
    max-width: 600px; /* Sets a maximum width for the grey box */
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: center; /* Ensures all content inside is centered */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: adds a subtle shadow for emphasis */
}

/* Form Styling */
form {
    width: 100%; /* Ensures the form takes full width of container */
    max-width: 500px; /* Limits form width */
    margin: 0 auto;
    text-align: left; /* Left-aligns form content within the centered container */
}

form label {
    display: block;
    font-weight: bold;
    margin: 0.5rem 0 0.2rem;
    text-align: left;
}

form input[type="text"],
form input[type="email"],
form button[type="submit"] {
    width: 100%; /* Ensures inputs and button are full width */
    padding: 0.5rem;
    margin: 0.5rem 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    display: block; /* Centers fields within the form */
}

form button[type="submit"] {
    background: #2a9d8f;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

form button[type="submit"]:hover {
    background: #264653;
}

/* Checkbox styling */
form label[for="beta-tester"] {
    display: inline-block;
    margin-top: 1rem;
    text-align: center;
}

/* Footer styling */
footer nav a {
    color: #264653;
    margin: 0 0.5rem;
    text-decoration: none;
}

footer nav a:hover {
    text-decoration: underline;
}

/* Media Queries for Responsive Design */
@media (min-width: 768px) {
    header,
    section {
        padding: 3rem 2rem;
    }

    .cta-button {
        font-size: 1.1rem;
    }

    #header h1 {
        font-size: 2.5rem;
    }

    #header p {
        font-size: 1.2rem;
    }

    h2 {
        font-size: 2rem;
    }

    .feature h3 {
        font-size: 1.6rem;
    }

    #faq {
        padding: 0 1.5rem;
    }
}
