/* Global Body Styles */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;  /* Ensures the body takes full height */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    justify-content: center; /* Vertically centers the content */
    align-items: center; /* Horizontally centers the content */
}

/* Main Content Wrapper */
.main-content {
    flex: 1;  /* Ensures the content takes up available space */
    padding: 20px;
    max-width: 1200px; /* Maximum width for content */
    margin: 0 auto;  /* Centers the content */
}

/* Form Container */
.form-container {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    margin-top: 40px;  /* Space between form and header */
    min-height: 300px;  /* Prevents form from collapsing */
    box-sizing: border-box;  /* Ensures padding is included in width */
    border: 2px solid #e67e22;  /* Added border with the requested color */
}

/* Form Header */
.form-container h2 {
    font-size: 26px;
    color: #333;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
}

/* Error & Success Messages */
.error-message, .success-message {
    font-size: 16px;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 20px;
}

.error-message {
    background-color: #e74c3c;
}

.success-message {
    background-color: #2ecc71;
}

/* Input Fields */
input[type="email"] {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
    box-sizing: border-box;
    transition: border 0.3s ease;
}

input[type="email"]:focus {
    border-color: #f1c40f;
    outline: none;
}

/* Submit Button */
.submit-button {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    background-color: #f1c40f;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
}

.submit-button:hover {
    background-color: #e67e22;
}

/* Success Message Redirect */
.success-message {
    text-align: center;
}

.success-message a {
    color: #f1c40f;
    font-weight: bold;
    text-decoration: none;
}

.success-message a:hover {
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 768px) {
    /* Adjust form container to fit within screen */
    .form-container {
        padding: 25px;
        max-width: 100%;  /* Full width for mobile */
        margin: 20px auto;  /* Ensure no overflow on sides */
    }

    /* Adjust heading font size */
    .form-container h2 {
        font-size: 24px;
    }

    /* Adjust input and button sizes */
    .form-container input,
    .form-container button {
        font-size: 16px;
        padding: 12px;
    }

    /* Adjust margin and padding for main content */
    .main-content {
        padding: 15px;
    }

    /* Fix form container margin on mobile */
    .form-container {
        margin-top: 20px;
    }

    /* Center align the form */
    .form-container {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Footer */
.footer {
    background-color: #000; /* Solid black background */
    color: white;
    padding: 20px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    margin-top: 50px;  /* Space between form and footer */
}

/* Footer Links */
.footer .nav-links {
    justify-content: center;
    margin-bottom: 20px;
}

.footer .nav-links a {
    color: white;
    margin: 0 10px;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s, background-color 0.3s;
    padding: 5px 10px;
    border-radius: 5px;
}

.footer .nav-links a:hover {
    color: white;
    background-color: #f1c40f;
}

/* Footer Contact Info (Optional) */
.footer p {
    font-size: 14px;
    color: white;
    margin-top: 15px;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer {
        padding: 15px;
    }

    .footer .nav-links a {
        font-size: 12px;
        margin: 0 5px;
    }

    .footer p {
        font-size: 12px;
    }
}
