/* VIP Bulk Pricing — vbp.css */

/* ═══════════════════════════
   BULK PRICING TABLE
═══════════════════════════ */
.vbp-wrap {
    margin: 24px 0;
    border: 1.5px solid #e8e0f5;
    border-radius: 14px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    box-shadow: 0 4px 18px rgba(77,20,140,0.08);
}
.vbp-wrap * { box-sizing: border-box; }

.vbp-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(120deg, #4D148C, #6b1fbe);
    color: #fff;
}
.vbp-header-icon { font-size: 22px; flex-shrink: 0; }
.vbp-header strong { display: block; font-size: 15px; font-weight: 700; }
.vbp-header span   { display: block; font-size: 12px; opacity: 0.8; margin-top: 1px; }

/* Table */
.vbp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #fff;
}
.vbp-table thead tr {
    background: #f8f5ff;
    border-bottom: 1.5px solid #e8e0f5;
}
.vbp-table th {
    padding: 10px 14px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.vbp-table td {
    padding: 11px 14px;
    border-bottom: 1px solid #f2f0f8;
    vertical-align: middle;
}
.vbp-table tr:last-child td { border-bottom: none; }

.vbp-table tr.vbp-row-base td { background: #fafafa; color: #999; }

.vbp-table tr.vbp-row-pallet {
    background: #fffcf5;
}
.vbp-table tr.vbp-row-best {
    background: linear-gradient(to right, #fffbf0, #fff6e8);
    border-top: 2px solid #FF6200 !important;
    border-bottom: 2px solid #FF6200 !important;
}
.vbp-table tr.vbp-row-best td { border-bottom: none !important; }
.vbp-table tr.vbp-row-best .vbp-qty-label { font-weight: 800; color: #111; }
.vbp-table tr.vbp-row-best .vbp-price-num { font-size: 16px; font-weight: 800; color: #4D148C; }

.vbp-qty { font-weight: 600; color: #111; }
.vbp-best-tag {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    background: #FF6200;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
}
.vbp-price-each { font-weight: 700; color: #111; }
.vbp-disc-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 7px;
    background: #edf7ee;
    color: #1a7a3e;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    vertical-align: middle;
}
.vbp-total  { color: #444; font-weight: 600; }
.vbp-save-amount {
    display: inline-block;
    padding: 3px 9px;
    background: #fff0f5;
    color: #c0392b;
    font-size: 12px;
    font-weight: 700;
    border-radius: 10px;
    white-space: nowrap;
}

/* CTA row */
.vbp-cta-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: #f8f5ff;
    border-top: 1px solid #e8e0f5;
    flex-wrap: wrap;
}
.vbp-quote-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    background: #4D148C;
    color: #fff;
    border: none;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, transform 0.12s;
    box-shadow: 0 4px 14px rgba(77,20,140,0.28);
    white-space: nowrap;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}
.vbp-quote-btn:hover { background: #3b0e6e; transform: translateY(-1px); }
.vbp-cta-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
}
.vbp-cta-notes span {
    font-size: 12px;
    color: #777;
    white-space: nowrap;
}
.vbp-note-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 10px;
    font-weight: 700;
    border-radius: 10px;
    vertical-align: middle;
}
.vbp-no-save { color: #ccc; }

/* ═══════════════════════════
   QUOTE POPUP
═══════════════════════════ */
#vbp-quote-overlay {
    position: fixed;
    inset: 0;
    z-index: 999998;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: vbp-fade 0.2s ease;
}
#vbp-quote-overlay[hidden] { display: none !important; }
@keyframes vbp-fade { from { opacity:0 } to { opacity:1 } }

#vbp-quote-modal {
    position: relative;
    background: #fff;
    border-radius: 18px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 28px 72px rgba(0,0,0,0.4);
    animation: vbp-up 0.28s cubic-bezier(0.34,1.1,0.64,1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
@keyframes vbp-up {
    from { transform: translateY(24px) scale(0.97); opacity:0; }
    to   { transform: translateY(0) scale(1); opacity:1; }
}

#vbp-quote-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.15s;
}
#vbp-quote-close:hover { background: #000; }

#vbp-quote-inner { padding: 32px 28px 28px; }

.vbp-modal-header { text-align: center; margin-bottom: 24px; }
.vbp-modal-icon   { font-size: 36px; margin-bottom: 10px; }
.vbp-modal-header h3 { font-size: 20px; font-weight: 800; color: #111; margin: 0 0 7px; }
.vbp-modal-header p  { font-size: 14px; color: #888; margin: 0; line-height: 1.5; }

/* Form styles */
#vbp-quote-form, .vbp-contractor-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.vbp-form-row { display: flex; flex-direction: column; gap: 5px; }
.vbp-form-half { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vbp-form-row label { font-size: 11px; font-weight: 700; color: #666; text-transform: uppercase; letter-spacing: 0.7px; }

.vbp-form-row input,
.vbp-form-row select,
.vbp-form-row textarea,
.vbp-field input,
.vbp-field select,
.vbp-field textarea {
    padding: 11px 13px;
    border: 1.5px solid #e0e0e0;
    border-radius: 9px;
    font-size: 14px;
    font-family: inherit;
    color: #111;
    background: #fafafa;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
}
.vbp-form-row select,
.vbp-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 34px;
    cursor: pointer;
}
.vbp-form-row input:focus,
.vbp-form-row select:focus,
.vbp-form-row textarea:focus,
.vbp-field input:focus,
.vbp-field select:focus,
.vbp-field textarea:focus {
    border-color: #4D148C;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(77,20,140,0.09);
}
.vbp-form-row textarea,
.vbp-field textarea { resize: vertical; min-height: 80px; }

.vbp-submit-btn,
.vbp-contractor-submit {
    padding: 13px 28px;
    background: #4D148C;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, transform 0.12s;
    box-shadow: 0 4px 16px rgba(77,20,140,0.3);
    margin-top: 4px;
    -webkit-tap-highlight-color: transparent;
}
.vbp-submit-btn:hover,
.vbp-contractor-submit:hover { background: #3b0e6e; transform: translateY(-1px); }

/* Success states */
#vbp-quote-success {
    text-align: center;
    padding: 20px 0 10px;
}
.vbp-success-icon { font-size: 44px; margin-bottom: 12px; }
#vbp-quote-success h3 { font-size: 20px; font-weight: 800; color: #111; margin: 0 0 10px; }
#vbp-quote-success p  { font-size: 14px; color: #555; line-height: 1.6; margin: 0 0 8px; }
.vbp-success-note { font-size: 13px !important; color: #888 !important; }
#vbp-success-email { font-weight: 700; color: #4D148C; }

/* ═══════════════════════════
   CONTRACTOR APPLICATION
═══════════════════════════ */
.vbp-contractor-wrap {
    max-width: 760px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.vbp-contractor-wrap * { box-sizing: border-box; }

.vbp-contractor-header {
    text-align: center;
    padding: 36px 28px 28px;
    background: linear-gradient(135deg, #4D148C, #7b22e0);
    border-radius: 16px;
    margin-bottom: 28px;
    color: #fff;
}
.vbp-contractor-badge {
    display: inline-block;
    padding: 5px 16px;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}
.vbp-contractor-header h2 { font-size: 26px; font-weight: 900; margin: 0 0 10px; letter-spacing: -0.4px; }
.vbp-contractor-header p  { font-size: 15px; opacity: 0.85; margin: 0 0 20px; line-height: 1.6; max-width: 520px; margin-left: auto; margin-right: auto; }

.vbp-perks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-width: 600px;
    margin: 0 auto;
}
.vbp-perk {
    font-size: 13px;
    background: rgba(255,255,255,0.13);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 8px 12px;
    color: #fff;
    font-weight: 500;
    text-align: left;
}

.vbp-contractor-form {
    background: #fff;
    border: 1.5px solid #ece8f5;
    border-radius: 16px;
    padding: 28px;
    gap: 16px !important;
}

.vbp-section-title {
    font-size: 12px;
    font-weight: 700;
    color: #4D148C;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 8px;
    border-bottom: 1.5px solid #ece8f5;
    margin-bottom: 4px;
}

.vbp-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.vbp-field  { display: flex; flex-direction: column; gap: 5px; }
.vbp-field label { font-size: 11px; font-weight: 700; color: #666; text-transform: uppercase; letter-spacing: 0.7px; }

.vbp-form-note {
    font-size: 12px;
    color: #aaa;
    text-align: center;
    margin: 6px 0 0;
    line-height: 1.5;
}

.vbp-success-box {
    text-align: center;
    padding: 48px 28px;
    background: #f8fdf9;
    border: 1.5px solid #c0e8cc;
    border-radius: 16px;
}
.vbp-success-big-icon { font-size: 52px; margin-bottom: 16px; }
.vbp-success-box h3   { font-size: 22px; font-weight: 800; color: #111; margin: 0 0 12px; }
.vbp-success-box p    { font-size: 15px; color: #555; line-height: 1.65; margin: 0 0 8px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ═══ MOBILE ═══ */
@media (max-width: 600px) {
    .vbp-table th:nth-child(3),
    .vbp-table td:nth-child(3) { display: none; }
    .vbp-cta-row  { flex-direction: column; align-items: stretch; }
    .vbp-quote-btn { text-align: center; justify-content: center; }
    #vbp-quote-inner { padding: 28px 18px 22px; }
    .vbp-form-half { grid-template-columns: 1fr; }
    .vbp-perks { grid-template-columns: 1fr 1fr; }
    .vbp-grid-2 { grid-template-columns: 1fr; }
    .vbp-contractor-form { padding: 20px 16px; }
    .vbp-contractor-header { padding: 28px 18px 22px; border-radius: 12px; }
    .vbp-contractor-header h2 { font-size: 22px; }
    .vbp-table { font-size: 13px; }
    .vbp-table th, .vbp-table td { padding: 9px 10px; }
}
