/*
 * DFW Float Widget CSS
 */

@keyframes dfw-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70%  { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@keyframes dfw-fade-in-up {
    from { opacity: 0; transform: translateY(20px) scale(0.9); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

#dfw-float-widget-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
                 Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    overflow: visible;
}

.dfw-float-btn {
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    animation: dfw-pulse 2s infinite;
}
.dfw-float-btn:hover {
    transform: scale(1.1);
    background: #22c35e;
}
.dfw-float-btn svg {
    width: 32px;
    height: 32px;
    margin-left: 1px;
}

.dfw-float-cta-text {
    position: absolute;
    right: 75px;
    background: #fff;
    color: #333;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
}
.dfw-float-cta-text::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent #fff;
}
.dfw-float-btn:hover .dfw-float-cta-text {
    opacity: 1;
    visibility: visible;
    right: 80px;
}

.dfw-float-modal-overlay {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 340px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: none;
    transform-origin: bottom right;
    animation: dfw-fade-in-up 0.3s forwards;
    box-sizing: border-box;
}
.dfw-float-modal-overlay.active {
    display: block;
}

.dfw-float-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    z-index: 10;
    color: rgba(255, 255, 255, 0.8);
    font-size: 24px;
    line-height: 24px;
    text-align: center;
    transition: color 0.2s;
}
.dfw-float-close:hover {
    color: #fff;
}

.dfw-float-header {
    background: #008069;
    padding: 24px 20px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 15px;
}
.dfw-float-title h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}
.dfw-float-title p {
    margin: 4px 0 0;
    font-size: 13px;
    opacity: 0.9;
    line-height: 1.4;
}

.dfw-float-body {
    padding: 24px 24px 10px;
    background: #ffffff;
}
.dfw-input-group {
    margin-bottom: 16px;
}
.dfw-input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.dfw-input-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    outline: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
    background: #f9f9f9;
}
.dfw-input-group input:focus {
    border-color: #25D366;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.dfw-float-footer {
    padding: 10px 24px 24px;
    background: #ffffff;
    text-align: center;
}

#dfw-float-form .dfw-float-submit {
    width: 100%;
    display: block;
    background: #25D366 !important;
    color: #fff !important;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    padding: 16px;
    border: none !important;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    margin: 0 auto;
}
#dfw-float-form .dfw-float-submit:hover {
    background: #128c7e !important;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    transform: translateY(-2px);
}
#dfw-float-form .dfw-float-submit:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(37, 211, 102, 0.3);
}