/*
 * Estilos del formulario de validación Shelly.
 * Layout en 2 columnas: campos altos con borde fino, botón "Seleccionar
 * archivo" azul a la derecha del input file y botón ENVIAR tipo píldora.
 */
.shellyval-section {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: #fff;
}

.shellyval-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 2.5rem;
    row-gap: 1.5rem;
}

@media (max-width: 720px) {
    .shellyval-grid {
        grid-template-columns: 1fr;
        column-gap: 0;
    }
}

.shellyval-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.shellyval-form label {
    margin-bottom: .5rem;
    font-weight: 400;
    font-size: 1rem;
    color: #222;
}

.shellyval-form input[type="text"],
.shellyval-form input[type="email"] {
    width: 100%;
    height: 56px;
    padding: 0 .9rem;
    border: 1px solid #1f1f1f;
    border-radius: 2px;
    background: #fff;
    font-size: 1rem;
    box-sizing: border-box;
    color: #222;
}

.shellyval-form input[type="text"]:focus,
.shellyval-form input[type="email"]:focus,
.shellyval-form input[type="file"]:focus {
    outline: none;
    border-color: #6c93c8;
    box-shadow: 0 0 0 3px rgba(108, 147, 200, .25);
}

/* File input estilo píldora con botón azul a la derecha.
 * El truco: direction:rtl en el input hace que el botón nativo aparezca a la
 * derecha; direction:ltr en el botón restaura el orden del texto. */
.shellyval-form input[type="file"] {
    width: 100%;
    height: 56px;
    padding: 0 0 0 1rem;
    border: 1px solid #1f1f1f;
    border-radius: 999px;
    background: #fff;
    font-size: 1rem;
    line-height: 56px;
    box-sizing: border-box;
    cursor: pointer;
    overflow: hidden;
    direction: rtl;
    text-align: left;
    color: #222;
}
.shellyval-form input[type="file"]::file-selector-button {
    height: 56px;
    margin: 0;
    padding: 0 1.75rem;
    border: none;
    border-radius: 999px;
    background: #6c93c8;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    direction: ltr;
    transition: background .15s ease;
}
.shellyval-form input[type="file"]::-webkit-file-upload-button {
    height: 56px;
    margin: 0;
    padding: 0 1.75rem;
    border: none;
    border-radius: 999px;
    background: #6c93c8;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    direction: ltr;
}
.shellyval-form input[type="file"]::file-selector-button:hover {
    background: #547cb4;
}

.shellyval-help {
    margin-top: .4rem;
    color: #666;
    font-size: .8rem;
    direction: ltr;
}

.shellyval-field--check {
    align-self: center;
    margin: 0;
}
.shellyval-check {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    margin: 0;
    font-weight: 400;
    line-height: 1.4;
    cursor: pointer;
    font-size: .9rem;
    color: #444;
}
.shellyval-check input[type="checkbox"] {
    margin-top: .15rem;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.shellyval-check-text a {
    text-decoration: underline;
    color: inherit;
}

.shellyval-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.shellyval-submit {
    background: #6c93c8;
    color: #fff;
    border: none;
    padding: 1rem 3rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .15s ease;
}
.shellyval-submit:hover,
.shellyval-submit:focus {
    background: #547cb4;
    outline: none;
}

.shellyval-alert {
    padding: .8rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: .95rem;
}
.shellyval-alert--success {
    background: #e8f6ee;
    color: #1b5e3a;
    border: 1px solid #b7e2c6;
}
.shellyval-alert--error {
    background: #fdecec;
    color: #8b1f1f;
    border: 1px solid #f1b8b8;
}
.shellyval-alert--info {
    background: #eaf2fb;
    color: #1d3f70;
    border: 1px solid #c1d5ef;
}
