/* Popup Overlay */
.cih-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    justify-content: center;
    align-items: center;
}

.cih-popup-overlay.active {
    display: flex;
}

/* Popup Container */
.cih-popup {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Close Button */
.cih-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.cih-close-btn:hover {
    color: #333;
}

/* Popup Content */
.cih-popup h2 {
    margin: 0 0 15px 0;
    font-size: 24px;
    color: #333;
}

.cih-popup p {
    margin: 0 0 20px 0;
    color: #666;
    line-height: 1.6;
}

/* Form Groups */
.cih-form-group {
    margin-bottom: 20px;
}

.cih-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.cih-form-group textarea,
.cih-form-group input[type="tel"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.cih-form-group textarea:focus,
.cih-form-group input[type="tel"]:focus {
    outline: none;
    border-color: #0073aa;
}

/* WhatsApp Section */
.cih-whatsapp-section {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

.cih-whatsapp-section p {
    margin: 0 0 10px 0;
    font-size: 14px;
}

.cih-whatsapp-btn {
    display: inline-block;
    background: #25D366;
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.cih-whatsapp-btn:hover {
    background: #128C7E;
}

.cih-whatsapp-btn .dashicons {
    vertical-align: middle;
    margin-right: 5px;
}

/* Form Actions */
.cih-form-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.cih-submit-btn,
.cih-dismiss-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.cih-submit-btn {
    background: #0073aa;
    color: #fff;
}

.cih-submit-btn:hover {
    background: #005a87;
}

.cih-dismiss-btn {
    background: #f0f0f0;
    color: #333;
}

.cih-dismiss-btn:hover {
    background: #e0e0e0;
}

/* Success Message */
#cih-success-message {
    text-align: center;
    padding: 20px;
}

#cih-success-message p {
    color: #0073aa;
    font-weight: 600;
    font-size: 16px;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .cih-popup {
        padding: 20px;
        width: 95%;
    }
    
    .cih-popup h2 {
        font-size: 20px;
    }
    
    .cih-form-actions {
        flex-direction: column;
    }
    
    .cih-submit-btn,
    .cih-dismiss-btn {
        width: 100%;
    }
}