/* ===================================================
   BWI — Public Styles
   Booqable WooCommerce Integration
=================================================== */

/* Add to Quote button */
.bwi-add-to-quote-wrap {
    margin: 16px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.bwi-qty-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.bwi-qty-btn {
    background: #f5f5f5;
    border: none;
    padding: 8px 14px;
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
}
.bwi-qty-btn:hover { background: #e0e0e0; }

.bwi-qty-input {
    width: 50px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    padding: 8px 0;
    font-size: 15px;
    -moz-appearance: textfield;
}
.bwi-qty-input::-webkit-outer-spin-button,
.bwi-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.bwi-add-to-quote-btn {
    background: #2c2c2c !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 22px !important;
    border-radius: 4px !important;
    font-size: 15px !important;
    cursor: pointer !important;
    transition: background 0.2s;
}
.bwi-add-to-quote-btn:hover { background: #444 !important; }

.bwi-quote-feedback {
    font-size: 13px;
    color: green;
}

/* ─── Quote Page ──────────────────────────────── */

.bwi-quote-page { max-width: 900px; margin: 0 auto; padding: 20px 0; }

.bwi-quote-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
.bwi-quote-table th,
.bwi-quote-table td {
    border-bottom: 1px solid #eee;
    padding: 12px 10px;
    text-align: left;
    vertical-align: middle;
}
.bwi-quote-table th { font-weight: 600; background: #fafafa; }
.bwi-product-col img { border-radius: 4px; }

.bwi-remove-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
}
.bwi-remove-btn:hover { color: #e00; }

.bwi-quote-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

/* ─── Buttons ─────────────────────────────────── */

.bwi-btn {
    display: inline-block;
    padding: 11px 24px;
    border-radius: 5px;
    font-size: 15px;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: 0.2s;
}
.bwi-btn-primary  { background: #2c2c2c; color: #fff; }
.bwi-btn-primary:hover  { background: #444; color: #fff; }
.bwi-btn-secondary { background: #eee; color: #333; }
.bwi-btn-secondary:hover { background: #ddd; }

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

.bwi-form-wrap { max-width: 680px; margin: 0 auto; padding: 20px 0; }

.bwi-steps {
    display: flex;
    gap: 0;
    margin-bottom: 30px;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}
.bwi-step {
    flex: 1;
    text-align: center;
    padding: 12px;
    font-size: 13px;
    font-weight: 500;
    color: #999;
    background: #f9f9f9;
    border-right: 1px solid #ddd;
}
.bwi-step:last-child { border-right: none; }
.bwi-step.active { background: #2c2c2c; color: #fff; }

.bwi-field-group { margin-bottom: 18px; }
.bwi-field-group label { display: block; margin-bottom: 5px; font-weight: 500; font-size: 14px; }
.bwi-field-group input[type="text"],
.bwi-field-group input[type="email"],
.bwi-field-group input[type="tel"],
.bwi-field-group input[type="date"],
.bwi-field-group select,
.bwi-field-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.15s;
}
.bwi-field-group input:focus,
.bwi-field-group select:focus,
.bwi-field-group textarea:focus {
    outline: none;
    border-color: #2c2c2c;
}

.bwi-field-row { display: flex; gap: 16px; }
.bwi-field-row .bwi-field-group { flex: 1; }

.req { color: #e00; }

.bwi-form-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

/* ─── Review section ──────────────────────────── */

.bwi-review-section {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 14px 18px;
    margin-bottom: 14px;
}
.bwi-review-section h4 { margin: 0 0 6px; font-size: 14px; }
.bwi-review-section p,
.bwi-review-section ul { margin: 0; font-size: 14px; color: #444; }
.bwi-review-section ul { padding-left: 18px; }

/* ─── Notices ─────────────────────────────────── */

.bwi-notice {
    padding: 12px 16px;
    border-radius: 5px;
    margin-bottom: 16px;
    font-size: 14px;
}
.bwi-notice-error { background: #fff3f3; border: 1px solid #f5c6c6; color: #c00; }

/* ─── Success box ─────────────────────────────── */

.bwi-success-box {
    text-align: center;
    padding: 40px 20px;
    background: #f0fff4;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
}
.bwi-success-box h2 { color: #2d6a4f; }
