/* =============================================================================
   BLADE FINDER – PREMIUM [blade_result] STYLES (v7.7)
   Theme: Glassmorphism / Branding: Red, Black, White
   Layout: 30% Sidebar Table / 70% Main Card
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bf-red: #e13838;
    --bf-red-glow: rgba(225, 56, 56, 0.4);
    --bf-glass-bg: rgba(15, 15, 15, 0.7);
    --bf-glass-border: rgba(255, 255, 255, 0.1);
    --bf-panel-bg: rgba(0, 0, 0, 0.4);
}

.bf-result-container {
    font-family: 'Outfit', sans-serif;
    width: calc(100% - 40px);
    margin: 40px auto;
    color: #ffffff;
    max-width: 1800px;
}

@media (max-width: 1200px) {
    .bf-result-container { width: 95%; margin: 30px auto; }
}

.bf-split-wrapper {
    display: grid;
    grid-template-columns: 35% 1fr;
    gap: 30px;
    align-items: start;
}

/* ── SIDEBAR TABLE (30%) ─────────────────────────────────────────────────── */
.bf-sidebar-table {
    position: sticky;
    top: 20px;
}

.bf-glass-panel {
    background: var(--bf-glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--bf-glass-border);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.bf-glass-panel h5 {
    font-size: 15px;
    font-weight: 700;
    text-transform: capitalize;
    letter-spacing: -0.01em;
    color: var(--bf-red);
    margin: 0 0 20px;
    line-height: 1.3;
    border-left: 3px solid var(--bf-red);
    padding-left: 12px;
}

.bf-table-scroll {
    max-height: 500px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--bf-red) transparent;
}

.bf-sidebar-specs-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.bf-sidebar-specs-table th {
    font-size: 13px; /* Increased from 10px */
    text-transform: uppercase;
    color: #888;
    text-align: left;
    padding: 0 10px 8px;
    font-weight: 700;
}

.bf-sidebar-specs-table td {
    padding: 12px 10px;
    background: rgba(255,255,255,0.03);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.bf-sidebar-specs-table td:first-child { border-radius: 6px 0 0 6px; }
.bf-sidebar-specs-table td:last-child { border-radius: 0 6px 6px 0; }

.bf-spec-row {
    cursor: pointer;
}

.bf-spec-row:hover td {
    background: rgba(255,255,255,0.08);
    color: var(--bf-red);
}

.bf-spec-row.bf-row-active td {
    background: var(--bf-red);
    color: #fff;
    font-weight: 700;
}

/* ── MAIN RESULT CARD (70%) ─────────────────────────────────────────────── */
.bf-main-result {
    flex: 1;
}

.bf-glass-card {
    background: var(--bf-glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--bf-glass-border);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

.bf-glass-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: var(--bf-red);
    filter: blur(80px);
    opacity: 0.15;
    z-index: 0;
}

.bf-card-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.bf-card-image img {
    max-width: 180px;
    max-height: 180px;
    border-radius: 10px;
    background: rgba(0,0,0,0.5);
    padding: 10px;
    border: 1px solid rgba(255,255,255,0.05);
}

.bf-card-title-section {
    flex: 1;
}

.bf-premium-badge {
    background: rgba(225, 56, 56, 0.15);
    color: var(--bf-red);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 12px;
}

.bf-card-title {
    margin: 0 0 8px;
    font-size: 26px; /* Reduced as requested */
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.bf-card-subtitle {
    margin: 0;
    color: #888;
    font-size: 14px;
}

/* ── PREMIUM SELECTORS ────────────────────────────────────────────────────── */
.bf-premium-selectors {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.bf-spec-item label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.bf-fancy-select {
    position: relative;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    transition: all 0.3s;
}

.bf-fancy-select:hover, .bf-fancy-select.bf-active {
    border-color: var(--bf-red);
    box-shadow: 0 0 15px var(--bf-red-glow);
}

.bf-spec-selector {
    width: 100%;
    background: transparent;
    color: #fff;
    border: none;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    appearance: none;
}

.bf-spec-selector option {
    background: #ffffff !important;
    color: #000000 !important;
    padding: 10px;
}

/* ── FOOTER ACTIONS ───────────────────────────────────────────────────────── */
.bf-premium-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: relative;
    z-index: 1;
}

.bf-price-display .bf-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 4px;
}

.bf-price-display .bf-value {
    font-size: 38px;
    font-weight: 800;
    color: #fff; /* Static white for prices */
}

.bf-value.bf-poa-active {
    color: var(--bf-red) !important;
    text-shadow: 0 0 15px var(--bf-red-glow);
    font-size: 20px; /* Reduced from 24px */
}

#bf-current-price:contains("Request") {
    color: var(--bf-red);
    text-shadow: 0 0 10px var(--bf-red-glow);
}

/* Specific visibility for POA */
.bf-value:empty::after, .bf-value:contains("Request")::after {
    color: var(--bf-red);
}

.bf-premium-btn {
    background: var(--bf-red);
    color: #fff;
    border: none;
    padding: 16px 36px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(225,56,56,0.3);
    position: relative;
    z-index: 10;
}

.bf-premium-btn:hover {
    transform: translateY(-2px);
    background: #ff4d4d;
    box-shadow: 0 15px 30px rgba(225,56,56,0.5);
}

