/* ==========================================================================
   BizzaWP — Product Inquiry Form
   Injected on WooCommerce single product pages.
   ========================================================================== */

/* ── Shop loop: "Get a Quote" button ────────────────────────────────────── */
/* Override any theme that positions add-to-cart absolutely over the product image */

.bizzawp-quote-btn,
.bizzawp-quote-btn:link,
.bizzawp-quote-btn:visited {
    display: block !important;
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    padding: 10px 20px;
    background: #1e3144 !important;
    color: #ffffff !important;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    margin-top: 8px;
    transition: background 0.2s ease;
}

.bizzawp-quote-btn:hover {
    background: #bd872f !important;
    color: #ffffff !important;
    text-decoration: none;
}

/* ── Single product page: hide WC Product Add-Ons fields, keep button ───── */

/* WooCommerce Product Add-Ons fields (upload audio, upload artwork, etc.)
   — the button and quantity stepper remain visible */
.woocommerce div.product .woocommerce-product-addons,
.woocommerce div.product .wc-pao-addon-wrap,
.woocommerce div.product .wc-pao-addons-totals,
.woocommerce div.product .wc-pao-addons-totals-container,
.woocommerce div.product .wc-product-addon-totals {
    display: none !important;
}

/* WPForms container on product pages */
.woocommerce div.product .wpforms-container,
.single-product .wpforms-container {
    display: none !important;
}

/* "Add to Inquiry" button — style to match our navy brand color */
.woocommerce div.product form.cart .single_add_to_cart_button {
    background-color: #1e3144 !important;
    border-color: #1e3144 !important;
    color: #ffffff !important;
}
.woocommerce div.product form.cart .single_add_to_cart_button:hover {
    background-color: #bd872f !important;
    border-color: #bd872f !important;
}

/* ── Bulletproof price hiding ────────────────────────────────────────────── */

.woocommerce .price,
.woocommerce-page .price,
.woocommerce span.price,
.woocommerce .woocommerce-Price-amount {
    display: none !important;
}

/* ── Inquiry wrap ────────────────────────────────────────────────────────── */

.bizzawp-inquiry-wrap {
    margin-top: 1.25rem;
}

/* ── Header ──────────────────────────────────────────────────────────────── */

.bizzawp-inquiry-header {
    margin-bottom: 1.25rem;
}

.bizzawp-inquiry-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e3144;
    margin: 0 0 0.35rem;
    padding: 0;
    border: none;
}

.bizzawp-inquiry-subhead {
    font-size: 0.82rem;
    color: #5a6978;
    margin: 0 0 0.75rem;
    line-height: 1.5;
}

.bizzawp-inquiry-product-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(30, 49, 68, 0.06);
    border: 1px solid rgba(30, 49, 68, 0.15);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1e3144;
}

.bizzawp-inquiry-product-badge svg {
    flex-shrink: 0;
    color: #bd872f;
}

/* ── Form ────────────────────────────────────────────────────────────────── */

.bizzawp-inquiry-form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.bizzawp-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.bizzawp-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bizzawp-field label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #1e3144;
    margin: 0;
}

.bizzawp-required {
    color: #c0392b;
    font-weight: 700;
}

.bizzawp-optional {
    font-weight: 400;
    color: #5a6978;
    font-size: 0.78rem;
}

.bizzawp-inquiry-form input[type="text"],
.bizzawp-inquiry-form input[type="email"],
.bizzawp-inquiry-form input[type="tel"],
.bizzawp-inquiry-form input[type="number"],
.bizzawp-inquiry-form textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid #dfe3e8;
    border-radius: 5px;
    font-size: 0.875rem;
    color: #1e3144;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
    margin: 0;
}

.bizzawp-inquiry-form input:focus,
.bizzawp-inquiry-form textarea:focus {
    outline: none;
    border-color: #bd872f;
    box-shadow: 0 0 0 3px rgba(189, 135, 47, 0.12);
}

.bizzawp-inquiry-form input[type="file"] {
    font-size: 0.82rem;
    color: #5a6978;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}

.bizzawp-field--sample {
    justify-content: flex-end;
    padding-bottom: 2px;
}

.bizzawp-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1e3144;
    margin: 0;
}

.bizzawp-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #bd872f;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
}

