/* --- Global Styles & Body --- */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f7f6; /* Light grey/off-white background */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    margin: 0;
}

/* --- Form Container --- */
.form-container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px; /* Max width for a nice large form on desktop */
}

.form-container h1 {
    color: #007bff; /* Innova Tech Primary Blue */
    text-align: center;
    font-weight: 600;
    margin-bottom: 5px;
}

.form-container p {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

/* --- Form Grouping and Layout --- */
.form-group-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
    width: 100%; /* Default to full width */
}

.half-width {
    flex: 1; /* Allows it to take up half the space */
}

/* --- Labels and Inputs --- */
label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 400;
    font-size: 0.95em;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    box-sizing: border-box; /* Includes padding in the element's total width and height */
    transition: border-color 0.3s, box-shadow 0.3s;
    font-size: 1em;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    outline: none;
}

textarea {
    resize: vertical; /* Only allow vertical resizing */
}

/* --- Select Dropdown Specific Styling --- */
select {
    appearance: none; /* Removes default OS style on most browsers */
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px top 50%;
    padding-right: 35px; /* Add space for the custom arrow */
}

/* --- Submit Button --- */
.submit-btn {
    width: 100%;
    background-color: #007bff;
    color: white;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}

.submit-btn:hover {
    background-color: #0056b3; /* Darker blue on hover */
}

.submit-btn:active {
    transform: translateY(1px); /* Little press effect */
}

/* --- Responsive Design (Mobile View) --- */
@media (max-width: 768px) {
    .form-container {
        padding: 30px 20px;
        box-shadow: none; /* Less aggressive shadow on mobile */
    }

    .form-group-row {
        flex-direction: column; /* Stacks the elements vertically */
        gap: 0; /* Remove gap when stacked */
    }

    .half-width {
        width: 100%;
    }
}