/* Base Container Styles */
.wa-qc-container {
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 24px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    border: 1px solid #eaeaea;
    box-sizing: border-box;
}

.wa-qc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 12px;
}

.wa-qc-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #111111;
}

.wa-qc-close-btn {
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: #888888;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
    outline: none;
}

.wa-qc-close-btn:hover {
    color: #333333;
}

/* Form Styles */
.wa-qc-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
}

.wa-qc-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wa-qc-form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    margin: 0;
}

.wa-qc-form-group input,
.wa-qc-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    background-color: #f9fafb;
}

.wa-qc-form-group input:focus,
.wa-qc-form-group textarea:focus {
    border-color: #25D366;
    outline: none;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.15);
}

.wa-qc-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #25D366;
    color: #ffffff;
    border: none;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease, box-shadow 0.3s ease;
    width: 100%;
    margin-top: 8px;
}

.wa-qc-submit-btn:hover {
    background-color: #128C7E;
    box-shadow: 0 4px 12px rgba(18, 140, 126, 0.3);
}

.wa-qc-submit-btn:active {
    transform: translateY(2px);
    box-shadow: none;
}

.wa-qc-icon {
    display: inline-block;
}

/* Floating Widget Specific Styles */
.wa-qc-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.wa-qc-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25D366;
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    padding: 0;
    outline: none;
}

.wa-qc-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5);
}

.wa-qc-floating-container {
    visibility: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transform-origin: bottom right;
    transition: opacity 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), visibility 0.3s;
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 340px;
    margin: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.wa-qc-floating-container.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Responsive Styles */
@media screen and (max-width: 480px) {
    .wa-qc-widget {
        bottom: 16px;
        right: 16px;
    }
    
    .wa-qc-floating-container {
        width: calc(100vw - 32px);
        bottom: 74px;
        border-radius: 12px;
    }
}

/* Custom Icon Styles */
.wa-qc-toggle-btn.has-custom-icon {
    background-color: transparent;
    box-shadow: none;
    border-radius: 0;
}
.wa-qc-toggle-btn.has-custom-icon:hover {
    box-shadow: none;
}
.wa-qc-custom-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}
.wa-qc-toggle-btn.has-custom-icon:hover .wa-qc-custom-icon {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
