/* =========================================================
   Sistema general de validacion de formularios
========================================================= */

.form-field {
    position: relative;
}

.form-field.has-error input:not([type="checkbox"]),
.form-field.has-error select,
.form-field.has-error textarea {
    border-color: var(--color-orange);
    background-color: #fff1e7;
}

.form-field.has-error input:not([type="checkbox"]):focus,
.form-field.has-error select:focus,
.form-field.has-error textarea:focus {
    border-color: var(--color-orange);
    box-shadow: 0 0 0 2px rgb(255 105 0 / 15%);
}

.form-error {
    display: block;
    margin: 3px 10px 0;
    color: var(--color-orange);
    font-family: var(--font-main);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
}

.form-field--privacy .form-error,
.site-modal-form__privacy .form-error,
.vehicle-request__privacy .form-error,
.truck-form__privacy .form-error {
    margin: 4px 0 0;
}

.vehicle-request__privacy.form-field {
    flex-wrap: wrap;
}

.vehicle-request__privacy .form-error {
    flex-basis: 100%;
    margin-left: 24px;
}

.truck-form__privacy .form-error {
    grid-column: 2;
}

.form-message {
    display: none;
    margin-top: 12px;
    margin-bottom: 12px;
    padding: 13px 16px;
    border-radius: 5px;
    font-family: var(--font-main);
    font-size: 13px;
    line-height: 1.35;
}

.form-message.is-success,
.form-message.is-error {
    display: block;
}

.form-message.is-success {
    border: 1px solid #159447;
    background-color: #e9f8ef;
    color: #126934;
}

.form-message.is-error {
    border: 1px solid #d63638;
    background-color: #fff1f1;
    color: #9d2020;
}

form.is-sending {
    cursor: wait;
}

form.is-sending button[type="submit"],
button.is-sending,
.is-sending[type="submit"] {
    cursor: wait;
    opacity: 0.7;
}

/* CUSTOM SELECT */

.select_field_custom_form select {
    height: 42px;
    line-height: normal;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 42px;
}

.select_field_custom_form{
    position: relative;
}
.select_field_custom_form:after{
    content: "\e900";
    font-family: 'icomoon' !important;
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 1;
    font-size: 14px;
    color: var(--color-black);
    pointer-events: none;
    rotate: 90deg;
}

/* TRUCK FORM */

.truck-form__field {
    margin-bottom: 13px;
}

.truck-form__field input,
.truck-form__field select {
    width: 100%;
    height: 48px;
    line-height: normal;
    display: block;
    padding: 0 15px;
    border: 1px solid var(--color-black);
    border-radius: 5px;
    outline: none;
    background-color: #fff;
    color: var(--color-black);
    font-family: var(--font-main);
    font-size: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.truck-form__field input:focus,
.truck-form__field select:focus {
    border-color: #ff6800;
    box-shadow: 0 0 0 2px rgb(255 106 0 / 15%);
}

/* Privacidad */
.truck-form__privacy {
    display: grid;
    grid-template-columns: 16px 1fr;
    gap: 7px;
    align-items: start;
    margin: 11px 0 16px;
    cursor: pointer;
}

.truck-form__privacy input {
    width: 15px;
    height: 15px;
    margin: 1px 0 0;
    accent-color: #ff6800;
}

.truck-form__privacy span {
    color: #111;
    font-size: 12px;
    line-height: 1.25;
}

.truck-form__privacy a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}