/**
 * WP Quote Request Frontend Styles
 * Version 2.3
 */

/* User requested style for stacking quantity and button */
.woocommerce-variation-add-to-cart, .variations_button {
    display: flex;
    flex-direction: column;
    gap: 1em; /* Adds space between the quantity and button */
}

/* Wrapper for the entire block of custom fields */
.wp-quote-request-fields-wrapper {
    margin-bottom: 1.5em; /* Add space between our fields and the button below */
    clear: both;
}

/* Individual field container (label + input) */
.wp-quote-request-fields-wrapper .wp-quote-field {
    margin-bottom: 1em;
    clear: both;
}

/* Style for labels */
.wp-quote-request-fields-wrapper .wp-quote-field label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: 300;
    color: black;
}

/* Style for all text inputs and textareas */
.wp-quote-request-fields-wrapper .wp-quote-field input[type="text"],
.wp-quote-request-fields-wrapper .wp-quote-field input[type="email"],
.wp-quote-request-fields-wrapper .wp-quote-field input[type="tel"],
.wp-quote-request-fields-wrapper .wp-quote-field input[type="number"],
.wp-quote-request-fields-wrapper .wp-quote-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.2s ease;
}

/* Focus states */
.wp-quote-request-fields-wrapper .wp-quote-field input:focus,
.wp-quote-request-fields-wrapper .wp-quote-field textarea:focus {
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0,124,186,.15);
    outline: 0;
}

/* Special styling for quantity input */
.wp-quote-request-fields-wrapper #wp_quote_quantity {
    width: 100%;
    text-align: center;
    font-weight: 600;
}

/* Highlight for invalid fields */
.wp-quote-request-fields-wrapper .invalid-field {
    border-color: #d63638 !important;
}

/* The required field indicator */
.wp-quote-request-fields-wrapper .required {
    color: #d63638;
    margin-left: 4px;
}

/* The messages will now use standard WooCommerce classes */
.wp-quote-messages {
    margin-top: 1em;
    margin-bottom: 1em;
}

/* Hide original WooCommerce quantity selector */
form.cart .quantity {
    display: none !important;
}

/* Privacy field styles */
.wp-quote-privacy-field {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.wp-quote-privacy-label {
    font-weight: normal;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.wp-quote-privacy-label input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
}

.wp-quote-privacy-link {
    color: #0073aa;
    text-decoration: underline;
}

.wp-quote-privacy-link:hover {
    color: #005a87;
}

/* Autofill detection styles */
@keyframes onAutoFillStart {
    from {/**/}
    to {/**/}
}

@keyframes onAutoFillCancel {
    from {/**/}
    to {/**/}
}

.wp-quote-request-fields-wrapper input:-webkit-autofill {
    animation-name: onAutoFillStart;
}

.wp-quote-request-fields-wrapper input:not(:-webkit-autofill) {
    animation-name: onAutoFillCancel;
}
.wp-quote-privacy-label a {
    color: black;
    font-weight: 500;
    text-decoration: underline;
}