/* =========================================================
   COMPONENTES REUTILIZABLES PARA FORMULARIOS
   Prácticas / Vacantes
========================================================= */

.form-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea,
.field-check.is-invalid {
    border-color: #d71920 !important;
    box-shadow: 0 0 0 3px rgba(215, 25, 32, .08) !important;
}

.field.is-invalid label,
.field-check.is-invalid {
    color: #b31218;
}

.field-error {
    display: block;
    margin-top: 7px;
    color: #c3171d;
    font-size: 13px;
    line-height: 1.35;
}

.file-field {
    margin-bottom: 22px;
}

.dropzone {
    position: relative;
    display: flex;
    min-height: 150px;
    padding: 28px 24px;
    border: 1.5px dashed #cfcfd5;
    border-radius: 14px;
    background: #fff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    cursor: pointer;
    transition:
        border-color .18s ease,
        background-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

.dropzone:hover,
.dropzone.is-dragging {
    border-color: #e1262f;
    background: #fffafa;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .05);
}

.dropzone.is-dragging {
    transform: translateY(-2px);
}

.dropzone.is-invalid {
    border-color: #d71920;
    background: #fff8f8;
    box-shadow: 0 0 0 3px rgba(215, 25, 32, .08);
}

.dropzone.has-file {
    border-style: solid;
    border-color: #222;
    background: #fafafa;
}

.dropzone input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.dropzone__icon {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border-radius: 50%;
    background: #f4f4f6;
    color: #24242b;
}

.dropzone__text {
    display: grid;
    gap: 4px;
    color: #45454f;
    font-size: 14px;
}

.dropzone__text strong {
    color: #202027;
    font-size: 15px;
}

.dropzone__browse {
    appearance: none;
    padding: 0;
    border: 0;
    background: transparent;
    color: #e1262f;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.dropzone__file {
    max-width: 100%;
    margin-top: 2px;
    color: #74747d;
    font-size: 12px;
    word-break: break-word;
}

.dropzone.has-file .dropzone__file {
    color: #202027;
    font-weight: 700;
}

button[disabled] {
    opacity: .65;
    cursor: wait;
}

@media (max-width: 640px) {
    .dropzone {
        min-height: 135px;
        padding: 22px 16px;
    }
}
