/* Contact Form 7 Custom Styles */
/* Modern and attractive design with black and pink colors */

/* Wrapper styles */
.contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form-wrapper .form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-form-wrapper .form-row label {
    flex: 1;
    margin-bottom: 0;
}

.contact-form-wrapper .form-group {
    margin-bottom: 1.5rem;
}

.contact-form-wrapper .phone-group {
    max-width: 300px;
}

.wpcf7-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(214, 51, 132, 0.1);
    position: relative;
    overflow: hidden;
}

.wpcf7-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #000000, #d63384, #000000);
    border-radius: 16px 16px 0 0;
}

/* Form Layout */
.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.phone-group {
    max-width: 300px;
}

/* Form Labels */
.wpcf7-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: "Arimo", sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #212529;
    position: relative;
}

.wpcf7-form label:has(input[required])::after {
    content: ' *';
    color: #d63384;
    font-weight: bold;
}

/* Form Inputs */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"] {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: "Syne", sans-serif;
    font-size: 1rem;
    color: #212529;
    background: #ffffff;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus {
    outline: none;
    border-color: #d63384;
    box-shadow: 0 0 0 3px rgba(214, 51, 132, 0.1);
    transform: translateY(-1px);
}

.wpcf7-form input[type="text"]:hover,
.wpcf7-form input[type="email"]:hover,
.wpcf7-form input[type="tel"]:hover {
    border-color: #adb5bd;
}

/* Textarea - Más compacto */
.wpcf7-form textarea {
    width: 100%;
    min-height: 100px;
    max-height: 150px;
    padding: 0.75rem 1rem;
    font-family: "Syne", sans-serif;
    font-size: 1rem;
    color: #212529;
    background: #ffffff;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    resize: vertical;
    transition: all 0.3s ease;
    box-sizing: border-box;
    line-height: 1.5;
}

.wpcf7-form textarea:focus {
    outline: none;
    border-color: #d63384;
    box-shadow: 0 0 0 3px rgba(214, 51, 132, 0.1);
    transform: translateY(-1px);
}

.wpcf7-form textarea:hover {
    border-color: #adb5bd;
}

/* Submit Button */
.wpcf7-form input[type="submit"] {
    width: 100%;
    padding: 1rem 2rem;
    font-family: "Arimo", sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    background: #000000;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wpcf7-form input[type="submit"]:hover {
    background: #212529;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.wpcf7-form input[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Focus visible for accessibility */
.wpcf7-form input:focus-visible,
.wpcf7-form textarea:focus-visible {
    outline: 2px solid #d63384;
    outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wpcf7-form {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .contact-form-wrapper .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .contact-form-wrapper .form-row label {
        margin-bottom: 1.5rem;
    }
    
    .contact-form-wrapper .phone-group {
        max-width: 100%;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-row .form-group {
        margin-bottom: 1.5rem;
    }
    
    .phone-group {
        max-width: 100%;
    }
    
    .wpcf7-form input[type="submit"] {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .wpcf7-form {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .wpcf7-form input[type="text"],
    .wpcf7-form input[type="email"],
    .wpcf7-form input[type="tel"],
    .wpcf7-form textarea {
        padding: 0.625rem 0.875rem;
        font-size: 0.95rem;
    }
}

/* Form validation styles */
.wpcf7-form .wpcf7-not-valid-tip {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    font-family: "Syne", sans-serif;
}

.wpcf7-form .wpcf7-response-output {
    margin: 1rem 0 0 0;
    padding: 1rem;
    border-radius: 8px;
    font-family: "Syne", sans-serif;
    font-size: 0.95rem;
}

.wpcf7-form .wpcf7-response-output.wpcf7-mail-sent-ok {
    background-color: #d1e7dd;
    border: 1px solid #a3cfbb;
    color: #0a3622;
}

.wpcf7-form .wpcf7-response-output.wpcf7-validation-errors {
    background-color: #f8d7da;
    border: 1px solid #f1aeb5;
    color: #58151c;
}

.wpcf7-form .wpcf7-response-output.wpcf7-spam-blocked {
    background-color: #fff3cd;
    border: 1px solid #ffe69c;
    color: #664d03;
}

/* Loading state */
.wpcf7-form .wpcf7-spinner {
    margin: 0 0 0 1rem;
    position: relative;
    top: 0;
    left: 0;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .wpcf7-form {
        background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
        border-color: rgba(214, 51, 132, 0.2);
    }
    
    .wpcf7-form label {
        color: #e2e8f0;
    }
    
    .wpcf7-form input[type="text"],
    .wpcf7-form input[type="email"],
    .wpcf7-form input[type="tel"],
    .wpcf7-form textarea {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .wpcf7-form input[type="text"]:hover,
    .wpcf7-form input[type="email"]:hover,
    .wpcf7-form input[type="tel"]:hover,
    .wpcf7-form textarea:hover {
        border-color: #718096;
    }
}

/* Animation for form appearance */
.wpcf7-form {
    animation: formSlideIn 0.6s ease-out;
}

@keyframes formSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Field validation styles */
.wpcf7-form .wpcf7-not-valid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1) !important;
}

/* Form Groups */
.wpcf7-form .wpcf7-form-control-wrap {
    margin-bottom: 1.5rem;
    position: relative;
}

/* Required field indicator */
.wpcf7-form .wpcf7-form-control-wrap:has(input[required]) label::before {
    content: '*';
    color: #d63384;
    margin-right: 0.25rem;
}

/* Optional field styling */
.wpcf7-form .wpcf7-form-control-wrap:not(:has(input[required])) label {
    color: #6c757d;
}

.wpcf7-form .wpcf7-form-control-wrap:not(:has(input[required])) label::after {
    content: ' (Opcional)';
    font-size: 0.8rem;
    font-weight: 400;
    color: #adb5bd;
} 