/* =========================================================
   INFO AL FIN - FORMULARIO DE CORRESPONSALES
   User Submitted Posts
   ========================================================= */

#user-submitted-posts {
    max-width: 850px;
    margin: 0 auto;
    font-family: inherit;
}

/* -------------------------
   CAMPOS
   ------------------------- */

#user-submitted-posts fieldset {
    border: 0;
    padding: 0;
    margin: 0 0 24px;
}

#user-submitted-posts label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

/* -------------------------
   INPUTS
   ------------------------- */

#user-submitted-posts input[type="text"],
#user-submitted-posts input[type="email"],
#user-submitted-posts input[type="url"],
#user-submitted-posts select,
#user-submitted-posts textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d7dbe0;
    border-radius: 7px;
    background: #ffffff;
    padding: 13px 15px;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    color: #111827;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

/* -------------------------
   FOCUS
   ------------------------- */

#user-submitted-posts input:focus,
#user-submitted-posts select:focus,
#user-submitted-posts textarea:focus {
    outline: none;
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.10);
}

/* -------------------------
   PLACEHOLDERS
   ------------------------- */

#user-submitted-posts input::placeholder,
#user-submitted-posts textarea::placeholder {
    color: #8a9199;
    opacity: 1;
}

/* -------------------------
   TITULO
   ------------------------- */

#user-submitted-posts .usp-title input {
    font-size: 17px;
    font-weight: 500;
}

/* -------------------------
   CONTENIDO
   ------------------------- */

#user-submitted-posts .usp-content textarea {
    min-height: 220px;
    resize: vertical;
}

/* -------------------------
   CATEGORIA
   ------------------------- */

#user-submitted-posts .usp-category select {
    min-height: 48px;
    cursor: pointer;
}

/* -------------------------
   FOTOGRAFIAS
   ------------------------- */

#user-submitted-posts .usp-images {
    padding: 18px;
    border: 1px dashed #cbd1d8;
    border-radius: 8px;
    background: #f8f9fa;
}

#user-submitted-posts .usp-images input[type="file"] {
    width: 100%;
    font-family: inherit;
    font-size: 14px;
}

/* -------------------------
   MENSAJE DE SUBIDA
   ------------------------- */

#user-submitted-posts #usp-upload-message {
    margin-bottom: 12px;
    font-size: 13px;
    color: #69717a;
}

/* -------------------------
   AGREGAR OTRA FOTO
   ------------------------- */

#user-submitted-posts #usp_add-another {
    display: inline-block;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

/* -------------------------
   CAPTCHA
   ------------------------- */

#user-submitted-posts .usp-captcha input {
    max-width: 190px;
}

/* -------------------------
   MENSAJE DE ERROR
   ------------------------- */

#user-submitted-posts #usp-error-message {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 7px;
    font-size: 14px;
}

/* -------------------------
   MENSAJE DE ÉXITO
   ------------------------- */

#user-submitted-posts #usp-success-message {
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 8px;
    background: #f3f8f4;
    border: 1px solid #cfe3d3;
    font-size: 15px;
    line-height: 1.6;
}

/* -------------------------
   BOTON ENVIAR
   ------------------------- */

#user-submitted-posts #user-submitted-post {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 180px;
    padding: 13px 26px;
    border: 0;
    border-radius: 7px;
    background: #111827;
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease,
        box-shadow 0.2s ease;
}

#user-submitted-posts #user-submitted-post:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.15);
}

#user-submitted-posts #user-submitted-post:active {
    transform: translateY(0);
}

/* -------------------------
   BOTON ENVIAR OTRA NOTICIA
   ------------------------- */

#user-submitted-posts .usp-new-submission-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    padding: 12px 22px;
    border-radius: 7px;
    background: #111827;
    color: #ffffff !important;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease,
        box-shadow 0.2s ease;
}

#user-submitted-posts .usp-new-submission-button:hover {
    color: #ffffff !important;
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.15);
}

/* -------------------------
   MOBILE
   ------------------------- */

@media (max-width: 600px) {

    #user-submitted-posts {
        max-width: 100%;
    }

    #user-submitted-posts fieldset {
        margin-bottom: 20px;
    }

    #user-submitted-posts input[type="text"],
    #user-submitted-posts input[type="email"],
    #user-submitted-posts input[type="url"],
    #user-submitted-posts select,
    #user-submitted-posts textarea {
        font-size: 16px;
        padding: 12px 13px;
    }

    #user-submitted-posts #user-submitted-post {
        width: 100%;
    }

    #user-submitted-posts .usp-new-submission-button {
        width: 100%;
    }
}