/*
 Theme Name:   Dravix Child
 Theme URI:    https://controlhorario-online.es
 Description:  Tema hijo del tema Dravix creado por SORT
 Author:       SORT
 Author URI:   https://controlhorario-online.es
 Template:     dravix
 Version:      1.0.0
*/

/* Aquí tus modificaciones CSS */


/* === FAQs === */
summary h2 {
	color: #356FB3 !important;
	font-size: 1.5rem !important;
}

summary h3 {
	color: #356FB3 !important;
	font-size: 1.5rem !important;
}

/* ===========================================
   FORMULARIO DE CONTACTO - ESTILOS GENERALES
=========================================== */
.wpcf7 form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    padding: 2rem;
    background: #fafafa;
    border-radius: 1rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    font-family: "Inter", system-ui, sans-serif;
    gap: 1.25rem;
}

.wpcf7 form p {
    margin: 0;
}

.wpcf7 form label {
    margin: 0;
    padding: 0;
    line-height: 0;
}

/* ===========================================
   PLACEHOLDERS
=========================================== */
.wpcf7 ::placeholder {
    font-family: "Inter", system-ui, sans-serif !important;
    font-size: 1rem;
    color: #aaa;
    font-weight: 400;
}

/* ===========================================
   CAMPOS DE TEXTO, EMAIL, TELÉFONO, SELECT Y TEXTAREA
=========================================== */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    background-color: #fff;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wpcf7 textarea {
    font-family: "Inter", system-ui, sans-serif !important;
    font-size: 1rem;
    color: #000; /* opcional, igual que los inputs */
}

.wpcf7 textarea[name="your-message"] {
    height: 100px;      /* altura inicial */
    resize: vertical;   /* el usuario puede cambiar altura si quiere */
}

.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
    outline: none;
    border-color: #0073e6;
    box-shadow: 0 0 0 3px rgba(0, 115, 230, 0.15);
}

/* ===========================================
   DOS COLUMNAS POR FILA (Plan / Empresa)
=========================================== */
.form-row {
    display: flex;
    gap: 20px;
}

.form-row p {
    width: 50%;
    margin: 0;
}

.form-row p select,
.form-row p input {
    width: 100%;
}

/* ===========================================
   CONTENEDOR PARA ERRORES
=========================================== */
.wpcf7-form-control-wrap {
    position: relative;
}

.wpcf7-not-valid-tip {
    display: block !important;
    font-size: 1rem !important;
    line-height: 1.4 !important;
    color: #d9534f !important;
    min-height: 1.2em;
}

.wpcf7-form-control.wpcf7-not-valid {
    border-color: #d9534f !important;
    padding-right: 0.75rem !important;
}

/* ===========================================
   SELECT PERSONALIZADO
=========================================== */
.wpcf7 select {
    appearance: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23aaa' height='16' viewBox='0 0 24 24' width='16' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

/* ===========================================
   CHECKBOX (ACEPTACIÓN DE PRIVACIDAD)
=========================================== */
.wpcf7-acceptance {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: #333;
    margin-top: 0.5rem;
}

.wpcf7-acceptance input {
    margin-right: 0.5rem;
    transform: scale(1.1);
}

/* ===========================================
   BOTÓN DE ENVÍO
=========================================== */
.wpcf7 input[type="submit"],
input.wpcf7-form-control.wpcf7-submit.has-spinner {
    background-color: #0073e6;
    color: #fff;
    border: none;
    padding: 0.9rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.25s ease, transform 0.1s ease;
    margin-top: 0.5rem;
}

.wpcf7 input[type="submit"]:hover {
    background-color: #005bb5;
    transform: translateY(-1px);
}

input.wpcf7-form-control.wpcf7-submit.has-spinner {
    background-color: #5d91cc;
    color: #ffffff;
}

/* ===========================================
   MENSAJES DEL FORMULARIO
=========================================== */
.wpcf7-response-output {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
}

.wpcf7-response-output.wpcf7-mail-sent-ok {
    background: #e6f7e6;
    border: 1px solid #66bb6a;
    color: #2e7d32;
}

.wpcf7-response-output.wpcf7-validation-errors,
.wpcf7-response-output.wpcf7-mail-sent-ng {
    background: #fdecea;
    border: 1px solid #f44336;
    color: #c62828;
}



/* ===========================================
   AJUSTES RESPONSIVOS (MÓVILES Y POPUP)
=========================================== */
@media (max-width: 768px) {

    /* Popup */
    .pum-content {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: auto !important;
        max-width: 100% !important;
    }

    .pum-container {
        max-height: 90vh;
        overflow-y: auto;
        padding: 1rem;
    }

    .pum-close {
        top: 10px !important;
        right: 10px !important;
        z-index: 9999 !important;
        width: 32px;
        height: 32px;
        font-size: 1.5rem;
        line-height: 32px;
    }

    /* Formulario responsive */
    .wpcf7 form {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 1rem !important;
        box-sizing: border-box;
    }

    .wpcf7 form .form-row {
        flex-wrap: wrap !important;
    }

    .wpcf7 form .form-row > label {
        width: 100% !important;
        max-width: 100% !important;
    }

    .wpcf7 textarea {
        min-height: 80px;
        max-height: 150px;
    }

    .wpcf7-not-valid-tip {
        font-size: 0.85rem !important;
        margin-top: 4px !important;
    }
}


  /* Botón Contacto del Header */

header a.wp-block-button__link.wp-element-button[href="https://controlhorario-online.es/contacto-control-horario/"] {
    background-color: white !important;
    border: 3px solid #5d91cc !important;
    color: #34375f !important;
    padding: 5px 14px !important;
    font-size: 15px !important;
    font-weight: bold !important;
    border-radius: 12px !important;
    text-transform: uppercase !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
    transition: all 0.2s ease !important;
}

header a.wp-block-button__link.wp-element-button[href="https://controlhorario-online.es/contacto-control-horario/"]:hover {
    background-color: #e6f2ff !important;
    border-color: #1E40AF !important;
    color: #065F46 !important;
}

.wp-block-navigation__responsive-container.wp-block-navigation__responsive-container {
    background-color: #ffffff !important;
}


/* ===========================================
               TÍTULOS DEL FAQ
=========================================== */
.titulo-faq {
    font-size: 1.1rem !important;
}