.form-row-flex {
    display: flex;
    align-items: center;
}

.form-row-flex > label {
    width:60% !important;
}

.form-row-flex > span, .form-row-flex > input {
    width:40% !important;
}

.form-section,
.form-group {
    gap: 8px;
}

.form-group {
    display: flex;
}

.form-group div {
    flex: 1;
}

.form-row {
    position: relative;
}

.form-row .form-label {
    flex: 1 1 100%;
    font-weight: bold;
    margin-right: 10px;
    color: var(--main-text-color);
}

.form-row-flex .form-label {
    line-height: 1.3;
}

.input-field {
    width: 100%;
    height: 2rem;
    padding: .4rem .4rem;
    border: var(--input-field-border);
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s ease;
    color: var(--main-text-color);
}

.input-field-text {
    /* font-size: var(--text-font-size); */
    transition: border-color 0.3s ease;
    color: var(--main-text-color);
    font-size: 1em;
}

.input-field:focus {
    border-color: #4285F4;
    outline: none;
}

.input-field:active {
    border-color: #4285F4;
    outline: none;
}

.select-wrapper {
    position: relative;
}

.select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 30px;
    width: 100%;
    background-color: transparent;
}

.select-wrapper::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--main-text-color);
    font-size: 1em;
}

input[type="range"] {
    border: none !important;
}

.simulation-form {
    padding: 15px;
    background: transparent;
    box-shadow: 0 0px 11px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
}

/* For Chrome, Edge, Safari */
input[type="number"]::-webkit-inner-spin-button, 
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* For Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}

/* For overall consistency, you can also remove the border if needed */
input[type="number"] {
    border: 1px solid #ccc; /* Optional styling */
    border-radius: 4px;
    padding: 5px;
}

.input-field.invalid, .input-field.input-error {
  border-color: red;
}

.error {
    display: block;
    line-height: 0.8rem;
    color: red;
    font-size: 0.8em;
}

.form-field-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    user-select: none;
}

/* Small Devices (Full HD - 1920x1080) */
@media screen and (min-width: 1367px) and (max-width: 1920px) {
    .input-field {
        height: 2.2em !important;
    }
}

/* Medium Devices (QHD - 4K) */
@media screen and (min-width: 1921px) and (max-width: 2560px) {
    .input-field {
        height: 2.2em !important;
    }

}

/* Medium Devices (QHD - 4K) */
@media screen and (min-width: 2561px) {
    .input-field {
        height: 2.4em !important;
    }
}

/* Medium Devices (QHD - 4K) */
@media screen and (min-width: 2561px) {
    .input-field {
        height: 2.6em !important;
    }
}