/* ═══════════════════════════════════════════
   Remco BOQ Upload Page Toggles & Styles v1.0
   ═══════════════════════════════════════════ */
.remco-boq-page {
    background: #f5f5f0;
    font-family: 'Cairo', 'Tajawal', sans-serif;
}

.remco-boq-page .ast-below-header,
.remco-boq-page .site-header,
.remco-boq-page #ast-desktop-header,
.remco-boq-page #ast-mobile-header,
.remco-boq-page .ast-above-header,
.remco-boq-page .site-footer,
.remco-boq-page .ast-footer-overlay,
.remco-boq-page #astra-footer-markup {
    display: none !important;
}

.boq-wrap {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 24px;
}

.boq-sec {
    padding: 48px 0;
}

/* ── HERO ── */
.boq-hero {
    position: relative;
    overflow: hidden;
    padding: 56px 0 48px;
    text-align: center;
    background: linear-gradient(145deg, #0f261a 0%, #1a3c2a 40%, #234d36 100%);
    color: #fff;
}

.boq-hero-bg {
    position: absolute;
    inset: 0;
    opacity: .04;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23fff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.boq-hero-inner {
    position: relative;
    z-index: 1;
}

.boq-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(212,168,67, .12);
    border: 1px solid rgba(212,168,67, .25);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #d4a843;
    margin-bottom: 16px;
}

.boq-badge svg {
    stroke: #d4a843;
}

.boq-hero-title {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 12px;
    line-height: 1.35;
    color: #fff;
}

.boq-hero-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, .75);
    max-width: 720px;
    margin: 0 auto 24px;
    line-height: 1.7;
}

.boq-hero-stats {
    display: flex;
    justify-content: center;
    gap: 36px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.boq-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.boq-stat-num {
    font-size: 18px;
    font-weight: 800;
    color: #d4a843;
}

.boq-stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, .55);
}

.boq-hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.boq-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all .25s;
    text-decoration: none !important;
    border: none;
}

.boq-btn--gold {
    background: #d4a843;
    color: #1a3c2a !important;
    box-shadow: 0 4px 16px rgba(212,168,67, .25);
}

.boq-btn--gold:hover {
    background: #c99a35;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(212,168,67, .35);
}

.boq-btn--outline {
    background: transparent;
    color: #fff !important;
    border: 1.5px solid rgba(255, 255, 255, .3);
}

.boq-btn--outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, .05);
}

.boq-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    flex-shrink: 0;
}

/* ── SECTION HEADER ── */
.boq-section-header {
    text-align: center;
    margin-bottom: 36px;
}

.boq-section-eyebrow {
    font-size: 12px;
    font-weight: 700;
    color: #d4a843;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}

.boq-h2 {
    font-size: 24px;
    font-weight: 800;
    color: #1a3c2a;
    margin: 0 0 10px;
}

.boq-section-desc {
    font-size: 14px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── STEPS ── */
.boq-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.boq-step-card {
    background: #fff;
    border: 1px solid #e8e8e3;
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 16px rgba(0,0,0,.02);
}

.boq-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(45,106,79,.08);
    color: #2d6a4f;
    font-weight: 800;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.boq-step-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: #1a3c2a;
    margin: 0 0 10px;
}

.boq-step-card p {
    font-size: 12px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* ── FORM ── */
.boq-form-sec-wrap {
    background: #f0f0eb;
    border-top: 1px solid #e0e0d8;
    border-bottom: 1px solid #e0e0d8;
}

.boq-form-card {
    background: #fff;
    border: 1px solid #e8e8e3;
    border-radius: 16px;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0,0,0,.04);
}

.boq-form-title {
    font-size: 22px;
    font-weight: 800;
    color: #1a3c2a;
    text-align: center;
    margin: 0 0 8px;
}

.boq-form-desc {
    font-size: 13px;
    color: #666;
    text-align: center;
    margin: 0 0 32px;
}

.boq-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.boq-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.boq-field--full {
    grid-column: 1 / -1;
}

.boq-field label {
    font-size: 13px;
    font-weight: 700;
    color: #1a3c2a;
}

.boq-req {
    color: #c0392b;
    font-size: 11px;
}

.boq-opt {
    color: #999;
    font-size: 11px;
    font-weight: 400;
}

.boq-input {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #e0e0d8;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    color: #333;
    background: #fff;
    transition: all .2s;
    box-sizing: border-box;
}

.boq-input:focus {
    border-color: #2d6a4f;
    outline: none;
    box-shadow: 0 0 0 3px rgba(45, 106, 79, .08);
}

.boq-field textarea {
    resize: vertical;
    min-height: 90px;
}

.boq-field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    padding-left: 32px;
    cursor: pointer;
}

