/* ======== ESTILOS RGPD FORMULARIO DE CONTACTO ======== */

/* Contenedor del aviso RGPD */
.rgpd-notice {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    font-size: 0.85rem;
    line-height: 1.6;
}

.rgpd-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.rgpd-text {
    color: #555;
    text-align: justify;
}

.rgpd-text strong {
    color: #0C1A3A;
}

.rgpd-text a {
    color: #C7A14A;
    text-decoration: underline;
}

.rgpd-text a:hover {
    color: #0C1A3A;
}

.rgpd-text u {
    text-decoration: underline;
    color: #C7A14A;
}

/* Estilos para los checkboxes RGPD */
.rgpd-checkbox {
    margin: 15px 0;
    padding: 10px 0;
}

.rgpd-checkbox.required-checkbox {
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
}

/* Contenedor del checkbox personalizado */
.checkbox-container {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    position: relative;
    padding-left: 35px;
    line-height: 1.5;
}

.checkbox-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Checkbox personalizado */
.checkmark {
    position: absolute;
    left: 0;
    top: 2px;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #ccc;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.checkbox-container:hover .checkmark {
    border-color: #C7A14A;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #C7A14A;
    border-color: #C7A14A;
}

/* Indicador de check */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Texto del checkbox */
.checkbox-text {
    font-size: 0.95rem;
    color: #333;
}

.checkbox-text strong {
    font-weight: 600;
}

/* Notas bajo los checkboxes */
.checkbox-note {
    margin: 5px 0 0 35px;
    font-size: 0.8rem;
    font-style: italic;
}

.checkbox-note.required-note {
    color: #c00;
}

.checkbox-note.optional-note {
    color: #666;
}

/* Estado de error para checkbox requerido */
.checkbox-container input:invalid ~ .checkmark {
    border-color: #c00;
}

/* Responsive */
@media (max-width: 768px) {
    .rgpd-notice {
        padding: 15px;
        font-size: 0.8rem;
    }
    
    .rgpd-title {
        font-size: 0.85rem;
    }
    
    .checkbox-text {
        font-size: 0.9rem;
    }
    
    .checkbox-note {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .rgpd-notice {
        padding: 12px;
        margin: 15px 0;
    }
    
    .rgpd-text {
        text-align: left;
    }
    
    .checkbox-container {
        padding-left: 30px;
    }
    
    .checkmark {
        height: 18px;
        width: 18px;
    }
    
    .checkbox-container .checkmark:after {
        left: 5px;
        top: 1px;
        width: 4px;
        height: 9px;
    }
    
    .checkbox-note {
        margin-left: 30px;
    }
}
