@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;500&display=swap');

:root {
    --legal-print-font-size: 0.55rem;
}

/* ------------------------------
   GLOBAL FORM ELEMENTS
------------------------------ */

form {
    width: 100%;
}

form, input {
    box-sizing: border-box;
}

/* Inputs, textareas, selects */
input:not([type="checkbox"]),
textarea,
select {
    width: 100%;
    padding: 12px;
    font-family: 'Poppins', sans-serif;
    margin-block: 0.5rem;
    border: 1px solid #0D0155;
    cursor: pointer;
}

/* Textarea specifics */
textarea {
    line-height: 1.5rem;
    height: 300px;
    resize: none;
}

/* Placeholder styling for textareas */
textarea::placeholder {
    font-size: 0.85rem;
}

/* Capitalise text inputs */
input[type="text"] {
    text-transform: capitalize;
}

input[type="email"]{
    text-transform: lowercase;
}

/* Focus states */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #0D0155;
}

/* Submit buttons */
form input[type="submit"],
form button:not(#remove-file) {
    width: 100%;
}

/* ------------------------------
   FILE UPLOAD BUTTON
------------------------------ */

#file-input {
    display: none;
}

.request-attachments {
    display: inline-block;
    padding: 10px 20px;
    background-color: #1929D6;
    color: white;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

.request-attachments:hover {
    background-color: #0056b3;
}

.file-upload-list {
    margin-block: 1rem;
    font-size: 14px;
    color: #555;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.file-upload-list .material-icons {
    font-size: 20px;
}

#remove-file {
    border: none;
    cursor: pointer;
}

/* ------------------------------
   CHECKBOXES
------------------------------ */

.checkbox-container input[type="checkbox"] {
    margin-right: 4px;
}

.checkbox-container label {
    display: inline;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
}

.checkbox-container,
.checkbox-container input[type="checkbox"],
.checkbox-container label {
    vertical-align: middle;
}

/* ------------------------------
   SELECT (DROPDOWN) STYLING
------------------------------ */

/* Remove native arrow */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    font-size: 0.85rem;
    color: #333;
    background: url("/static/libraries/assets/icons/down-arrow.1c17e5651a72.svg") no-repeat right 7px center;
    background-size: 30px;
}

/* Placeholder behaviour for dropdowns */
select:invalid {
    color: rgba(0, 0, 0, 0.45); /* matches placeholder grey */
}

/* Style the placeholder option itself */
select option[value=""] {
    color: rgba(0, 0, 0, 0.45);
}

/* Options */
select option {
    background-color: #fff;
    color: #333;
}

/* Hover */
select:hover {
    border-color: #007BFF;
}

/* ------------------------------
   RESPONSIVE
------------------------------ */

@media (width >= 500px) {
    form input[type="submit"],
    form button:not(#remove-file) {
        width: 40%;
    }
}
