/* General Body Styles */
body {
    background: url('/static/images/Background.jpg') no-repeat center center fixed; /* Set the background image */
    background-size: cover; /* Make sure the image covers the whole page */
    font-family: 'Arial', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content horizontally */
    min-height: 100vh;
    margin: 0;
    padding: 10px;
    box-sizing: border-box;
}

/* Header section for the logo */
.header {
    text-align: center;
    margin-bottom: 0px; /* Space below the logo */
}

/* Logo Styling */
.header img {
    width: 100px; /* Width for the logo */
}

/* Instructions section styling */
.instructions {
    text-align: center;
    margin-bottom: 5px; /* Space below the instructions */
}

/* Heading and Instructions Styling */
.instructions .heading {
    font-size: 1rem;
    font-weight: bold;
    color: rgb(248, 248, 248); /* Color for heading */
}

.instructions p {
    color: rgb(255, 255, 255); /* Color for instruction text */
    font-size: 0.9rem;
}

/* Form Container with Background */
.form-container {
    text-align: left; /* Align text to the left */
    max-width: 500px; /* Limit the width for larger screens */
    width: 100%;
    padding: 20px;
    border-radius: 30px;
    box-shadow: 0 10px 25px rgba(2, 27, 21, 0.3);
    background: linear-gradient(135deg, #1292d5, #f39f13);
    position: relative;
    transition: all 0.3s ease;
}

/* Form Text Styling */
.form-container form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center all form elements, including the button */
}

/* Label and Input Field Layout */
.form-field {
    display: flex; /* Use flexbox to align label and input */
    align-items: center; /* Center align items vertically */
    margin-bottom: 20px; /* Space between fields */
    width: 100%;
}

.form-field label {
    width: 30%; /* Width for the label */
    text-align: left; /* Align label text to the left */
    font-size: 1rem;
    color: white;
}

.form-field input {
    width: 70%; /* Adjust width to fill the remaining space */
    padding: 15px;
    border: none;
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 14px;
}

.form-field input::placeholder {
    color: white; /* Placeholder color */
    opacity: 0.7; /* Placeholder opacity */
}
.form-field select {
    width: 70%;
    padding: 15px;
    border: none;
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 14px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%204%205'%3E%3Cpath%20fill='white'%20d='M2%205L0%200h4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 10px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, box-shadow 0.3s;
}

.form-field select:hover {
    background-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.form-field select option {
    color: black;
    background-color: white;
}
/* Remove spinners from number input fields */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    appearance: textfield; /* Standard CSS property */
}

/* Submit Button */
.form-container button {
    width: 50%; /* Responsive width for the button */
    max-width: 200px; /* Optional: Limit maximum width */
    padding: 10px;
    border: none;
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.form-container button:hover {
    background-color: #f39f13; /* Hover effect */
    box-shadow: 0 0 10px #1292d5;
}

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
    .form-container {
        width: 85%; /* Adjust width for smaller screens */
        padding: 15px;
    }

    .form-field {
        flex-direction: column; /* Stack label and input on smaller screens */
        align-items: flex-start; /* Align items to the left */
    }

    .form-field label {
        width: 90%; /* Full width for label */
        text-align: left; /* Align text to the left */
    }

    .form-field input {
        width: 95%; /* Full width for input */
        font-size: 1rem;
    }

    .form-container button {
        width: 70%; /* Adjust button width */
    }
}

@media (max-width: 480px) {
    .form-container {
        width: 90%; /* Full width for mobile */
        padding: 10px;
        border-radius: 15px;
    }

    .form-field input {
        padding: 10px; /* Adjust padding for input */
        font-size: 0.9rem;
    }

    .form-container button {
        width: 90%; /* Adjust button width for small screens */
        font-size: 1rem;
    }

    .instructions .heading {
        font-size: 1rem; /* Adjust heading size */
    }

    .instructions p {
        font-size: 0.9rem; /* Adjust instruction size */
    }
}
