/**
 * Estilos de Formularios
 * Contiene estilos específicos para formularios HubSpot y elementos de form
 */

/* === ESTILOS HUBSPOT FORMS === */
/* Párrafos dentro de formularios Hubspot */
.hs-form>p {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* Margin derecho 0 para wrapper de input */
.hs-form .input {
    margin-right: 0 !important;
}

/* Max width de fieldset dentro de form */
.hs-form>fieldset {
    max-width: 100% !important;
}

/* === INPUTS HUBSPOT === */
.hs-input {
    width: 100% !important;
}

/* Radio inputs */
.hs-input[type=radio] {
    width: auto !important;
    margin-right: 0.5rem;
    min-height: auto !important;
}

/* Labels de checkbox */
.hs-form-checkbox>label {
    font-weight: 400 !important;
}

/* Margin de mensajes de error */
.hs-error-msgs>label {
    margin-bottom: 0px !important;
}

/* === CHECKBOX PERSONALIZADO === */
.hs-input[type=checkbox] {
    width: 1rem !important;
    height: 1rem !important;
    margin-right: 0.5rem !important;
    min-height: auto !important;
}

.hs-input[type=checkbox]:focus {
    box-shadow: 0 0 3px 1px #bdfd2e;
}

.hs-input[type=checkbox]:checked {
    accent-color: #111;
    outline: 2px solid #111;
}

.hs-form-booleancheckbox-display>span {
    margin-left: 0 !important;
}

/* === MENSAJES DE FORMULARIO === */
.submitted-message a {
    color: var(--_primitives---colors--diio-blue);
    text-decoration: underline;
}

/* === SELECT PERSONALIZADO === */
.input select.hs-input {
    /* Ocultar flecha nativa */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: none !important;

    /* Espacio para flecha personalizada */
    padding-right: 30px;
}

.input:has(select.hs-input)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 10px;
    pointer-events: none;
    z-index: 1;

    /* Configuración del SVG de flecha */
    width: 24px;
    height: 24px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="%23333333"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Prevent button deformation during state changes */
.button {
    transition: background-color 0.3s ease;
    min-height: 48px;
}

.button p {
    margin: 0 !important;
    padding: 0;
    line-height: normal;
}

/* Responsive Contact Form Grid */
.contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Tablet and below */
@media screen and (max-width: 767px) {
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    /* Ensure form container doesn't overflow */
    #contacto .contact-grid>div {
        max-width: 100%;
        width: 100%;
    }
}

/* Small mobile */
@media screen and (max-width: 479px) {
    .contact-grid {
        gap: 1.5rem;
    }
}

/* Hide reCAPTCHA v3 badge - it's invisible anyway */
.grecaptcha-badge {
    visibility: hidden !important;
    opacity: 0 !important;
    display: none !important;
}