/* ── Dropzone ── */
.boq-dropzone {
    border: 2.5px dashed #ccc;
    border-radius: 12px;
    padding: 32px 20px;
    text-align: center;
    background: #fafaf7;
    cursor: pointer;
    transition: all .25s;
}

.boq-dropzone:hover, .boq-dropzone.dragover {
    border-color: #2d6a4f;
    background: rgba(45,106,79,.03);
}

.boq-dropzone-icon {
    color: #ccc;
    margin-bottom: 12px;
    transition: color .2s;
}

.boq-dropzone:hover .boq-dropzone-icon, .boq-dropzone.dragover .boq-dropzone-icon {
    color: #2d6a4f;
}

.boq-dropzone-icon svg {
    stroke: currentColor;
}

.boq-dropzone-text {
    font-size: 14px;
    font-weight: 700;
    color: #1a3c2a;
    margin: 0 0 4px;
}

.boq-dropzone-sub {
    font-size: 11px;
    color: #777;
    margin: 0;
}

/* File Preview */
.boq-file-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(212,168,67,.04);
    border: 1px solid rgba(212,168,67,.15);
    border-radius: 8px;
    margin-top: 8px;
}

.boq-file-preview-icon {
    color: #d4a843;
}

.boq-file-preview-icon svg {
    stroke: currentColor;
}

.boq-file-preview-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.boq-file-preview-details strong {
    font-size: 13px;
    color: #1a3c2a;
    word-break: break-all;
}

.boq-file-preview-details span {
    font-size: 11px;
    color: #777;
}

.boq-file-remove {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(192,57,43,.06);
    color: #c0392b;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s;
}

.boq-file-remove:hover {
    background: #c0392b;
    color: #fff;
}

/* Upload Progress */
.boq-progress-wrap {
    margin-top: 18px;
    background: #fafaf7;
    border: 1px solid #e0e0d8;
    border-radius: 8px;
    padding: 12px;
}

.boq-progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    color: #1a3c2a;
    margin-bottom: 6px;
}

.boq-progress-bar-bg {
    height: 6px;
    background: #e5e5e0;
    border-radius: 3px;
    overflow: hidden;
}

.boq-progress-bar-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #2d6a4f, #d4a843);
    border-radius: 3px;
    transition: width .2s;
}

/* Submit */
.boq-submit-wrap {
    text-align: center;
    margin-top: 24px;
    border-top: 1px solid #f0f0eb;
    padding-top: 20px;
}

.boq-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    background: #25d366;
    color: #fff !important;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all .25s;
    box-shadow: 0 4px 16px rgba(37,211,102,.25);
}

.boq-submit-btn:hover {
    background: #1ebe5d;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37,211,102,.35);
}

.boq-submit-btn svg {
    width: 20px;
    height: 20px;
}

.boq-submit-note {
    font-size: 11px;
    color: #999;
    margin-top: 8px;
}

/* Toast styling (copied from RFQ to match) */
.rfq-toast {
    position: fixed;
    bottom: 20px;
    right: 50%;
    transform: translateX(50%) translateY(100px);
    padding: 12px 24px;
    border-radius: 10px;
    font-family: 'Cairo', 'Tajawal', sans-serif;
    font-size: 13px;
    font-weight: 600;
    z-index: 9999;
    transition: transform .3s;
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
}

.rfq-toast.show {
    transform: translateX(50%) translateY(0);
}

.rfq-toast--error {
    background: #c0392b;
    color: #fff;
}

.rfq-toast--success {
    background: #2d6a4f;
    color: #fff;
}

/* ── BENEFITS ── */
.boq-benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 12px;
}

.boq-benefit-card {
    background: #fff;
    border: 1px solid #e8e8e3;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 4px 16px rgba(0,0,0,.02);
}

.boq-benefit-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(212,168,67,.08);
    color: #d4a843;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.boq-benefit-icon svg {
    stroke: currentColor;
}

.boq-benefit-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a3c2a;
    margin: 0 0 10px;
}

.boq-benefit-card p {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.65;
}

/* ═══ RESPONSIVE ═══ */
@media(max-width:1024px) {
    .boq-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width:768px) {
    .boq-hero-title {
        font-size: 26px;
    }
    .boq-hero-stats {
        gap: 20px;
    }
    .boq-form-card {
        padding: 24px;
    }
    .boq-form-grid {
        grid-template-columns: 1fr;
    }
    .boq-benefits-grid {
        grid-template-columns: 1fr;
    }
}

@media(max-width:480px) {
    .boq-wrap {
        padding: 0 16px;
    }
    .boq-hero {
        padding: 40px 0 32px;
    }
    .boq-hero-title {
        font-size: 20px;
    }
    .boq-steps-grid {
        grid-template-columns: 1fr;
    }
    .boq-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .boq-btn {
        justify-content: center;
    }
}
