/* =====================================
   UNIVERSAL NEON CONTACT FORM
   Works on ALL WordPress Themes
   Auto Light + Dark Mode Detection
====================================== */

.cf-wrapper * {
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ================= WRAPPER ================= */

.cf-wrapper {
    max-width: 550px;
    margin: 50px auto;
    padding: 40px 30px;
    border-radius: 28px;
    position: relative;
}

/* ================= FORM ================= */

#cfForm {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* ================= FIELD ================= */

.cf-field {
    position: relative;
}

/* ================= INPUT + TEXTAREA ================= */

.cf-field input,
.cf-field textarea {
    width: 100%;
    padding: 18px;
    border-radius: 16px;
    font-size: 15px;
    outline: none;
    transition: all 0.35s ease;
}

.cf-field textarea {
    min-height: 70px;
    resize: vertical;
}

/* ================= FLOAT LABEL ================= */

.cf-field label {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    pointer-events: none;
    transition: 0.3s ease;
}

.cf-field input:focus + label,
.cf-field input:valid + label,
.cf-field textarea:focus + label,
.cf-field textarea:valid + label {
    top: -10px;
    transform: none;
    font-size: 12px;
    padding: 0 8px;
    border-radius: 6px;
}

/* ================= BUTTON ================= */

#cfForm button {
    margin-top: 15px;
    padding: 18px;
    border-radius: 35px;
    border: none;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.35s ease;
}

#cfForm button:hover,
#cfForm button:focus {
    transform: translateY(-2px);
}

#cfForm button:active {
    transform: scale(0.97);
}

/* ================= THANK YOU OVERLAY ================= */

.cf-thankyou {
    position: absolute;
    inset: 0;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s ease;
    z-index: 99;
}

.cf-thankyou.active {
    opacity: 1;
    visibility: visible;
}

.cf-box {
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 0 35px rgba(0,255,213,0.9);
}

.cf-box h3 {
    margin-bottom: 10px;
}

/* =========================================================
   UNIVERSAL DARK MODE (Neon Cyberpunk)
========================================================= */

html.is-dark-theme .cf-wrapper,
html.dark .cf-wrapper,
html.theme-dark .cf-wrapper,
html[data-theme="dark"] .cf-wrapper,

    .cf-wrapper {
        background: linear-gradient(145deg, #050b18, #020713);
        box-shadow: 0 0 35px rgba(0,255,213,0.35), inset 0 0 30px rgba(0,0,0,0.8);
    }

    .cf-field label {
        color: #00ffe1;
    }

    .cf-field input,
    .cf-field textarea {
        background: #ffffff;
        border: 1px solid rgba(0,255,213,0.4);
        color: #000;
    }

    .cf-field input:focus,
    .cf-field textarea:focus,
    .cf-field input:hover,
    .cf-field textarea:hover {
        border-color: #00ffe1;
        box-shadow: 0 0 15px rgba(0,255,213,0.9), 0 0 30px rgba(0,255,213,0.6);
    }

    #cfForm button {
        background: linear-gradient(135deg, #00ffd5, #00b4ff);
        color: #ffffff;
        box-shadow: 0 0 25px rgba(0,255,213,0.7);
    }

    .cf-thankyou {
        background: rgba(0,0,0,0.9);
    }

    .cf-box {
        background: #050b18;
        color: #ffffff;
    }

    .cf-box h3 {
        color: #00ffe1;
    }


/* =========================================================
   UNIVERSAL LIGHT MODE (Perfect Neon Version)
========================================================= */

html.is-light-theme .cf-wrapper,
html.light .cf-wrapper,
html.theme-light .cf-wrapper,
html[data-theme="light"] .cf-wrapper,
 
    .cf-wrapper {
        background: linear-gradient(145deg, #e8ffff, #d9faff);
        box-shadow: 0 0 35px rgba(0,255,213,0.35), inset 0 0 25px rgba(255,255,255,0.9);
    }

    .cf-field label {
        color: #00ffe1;
    }

    .cf-field input,
    .cf-field textarea {
        background: #ffffff;
        border: 1px solid rgba(0,255,213,0.4);
        color: #003b3b;
    }

    .cf-field input:focus,
    .cf-field textarea:focus,
    .cf-field input:hover,
    .cf-field textarea:hover {
        border-color: #00ffe1;
        box-shadow: 0 0 15px rgba(0,255,213,0.9), 0 0 30px rgba(0,255,213,0.6);
    }

    .cf-field input:focus + label,
    .cf-field input:valid + label,
    .cf-field textarea:focus + label,
    .cf-field textarea:valid + label {
        background: #e8ffff;
        color: #00ffe1;
    }

    #cfForm button {
        background: linear-gradient(135deg, #00ffd5, #00b4ff);
        color: #003b3b;
        box-shadow: 0 0 25px rgba(0,255,213,0.7);
    }

    .cf-thankyou {
        background: rgba(255,255,255,0.85);
    }

    .cf-box {
        background: #e8ffff;
        color: #003b3b;
    }

    .cf-box h3 {
        color: #00ffe1;
    }


/* ================= MOBILE OPTIMIZATION ================= */

@media (max-width: 768px) {
    .cf-wrapper {
        margin: 25px 15px;
        padding: 30px 20px;
    }

    .cf-field input,
    .cf-field textarea {
        padding: 16px;
        font-size: 14px;
    }

    #cfForm button {
        font-size: 16px;
        padding: 16px;
    }
}