/* TWXLabs Form Styles */

/* Form container */
.twxlabs-form {
    margin: 2em 0;
    padding: 1.5em;
    background: #f9f9f9; /* light subtle background */
    border: 1px solid #ddd;
    border-radius: 6px;
}

/* Each form field */
.twxlabs-form-field {
    margin-bottom: 1.5em;
}

/* Labels */
.twxlabs-form-field label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5em;
}

/* Text inputs, textareas, select boxes */
.twxlabs-form-field input[type="text"],
.twxlabs-form-field input[type="file"],
.twxlabs-form-field textarea,
.twxlabs-form-field select {
    width: 100%;
    max-width: 100%;
    padding: 0.5em;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    box-sizing: border-box;
}

/* Textarea specific */
.twxlabs-form-field textarea {
    min-height: 80px;
}

/* Description text */
.twxlabs-form-field .description {
    font-size: 0.9em;
    color: #666;
    margin-top: 0.3em;
}

/* Section breaks */
.twxlabs-form p.positions {
    margin: 1.5em 0;
    font-weight: normal;
    line-height: 1.5em;
}

/* Submit button */
.twxlabs-form-submit {
    text-align: right;
}
/* Disabled submit button */
button[type="submit"]:disabled,
button[type="submit"][disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}


.twxlabs-form-submit button {
    background-color: #0073e6; /* theme-friendly button color */
    color: #fff;
    border: none;
    padding: 0.75em 1.5em;
    font-size: 1em;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease-in-out;
}

.twxlabs-form-submit button:hover {
    background-color: #005bb5;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .twxlabs-form {
        padding: 1em;
    }

    .twxlabs-form-submit {
        text-align: center;
    }

    .twxlabs-form-submit button {
        width: 100%;
        max-width: 300px;
    }
}


