.whatsapp-float-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: whatsfadeIn 0.5s ease forwards;
    opacity: 0;
    transform: scale(0.8);
}

.whatsapp-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
}

.whatsapp-float-btn:active {
    transform: scale(0.95);
}

.whatsapp-float-btn svg {
    width: 32px;
    height: 32px;
    fill: #fff;
}

@keyframes whatsfadeIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.whatsapp-float-panel {
    position: fixed;
    bottom: 96px;
    right: 24px;
    z-index: 9998;
    width: 360px;
    max-width: calc(100vw - 48px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    overflow: hidden;
    display: none;
    animation: whatsslideUp 0.35s ease forwards;
    transform-origin: bottom right;
}

.whatsapp-float-panel.open {
    display: block;
}

@keyframes whatsslideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.whatsapp-panel-header {
    background: #075E54;
    color: #fff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.whatsapp-panel-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.whatsapp-panel-header h3 svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.whatsapp-panel-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.whatsapp-panel-close:hover {
    opacity: 1;
}

.whatsapp-panel-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

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

.whatsapp-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.whatsapp-form-group label .required {
    color: #e74c3c;
}

.whatsapp-form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #fff;
    transition: border-color 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

.whatsapp-form-control:focus {
    outline: none;
    border-color: #25D366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.15);
}

.whatsapp-form-control.has-error {
    border-color: #e74c3c;
}

.whatsapp-form-control.has-error:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15);
}

.whatsapp-field-error {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 3px;
    display: none;
}

.whatsapp-field-error.visible {
    display: block;
}

.whatsapp-form-general-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 14px;
    display: none;
}

.whatsapp-form-general-error.visible {
    display: block;
}

.whatsapp-btn-submit {
    width: 100%;
    padding: 12px 20px;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s, opacity 0.2s;
    font-family: inherit;
}

.whatsapp-btn-submit:hover {
    background: #1ebe5c;
}

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

.whatsapp-btn-submit svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

.whatsapp-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: whatsspin 0.6s linear infinite;
}

.whatsapp-btn-submit.loading .whatsapp-spinner {
    display: inline-block;
}

.whatsapp-btn-submit.loading .whatsapp-btn-text {
    display: none;
}

.whatsapp-btn-submit.loading .whatsapp-btn-loading-text {
    display: inline;
}

.whatsapp-btn-loading-text {
    display: none;
}

@keyframes whatsspin {
    to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
    .whatsapp-float-btn {
        bottom: 16px;
        right: 16px;
        width: 54px;
        height: 54px;
    }
    .whatsapp-float-btn svg {
        width: 28px;
        height: 28px;
    }
    .whatsapp-float-panel {
        bottom: 82px;
        right: 12px;
        width: calc(100vw - 24px);
        max-width: calc(100vw - 24px);
    }
}
