/*
Theme Name: AIHub Child
Theme URI: https://liquid-themes.com/
Author: Liquid Themes
Author URI: https://themeforest.net/user/liquidthemes
Template: aihub
Description: Smart, Powerful and Unlimited Customizable WordPress Theme.
Version: 1.0
License: GNU General Public License
License URI: license.txt
Text Domain: aihub-child
Tags: responsive, retina, rtl-language-support, blog, portfolio, custom-colors, live-editor
*/
/* ===================================================================
   CUSTOM CONTACT FORM GLOW EFFECT
   Glowing rotating border animation for contact form
   =================================================================== */

/* Container styling with glassmorphism background */
.contact-form-glow {
    background: rgba(255, 255, 255, 0.55);
    background-image: url('/wp-content/uploads/2023/09/form-bg1.png');
    background-position: top right;
    background-repeat: no-repeat;
    background-size: contain;
    border-radius: 33px;
    box-shadow: 0px 4px 55px 0px rgba(82, 104, 184, 0.1);
    padding: 40px 30px 50px 30px;
}

/* Form input styling */
.contact-form-glow .wpcf7-form-control-wrap {
    position: relative;
    display: block;
    margin-bottom: 20px;
}

.contact-form-glow input[type="text"],
.contact-form-glow input[type="email"],
.contact-form-glow input[type="tel"] {
    width: 100%;
    background: #F2F2F4 !important;
    border: none !important;
    border-radius: 11px !important;
    padding: 15px 22px !important;
    font-size: 15px;
    line-height: 17px;
    color: #3F4553;
    position: relative;
    z-index: 1;
}

/* Glowing border effect */
.contact-form-glow .wpcf7-form-control-wrap {
    position: relative;
}

.contact-form-glow .wpcf7-form-control-wrap::before {
    content: "";
    position: absolute;
    inset: -2px;
    padding: 2px;
    border-radius: 13px;
    background: transparent;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 0;
}

.contact-form-glow .wpcf7-form-control-wrap::after {
    content: "";
    position: absolute;
    inset: -2px;
    background: conic-gradient(
        from 290deg,
        transparent 0%,
        var(--e-global-color-primary, #7458E8) 10%,
        transparent 20%
    );
    border-radius: 13px;
    animation: contact-glow-spin 3s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes contact-glow-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Submit button with gradient */
.contact-form-glow .wpcf7-submit {
    background: linear-gradient(90deg, #4D3BBF 0%, #AB28D9 100%) !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 11px !important;
    padding: 18px 32px !important;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 10px;
    margin-left: 20px;
}

.contact-form-glow .wpcf7-submit:hover {
    opacity: 0.9;
}

/* Mobile responsiveness */
@media (max-width: 767px) {
    .contact-form-glow {
        padding: 30px 20px;
    }
    
    .contact-form-glow .wpcf7-submit {
        margin-left: 0;
        width: 100%;
    }
}
