/* ================================
   QuickQuote Public Styles
   ================================ */

.qq-btn-glow {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 18px 48px !important;
    margin: 15px 0 !important;
    font-family: inherit !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    color: #1a3a1a !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
    background: linear-gradient(135deg, #a8f0a8 0%, #7ce07c 50%, #68d868 100%) !important;
    border: 2px solid rgba(60, 160, 60, 0.3) !important;
    border-radius: 8px !important;
    box-shadow: 0 0 12px rgba(120, 220, 120, 0.5), 0 0 28px rgba(100, 200, 100, 0.35), 0 0 48px rgba(80, 180, 80, 0.2), 0 4px 12px rgba(0, 0, 0, 0.12) !important;
    transition: all 0.3s ease !important;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    box-sizing: border-box;
}

.qq-btn-glow:hover {
    background: linear-gradient(135deg, #b8f5b8 0%, #8ae88a 50%, #78e078 100%) !important;
    color: #1a3a1a !important;
    text-decoration: none !important;
    box-shadow: 0 0 16px rgba(120, 220, 120, 0.7), 0 0 36px rgba(100, 200, 100, 0.5), 0 0 60px rgba(80, 180, 80, 0.3), 0 6px 18px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-2px) !important;
}

.qq-btn-glow:active { transform: translateY(0) !important; box-shadow: 0 0 8px rgba(120, 220, 120, 0.4), 0 0 20px rgba(100, 200, 100, 0.25), 0 2px 8px rgba(0, 0, 0, 0.1) !important; }
.qq-btn-glow svg { margin-right: 10px; flex-shrink: 0; }

.qq-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); z-index: 999999; display: none; align-items: center; justify-content: center;
}

.qq-modal-window {
    background: #fff; width: 560px; max-width: 90%; max-height: 90vh; border-radius: 8px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.qq-modal-header { background: #1d2327; color: #fff; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; }
.qq-header-title { font-size: 18px; font-weight: bold; }
.qq-close-btn { background: transparent; border: none; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; padding: 0; }
.qq-close-btn:hover { color: #ff4c4c; }

.qq-modal-body { padding: 20px; overflow-y: auto; flex: 1; }

.qq-form-group { margin-bottom: 15px; }
.qq-form-group label { display: block; font-weight: 600; margin-bottom: 5px; font-size: 14px; }
.qq-form-group input, .qq-form-group textarea { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; }

/* ================================
   NEW CUSTOM ADDRESS DROPDOWN UI
   ================================ */
.qq-address-group .qq-address-input-wrap {
    position: relative;
}

.qq-address-group #qq_address {
    padding-right: 36px;
}

.qq-address-pin {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: #7ce07c; pointer-events: none; display: flex; align-items: center;
}

.qq-address-hint {
    font-size: 12px; color: #666; margin: 5px 0 0 0; padding: 6px 10px; background: #f0f7f0; border: 1px solid #d4ecd4; border-radius: 4px; line-height: 1.4;
}

#qq_address.qq-address-confirmed {
    border-color: #68d868 !important; box-shadow: 0 0 0 3px rgba(120, 220, 120, 0.2) !important; background-color: #f0fff0 !important;
}

/* The exact UI styling for the new dropdown */
.qq-address-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    max-height: 220px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    z-index: 10000;
}

.qq-address-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    font-size: 14px;
    cursor: pointer;
    color: #1d2327;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s ease;
}

.qq-address-result-item:last-child {
    border-bottom: none;
}

.qq-address-result-item:hover {
    background: #f0f7f0;
}

