/* WCFM Inquiry Frontend Interface - Modern Styles with WCFM Integration & Vendor Support */

.wcfm-inquiry-frontend-wrapper {
    max-width: 500px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    position: relative;
    transition: all 0.3s ease;
}

.wcfm-inquiry-frontend-wrapper:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Error Messages */
.wcfm-inquiry-error {
    padding: 20px;
    background: #fee;
    color: #c53030;
    border: 1px solid #feb2b2;
    border-radius: 8px;
    margin: 20px;
    font-weight: 500;
    text-align: center;
}

/* Header Styles with Product and Vendor Info */
.wcfm-inquiry-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 24px;
    color: white;
    position: relative;
    overflow: hidden;
}

.wcfm-inquiry-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><radialGradient id="a" cx="50%" cy="40%"><stop offset="0%" stop-opacity=".05"/><stop offset="100%" stop-opacity="0"/></radialGradient></defs><rect width="100" height="20" fill="url(%23a)"/></svg>') repeat-x;
    opacity: 0.3;
}

.wcfm-inquiry-title {
    margin: 0 0 16px 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
    text-align: center;
}

/* Product Information Display */
.wcfm-inquiry-product-info {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    padding: 16px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
    margin-bottom: 16px;
}

.wcfm-inquiry-product-info .product-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 16px;
    flex-shrink: 0;
}

.wcfm-inquiry-product-info .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wcfm-inquiry-product-info .product-details {
    flex: 1;
    min-width: 0;
}

.wcfm-inquiry-product-info .product-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: white;
    line-height: 1.3;
}

.wcfm-inquiry-product-info .product-price {
    font-size: 18px;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 4px;
}

