/**
 * Request a Quote Custom - Styles
 */

/* Cart Trigger Button in Header & Footer */
.brq-cart-trigger {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: #0d233a;
    color: #ffffff !important;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.25s ease;
    position: relative;
    vertical-align: middle !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
}

.brq-cart-trigger:hover {
    background: #1a3c61;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.brq-cart-trigger .brq-cart-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    flex-shrink: 0;
}

.brq-cart-trigger .brq-cart-text {
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1 !important;
}

.brq-cart-trigger .brq-badge,
.brq-badge.brq-cart-count,
#brq-header-count {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #e63946;
    color: #ffffff;
    font-size: 11px !important;
    font-weight: 700 !important;
    min-width: 20px !important;
    height: 20px !important;
    padding: 0 6px !important;
    border-radius: 12px !important;
    line-height: 1 !important;
    text-align: center !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
    margin: 0 0 0 2px !important;
    font-feature-settings: "tnum" !important;
    font-variant-numeric: tabular-nums !important;
    flex-shrink: 0;
}

/* Quote Add Button */
.brq-add-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #0d233a;
    color: #ffffff !important;
    border: 1px solid #0d233a;
    border-radius: 4px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.brq-add-button:hover {
    background: #204975;
    border-color: #204975;
    color: #ffffff !important;
}

.brq-add-button.brq-loading {
    opacity: 0.7;
    pointer-events: none;
}

.brq-add-button.brq-added {
    opacity: 0.88;
    transform: scale(0.98);
    transition: transform 0.15s ease, opacity 0.15s ease;
}

/* Toast Notification */
.brq-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #0d233a;
    color: #ffffff;
    padding: 14px 22px;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    z-index: 999999;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.brq-toast.brq-toast-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.brq-toast .brq-toast-view {
    color: #f4a261;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    margin-left: 8px;
}

/* Modal Popup Backdrop */
.brq-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 20, 30, 0.65);
    backdrop-filter: blur(3px);
    z-index: 999998;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.brq-modal-backdrop.brq-active {
    display: flex;
    opacity: 1;
}

/* Modal Container */
.brq-modal-container {
    background: #ffffff;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    animation: brqModalPop 0.3s ease-out;
}

