/* ============================================================
   29. PHASE 3 — ENTERPRISE BUYER EXPERIENCE
   Compare, RFQ, Newsletter, Map, Certifications
   ============================================================ */

/* ---- Product Compare Buttons ---- */
.compare-btn {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
}
.compare-btn:hover { background: #f3f4f6; border-color: #9ca3af; }
.compare-btn.active { background: #d1fae5; border-color: #065f46; color: #065f46; }

/* ---- Compare Bar ---- */
.compare-bar {
    animation: slideUp .3s ease;
}
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* ---- Enhanced RFQ Form ---- */
.rfq-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}
.rfq-form input,
.rfq-form select,
.rfq-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color .2s;
}
.rfq-form input:focus,
.rfq-form select:focus,
.rfq-form textarea:focus {
    border-color: #2e7d32;
    outline: none;
    box-shadow: 0 0 0 3px rgba(46,125,50,.1);
}
.rfq-form textarea { resize: vertical; }

.rfq-result {
    animation: fadeIn .3s ease;
}

/* ---- Newsletter Widget ---- */
.newsletter-widget {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.1);
}
.newsletter-widget h4 {
    color: #fff;
    font-size: 15px;
}

/* ---- Export Map Section ---- */
.export-map-section {
    position: relative;
}
.export-map-section svg circle {
    cursor: pointer;
    transition: r .2s, opacity .2s;
}
.export-map-section svg circle:hover {
    r: 12;
    opacity: 1;
}

/* ---- Certifications Grid ---- */
.certifications-section {
    background: #f8fafc;
}
@media (max-width: 768px) {
    .certifications-section .container > div > div {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .export-map-section .container > div > div:last-child {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* ---- RFQ Section ---- */
.rfq-section {
    background: #fff;
}
.rfq-form .btn-gold-premium {
    background: linear-gradient(135deg, #c9a227, #f0d060, #c9a227);
    color: #1a472a;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}
.rfq-form .btn-gold-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201,162,39,.3);
}

/* ---- Buyer Favorites ---- */
.favorite-btn {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #d1d5db;
    transition: color .2s;
}
.favorite-btn.active { color: #ef4444; }

/* ---- Print Styles for Comparison ---- */
@media print {
    .compare-bar,
    .compare-btn,
    .newsletter-widget { display: none !important; }
    .export-map-section,
    .rfq-section { break-inside: avoid; }
}

/* ---- Admin Document Upload Grid ---- */
.doc-upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
