/*
Theme Name:   xstore-child
Theme URI:    https://xstore.8theme.com
Description:  XStore is a multi-purpose theme that offers the ultimate WordPress and WooCommerce synergy, providing a comprehensive, all-in-one solution.
Author:       8theme
Author URI:   https://www.8theme.com
Template:     xstore
Version:      1.0
Text Domain:  xstore-child
Tags: e-commerce, two-columns, left-sidebar, right-sidebar, custom-background, custom-colors, custom-header, custom-menu, custom-logo, featured-images, full-width-template, threaded-comments, accessibility-ready, rtl-language-support, footer-widgets, sticky-post, theme-options, translation-ready, ecommerce, woocommerce, shop, elementor, business, corporate, blog, news, light, dark
*/

.woocommerce-Price-amount {
    display: none;
}

/* ===============================================
   MODERN CONTACT FORM STYLES
   =============================================== */

/* Form Container */
.wpcf7-form {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

/* Form Group */
.wpcf7-form .form-group {
    margin-bottom: 0;
}

.wpcf7-form p {
    margin-bottom: 1.5rem;
}

/* Input Fields */
.wpcf7-form .form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    margin-bottom: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.5;
    color: #374151;
    background-color: #ffffff;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.wpcf7-form .form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background-color: #ffffff;
}

.wpcf7-form .form-control:hover {
    border-color: #9ca3af;
}

/* Textarea Specific */
.wpcf7-form textarea.form-control {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

/* Placeholder Styling */
.wpcf7-form .form-control::placeholder {
    color: #9ca3af;
    opacity: 1;
}

/* Captcha Section */
.wpcf7-form .row {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.wpcf7-form .col-sm-6 {
    flex: 1;
}

.wpcf7-form .col-sm-6 p {
    margin-bottom: 0;
}

/* Captcha Image */
.wpcf7-form .wpcf7-captchac {
    border-radius: 6px;
    border: 2px solid #e5e7eb;
    padding: 0.5rem;
    background: #ffffff;
    display: block;
    max-width: 100%;
    height: auto;
}

/* Captcha Instructions */
.wpcf7-form p:has(+ .row) {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

/* Submit Button */
.wpcf7-form .btn-submit {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.wpcf7-form .btn-submit:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.wpcf7-form .btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* Loading Spinner */
.wpcf7-form .wpcf7-spinner {
    display: none;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 1s ease-in-out infinite;
}

.wpcf7-form.submitting .wpcf7-spinner {
    display: block;
}

@keyframes spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* Form Response Messages */
.wpcf7-form .wpcf7-response-output {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
    display: none;
}

.wpcf7-form .wpcf7-response-output.wpcf7-display-none {
    display: none !important;
}

.wpcf7-form .wpcf7-response-output:not(.wpcf7-display-none) {
    display: block;
}

/* Success Message */
.wpcf7-mail-sent-ok .wpcf7-response-output {
    background-color: #d1fae5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

/* Error Messages */
.wpcf7-validation-errors .wpcf7-response-output,
.wpcf7-mail-sent-ng .wpcf7-response-output {
    background-color: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

/* Individual Field Validation */
.wpcf7-form .wpcf7-not-valid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Hidden Fields Container */
.wpcf7-form .hidden-fields-container {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wpcf7-form {
        padding: 1.5rem;
        margin: 1rem;
        border-radius: 8px;
    }
    
    .wpcf7-form .row {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .wpcf7-form .col-sm-6 {
        width: 100%;
    }
    
    .wpcf7-form .btn-submit {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .wpcf7-form {
        padding: 1rem;
        margin: 0.5rem;
    }
    
    .wpcf7-form .form-control {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
}

/* Focus Management for Accessibility */
.wpcf7-form .form-control:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .wpcf7-form .form-control {
        border-color: #000000;
    }
    
    .wpcf7-form .form-control:focus {
        border-color: #0000ff;
        box-shadow: 0 0 0 2px #0000ff;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .wpcf7-form .form-control,
    .wpcf7-form .btn-submit {
        transition: none;
    }
    
    .wpcf7-form .wpcf7-spinner {
        animation: none;
    }
}