.wcfm-inquiry-product-info .product-sku {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Vendor Information Display */
.wcfm-inquiry-vendor-info {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    border-radius: 10px;
    position: relative;
    z-index: 1;
}

.wcfm-inquiry-vendor-info .vendor-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.wcfm-inquiry-vendor-info .vendor-details {
    flex: 1;
}

.wcfm-inquiry-vendor-info .vendor-name {
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin-bottom: 2px;
}

.wcfm-inquiry-vendor-info .vendor-rating {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.wcfm-inquiry-vendor-info .rating-stars {
    color: #ffd700;
    margin-right: 4px;
}

.wcfm-inquiry-vendor-info .rating-stars .star {
    font-size: 14px;
}

/* Vendor Inquiry Specific Styles */
.wcfm-vendor-inquiry .wcfm-inquiry-header {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.wcfm-vendor-inquiry-main {
    flex-direction: column;
    text-align: center;
    padding: 20px 16px;
    background: rgba(255, 255, 255, 0.15);
    margin-bottom: 0;
}

.wcfm-vendor-inquiry-main .vendor-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px auto;
    border: 3px solid rgba(255, 255, 255, 0.5);
}

.wcfm-vendor-inquiry-main .vendor-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.wcfm-vendor-inquiry-main .vendor-rating {
    justify-content: center;
    margin-bottom: 12px;
}

.wcfm-vendor-inquiry-main .vendor-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

/* Form Styles */
.wcfm-inquiry-form {
    padding: 32px 24px;
}

.wcfm-inquiry-field-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.wcfm-inquiry-field {
    position: relative;
    margin-bottom: 8px;
    padding-bottom: 25px;
}

.wcfm-inquiry-field:last-child {
    padding-bottom: 8px;
}

.wcfm-inquiry-input,
.wcfm-inquiry-textarea,
.wcfm-inquiry-select {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    background: #ffffff;
    color: #2c3e50;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    outline: none;
    position: relative;
    z-index: 1;
}

.wcfm-inquiry-input:focus,
.wcfm-inquiry-textarea:focus,
.wcfm-inquiry-select:focus {
    border-color: #667eea;
    background: #f8faff;
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.wcfm-inquiry-input::placeholder,
.wcfm-inquiry-textarea::placeholder {
    color: #a0aec0;
    font-weight: 400;
    transition: all 0.3s ease;
}

.wcfm-inquiry-input:focus::placeholder,
.wcfm-inquiry-textarea:focus::placeholder {
    opacity: 0.6;
    transform: translateY(-2px);
}

.wcfm-inquiry-textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    line-height: 1.6;
}

/* Subject field styling for vendor inquiries */
.wcfm-vendor-inquiry .wcfm-inquiry-field input[name="enquiry_subject"] {
    font-weight: 600;
    border-width: 2px;
}

.wcfm-vendor-inquiry .wcfm-inquiry-field input[name="enquiry_subject"]:focus {
    border-color: #2563eb;
}

/* Focus border animation */
.wcfm-inquiry-focus-border {
    position: absolute;
    bottom: 25px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.wcfm-inquiry-field:last-child .wcfm-inquiry-focus-border {
    bottom: 0;
}

.wcfm-inquiry-input:focus + .wcfm-inquiry-focus-border,
.wcfm-inquiry-textarea:focus + .wcfm-inquiry-focus-border {
    width: 100%;
    left: 0;
}

.wcfm-vendor-inquiry .wcfm-inquiry-input:focus + .wcfm-inquiry-focus-border,
.wcfm-vendor-inquiry .wcfm-inquiry-textarea:focus + .wcfm-inquiry-focus-border {
    background: linear-gradient(90deg, #2563eb, #1d4ed8);
}

/* Submit Button */
.wcfm-inquiry-actions {
    text-align: center;
    margin-top: 24px;
}

.wcfm-inquiry-submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 36px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 160px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wcfm-vendor-inquiry .wcfm-inquiry-submit-btn {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.wcfm-inquiry-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.wcfm-vendor-inquiry .wcfm-inquiry-submit-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.wcfm-inquiry-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.wcfm-inquiry-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.wcfm-inquiry-submit-btn .btn-loading {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.wcfm-inquiry-submit-btn.loading .btn-text {
    opacity: 0;
}

.wcfm-inquiry-submit-btn.loading .btn-loading {
    display: block;
}

/* Spinner Animation */
.wcfm-spinner {
    width: 20px;
    height: 20px;
    color: white;
}

.wcfm-spinner circle {
    transform-origin: center;
}

/* Message Styles */
.wcfm-inquiry-message {
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    animation: slideInUp 0.4s ease;
}

.wcfm-inquiry-message.success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
}

.wcfm-inquiry-message.error {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 101, 101, 0.3);
}

/* WooCommerce Integration - Trigger Buttons */
.wcfm-inquiry-trigger-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin: 8px 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.wcfm-inquiry-trigger-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.wcfm-inquiry-trigger-btn .inquiry-icon {
    width: 16px;
    height: 16px;
    opacity: 0.9;
}

/* Vendor Store Page Inquiry Button */
.wcfm-vendor-inquiry-btn {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.wcfm-vendor-inquiry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.wcfm-vendor-inquiry-btn .inquiry-icon {
    width: 18px;
    height: 18px;
    opacity: 0.9;
}

.wcfm-vendor-inquiry-container {
    text-align: center;
    margin: 20px 0;
}

/* Shop Page Inquiry Buttons */
.wcfm-inquiry-shop-btn {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
}

.wcfm-inquiry-shop-btn:hover {
    background: #667eea;
    color: white;
    transform: scale(1.1);
}

.wcfm-inquiry-shop-btn svg {
    width: 18px;
    height: 18px;
}

/* Modern Notification System */
.wcfm-inquiry-notifications {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    pointer-events: none;
}

.wcfm-inquiry-notification {
    background: white;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    pointer-events: auto;
    max-width: 100%;
}

.wcfm-inquiry-notification.show {
    transform: translateX(0);
}

.wcfm-inquiry-notification-success {
    border-left: 4px solid #48bb78;
}

.wcfm-inquiry-notification-error {
    border-left: 4px solid #f56565;
}

.wcfm-inquiry-notification-info {
    border-left: 4px solid #667eea;
}

.wcfm-inquiry-notification .notification-content {
    display: flex;
    align-items: center;
    padding: 16px 20px;
}

.wcfm-inquiry-notification .notification-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    flex-shrink: 0;
}

.wcfm-inquiry-notification-success .notification-icon {
    color: #48bb78;
}

.wcfm-inquiry-notification-error .notification-icon {
    color: #f56565;
}

.wcfm-inquiry-notification-info .notification-icon {
    color: #667eea;
}

.wcfm-inquiry-notification .notification-message {
    font-size: 14px;
    font-weight: 500;
    color: #2d3748;
    line-height: 1.4;
    flex: 1;
}

.wcfm-inquiry-notification-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #a0aec0;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.wcfm-inquiry-notification-close:hover {
    color: #718096;
}

.wcfm-inquiry-notification .notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #667eea;
    animation: notificationProgress 5s linear;
}

.wcfm-inquiry-notification-success .notification-progress {
    background: #48bb78;
}

.wcfm-inquiry-notification-error .notification-progress {
    background: #f56565;
}

@keyframes notificationProgress {
    0% { width: 100%; }
    100% { width: 0%; }
}

/* Popup Styles */
.wcfm-inquiry-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.wcfm-inquiry-popup-content {
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    animation: popupSlideIn 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border-radius: 16px;
}

.wcfm-inquiry-popup-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 32px;
    height: 32px;
    background: #fff;
    border: 2px solid #e1e8ed;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    font-size: 18px;
    font-weight: bold;
    color: #718096;
}

.wcfm-inquiry-popup-close:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
    transform: scale(1.1);
}