.bizzawp-field-hint {
    font-size: 0.76rem;
    color: #5a6978;
    margin: 2px 0 0;
    line-height: 1.4;
}

/* ── Error ───────────────────────────────────────────────────────────────── */

.bizzawp-inquiry-error {
    background: #fdf2f2;
    border: 1px solid rgba(192, 57, 43, 0.3);
    border-radius: 5px;
    padding: 10px 14px;
    font-size: 0.82rem;
    color: #c0392b;
    line-height: 1.5;
}

/* ── Submit button ───────────────────────────────────────────────────────── */

.bizzawp-inquiry-submit {
    padding: 12px 28px;
    background: #bd872f;
    color: #ffffff !important;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
    align-self: flex-start;
    font-family: inherit;
}

.bizzawp-inquiry-submit:hover {
    background: #a5721e;
}

.bizzawp-inquiry-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── Success state ───────────────────────────────────────────────────────── */

.bizzawp-inquiry-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
    background: #f3faf6;
    border: 1px solid rgba(45, 122, 79, 0.25);
    border-radius: 8px;
    color: #1e3144;
    gap: 0.5rem;
}

.bizzawp-inquiry-success svg {
    width: 36px;
    height: 36px;
    color: #2d7a4f;
}

.bizzawp-inquiry-success strong {
    font-size: 1rem;
    color: #1e3144;
}

.bizzawp-inquiry-success p {
    font-size: 0.875rem;
    color: #5a6978;
    margin: 0;
    line-height: 1.5;
}

/* ── Cart page: "Your Selections" layout ────────────────────────────────── */

/* Intro text above the product table */
.bizzawp-cart-intro {
    font-size: 0.9rem;
    color: #5a6978;
    margin: 0 0 1.5rem;
    padding: 0.85rem 1.1rem;
    background: rgba(30, 49, 68, 0.04);
    border-left: 3px solid #bd872f;
    border-radius: 0 4px 4px 0;
}

/* Hide price/subtotal columns and the coupon code row */
.woocommerce-cart .cart th.product-price,
.woocommerce-cart .cart td.product-price,
.woocommerce-cart .cart th.product-subtotal,
.woocommerce-cart .cart td.product-subtotal,
.woocommerce-cart .coupon {
    display: none !important;
}

/* Cart inquiry panel (replaces cart totals) */
.bizzawp-cart-inquiry-wrap {
    background: #f9fafb;
    border: 1.5px solid #e2e5e8;
    border-radius: 8px;
    padding: 1.5rem;
}

.bizzawp-cart-inquiry-wrap h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e3144;
    margin: 0 0 0.35rem;
    padding: 0;
    border: none;
    background: none;
}

.bizzawp-cart-inquiry-note {
    font-size: 0.82rem;
    color: #5a6978;
    margin: 0 0 1.1rem;
    line-height: 1.5;
}

.bizzawp-cart-inquiry-form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.bizzawp-cart-inquiry-form input[type="text"],
.bizzawp-cart-inquiry-form input[type="email"],
.bizzawp-cart-inquiry-form input[type="tel"],
.bizzawp-cart-inquiry-form textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid #dfe3e8;
    border-radius: 5px;
    font-size: 0.875rem;
    color: #1e3144;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
    margin: 0;
}

.bizzawp-cart-inquiry-form input:focus,
.bizzawp-cart-inquiry-form textarea:focus {
    outline: none;
    border-color: #bd872f;
    box-shadow: 0 0 0 3px rgba(189, 135, 47, 0.12);
}

.bizzawp-cart-submit {
    width: 100%;
    align-self: stretch;
    text-align: center;
    font-size: 0.95rem;
    padding: 13px;
}

.bizzawp-cart-inquiry-success {
    text-align: center;
    padding: 2rem 1rem;
    background: #f3faf6;
    border: 1px solid rgba(45, 122, 79, 0.25);
    border-radius: 8px;
    color: #1e3144;
    font-size: 0.9rem;
    line-height: 1.6;
}

.bizzawp-cart-inquiry-success strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.bizzawp-cart-inquiry-error {
    background: #fdf2f2;
    border: 1px solid rgba(192, 57, 43, 0.3);
    border-radius: 5px;
    padding: 10px 14px;
    font-size: 0.82rem;
    color: #c0392b;
    line-height: 1.5;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
    .bizzawp-field-row {
        grid-template-columns: 1fr;
    }
}
