/* Whats Form Button Plugin Styles - by selectce.com.br */
.whatsapp-plugin * {
    box-sizing: border-box;
}

/* Floating Button */
.whatsapp-floating-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    width: 64px;
    height: 64px;
    background-color: #25d366;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-floating-btn:hover {
    background-color: #352169;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transform: scale(1.1);
}

.whatsapp-floating-btn svg {
    width: 32px;
    height: 32px;
    fill: white;
}

/* Popup Overlay */
.whatsapp-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.whatsapp-overlay.active {
    display: flex;
}

/* Popup Content */
.whatsapp-popup {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 400px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: popup-appear 0.3s ease-out;
}

@keyframes popup-appear {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Header */
.whatsapp-header {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    padding: 24px;
    border-radius: 16px 16px 0 0;
    position: relative;
}

.whatsapp-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.whatsapp-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.whatsapp-header-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.whatsapp-header-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-header h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 4px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.whatsapp-header p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Form */
.whatsapp-form {
    padding: 24px;
}

.whatsapp-form-group {
    margin-bottom: 20px;
}

.whatsapp-label {
    display: block;
    color: #FFFFFF;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.whatsapp-input-container {
    position: relative;
}

.whatsapp-input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    width: 20px;
    height: 20px;
    z-index: 1;
}

.whatsapp-input {
    width: 100%;
    padding: 12px 12px 12px 44px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.whatsapp-input:focus {
    outline: none;
    border-color: #25d366;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.whatsapp-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    border: none;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 48px;
}

.whatsapp-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.whatsapp-loading {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.whatsapp-disclaimer {
    font-size: 12px;
    color: #6b7280;
    text-align: center;
    margin-top: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.whatsapp-success-message {
    background-color: #d1fae5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    text-align: center;
    font-size: 14px;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .whatsapp-floating-btn {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }
    
    .whatsapp-floating-btn svg {
        width: 28px;
        height: 28px;
    }
    
    .whatsapp-popup {
        margin: 16px;
        max-width: calc(100% - 32px);
    }
    
    .whatsapp-header {
        padding: 20px;
    }
    
    .whatsapp-form {
        padding: 20px;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .whatsapp-floating-btn {
        border: 2px solid #000;
    }
    
    .whatsapp-input {
        border-width: 2px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .whatsapp-floating-btn,
    .whatsapp-submit-btn,
    .whatsapp-popup {
        transition: none;
        animation: none;
    }
}