/*
Theme Name: H4x0r Child
Template: h4x0r-main
Description: Tema hijo de H4x0r para davidmoreno.me
Author: David Moreno
Version: 1.0
*/

/* Contact Form 7 - Estilo Terminal completo */
.wpcf7 {
    font-family: 'Courier New', 'Courier', monospace !important;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="url"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select {
    background-color: #000 !important;
    color: #0f0 !important;
    border: 1px solid #0f0 !important;
    color: var(--wp--preset--color--contrast);
    font-family: var(--wp--preset--font-family--system-monospace);
    font-size: clamp(1rem, 0.867rem + 0.5674vw, 1.25rem);
    padding: 10px 12px !important;
    line-height: 1.5 !important;
    box-sizing: border-box !important;
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
    color: #0f0 !important;
    opacity: 0.6;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 textarea:focus {
    outline: none !important;
    border-color: #0ff !important;
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.5) !important;
}

/* Botón en ámbar con sombra MS-DOS */
.wpcf7 input[type="submit"] {
    background-color: #ffaa00 !important;
    color: #000 !important;
    border: none !important;
    padding: 12px 24px !important;
    cursor: pointer !important;
    font-family: var(--wp--preset--font-family--system-monospace);
    font-size: clamp(1rem, 0.867rem + 0.5674vw, 1.25rem);
    font-weight: bold !important;
    text-transform: uppercase !important;
    transition: all 0.2s ease !important;
    /* Sombra MS-DOS - efecto "presionado" */
    box-shadow: 
        4px 4px 0 #000,
        4px 4px 0 1px #ffaa00 !important;
}

.wpcf7 input[type="submit"]:hover {
    background-color: #ff9900 !important;
    box-shadow: 
        6px 6px 0 #000,
        6px 6px 0 1px #ff9900 !important;
    transform: translate(-2px, -2px) !important;
}

.wpcf7 input[type="submit"]:active {
    /* Al hacer click, se "hunde" el botón */
    box-shadow: 
        2px 2px 0 #000,
        2px 2px 0 1px #ffaa00 !important;
    transform: translate(2px, 2px) !important;
}


/* Mensajes de error/validación */
.wpcf7-not-valid-tip {
    color: #ffaa00 !important;
    color: var(--wp--preset--color--contrast);
    font-family: var(--wp--preset--font-family--system-monospace);
    font-size: clamp(1rem, 0.867rem + 0.5674vw, 1.25rem);
}

.wpcf7-response-output {
    border: 1px solid #ffaa00 !important;
    color: #ffaa00 !important;
    background-color: #000 !important;
    color: var(--wp--preset--color--contrast);
    font-family: var(--wp--preset--font-family--system-monospace);
    font-size: clamp(1rem, 0.867rem + 0.5674vw, 1.25rem);
    padding: 15px !important;
    margin-top: 20px !important;
}

.wpcf7-validation-errors {
    color: #ffaa00 !important; /* Amarillo ámbar */
    color: #ffaa00 !important;
}

/* Labels del formulario */
.wpcf7 label {
    color: #0f0 !important;
    color: var(--wp--preset--color--contrast);
    font-family: var(--wp--preset--font-family--system-monospace);
    font-size: clamp(1rem, 0.867rem + 0.5674vw, 1.25rem);
}

/* Ajustar padding y espaciado */
.wpcf7 p {
    margin-bottom: 15px !important;
}

/* Quitar outline default del navegador */
.wpcf7 input,
.wpcf7 textarea {
    outline: none !important;
}
/* Formulario Contact Form 7 - Layout en dos columnas */
.wpcf7 .form-row-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.wpcf7 .form-row-half p {
    margin: 0 !important;
}

/* Responsive - una columna en móvil */
@media (max-width: 768px) {
    .wpcf7 .form-row-half {
        grid-template-columns: 1fr;
    }
}

/* Asegurar que el textarea ocupe todo el ancho */
.wpcf7 textarea {
    width: 100% !important;
}
/* Asegurar que todos los inputs ocupen el ancho completo */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="url"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Grid de dos columnas con gap */
.wpcf7 .form-row-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    width: 100%;
}

.wpcf7 .form-row-half p {
    margin: 0 !important;
    width: 100%;
}
/* Ocultar avatar/imagen de autor en página de contacto */
.page-template-default .wp-block-post-featured-image,
.page-id-1779 .wp-block-post-featured-image,
.wp-block-avatar {
    display: none !important;
}