
.contactfeedback-wrapper {
    position: relative;
    z-index: 1000;
    display: inline-block;
}

.contact-feedback {
    text-align: center;
    display: block;
    margin-top: 20px;
    border: 1px solid #efefef;
    border-radius: 12px 12px 12px 12px;
    padding: 20px;
    box-shadow: 0 0 27px -9px rgba(133,133,133,.35);
    background-color: #fff;
    align-items: center;
}
.contact-feedback-span {
    margin-right: 30px;
}

.contactfeedback-trigger {
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}


/* Popup styling */
.contactfeedback-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1050;
    overflow-y: auto;
    padding: 20px;
}

.contactfeedback-popup-content {
    background-color: #fff;
    border-radius: 8px;
    max-width: 500px;
    width: 100%;
    margin: 30px auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: contactfeedback-fadeIn 0.3s ease;
    position: relative;
}

.contactfeedback-popup-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contactfeedback-popup-header h3 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.contactfeedback-popup-body {
    padding: 20px;
}

.contactfeedback-popup-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 10px;
}

.contactfeedback-popup-footer button {
    flex: 1;
    white-space: nowrap;
}

/* Loading indicator */
.contactfeedback-loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    z-index: 1051;
}

/* Form elements styling */
.contactfeedback-popup .form-group {
    margin-bottom: 15px;
}

.contactfeedback-popup label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.contactfeedback-popup .form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.contactfeedback-popup .form-control.is-invalid {
    border-color: #dc3545;
}

.contactfeedback-popup textarea.form-control {
    min-height: 80px;
    resize: vertical;
}

.contactfeedback-popup .close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.contactfeedback-popup .close:hover {
    color: #333;
}

/* Result message */
#contactfeedback-result {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
}

/* Responsive styles */
@media (max-width: 576px) {
    .contactfeedback-popup-content {
        max-width: 100%;
        margin: 10px;
    }
    
    .contactfeedback-popup-footer {
        flex-direction: column;
    }
}

@keyframes contactfeedback-fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Body class when popup is open */
body.contactfeedback-popup-open {
    /* This allows scrolling of the popup content while preventing body scroll */
    overflow: hidden; /* Prevent page scrolling */
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Icon styles */
.contactfeedback-send i {
    margin-right: 5px;
}

/* WhatsApp button specific styles 
.contactfeedback-send[data-type="whatsapp"] {
    background-color: #25D366;
    border-color: #25D366;
}
*/
.contactfeedback-send[data-type="whatsapp"]:hover {
    background-color: #fff;
    color: #d60000;
    border-color: #d60000;
}
/* Email button specific styles 
.contactfeedback-send[data-type="email"] {
    background-color: #0078D7;
    border-color: #0078D7;
}
*/
/* Telegram button specific styles 
.contactfeedback-send[data-type="telegram"] {
    background-color: #0088cc;
    border-color: #0088cc;
}
*/

.contactfeedback-send.is-loading {
    position: relative;
    color: transparent !important;
}

.contactfeedback-send.is-loading .loading-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contactfeedback-send.is-loading .loading-dots span {
    width: 8px;
    height: 8px;
    margin: 0 3px;
    background-color: white;
    border-radius: 50%;
    display: inline-block;
    animation: loading-dots 1.4s infinite ease-in-out both;
}

.contactfeedback-send.is-loading .loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.contactfeedback-send.is-loading .loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes loading-dots {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

.contactfeedback-send.is-loading i {
    visibility: hidden;
}

.contactfeedback-send:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}