.wcfm-inquiry-loading {
    padding: 40px;
    text-align: center;
    color: #718096;
    font-size: 16px;
}

.wcfm-inquiry-form-placeholder {
    padding: 20px;
    background: #f7fafc;
    border-radius: 8px;
    text-align: center;
    color: #4a5568;
}

/* WCFM Dashboard Integration */
.wcfm-inquiry-frontend-dashboard .wcfm-inquiry-frontend-wrapper {
    box-shadow: none;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.wcfm-inquiry-frontend-dashboard .wcfm-inquiry-header {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
}

/* Field Validation States */
.wcfm-inquiry-field.error .wcfm-inquiry-input,
.wcfm-inquiry-field.error .wcfm-inquiry-textarea,
.wcfm-inquiry-field.error .wcfm-inquiry-select {
    border-color: #f56565;
    background: #fed7d7;
    animation: shake 0.4s ease;
}

.wcfm-inquiry-field.error .wcfm-inquiry-focus-border {
    background: #f56565;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.wcfm-inquiry-field-error {
    color: #f56565;
    font-size: 12px;
    margin-top: 4px;
    font-weight: 500;
    display: none;
    position: absolute;
    bottom: 0;
    left: 0;
}

.wcfm-inquiry-field.error .wcfm-inquiry-field-error {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Character Counter */
.wcfm-character-counter {
    position: absolute;
    bottom: -20px;
    right: 8px;
    font-size: 11px;
    color: #a0aec0;
    font-weight: 500;
    transition: color 0.3s ease;
}

.wcfm-character-counter.warning {
    color: #ed8936;
}

.wcfm-character-counter.error {
    color: #f56565;
    font-weight: 600;
}

/* Loading States */
.wcfm-inquiry-frontend-wrapper.loading {
    pointer-events: none;
    opacity: 0.8;
}

.wcfm-inquiry-frontend-wrapper.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 100;
}

.wcfm-inquiry-trigger-btn.loading,
.wcfm-inquiry-shop-btn.loading,
.wcfm-vendor-inquiry-btn.loading {
    opacity: 0.7;
    pointer-events: none;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 0.4; }
}