.qq-address-icon {
    color: #888;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.qq-address-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.qq-address-loading,
.qq-address-no-results {
    padding: 14px 12px;
    font-size: 13px;
    color: #888;
    text-align: center;
}

/* ================================
   Hardcoded Radio Question Groups
   ================================ */
.qq-radio-group { margin-bottom: 18px; padding: 14px 16px; background: #f7f9fb; border: 1px solid #dde3ea; border-radius: 6px; }
.qq-radio-group-label { display: block; font-weight: 700; font-size: 14px; color: #1d2327; margin-bottom: 10px; }
.qq-radio-options { display: flex; flex-wrap: wrap; gap: 16px; }
.qq-radio-option { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 14px; font-weight: 500; color: #333; }
.qq-radio-option input[type="radio"] { width: auto; margin: 0; cursor: pointer; accent-color: #4a9; }
.qq-conditional-group { display: none; margin-top: 0; margin-bottom: 18px; padding: 14px 16px; background: #fef9ec; border: 1px solid #f0d78c; border-radius: 6px; animation: qqFadeSlide 0.3s ease; }
.qq-conditional-group.qq-visible { display: block; }

@keyframes qqFadeSlide { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

.qq-info-label { display: block; margin-top: 10px; padding: 10px 14px; background: #eaf4fb; border: 1px solid #b8d9f0; border-radius: 5px; font-size: 13px; line-height: 1.5; color: #1a3a5c; }
.qq-info-label strong { display: block; margin-bottom: 3px; font-size: 13px; color: #0d2e4d; }
.qq-radio-group.qq-radio-error { border-color: #dc3545; background: #fff5f5; }
.qq-radio-error-msg { display: none; color: #dc3545; font-size: 12px; font-weight: 600; margin-top: 6px; }
.qq-radio-group.qq-radio-error .qq-radio-error-msg { display: block; }
#qq-response-msg { margin-bottom: 15px; font-weight: bold; font-size: 14px; display: none; padding: 10px; border-radius: 4px; }
.qq-msg-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.qq-msg-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ================================
   Product Summary Section
   ================================ */
.qq-product-summary { background: #f0f7f0; border: 2px solid #b8e6b8; border-radius: 8px; padding: 16px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(60, 160, 60, 0.1); }
.qq-summary-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid #d4ecd4; }
.qq-summary-icon { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: linear-gradient(135deg, #a8f0a8 0%, #7ce07c 100%); border-radius: 6px; color: #1a3a1a; flex-shrink: 0; }
.qq-summary-icon svg { margin: 0; }
.qq-summary-title { font-size: 15px; font-weight: 700; color: #1a3a1a; text-transform: uppercase; letter-spacing: 0.5px; }
.qq-summary-content { padding: 0; }
.qq-summary-product-name { font-size: 16px; font-weight: 600; color: #1a1a1a; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px dashed #c8e0c8; }
.qq-summary-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: 14px; }
.qq-summary-row + .qq-summary-row { border-top: 1px dashed #d4ecd4; }
.qq-summary-label { color: #555; font-weight: 500; }
.qq-summary-value { color: #1a3a1a; font-weight: 600; text-align: right; background: #fff; padding: 2px 8px; border-radius: 4px; border: 1px solid #e4e7eb; }
.qq-summary-qty-row { margin-top: 10px; padding-top: 12px; border-top: 2px solid #b8e6b8 !important; background: #e8f5e8; margin: 10px -16px -16px -16px; padding: 12px 16px; border-radius: 0 0 6px 6px; }
.qq-summary-qty-label { color: #1a3a1a; font-weight: 600; font-size: 15px; }

.qq-qty-stepper { display: inline-flex; align-items: center; gap: 0; border: 2px solid #7ce07c; border-radius: 6px; overflow: hidden; background: #fff; }
.qq-qty-btn { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: linear-gradient(135deg, #a8f0a8 0%, #7ce07c 100%); border: none; cursor: pointer; font-size: 20px; font-weight: 700; color: #1a3a1a; line-height: 1; transition: background 0.2s ease; padding: 0; -webkit-tap-highlight-color: transparent; user-select: none; }
.qq-qty-btn:hover { background: linear-gradient(135deg, #b8f5b8 0%, #8ae88a 100%); }
.qq-qty-btn:active { background: linear-gradient(135deg, #90e090 0%, #68d068 100%); }
.qq-qty-btn.qq-qty-disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
.qq-qty-display { display: flex; align-items: center; justify-content: center; min-width: 44px; height: 36px; font-weight: 700; font-size: 18px; color: #1a3a1a; background: #fff; border-left: 1px solid #d4ecd4; border-right: 1px solid #d4ecd4; padding: 0 4px; text-align: center; }

.qq-success-countdown { display: block; margin-top: 6px; font-size: 12px; font-weight: 400; opacity: 0.75; }

/* ================================
   ADD MORE PRODUCTS PANEL
   ================================ */
.qq-addon-panel { margin-bottom: 20px; border: 2px solid #dde3ea; border-radius: 8px; overflow: hidden; transition: border-color 0.2s ease; }
.qq-addon-panel.qq-addon-has-items { border-color: #b8e6b8; }
.qq-addon-toggle { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; background: #f7f9fb; cursor: pointer; user-select: none; gap: 10px; border: none; width: 100%; text-align: left; transition: background 0.2s ease; -webkit-tap-highlight-color: transparent; }
.qq-addon-toggle:hover { background: #eef2f7; }
.qq-addon-toggle-left { display: flex; align-items: center; gap: 10px; }
.qq-addon-toggle-icon { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; background: linear-gradient(135deg, #a8f0a8 0%, #7ce07c 100%); border-radius: 5px; color: #1a3a1a; flex-shrink: 0; }
.qq-addon-toggle-icon svg { margin: 0; }
.qq-addon-toggle-label { font-size: 14px; font-weight: 700; color: #1d2327; }
.qq-addon-toggle-sub { font-size: 12px; font-weight: 400; color: #666; margin-top: 1px; }
.qq-addon-badge { display: none; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; background: #1a3a1a; color: #a8f0a8; font-size: 12px; font-weight: 700; border-radius: 11px; margin-left: 6px; }
.qq-addon-badge.qq-badge-visible { display: inline-flex; }
.qq-addon-chevron { display: flex; align-items: center; color: #888; transition: transform 0.25s ease; flex-shrink: 0; }
.qq-addon-panel.qq-addon-open .qq-addon-chevron { transform: rotate(180deg); }
.qq-addon-body { display: none; padding: 16px; background: #fff; border-top: 1px solid #e5e9ee; animation: qqFadeSlide 0.25s ease; }
.qq-addon-panel.qq-addon-open .qq-addon-body { display: block; }

.qq-addon-search-wrap { position: relative; margin-bottom: 12px; }
.qq-addon-search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: #aaa; pointer-events: none; display: flex; align-items: center; }
.qq-addon-search { width: 100%; padding: 9px 10px 9px 34px; border: 1px solid #ccc; border-radius: 6px; font-size: 14px; box-sizing: border-box; outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.qq-addon-search:focus { border-color: #7ce07c; box-shadow: 0 0 0 3px rgba(120, 220, 120, 0.2); }

.qq-addon-results { max-height: 220px; overflow-y: auto; border: 1px solid #e5e9ee; border-radius: 6px; margin-bottom: 14px; background: #fafafa; display: none; }
.qq-addon-results.qq-results-visible { display: block; }
.qq-addon-result-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; border-bottom: 1px solid #eee; transition: background 0.15s ease; }
.qq-addon-result-item:last-child { border-bottom: none; }
.qq-addon-result-item:hover { background: #f0f7f0; }

.qq-addon-result-thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; border: 1px solid #e5e9ee; flex-shrink: 0; background: #f0f0f0; }
.qq-addon-result-thumb-placeholder { width: 40px; height: 40px; border-radius: 4px; border: 1px solid #e5e9ee; flex-shrink: 0; background: #f0f0f0; display: flex; align-items: center; justify-content: center; color: #ccc; }
.qq-addon-result-info { flex: 1; min-width: 0; }
.qq-addon-result-name { font-size: 13px; font-weight: 600; color: #1d2327; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qq-addon-result-sku { font-size: 11px; color: #888; margin-top: 2px; }
.qq-addon-result-add { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; background: linear-gradient(135deg, #a8f0a8 0%, #7ce07c 100%); border: none; border-radius: 5px; color: #1a3a1a; font-size: 20px; font-weight: 700; cursor: pointer; flex-shrink: 0; line-height: 1; transition: background 0.15s ease; padding: 0; }
.qq-addon-result-add:hover { background: linear-gradient(135deg, #b8f5b8 0%, #8ae88a 100%); }

.qq-addon-no-results, .qq-addon-loading { padding: 14px 12px; font-size: 13px; color: #888; text-align: center; }
.qq-addon-items-list { margin-top: 4px; }
.qq-addon-item { background: #f0f7f0; border: 1px solid #b8e6b8; border-radius: 7px; padding: 12px 14px; margin-bottom: 10px; position: relative; animation: qqFadeSlide 0.2s ease; }
.qq-addon-item:last-child { margin-bottom: 0; }
.qq-addon-item-header { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.qq-addon-item-thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 5px; border: 1px solid #d4ecd4; flex-shrink: 0; background: #fff; }
.qq-addon-item-thumb-placeholder { width: 44px; height: 44px; border-radius: 5px; border: 1px solid #d4ecd4; flex-shrink: 0; background: #e8f5e8; display: flex; align-items: center; justify-content: center; color: #b8e6b8; }
.qq-addon-item-info { flex: 1; min-width: 0; }
.qq-addon-item-name { font-size: 14px; font-weight: 700; color: #1a3a1a; margin-bottom: 3px; line-height: 1.3; }
.qq-addon-item-sku { font-size: 11px; color: #777; font-family: monospace; }
.qq-addon-item-remove { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; background: transparent; border: 1px solid #f5c6cb; border-radius: 4px; color: #dc3545; font-size: 16px; line-height: 1; cursor: pointer; flex-shrink: 0; padding: 0; transition: background 0.15s ease, color 0.15s ease; }
.qq-addon-item-remove:hover { background: #dc3545; color: #fff; border-color: #dc3545; }

.qq-addon-item-variations { margin-bottom: 10px; }
.qq-addon-variation-row { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.qq-addon-variation-row:last-child { margin-bottom: 0; }
.qq-addon-variation-label { font-size: 12px; font-weight: 600; color: #555; min-width: 70px; flex-shrink: 0; }
.qq-addon-variation-select { flex: 1; padding: 6px 8px; border: 1px solid #b8e6b8; border-radius: 5px; font-size: 13px; color: #1a3a1a; background: #fff; outline: none; transition: border-color 0.2s ease; box-sizing: border-box; }
.qq-addon-variation-select:focus { border-color: #68d868; box-shadow: 0 0 0 2px rgba(120, 220, 120, 0.2); }

.qq-addon-item-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px dashed #c8e0c8; }
.qq-addon-item-qty-label { font-size: 13px; font-weight: 600; color: #1a3a1a; }
.qq-addon-qty-stepper { display: inline-flex; align-items: center; border: 2px solid #7ce07c; border-radius: 5px; overflow: hidden; background: #fff; }
.qq-addon-qty-btn { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; background: linear-gradient(135deg, #a8f0a8 0%, #7ce07c 100%); border: none; cursor: pointer; font-size: 18px; font-weight: 700; color: #1a3a1a; line-height: 1; transition: background 0.2s ease; padding: 0; -webkit-tap-highlight-color: transparent; user-select: none; }
.qq-addon-qty-btn:hover { background: linear-gradient(135deg, #b8f5b8 0%, #8ae88a 100%); }
.qq-addon-qty-btn:active { background: linear-gradient(135deg, #90e090 0%, #68d068 100%); }
.qq-addon-qty-btn.qq-qty-disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
.qq-addon-qty-display { display: flex; align-items: center; justify-content: center; min-width: 36px; height: 30px; font-weight: 700; font-size: 15px; color: #1a3a1a; background: #fff; border-left: 1px solid #d4ecd4; border-right: 1px solid #d4ecd4; padding: 0 4px; text-align: center; }

/* ================================
   Slide To Submit
   ================================ */
.qq-slide-submit-container { position: relative; width: 100%; height: 50px; background: #eee; border: 1px solid #ccc; border-radius: 4px; margin-top: 20px; overflow: hidden; user-select: none; box-sizing: border-box; }
.qq-slide-text { position: absolute; width: 100%; line-height: 48px; text-align: center; color: #555; font-weight: bold; z-index: 1; pointer-events: none; }
.qq-slider-fill { position: absolute; top: 0; left: 0; height: 100%; width: 0; z-index: 2; pointer-events: none; background: linear-gradient(135deg, #a8f0a8 0%, #7ce07c 50%, #68d868 100%); opacity: 0.8; }
.qq-slider-thumb { position: absolute; top: 0; left: 0; width: 50px; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: bold; cursor: pointer; z-index: 3; box-sizing: border-box; border-radius: 4px 0 0 4px; touch-action: none; background: linear-gradient(135deg, #a8f0a8 0%, #7ce07c 50%, #68d868 100%); color: #1a3a1a; }

/* ================================
   Mobile Modify
   ================================ */
@media (max-width: 768px) {
    .qq-modal-window { width: 100%; max-width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
    .qq-btn-glow { padding: 16px 32px !important; font-size: 16px !important; }
    .qq-addon-variation-row { flex-direction: column; align-items: flex-start; gap: 4px; }
    .qq-addon-variation-label { min-width: unset; }
    .qq-addon-variation-select { width: 100%; }
}
