/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body and Page Layout */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Form Section with Logo */
.form-section {
    position: relative;
    min-height: 100vh;
    background-image: url('ChatGPT Image Sep 11, 2025, 06_55_42 AM.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    padding: 20px 0;
}

/* Overlay Styling */
.overlay {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Flex container for form and logo */
.form-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 40%;
    max-width: 1200px;
    background-color: white;
    border-radius: 10px;
    padding: 30px;
}

/* Logo Section on the Left */
.logo-section {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    width: 40%; /* Takes up 40% of the container width */
    text-align: center;
}

.navbar-brand img {
    height: 150px;
    margin-bottom: 20px;
}

/* Form Section on the Right */
.form-section-right {
    width: 55%; /* Takes up 55% of the container width */
}

h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #ffffff;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

label {
    font-size: 14px;
    color: #ffffff;
}

input, select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

button.submit-btn {
    background-color: rgb(205 23 0);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
}

button.submit-btn:hover {
    background-color: #ec2200;
}

/* Footer Styling */
footer {
    background-color: #bc1200;
    color: white;
    text-align: center;
    padding: 15px;
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* Media Queries for Mobile Devices */
@media (max-width: 768px) {
    .form-section {
        background-attachment: scroll; /* Disable parallax on mobile for better performance */
        padding: 10px 0;
    }
    
    .overlay {
        padding: 10px;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .form-container {
        flex-direction: column;
        padding: 20px;
        width: 95%;
        max-height: none;
        margin: 10px auto;
    }

    .logo-section {
        width: 100%;
        margin-bottom: 20px;
    }

    .form-section-right {
        width: 100%;
    }

    .navbar-brand img {
        width: 80px;
        margin-right: 5px;
    }

    h2 {
        font-size: 20px;
    }

    .form-group {
        margin-bottom: 10px;
    }

    label {
        font-size: 13px;
    }

    input, select {
        font-size: 13px;
        padding: 8px;
    }

    button.submit-btn {
        font-size: 14px;
        padding: 8px 16px;
    }

    footer {
        font-size: 14px;
        position: relative; /* Change from fixed to relative on mobile */
    }
}

@media (max-width: 480px) {
    .form-section {
        background-attachment: scroll;
        padding: 5px 0;
    }
    
    .overlay {
        padding: 5px;
        align-items: flex-start;
        padding-top: 15px;
    }
    
    .logo-section {
        width: 100%;
        margin-bottom: 15px;
        padding: 15px;
    }

    .form-section-right {
        width: 100%;
    }

    .navbar-brand img {
        width: 70px;
    }

    .form-container {
        width: 98%;
        padding: 15px;
        margin: 5px auto;
    }

    h2 {
        font-size: 18px;
    }

    .form-group {
        margin-bottom: 8px;
    }

    label {
        font-size: 12px;
    }

    input, select {
        font-size: 12px;
        padding: 7px;
    }

    button.submit-btn {
        font-size: 14px;
        padding: 8px 16px;
    }

    footer {
        font-size: 12px;
        position: relative; /* Change from fixed to relative on mobile */
    }
}