@keyframes brqModalPop {
    from {
        transform: scale(0.92);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Modal Header */
.brq-modal-header {
    background: #0d233a;
    color: #ffffff;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brq-modal-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brq-modal-back-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.brq-modal-back-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #ffffff;
    transform: translateX(-3px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.brq-modal-back-btn svg {
    stroke: currentColor;
    display: block;
    width: 18px;
    height: 18px;
}

.brq-modal-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
}

.brq-modal-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.brq-modal-close:hover {
    opacity: 1;
}

/* Stepper Indicator */
.brq-stepper {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 12px 24px;
}

.brq-step-item {
    flex: 1;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #8c9ba5;
    text-transform: uppercase;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.brq-step-item.active {
    color: #0d233a;
}

.brq-step-item.completed {
    color: #2a9d8f;
}

.brq-step-circle {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    border-radius: 50% !important;
    background: #dee2e6;
    color: #495057;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: 1 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    font-variant-numeric: tabular-nums !important;
    font-feature-settings: "tnum" !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
}

.brq-step-item.active .brq-step-circle {
    background: #0d233a;
    color: #ffffff;
}

.brq-step-item.completed .brq-step-circle {
    background: #2a9d8f;
    color: #ffffff;
}

.brq-step-item.brq-step-clickable {
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
}

.brq-step-item.brq-step-clickable:hover {
    color: #0d233a;
}

.brq-step-item.brq-step-clickable:hover .brq-step-circle {
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brq-step-item.brq-step-disabled {
    cursor: not-allowed;
    opacity: 0.5;
    user-select: none;
}

/* Modal Body */
.brq-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* Step Views */
.brq-step-view {
    display: none;
}

.brq-step-view.active {
    display: block;
}

/* Products Table in Step 1 */
.brq-table {
    width: 100%;
    border-collapse: collapse;
}

.brq-table th {
    font-size: 12px;
    text-transform: uppercase;
    color: #6c757d;
    border-bottom: 2px solid #dee2e6;
    padding: 8px 6px;
    text-align: left;
}

.brq-table td {
    padding: 12px 6px;
    border-bottom: 1px solid #f1f3f5;
    vertical-align: middle;
}

.brq-item-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    background: #fafafa;
}

.brq-item-title {
    font-weight: 600;
    font-size: 14px;
    color: #212529;
    margin: 0 0 2px 0;
}

.brq-item-sku {
    font-size: 11px;
    color: #6c757d;
    margin: 0;
}

/* Quantity Stepper Controls */
.brq-qty-wrap {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ced4da;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    vertical-align: middle;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.brq-qty-wrap .brq-qty-input {
    width: 44px;
    height: 32px;
    padding: 0;
    text-align: center;
    border: none;
    border-left: 1px solid #e9ecef;
    border-right: 1px solid #e9ecef;
    border-radius: 0;
    font-size: 13px;
    font-weight: 600;
    color: #212529;
    box-shadow: none;
    -moz-appearance: textfield;
}

.brq-qty-wrap .brq-qty-input:focus {
    outline: none;
    background: #f8fafc;
}

.brq-qty-wrap .brq-qty-input::-webkit-outer-spin-button,
.brq-qty-wrap .brq-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.brq-qty-wrap .brq-qty-dec,
.brq-qty-wrap .brq-qty-inc {
    width: 28px;
    height: 32px;
    background: #f8f9fa;
    border: none;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    color: #495057;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
    user-select: none;
    padding: 0;
}

.brq-qty-wrap .brq-qty-dec:hover,
.brq-qty-wrap .brq-qty-inc:hover {
    background: #e9ecef;
    color: #212529;
}

.brq-qty-wrap .brq-qty-dec:active,
.brq-qty-wrap .brq-qty-inc:active {
    background: #dee2e6;
}

.brq-qty-input {
    width: 60px;
    padding: 4px 6px;
    text-align: center;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 13px;
}

.brq-item-remove {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 6px;
    color: #e53e3e;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.15s ease;
}

.brq-item-remove:hover {
    background: #e53e3e;
    border-color: #e53e3e;
    color: #ffffff;
    transform: scale(1.08);
}

.brq-item-remove:active {
    transform: scale(0.95);
}

.brq-empty-message {
    text-align: center;
    padding: 40px 16px;
    color: #6c757d;
}

.brq-empty-message p {
    margin-bottom: 16px;
}

/* Step 2 Form */
.brq-form-row {
    margin-bottom: 14px;
}

.brq-form-row label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #212529;
}

.brq-form-row label span.req {
    color: #e63946;
}

.brq-form-control {
    width: 100%;
    padding: 9px 12px;
    font-size: 14px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    transition: border-color 0.2s;
    background: #ffffff;
    box-sizing: border-box;
}

.brq-form-control:focus {
    border-color: #0d233a;
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 35, 58, 0.15);
}

.brq-form-control.brq-input-error {
    border-color: #e63946 !important;
    background-color: #fff8f8 !important;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.18) !important;
}

.brq-form-grid-2,
.brq-form-dynamic-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.brq-form-dynamic-grid .brq-col-full {
    grid-column: 1 / -1;
}

.brq-form-dynamic-grid .brq-col-half {
    grid-column: span 1;
}

@media (max-width: 576px) {
    .brq-form-grid-2,
    .brq-form-dynamic-grid {
        grid-template-columns: 1fr;
    }
    .brq-form-dynamic-grid .brq-col-half {
        grid-column: 1 / -1;
    }
}

/* Step 3 Success */
.brq-success-container {
    text-align: center;
    padding: 30px 16px;
}

.brq-success-icon {
    width: 64px;
    height: 64px;
    background: #2a9d8f;
    color: #ffffff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 18px;
    box-shadow: 0 8px 20px rgba(42, 157, 143, 0.3);
}

.brq-success-container h3 {
    font-size: 22px;
    color: #0d233a;
    margin-bottom: 8px;
    font-weight: 700;
}

.brq-success-container p {
    color: #495057;
    font-size: 14px;
    max-width: 480px;
    margin: 0 auto 20px auto;
}

.brq-quote-summary-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 16px;
    text-align: left;
    margin-bottom: 24px;
    font-size: 13px;
}

/* Modal Footer */
.brq-modal-footer {
    padding: 14px 24px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brq-footer-step {
    display: none !important;
    width: 100% !important;
    justify-content: space-between;
    align-items: center;
}

.brq-footer-step.active {
    display: flex !important;
}

.brq-footer-step.justify-content-center {
    justify-content: center !important;
}

.brq-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    transition: all 0.2s ease;
}

.brq-btn-primary {
    background: #0d233a;
    color: #ffffff !important;
}

.brq-btn-primary:hover {
    background: #1e456e;
    color: #ffffff !important;
}

.brq-btn-secondary {
    background: #e9ecef;
    color: #495057 !important;
}

.brq-btn-secondary:hover {
    background: #dee2e6;
    color: #212529 !important;
}

.brq-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Product Card in Grid */
.brq-product-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}

.brq-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.brq-product-card-thumb {
    width: 100%;
    height: 170px;
    object-fit: contain;
    margin-bottom: 12px;
    border-radius: 4px;
    background: #fafafa;
}

.brq-product-card-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #0d233a;
    line-height: 1.3;
}

.brq-product-card-sku {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 12px;
}

.brq-product-card-action {
    margin-top: auto;
}

/* ==========================================================================
   Navigation Menu Cart Item
   ========================================================================== */
.brq-menu-item-cart {
    display: inline-flex;
    align-items: center;
}

.brq-menu-item-cart .brq-nav-cart-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    cursor: pointer !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    padding: 8px 12px !important;
    transition: all 0.2s ease !important;
}

.brq-menu-item-cart .brq-cart-icon svg {
    vertical-align: -3px;
    display: inline-block;
}

.brq-menu-item-cart .brq-cart-count {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #2a9d8f;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    min-width: 20px !important;
    height: 20px !important;
    padding: 0 6px !important;
    border-radius: 12px !important;
    line-height: 1 !important;
    text-align: center !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
    margin-left: 3px !important;
    font-feature-settings: "tnum" !important;
    font-variant-numeric: tabular-nums !important;
    transition: transform 0.2s ease !important;
}

.brq-menu-item-cart .brq-nav-cart-link:hover .brq-cart-count {
    transform: scale(1.12);
}
