/* Estilos Generales del Formulario */
.conexarte-form {
    max-width: 700px;
    margin: 20px auto;
    padding: 25px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    font-family: sans-serif;
}

.conexarte-form h2 {
    border-bottom: 2px solid #ececec;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.4em;
}

.conexarte-form hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 30px 0;
}

/* Grupos de Campos */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 0.95em;
}

.required-mark {
    color: #d9534f;
    margin-left: 3px;
}

/* Estilos para Inputs, Selects y Textareas */
.conexarte-form input[type="text"],
.conexarte-form input[type="email"],
.conexarte-form input[type="tel"],
.conexarte-form select,
.conexarte-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Importante para que el padding no afecte el ancho */
}

.conexarte-form textarea {
    resize: vertical;
}

/* Estilos para Checkbox y Radio buttons */
.form-group input[type="checkbox"],
.form-group input[type="radio"] {
    margin-right: 8px;
}

.form-group label {
    font-weight: normal;
}

/* Estilo de botones para el Rol Principal */
.form-group-role {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    position: relative; /* Necesario para el posicionamiento del pseudo-elemento */
    padding: 5px;
    border: 1px solid transparent; /* Borde transparente para mantener el layout */
    border-radius: 8px;
    transition: border-color 0.3s ease-in-out;
}

.form-group-role label {
    flex-grow: 1;
}

.form-group-role input[type="radio"] {
    display: none; /* Ocultar el radio button real */
}

.form-group-role label {
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease-in-out;
}

.form-group-role input[type="radio"]:checked + label {
    background-color: #0073aa; /* Color primario de WordPress */
    color: #fff;
    border-color: #006799;
}

/* Acompañamiento visual para selección de Rol */
.form-group-role.is-selected {
    border-color: #4CAF50; /* Borde verde de éxito */
}

.form-group-role.is-selected::after {
    content: '\2713'; /* Checkmark (✓) */
    position: absolute;
    top: -10px;
    right: -5px;
    background-color: #4CAF50;
    color: white;
    font-weight: bold;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    text-align: center;
    line-height: 24px;
    font-size: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Botón de Envío */
.conexarte-form .button-primary {
    width: 100%;
    padding: 12px;
    font-size: 1.1em;
	color: #ffff;
    background-color: #242424;
    border-color: #242424;
    cursor: pointer;
}

.conexarte-form .button-primary:hover {
	color: #ffff;
    background-color: #242424;
}

/* Mensajes y estilos de error de validación */
.validation-error {
    color: #d9534f; /* Rojo para errores */
    font-size: 0.9em;
    margin-top: 5px;
    display: block; /* Asegura que ocupe su propia línea */
}

.is-invalid {
    border-color: #d9534f !important; /* Borde rojo para campos inválidos */
}

.is-invalid + .validation-error {
    color: #d9534f;
}
