/* Frontend Form Styling */
.wau-form-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: #fff;
}
.wau-form-wrap.wau-shortcode {
    max-width: 400px;
    margin: 20px auto;
}
.wau-header {
    background: #075E54;
    color: #fff;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}
.wau-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}
.wau-body {
    padding: 25px;
    background: #efeade;
}
.wau-body p {
    font-size: 14px;
    line-height: 1.5;
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}
.wau-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.wau-form input {
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}
.wau-form button {
    background: #25D366;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}
.wau-form button:hover {
    background: #128C7E;
}
.wau-response {
    margin-top: 10px;
    font-size: 14px;
    text-align: center;
}

/* International Phone Form override */
.iti { width: 100%; display: block; }
.iti__flag {background-image: url("https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.8/img/flags.png");}
@media (min-resolution: 2x) {
  .iti__flag {background-image: url("https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.8/img/flags@2x.png");}
}

/* Floating Widget */
#wau-floating-widget {
    position: fixed;
    bottom: 30px;
    z-index: 999999;
    pointer-events: none;
}
#wau-floating-widget.wa-pos-right {
    right: 30px;
}
#wau-floating-widget.wa-pos-left {
    left: 30px;
}
#wau-floating-widget .wau-trigger {
    background: #25D366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    pointer-events: auto;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
#wau-floating-widget .wau-trigger:hover {
    transform: scale(1.1);
}
#wau-floating-widget .wau-form-wrap {
    position: absolute;
    bottom: 80px;
    width: 320px;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    pointer-events: none;
}
#wau-floating-widget.wa-pos-right .wau-form-wrap {
    right: 0;
}
#wau-floating-widget.wa-pos-left .wau-form-wrap {
    left: 0;
}
#wau-floating-widget.active .wau-form-wrap {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.wau-close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    cursor: pointer;
    opacity: 0.8;
}
.wau-close:hover { opacity: 1; }

/* Mobile Support */
@media (max-width: 768px) {
    #wau-floating-widget {
        position: fixed !important;
        bottom: 25px !important;
        display: block !important;
        visibility: visible !important;
        z-index: 2147483647 !important;
        transform: none !important;
        margin: 0 !important;
    }
    #wau-floating-widget.wa-pos-right {
        right: 15px !important;
    }
    #wau-floating-widget.wa-pos-left {
        left: 15px !important;
    }
    #wau-floating-widget .wau-trigger {
        width: 55px !important;
        height: 55px !important;
    }
    #wau-floating-widget .wau-trigger svg {
        width: 28px !important;
        height: 28px !important;
    }
    #wau-floating-widget .wau-form-wrap {
        width: calc(100vw - 30px) !important;
        max-width: 320px !important;
        bottom: 65px !important;
    }
    .wau-header h3 {
        font-size: 16px !important;
    }
}
