/* WooCommerce Catalog Mode S - Frontend Styles */

.wccs-price-text {
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.1em;
}

.wccs-single-price .wccs-price-text {
    font-size: 1.5em;
    color: #27ae60;
}

/* Quote Form Styles */
.wccs-quote-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.wccs-quote-form-container h2 {
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 15px;
}

.wccs-cart-items {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 5px;
}

.wccs-cart-items h3 {
    margin-top: 0;
    color: #555;
}

.wccs-items-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.wccs-items-table th,
.wccs-items-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.wccs-items-table th {
    background: #0073aa;
    color: white;
    font-weight: bold;
}

.wccs-items-table tr:hover {
    background: #f5f5f5;
}

/* Form Styles */
.wccs-quote-form {
    padding: 20px 0;
}

.wccs-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.wccs-form-group {
    flex: 1;
}

.wccs-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.wccs-form-group input,
.wccs-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.wccs-form-group input:focus,
.wccs-form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 5px rgba(0,115,170,0.3);
}

.wccs-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Button Styles */
.wccs-form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.wccs-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.wccs-btn-email {
    background: #0073aa;
    color: white;
}

.wccs-btn-email:hover {
    background: #005a87;
    transform: translateY(-2px);
}

.wccs-btn-whatsapp {
    background: #25d366;
    color: white;
}

.wccs-btn-whatsapp:hover {
    background: #1da851;
    transform: translateY(-2px);
}

/* Success/Error Messages */
.wccs-message {
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    font-weight: bold;
}

.wccs-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wccs-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wccs-quote-form-container {
        margin: 10px;
        padding: 15px;
    }
    
    .wccs-form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .wccs-form-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .wccs-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .wccs-items-table {
        font-size: 14px;
    }
    
    .wccs-items-table th,
    .wccs-items-table td {
        padding: 8px;
    }
}

/* Loading State */
.wccs-loading {
    opacity: 0.6;
    pointer-events: none;
}

.wccs-btn.loading {
    position: relative;
}

.wccs-btn.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Cart/Quotation Labels */
.woocommerce .cart-collaterals .cart_totals h2::before {
    content: attr(data-cart-label);
}

/* Variations Display */
.variations .value select,
.variations .value input {
    border: 2px solid #0073aa;
}

.single_variation_wrap .woocommerce-variation-price {
    display: none !important;
}

/* Success Page Styles */
.wccs-success-message {
    text-align: center;
    padding: 40px 20px;
    background: #f0f8ff;
    border-radius: 10px;
    margin: 20px 0;
}

.wccs-success-message h2 {
    color: #27ae60;
    margin-bottom: 15px;
}

.wccs-success-message p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}
