/* Center the form horizontally and vertically */
.content-container {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 900px;
    text-align: center;
    margin: auto;
    margin-top: 0; /* Remove top margin to position form higher */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align content to the top */
    align-items: center;
    height: calc(100% - 40px); /* Adjust height to fit within the main content area */
    overflow-y: auto; /* Add vertical scroll if content exceeds height */
}

/* Adjust the form layout */
.form-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
}

.form-section {
    flex: 1;
    min-width: 300px;
}

.form-section h3 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 5px;
    text-align: left;
}

.form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

input[type="text"],
input[type="number"],
select {
    width: 90%;
    padding: 8px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    color: #333;
    font-size: 0.9rem;
    outline: none;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    /* Add smooth transition for background and shadow on focus */
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

input:hover,
select:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px); /* Slight lift on hover */
    box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.15);
}

input:focus,
select:focus {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transform: scale(1.02); /* Slight scale up when focused */
    border: 1px solid rgba(53, 71, 113, 0.8);
}

label {
    display: block;
    font-size: 0.85rem;
    color: #333;
    margin-bottom: 3px;
    transition: color 0.3s ease;
}

input:focus + label,
select:focus + label {
    color: rgba(53, 71, 113, 0.8);
}

/* Submit Button */
button {
    background-color: rgba(53, 71, 113, 0.8);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    font-size: 1rem;
    margin-top: 15px;
}

button:hover {
    background-color: rgba(53, 71, 113, 0.9);
    transform: translateY(-3px); /* Slight lift on hover */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

button:active {
    transform: translateY(0); /* Reset lift on click */
    background-color: rgba(53, 71, 113, 0.7);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .content-container {
        padding: 15px;
        height: auto;
    }

    .form-section {
        min-width: 100%;
    }
}