/* ── MODAL & FORMS ────────────────────────────────────────────────────────── */
.bf-quote-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.bf-glass-modal {
    background: #0a0a0a;
    border: 1px solid var(--bf-red);
    width: 580px;
    max-width: 92%;
    max-height: 90vh;           /* never taller than viewport */
    max-height: 90dvh;          /* dynamic viewport fallback */
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;     /* header stays fixed, form scrolls */
}

.bf-premium-form {
    overflow-y: auto;           /* internal scroll only */
    -webkit-overflow-scrolling: touch;
    padding: 30px;             /* desktop padding */
}

.bf-modal-header {
    background: rgba(225,56,56,0.1);
    padding: 24px;
    display: flex;
    justify-content: space-between;
}

.bf-modal-summary {
    padding: 10px 24px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}



.bf-input-wrap label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
    display: block;
}

.bf-required {
    color: var(--bf-red);
    margin-left: 2px;
}

.bf-input-wrap input,
.bf-input-wrap textarea {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 12px 14px;
    border-radius: 6px;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.bf-input-wrap input:focus,
.bf-input-wrap textarea:focus {
    border-color: var(--bf-red);
    box-shadow: 0 0 0 3px rgba(225,56,56,0.12);
}

/* ── FORM GRID ─────────────────────────────────────────────────────────────── */
.bf-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
    row-gap: 22px;
    margin-bottom: 24px;
}

.bf-input-wrap.full-width {
    grid-column: 1 / -1;
}

/* ── CHECKBOX ──────────────────────────────────────────────────────────────── */
.bf-checkbox-wrap {
    margin-top: 2px;
}

.bf-checkbox-label {
    display: flex;
    align-items: center;     /* vertically centres box with first text line */
    gap: 12px;
    cursor: pointer;
    text-transform: none !important;
    font-size: 13px !important;
    color: #aaa !important;
    letter-spacing: 0 !important;
    margin-bottom: 0 !important;
    user-select: none;
}

/* Completely remove native checkbox from layout */
.bf-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    pointer-events: none;
}

.bf-checkbox-box {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.25);
    border-radius: 5px;
    background: rgba(255,255,255,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
}

.bf-checkbox-label input[type="checkbox"]:checked ~ .bf-checkbox-box,
.bf-checkbox-label input[type="checkbox"]:checked + .bf-checkbox-box {
    background: var(--bf-red);
    border-color: var(--bf-red);
}

.bf-checkbox-label input[type="checkbox"]:checked ~ .bf-checkbox-box::after,
.bf-checkbox-label input[type="checkbox"]:checked + .bf-checkbox-box::after {
    content: '';
    display: block;
    width: 5px;
    height: 10px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translateY(-1px);
}

.bf-checkbox-text {
    line-height: 1.5;
    font-size: 13px;
    color: #aaa;
}

.bf-submit-btn {
    background: var(--bf-red);
    width: 100%;
    padding: 14px;
    border: none;
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 6px;
    cursor: pointer;
}

/* ── RESPONSIVE ─────────────────────────────────────────────────────────────── */
@media (max-width: 992px) {
    .bf-split-wrapper {
        grid-template-columns: 1fr;
    }
    .bf-sidebar-table {
        position: static;
        order: 2;
    }
    .bf-main-result {
        order: 1;
    }
}

@media (max-width: 768px) {
    /* Quote form → single column on tablet & mobile */
    .bf-form-grid {
        grid-template-columns: 1fr;
    }
    .bf-input-wrap.full-width {
        grid-column: 1;
    }
}

@media (max-width: 600px) {
    /* ─ Page layout ───────────────────────────────── */
    .bf-premium-selectors   { grid-template-columns: 1fr; }
    .bf-card-header         { flex-direction: column; align-items: flex-start; text-align: left; }
    .bf-premium-footer      { flex-direction: column; align-items: flex-start; gap: 20px; }
    .bf-premium-btn         { width: 100%; justify-content: center; }

    /* ─ Modal overlay: pin to top so content isn't pushed off-screen ── */
    .bf-quote-overlay {
        align-items: flex-start;
        padding: 12px 10px;
        overflow-y: auto;
    }

    /* ─ Modal shell ────────────────────────────────── */
    .bf-glass-modal {
        max-width: 100%;
        width: 100%;
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
        border-radius: 10px;
    }

    /* ─ Compact header ────────────────────────────── */
    .bf-modal-header {
        padding: 14px 16px;
    }
    .bf-modal-header h3 {
        font-size: 16px;
    }

    /* ─ Compact summary bar ───────────────────────── */
    .bf-modal-summary {
        padding: 8px 16px;
    }
    .bf-summary-box strong {
        font-size: 13px;
    }
    .bf-summary-box span {
        font-size: 12px;
    }

    /* ─ Compact form ──────────────────────────────── */
    .bf-premium-form {
        padding: 14px 16px;
    }
    .bf-form-grid {
        row-gap: 14px;
        margin-bottom: 14px;
    }
    .bf-input-wrap label {
        font-size: 10px;
        margin-bottom: 6px;
    }
    .bf-input-wrap input,
    .bf-input-wrap textarea {
        padding: 10px 12px;
        font-size: 14px;
    }
    .bf-input-wrap textarea {
        min-height: 60px;
        max-height: 80px;
    }
    .bf-submit-btn {
        padding: 12px;
        font-size: 13px;
    }
    .bf-form-actions {
        margin-top: 6px;
    }
}
