/*
Theme Name: Flatsome
Theme URI: http://flatsome.uxthemes.com/
Author: UX-Themes
Author URI: http://www.uxthemes.com/
Description: Multi-Purpose Responsive WooCommerce Theme
Version: 3.11.3
Text Domain: flatsome
License: http://themeforest.net/licenses
License URI: http://themeforest.net/licenses
*/
/***************
All custom CSS should be added to Flatsome > Advanced > Custom CSS,
or in the style.css of a Child Theme.
***************/

/* Custom Product Form Styles */
#custom-product-form {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#custom-product-form h3 {
    margin: 0 0 20px 0;
    color: #495057;
    font-size: 1.3em;
    text-align: center;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

.form-field {
    margin-bottom: 15px;
}

.form-field label {
    font-weight: 600;
    color: #495057;
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.form-field input,
.form-field select,
.form-field textarea {
    border: 2px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #fff;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: #007cba;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
    background-color: #fff;
}

.form-field input[type="file"] {
    padding: 10px;
    background-color: #f8f9fa;
    border-style: dashed;
}

.form-field small {
    font-size: 12px;
    color: #6c757d;
    font-style: italic;
    margin-top: 3px;
    display: block;
    line-height: 1.3;
}

#custom-add-to-cart {
    background: linear-gradient(135deg, #007cba 0%, #005a8b 100%);
    color: white !important;
    padding: 15px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
    display: block;
    margin: 20px auto;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#custom-add-to-cart:hover {
    background: linear-gradient(135deg, #005a8b 0%, #004561 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 124, 186, 0.3);
}

#custom-add-to-cart:active {
    transform: translateY(0);
}

#custom-add-to-cart:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Error state for required fields */
.form-field input.error,
.form-field select.error {
    border-color: #dc3545;
    background-color: #fff5f5;
}

/* Success state */
.form-field input.success,
.form-field select.success {
    border-color: #28a745;
    background-color: #f8fff8;
}

/* Required field asterisk */
.form-field label span {
    color: #dc3545;
    font-weight: bold;
}

/* Form sections */
.form-section {
    background: #fff;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    border-left: 4px solid #007cba;
}

.form-section h4 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 1.1em;
}

/* Loading state */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    #custom-product-form {
        padding: 15px;
        margin-left: -15px;
        margin-right: -15px;
        border-radius: 0;
    }
    
    .form-row {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    #custom-add-to-cart {
        width: 100%;
        max-width: none;
    }
    
    .form-field input,
    .form-field select,
    .form-field textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

@media (max-width: 480px) {
    #custom-product-form h3 {
        font-size: 1.1em;
    }
    
    .form-field label {
        font-size: 13px;
    }
    
    .form-field small {
        font-size: 11px;
    }
}

/* Print styles */
@media print {
    #custom-product-form,
    #custom-add-to-cart {
        display: none;
    }
}