/* Success State */
.wcfm-inquiry-frontend-wrapper.success .wcfm-inquiry-header {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    animation: successPulse 0.6s ease;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.wcfm-inquiry-frontend-wrapper {
    animation: fadeIn 0.6s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wcfm-inquiry-frontend-wrapper {
        margin: 0 16px;
        border-radius: 12px;
    }
    
    .wcfm-inquiry-header {
        padding: 20px;
    }
    
    .wcfm-inquiry-title {
        font-size: 20px;
    }
    
    .wcfm-inquiry-form {
        padding: 24px 20px;
    }
    
    .wcfm-inquiry-product-info {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .wcfm-inquiry-product-info .product-image {
        margin-right: 0;
        margin-bottom: 8px;
    }
    
    .wcfm-vendor-inquiry-main .vendor-avatar {
        width: 70px;
        height: 70px;
        margin-bottom: 12px;
    }
    
    .wcfm-vendor-inquiry-main .vendor-name {
        font-size: 18px;
    }
    
    .wcfm-inquiry-input,
    .wcfm-inquiry-textarea,
    .wcfm-inquiry-select {
        padding: 14px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .wcfm-inquiry-submit-btn {
        width: 100%;
        padding: 18px 36px;
        font-size: 16px;
    }
    
    .wcfm-inquiry-trigger-btn {
        width: 100%;
        justify-content: center;
        margin: 8px 0;
    }
    
    .wcfm-vendor-inquiry-btn {
        width: 100%;
        justify-content: center;
        padding: 16px 28px;
    }
    
    .wcfm-inquiry-notifications {
        left: 16px;
        right: 16px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .wcfm-inquiry-frontend-wrapper {
        margin: 0 12px;
        border-radius: 8px;
    }
    
    .wcfm-inquiry-header {
        padding: 16px;
    }
    
    .wcfm-inquiry-title {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .wcfm-inquiry-form {
        padding: 20px 16px;
    }
    
    .wcfm-inquiry-product-info .product-name {
        font-size: 14px;
    }
    
    .wcfm-inquiry-product-info .product-price {
        font-size: 16px;
    }
    
    .wcfm-inquiry-vendor-info .vendor-name,
    .wcfm-vendor-inquiry-main .vendor-name {
        font-size: 16px;
    }
}

/* Dark Theme Support */
@media (prefers-color-scheme: dark) {
    .wcfm-inquiry-frontend-wrapper {
        background: #1a202c;
        color: #e2e8f0;
    }
    
    .wcfm-inquiry-input,
    .wcfm-inquiry-textarea,
    .wcfm-inquiry-select {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .wcfm-inquiry-input:focus,
    .wcfm-inquiry-textarea:focus,
    .wcfm-inquiry-select:focus {
        background: #2d3748;
        border-color: #667eea;
    }
    
    .wcfm-inquiry-input::placeholder,
    .wcfm-inquiry-textarea::placeholder {
        color: #a0aec0;
    }
    
    .wcfm-inquiry-notification {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .wcfm-inquiry-popup-close {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .wcfm-inquiry-loading {
        color: #a0aec0;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .wcfm-inquiry-frontend-wrapper {
        border: 2px solid #000;
    }
    
    .wcfm-inquiry-input,
    .wcfm-inquiry-textarea,
    .wcfm-inquiry-select {
        border: 2px solid #000;
    }
    
    .wcfm-inquiry-submit-btn {
        border: 2px solid #000;
    }
    
    .wcfm-inquiry-trigger-btn,
    .wcfm-vendor-inquiry-btn {
        border: 2px solid #000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .wcfm-inquiry-frontend-wrapper,
    .wcfm-inquiry-input,
    .wcfm-inquiry-textarea,
    .wcfm-inquiry-select,
    .wcfm-inquiry-submit-btn,
    .wcfm-inquiry-focus-border,
    .wcfm-inquiry-message,
    .wcfm-inquiry-notification,
    .wcfm-inquiry-trigger-btn,
    .wcfm-inquiry-shop-btn,
    .wcfm-vendor-inquiry-btn {
        animation: none !important;
        transition: none !important;
    }
    
    .wcfm-inquiry-frontend-wrapper:hover,
    .wcfm-inquiry-submit-btn:hover,
    .wcfm-inquiry-trigger-btn:hover,
    .wcfm-vendor-inquiry-btn:hover {
        transform: none !important;
    }
}

/* Print Styles */
@media print {
    .wcfm-inquiry-frontend-wrapper {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .wcfm-inquiry-header {
        background: #f5f5f5 !important;
        color: #333 !important;
    }
    
    .wcfm-inquiry-submit-btn,
    .wcfm-inquiry-popup-close,
    .wcfm-inquiry-trigger-btn,
    .wcfm-inquiry-shop-btn,
    .wcfm-vendor-inquiry-btn,
    .wcfm-inquiry-notifications {
        display: none !important;
    }
}

/* Accessibility Enhancements */
.wcfm-inquiry-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.wcfm-inquiry-frontend-wrapper:focus-within {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.wcfm-inquiry-submit-btn:focus,
.wcfm-inquiry-trigger-btn:focus,
.wcfm-inquiry-shop-btn:focus,
.wcfm-vendor-inquiry-btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* WooCommerce Theme Compatibility */
.woocommerce .wcfm-inquiry-trigger-btn {
    margin-left: 0;
    margin-top: 10px;
}

.woocommerce ul.products li.product .wcfm-inquiry-shop-btn {
    margin-top: 8px;
}

/* WCFM Dashboard Theme Integration */
.wcfm-dashboard .wcfm-inquiry-frontend-wrapper {
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wcfm-dashboard .wcfm-inquiry-header {
    border-radius: 6px 6px 0 0;
}

/* Popup Body Lock */
.wcfm-inquiry-popup-open {
    overflow: hidden;
    height: 100vh;
}

/* Loading Skeleton for AJAX Loading */
.wcfm-inquiry-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeletonLoading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.wcfm-inquiry-skeleton-header {
    height: 60px;
    margin-bottom: 20px;
}

.wcfm-inquiry-skeleton-field {
    height: 50px;
    margin-bottom: 16px;
}

.wcfm-inquiry-skeleton-textarea {
    height: 100px;
    margin-bottom: 16px;
}

.wcfm-inquiry-skeleton-button {
    height: 50px;
    width: 150px;
    margin: 0 auto;
}

/* Focus States Enhancement */
.wcfm-inquiry-field.focused {
    transform: translateY(-1px);
}

.wcfm-inquiry-field.focused .wcfm-inquiry-input,
.wcfm-inquiry-field.focused .wcfm-inquiry-textarea {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.wcfm-vendor-inquiry .wcfm-inquiry-field.focused .wcfm-inquiry-input,
.wcfm-vendor-inquiry .wcfm-inquiry-field.focused .wcfm-inquiry-textarea {
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
}


/* ========================================
   ELEMENTOR LISTING GRID INTEGRATION STYLES
   Add these to your existing inquiry-frontend.css
   ======================================== */

/* Elementor Inquiry Trigger Buttons/Icons */
.elementor-inquiry-trigger,
.elementor-inquiry-icon,
[data-elementor-inquiry] {
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.elementor-inquiry-trigger:hover,
.elementor-inquiry-icon:hover,
[data-elementor-inquiry]:hover {
    transform: scale(1.05);
}

/* Icon Style for Elementor Listings */
.elementor-inquiry-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    border: none;
    outline: none;
}

.elementor-inquiry-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.elementor-inquiry-icon svg {
    width: 22px;
    height: 22px;
}

/* Button Style for Elementor Listings */
.elementor-inquiry-trigger {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.elementor-inquiry-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

/* Elementor Loop Item Integration */
.elementor-loop-item .elementor-inquiry-icon,
.e-loop-item .elementor-inquiry-icon {
    margin-top: 10px;
}

.elementor-post .elementor-inquiry-trigger {
    margin-top: 12px;
}

/* Loading State for Elementor Buttons */
.elementor-inquiry-trigger.loading,
.elementor-inquiry-icon.loading {
    opacity: 0.6;
    pointer-events: none;
    animation: pulse 1.5s infinite;
}

/* Compact Icon Style */
.elementor-inquiry-icon-compact {
    width: 36px;
    height: 36px;
    font-size: 16px;
}

/* Outline Style Variant */
.elementor-inquiry-trigger-outline {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
}

.elementor-inquiry-trigger-outline:hover {
    background: #667eea;
    color: white;
}

/* Floating Action Button Style */
.elementor-inquiry-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    font-size: 24px;
}

.elementor-inquiry-fab:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.5);
}

/* Elementor Grid Compatibility */
.elementor-grid .elementor-inquiry-trigger,
.elementor-grid .elementor-inquiry-icon {
    width: 100%;
    max-width: 200px;
    margin: 10px auto 0;
}

/* Posts Widget Integration */
.elementor-posts .elementor-post__text .elementor-inquiry-trigger {
    margin-top: 15px;
}

/* Card Layout Integration */
.elementor-post__card .elementor-inquiry-trigger {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
}

/* Responsive Elementor Styles */
@media (max-width: 768px) {
    .elementor-inquiry-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .elementor-inquiry-trigger {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .elementor-inquiry-fab {
        width: 50px;
        height: 50px;
        font-size: 20px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .elementor-inquiry-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .elementor-inquiry-trigger {
        width: 100%;
        padding: 10px 16px;
    }
}

/* Dark Mode Support for Elementor */
@media (prefers-color-scheme: dark) {
    .elementor-inquiry-trigger-outline {
        border-color: #8b97f0;
        color: #8b97f0;
    }
    
    .elementor-inquiry-trigger-outline:hover {
        background: #8b97f0;
        color: #1a202c;
    }
}

/* Elementor Preview Mode */
.elementor-editor-active .elementor-inquiry-trigger,
.elementor-editor-active .elementor-inquiry-icon {
    pointer-events: none;
    opacity: 0.7;
}

/* Badge/Label Style */
.elementor-inquiry-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.elementor-inquiry-badge:hover {
    background: #667eea;
    color: white;
}

/* Tooltip Style */
.elementor-inquiry-tooltip {
    position: relative;
}

.elementor-inquiry-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #2d3748;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    margin-bottom: 8px;
}

.elementor-inquiry-tooltip:hover::after {
    opacity: 1;
}