.container {
    min-width: 80%;
    overflow-x: hidden;
}

/* General Form Styling */
form {
    display: flex;
    background: var(--darker-gray);
    padding: 2.5%;
    border-radius: 10px;
    flex-direction: column;
}

/* Labels & Inputs */
label {
    display: block;
    width: 100%;
    margin-top: 10px;
    font-weight: bold;
}

textarea {
    min-height: 37px;
    max-height: 500px;
    resize: vertical;
}

input, textarea, select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: none;
    border-radius: 5px;
    background: var(--color-text-field);
    color: var(--color-text);
    outline: none;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--color-accent);
    border-width: 1px;
    border-style: solid;
}

select option:hover {
    backdrop-filter: brightness(80%);
}

select:-internal-list-box:focus option:checked{
    background-color: var(--color-accent) !important;
}

/* Checkbox Styling */
input[type='checkbox'] {
    scale: 1.5;
}

form.faction-info label:has(+ input[required])::after,
form.faction-info label:has(+ textarea[required])::after,
form.faction-info label:has(+ select[required])::after {
    content: " *";
    color: #ff2727;
}
/* Submit Button */
button {
    margin-top: 5px;
    display: block; /* Make the entire block clickable */
    background-color: var(--color-background);
    color: var(--color-primary);
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    padding: 15px 20px;
    border: 1px solid var(--primary-300); /* Subtle border */
    border-radius: 10px; /* Rounded corners */
    text-align: center; /* Center-align text */
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    cursor: pointer;
}

button:hover {
    background-color: var(--gray);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15); /* Stronger shadow */
}

.input-with-checkbox {
    display: flex;
    align-items: center;
}

.input-with-checkbox div {
    margin: auto;
    padding-top: 27px; /* Align centered with the input item, ignoring the label */
}

/* Responsive Design */
@media (max-width: 450px) {
    form {
        width: 90%;
    }
}
