/* =============================================================
   CADD Arabia — BDCOM Qatar Pages  v7  Full Mobile Responsive
   ============================================================= */

/* ── BASE ──────────────────────────────────────────────────── */
.bdcom-page { margin-top: 70px; }

/* ── HERO ──────────────────────────────────────────────────── */
.bdcom-page-hero {
    position: relative;
    padding: 80px 0 64px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    overflow: hidden;
    text-align: center;
    color: #fff;
}
.bdcom-page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(211,47,47,.18) 0%, transparent 65%);
    pointer-events: none;
}
.bdcom-page-hero::after {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}
.bdcom-page-hero .hero-inner {
    position: relative; z-index: 2;
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
}
.bdcom-page-hero .breadcrumb {
    display: flex; align-items: center; justify-content: center;
    flex-wrap: wrap; gap: 6px;
    font-size: .82rem; color: rgba(255,255,255,.5);
    margin-bottom: 16px;
}
.bdcom-page-hero .breadcrumb a {
    color: rgba(255,255,255,.6); transition: color .2s; text-decoration: none;
}
.bdcom-page-hero .breadcrumb a:hover { color: #fff; }
.bdcom-page-hero .bdcom-tag {
    display: inline-block;
    background: rgba(211,47,47,.85);
    color: #fff; font-size: .72rem; font-weight: 700;
    padding: 5px 16px; border-radius: 20px;
    letter-spacing: 1px; text-transform: uppercase;
    margin-bottom: 18px;
    border: 1px solid rgba(255,255,255,.15);
}
.bdcom-page-hero h1 {
    font-size: 2.6rem; font-weight: 800; color: #fff;
    margin-bottom: 14px; line-height: 1.15;
    text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.bdcom-page-hero h1 span { color: #ef9a9a; }
.bdcom-page-hero p {
    font-size: 1.05rem; font-weight: 300;
    color: rgba(255,255,255,.72); max-width: 560px; margin: 0 auto;
    line-height: 1.7;
}

/* ── HERO MINI-CARDS ───────────────────────────────────────── */
.hero-mini-cards {
    position: relative; z-index: 2;
    max-width: 860px; margin: 36px auto 0; padding: 0 20px;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.hero-mini-card {
    background: rgba(255,255,255,.09);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 16px; padding: 20px 16px;
    text-align: center;
    transition: transform .25s, background .25s;
}
.hero-mini-card:hover { background: rgba(255,255,255,.15); transform: translateY(-4px); }
.hero-mini-card-icon {
    width: 50px; height: 50px; margin: 0 auto 11px;
    background: rgba(211,47,47,.28); border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
}
.hero-mini-card-icon img { width: 28px; height: 28px; filter: brightness(0) invert(1); }
.hero-mini-card h4 { font-size: .88rem; font-weight: 700; color: #fff; margin-bottom: 5px; }
.hero-mini-card p  { font-size: .76rem; color: rgba(255,255,255,.55); line-height: 1.5; margin: 0; }
.hero-mini-card-dots {
    display: flex; gap: 5px; justify-content: center; margin-top: 12px;
}
.hero-mini-card-dots span {
    width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.2);
}
.hero-mini-card-dots span.dot-active { background: #ef9a9a; width: 16px; border-radius: 3px; }

/* ── STEP BAR ──────────────────────────────────────────────── */
.bdcom-steps-bar {
    background: #fff; border-bottom: 1px solid #eee;
    position: relative; z-index: 10; overflow: hidden;
}
.bdcom-steps {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    display: flex; align-items: stretch;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.bdcom-steps::-webkit-scrollbar { display: none; }
.bdcom-step {
    flex: 1; min-width: 110px;
    display: flex; align-items: center; gap: 10px;
    padding: 14px 16px; border-right: 1px solid #f0f0f0;
    transition: background .2s;
}
.bdcom-step:last-child { border-right: none; }
.bdcom-step:hover { background: #fafafa; }
.bdcom-step-num {
    width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
    background: #f0f0f0; color: #aaa;
    font-size: 12px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    transition: all .3s;
}
.bdcom-step.active .bdcom-step-num {
    background: var(--secondary-red); color: #fff;
    box-shadow: 0 4px 12px rgba(211,47,47,.35);
}
.bdcom-step-label { font-size: 12px; font-weight: 600; color: #bbb; transition: color .3s; white-space: nowrap; }
.bdcom-step-sub   { font-size: 10px; color: #ccc; margin-top: 1px; white-space: nowrap; }
.bdcom-step.active .bdcom-step-label { color: var(--secondary-red); }
.bdcom-step.active .bdcom-step-sub   { color: #999; }

/* ── LAYOUT ────────────────────────────────────────────────── */
.bdcom-content-wrap {
    max-width: 1200px; margin: 0 auto; padding: 44px 20px 64px;
    display: grid; grid-template-columns: 320px 1fr; gap: 36px;
    align-items: start;
}

/* ── LEFT PANEL ────────────────────────────────────────────── */
.bdcom-left { position: sticky; top: 88px; }
.bdcom-left-title {
    font-size: 1.65rem; font-weight: 800; color: #111; line-height: 1.25; margin-bottom: 6px;
}
.bdcom-left-title span { color: var(--secondary-red); }
.bdcom-left-divider {
    width: 40px; height: 4px;
    background: linear-gradient(90deg, var(--secondary-red), #ff8a80);
    border-radius: 2px; margin: 10px 0 16px;
}
.bdcom-left-desc { font-size: .93rem; color: #666; margin-bottom: 24px; line-height: 1.7; }

/* Feature cards */
.bdcom-feature-card {
    display: flex; gap: 13px; align-items: flex-start;
    background: #fff; border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,.055);
    padding: 16px; margin-bottom: 12px;
    border: 1px solid #f0f0f0;
    transition: transform .25s, box-shadow .25s;
    position: relative; overflow: hidden;
}
.bdcom-feature-card::before {
    content: '';
    position: absolute; top: 0; left: 0; width: 4px; height: 100%;
    background: linear-gradient(180deg, var(--secondary-red), #ff8a80);
    border-radius: 4px 0 0 4px;
}
.bdcom-feature-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,.09); }
.bdcom-feature-card .fc-icon {
    width: 42px; height: 42px; flex-shrink: 0;
    border-radius: 11px; background: #fff5f5;
    display: flex; align-items: center; justify-content: center;
}
.bdcom-feature-card .fc-icon img { width: 24px; height: 24px; object-fit: contain; }
.bdcom-feature-card .fc-text h4 {
    font-size: .76rem; font-weight: 700; color: var(--secondary-red);
    text-transform: uppercase; letter-spacing: .7px; margin-bottom: 3px;
}
.bdcom-feature-card .fc-text p { font-size: .85rem; color: #777; line-height: 1.5; }

.bdcom-skyline { margin-top: 18px; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 14px rgba(0,0,0,.07); }
.bdcom-skyline img { width: 100%; display: block; }

.bdcom-contact-box { margin-top: 16px; padding: 16px 18px; background: #fafafa; border-radius: 12px; border: 1px solid #eee; }
.bdcom-contact-box h5 { font-size: .88rem; font-weight: 700; color: #333; margin-bottom: 8px; }
.bdcom-contact-box p  { font-size: .86rem; color: #666; margin-bottom: 4px; }

.bdcom-left-note { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.bdcom-left-note .note-row {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: .82rem; color: #888; line-height: 1.5;
}
.bdcom-left-note .note-row .note-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--secondary-red); flex-shrink: 0; margin-top: 5px;
}

/* ── FORM PANEL ────────────────────────────────────────────── */
.bdcom-form-panel {
    background: #fff; border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,.07), 0 1px 4px rgba(0,0,0,.04);
    border: 1px solid #f0f0f0; overflow: hidden;
}
.form-panel-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d1b1b 100%);
    padding: 24px 30px;
    display: flex; align-items: center; gap: 16px;
    position: relative; overflow: hidden;
}
.form-panel-header::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(211,47,47,.22) 0%, transparent 60%);
    pointer-events: none;
}
.form-panel-header .fph-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: rgba(255,255,255,.12);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; border: 1px solid rgba(255,255,255,.15);
    position: relative; z-index: 1;
}
.form-panel-header .fph-icon img { width: 28px; height: 28px; filter: brightness(0) invert(1); }
.form-panel-header .fph-text { position: relative; z-index: 1; }
.form-panel-header .fph-text h3 { font-size: 1.2rem; font-weight: 800; color: #fff; margin-bottom: 3px; }
.form-panel-header .fph-text p  { font-size: .86rem; color: rgba(255,255,255,.6); }

.bdcom-form-panel form { padding: 30px; }

/* ── SECTION LABELS ────────────────────────────────────────── */
.bdcom-section-label {
    font-size: .73rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 1.2px; color: #aaa; margin: 28px 0 16px;
    display: flex; align-items: center; gap: 10px;
}
.bdcom-section-label:first-child { margin-top: 0; }
.bdcom-section-label::before {
    content: ''; width: 4px; height: 15px;
    background: linear-gradient(180deg, var(--secondary-red), #ff8a80);
    border-radius: 2px; flex-shrink: 0;
}
.bdcom-section-label::after { content: ''; flex: 1; height: 1px; background: #f0f0f0; }

/* ── FORM FIELDS ───────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 7px; font-weight: 600; font-size: .9rem; color: #333; }
.form-group label .req { color: var(--secondary-red); margin-left: 2px; }
.form-control {
    width: 100%; padding: 12px 14px;
    border: 1.5px solid #e8e8e8; border-radius: 10px;
    font-family: 'Inter', sans-serif; font-size: .94rem;
    color: #333; background: #fafafa;
    transition: border-color .2s, background .2s, box-shadow .2s;
    appearance: none; -webkit-appearance: none;
    /* prevent zoom on iOS */
    font-size: 16px;
}
.form-control:focus {
    outline: none; background: #fff;
    border-color: var(--secondary-red);
    box-shadow: 0 0 0 3px rgba(211,47,47,.08);
}
.form-control.is-invalid { border-color: var(--secondary-red); background: #fff9f9; }
.form-control::placeholder { color: #c0c0c0; }
textarea.form-control { resize: vertical; min-height: 110px; font-family: 'Inter', sans-serif; line-height: 1.6; }
select.form-control {
    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='%23bbb' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
    padding-right: 38px; cursor: pointer;
}
.form-hint { font-size: .8rem; color: #aaa; margin-top: 5px; }
.invalid-feedback {
    font-size: .8rem; color: var(--secondary-red); margin-top: 4px;
    display: none; font-weight: 600; align-items: center; gap: 4px;
}
.invalid-feedback::before { content: '⚠ '; font-size: 10px; }
.form-control.is-invalid ~ .invalid-feedback,
.form-control.is-invalid + .invalid-feedback { display: flex; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── FILE UPLOAD ───────────────────────────────────────────── */
.file-upload-area {
    border: 2px dashed #e0e0e0; border-radius: 12px;
    padding: 20px 16px 16px; cursor: pointer;
    transition: border-color .25s, background .25s;
    background: #fafafa; user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.file-upload-area:hover, .file-upload-area.dragover {
    border-color: var(--secondary-red); background: #fff5f5;
}
.file-upload-area.has-files { border-style: solid; border-color: var(--secondary-red); background: #fff9f9; }
.upload-main {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; padding: 6px 0 4px; text-align: center;
    pointer-events: none;
}
.upload-icon-wrap {
    width: 52px; height: 52px; border-radius: 50%;
    background: rgba(211,47,47,.09);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 10px;
}
.upload-main p { font-size: .88rem; color: #666; margin: 0; }
.file-upload-area.has-files .upload-main { padding: 0 0 10px; }
.file-upload-area.has-files .upload-main p { font-size: 11px !important; color: #ccc !important; }
.file-upload-area.has-files .upload-icon-wrap { width: 28px; height: 28px; }
.file-upload-area.has-files .upload-icon-wrap svg { width: 14px; height: 14px; }
.file-preview-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: 8px; margin-top: 4px;
}
.file-preview-item {
    position: relative; border-radius: 10px; overflow: hidden;
    border: 1px solid #eee; background: #f9f9f9;
    aspect-ratio: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,.05);
    transition: transform .15s, box-shadow .15s;
}
.file-preview-item:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,0,0,.1); }
.file-preview-item img.preview-img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 9px; }
.preview-img-label {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.65));
    color: #fff; font-size: 9px; padding: 12px 4px 4px; text-align: center;
}
.file-preview-item .preview-doc {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 3px; padding: 8px 6px;
    width: 100%; height: 100%; text-align: center;
}
.preview-doc .doc-icon { font-size: 1.8rem; line-height: 1; }
.preview-doc .doc-name { font-size: 9px; color: #444; font-weight: 500; word-break: break-all; line-height: 1.3; }
.preview-doc .doc-size { font-size: 9px; color: #999; }
.file-preview-item .remove-file {
    position: absolute; top: 4px; right: 4px;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--secondary-red); color: #fff;
    border: none; font-size: 13px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,.3); cursor: pointer;
    z-index: 10; opacity: 0; transition: opacity .15s;
}
.file-preview-item:hover .remove-file { opacity: 1; }

/* ── RADIO GROUPS ──────────────────────────────────────────── */
.radio-group { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-group label {
    display: flex; align-items: center; gap: 7px;
    font-size: .9rem; font-weight: 400 !important;
    color: #444; cursor: pointer; margin-bottom: 0 !important;
    padding: 9px 14px; border: 1.5px solid #e8e8e8;
    border-radius: 8px; transition: all .2s; background: #fafafa;
    min-height: 44px; /* touch target */
}
.radio-group label:has(input:checked) {
    border-color: var(--secondary-red); background: #fff5f5;
    color: var(--secondary-red); font-weight: 600 !important;
}
.radio-group input[type="radio"] { accent-color: var(--secondary-red); width: 15px; height: 15px; }

/* ── BUTTONS ───────────────────────────────────────────────── */
.bdcom-btn-row { display: flex; gap: 12px; margin-top: 28px; }
.btn-primary {
    flex: 1; min-height: 50px;
    background: linear-gradient(135deg, var(--secondary-red) 0%, #c62828 100%);
    color: #fff; border: none;
    padding: 14px 28px; font-size: .98rem; font-weight: 700;
    font-family: 'Inter', sans-serif; border-radius: 10px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    box-shadow: 0 6px 18px rgba(211,47,47,.32);
    transition: transform .2s, box-shadow .2s, filter .2s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.btn-primary:hover  { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(211,47,47,.42); filter: brightness(1.05); }
.btn-primary:active { transform: translateY(0); box-shadow: 0 3px 10px rgba(211,47,47,.3); }
.btn-primary:disabled { background: #ddd; box-shadow: none; cursor: not-allowed; transform: none; filter: none; }
.btn-secondary {
    min-height: 50px; padding: 14px 24px; font-size: .93rem; font-weight: 600;
    font-family: 'Inter', sans-serif; border-radius: 10px;
    background: #f5f5f5; color: #666;
    border: 1.5px solid #e0e0e0; cursor: pointer;
    transition: all .2s; min-width: 110px;
    touch-action: manipulation;
}
.btn-secondary:hover { border-color: var(--secondary-red); color: var(--secondary-red); background: #fff5f5; }
.spinner {
    width: 17px; height: 17px;
    border: 2px solid rgba(255,255,255,.3);
    border-top-color: #fff; border-radius: 50%;
    animation: ca-spin .7s linear infinite; display: none;
}
.btn-primary.loading .spinner { display: block; }
.btn-primary.loading .btn-text { display: none; }
@keyframes ca-spin { to { transform: rotate(360deg); } }

/* ── ALERTS ────────────────────────────────────────────────── */
.bdcom-alert {
    display: none; border-radius: 10px; padding: 14px 18px;
    font-size: .9rem; font-weight: 500;
    margin: 0 30px 20px; gap: 10px; align-items: flex-start;
}
.bdcom-alert.show { display: flex; animation: ca-slideIn .3s ease; }
.bdcom-alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.bdcom-alert-error   { background: #fff5f5; border: 1px solid #fecaca; color: #991b1b; }
@keyframes ca-slideIn { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:translateY(0); } }

/* ── DEAL PAGE ─────────────────────────────────────────────── */
.deal-highlights { display: flex; gap: 10px; margin-top: 22px; }
.deal-highlight {
    flex: 1; text-align: center; padding: 16px 8px;
    background: #fff; border: 1px solid #f0f0f0; border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    transition: transform .25s, box-shadow .25s;
    position: relative; overflow: hidden;
}
.deal-highlight::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--secondary-red), #ff8a80);
}
.deal-highlight:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.09); }
.deal-highlight img { width: 34px; height: 34px; margin-bottom: 8px; }
.deal-highlight .dh-label { font-size: .76rem; font-weight: 700; color: var(--secondary-red); text-transform: uppercase; letter-spacing: .7px; }
.deal-highlight .dh-sub   { font-size: .75rem; color: #bbb; margin-top: 2px; }
.deal-left-visual {
    margin-top: 20px;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    border-radius: 14px; padding: 26px 20px; text-align: center;
    position: relative; overflow: hidden;
}
.deal-left-visual::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, rgba(211,47,47,.18) 0%, transparent 70%);
}
.deal-left-visual .deal-globe-icon { font-size: 2.3rem; margin-bottom: 10px; display: block; position: relative; }
.deal-left-visual p { font-size: .88rem; color: rgba(255,255,255,.7); line-height: 1.7; position: relative; }
.deal-left-visual .deal-tagline { margin-top: 12px; font-size: .73rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.4); position: relative; }
.deal-left-visual .deal-tagline span { color: #ef9a9a; }

/* ── INFO CARDS STRIP ──────────────────────────────────────── */
.bdcom-info-strip {
    max-width: 1200px; margin: 0 auto 64px; padding: 0 20px;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.bdcom-info-card {
    background: #fff; border-radius: 16px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    padding: 28px 22px; text-align: center;
    transition: transform .25s, box-shadow .25s;
    position: relative; overflow: hidden;
}
.bdcom-info-card::before {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--secondary-red), #ff8a80);
    transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.bdcom-info-card:hover { transform: translateY(-5px); box-shadow: 0 14px 36px rgba(0,0,0,.1); }
.bdcom-info-card:hover::before { transform: scaleX(1); }
.bdcom-info-card .bic-icon {
    width: 64px; height: 64px; border-radius: 18px;
    background: #fff5f5; margin: 0 auto 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; box-shadow: 0 4px 12px rgba(211,47,47,.12);
    transition: transform .25s;
}
.bdcom-info-card:hover .bic-icon { transform: scale(1.08) rotate(-3deg); }
.bdcom-info-card h4 { font-size: .98rem; font-weight: 800; color: #111; margin-bottom: 9px; }
.bdcom-info-card p  { font-size: .87rem; color: #777; line-height: 1.65; }
.bdcom-info-card .bic-dots {
    display: flex; gap: 5px; justify-content: center; margin: 16px 0 0;
}
.bdcom-info-card .bic-dots span { width: 7px; height: 7px; border-radius: 50%; background: #eee; }
.bdcom-info-card .bic-dots span.d-active { background: var(--secondary-red); width: 18px; border-radius: 3px; }
.bdcom-info-card .bic-cta {
    display: inline-block; margin-top: 18px;
    padding: 10px 24px; border-radius: 24px;
    background: var(--secondary-red); color: #fff;
    font-size: .82rem; font-weight: 700; text-decoration: none;
    transition: background .2s, transform .2s, box-shadow .2s;
    box-shadow: 0 4px 12px rgba(211,47,47,.28);
    min-height: 40px; display: inline-flex; align-items: center;
    touch-action: manipulation;
}
.bdcom-info-card .bic-cta:hover { background: #c62828; transform: scale(1.04); box-shadow: 0 7px 18px rgba(211,47,47,.38); }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ════════════════════════════════════════════════════════════ */

/* ── Tablet 1024px ─────────────────────────────────────────── */
@media (max-width: 1024px) {
    .bdcom-content-wrap { grid-template-columns: 280px 1fr; gap: 24px; }
    .bdcom-info-strip   { grid-template-columns: 1fr 1fr; }
    .hero-mini-cards    { grid-template-columns: repeat(3, 1fr); max-width: 100%; }
}

/* ── Tablet 820px ──────────────────────────────────────────── */
@media (max-width: 820px) {
    .bdcom-page-hero    { padding: 56px 0 44px; }
    .bdcom-page-hero h1 { font-size: 2rem; }
    .bdcom-page-hero p  { font-size: .96rem; }

    /* Hero cards: 3-across still, just smaller */
    .hero-mini-cards { gap: 10px; padding: 0 14px; }
    .hero-mini-card  { padding: 14px 10px; border-radius: 12px; }
    .hero-mini-card h4 { font-size: .78rem; }
    .hero-mini-card p  { display: none; } /* hide desc on tablet */

    /* Stack content */
    .bdcom-content-wrap { grid-template-columns: 1fr; padding: 24px 16px 48px; gap: 0; }
    .bdcom-left { position: static; margin-bottom: 24px; }
    .bdcom-left-title { font-size: 1.4rem; }
    .bdcom-skyline { display: none; }

    /* Collapse feature cards */
    .bdcom-feature-card { padding: 12px 14px; }
    .bdcom-feature-card .fc-text p { display: none; }

    /* Form panel */
    .bdcom-form-panel form { padding: 22px 18px; }
    .form-panel-header { padding: 20px 18px; }
    .form-panel-header .fph-icon { width: 42px; height: 42px; }
    .form-panel-header .fph-text h3 { font-size: 1.05rem; }
    .bdcom-alert { margin: 0 18px 18px; }

    /* 2-col → 1-col fields */
    .form-row-2 { grid-template-columns: 1fr; gap: 0; }

    /* Steps bar scroll */
    .bdcom-step-sub { display: none; }

    /* Info strip */
    .bdcom-info-strip { grid-template-columns: 1fr; gap: 14px; }

    /* Buttons */
    .bdcom-btn-row { flex-direction: column-reverse; gap: 10px; }
    .btn-secondary { text-align: center; min-width: unset; }

    /* Deal */
    .deal-highlights { flex-wrap: wrap; }
    .deal-highlight  { flex: 1 1 calc(50% - 5px); }
}

/* ── Mobile 480px ──────────────────────────────────────────── */
@media (max-width: 480px) {
    .bdcom-page { margin-top: 60px; }
    .bdcom-page-hero { padding: 48px 0 38px; }
    .bdcom-page-hero h1 { font-size: 1.65rem; }
    .bdcom-page-hero .bdcom-tag { font-size: .64rem; padding: 4px 12px; }
    .bdcom-page-hero .breadcrumb { font-size: .73rem; }
    .bdcom-page-hero p { font-size: .92rem; padding: 0 8px; }

    /* Hero cards: single column, centered */
    .hero-mini-cards {
        grid-template-columns: 1fr;
        max-width: 280px; margin-left: auto; margin-right: auto;
        gap: 8px; padding: 0 16px;
    }
    .hero-mini-card { padding: 14px 16px; }
    .hero-mini-card p { display: block; font-size: .74rem; }

    /* Step bar */
    .bdcom-step { min-width: 90px; padding: 10px 10px; }
    .bdcom-step-label { font-size: 11px; }

    /* Layout */
    .bdcom-content-wrap { padding: 18px 12px 40px; }
    .bdcom-form-panel form { padding: 18px 14px; }
    .form-panel-header { padding: 16px 14px; gap: 12px; }
    .form-panel-header .fph-icon { width: 38px; height: 38px; }
    .form-panel-header .fph-text h3 { font-size: .98rem; }
    .form-panel-header .fph-text p  { font-size: .78rem; }
    .bdcom-alert { margin: 0 14px 14px; font-size: .86rem; }

    /* Fields */
    .form-control { font-size: 16px; padding: 11px 12px; }
    .bdcom-section-label { font-size: .7rem; }

    /* Buttons */
    .btn-primary   { padding: 13px 20px; font-size: .92rem; }
    .btn-secondary { padding: 13px 20px; font-size: .9rem; }

    /* Upload */
    .upload-icon-wrap { width: 40px; height: 40px; }
    .file-preview-grid { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); }

    /* Info cards */
    .bdcom-info-strip { padding: 0 12px; gap: 12px; }
    .bdcom-info-card { padding: 22px 16px; }
    .bdcom-info-card .bic-icon { width: 54px; height: 54px; font-size: 24px; }

    /* Deal */
    .deal-highlights { flex-direction: column; gap: 8px; }
    .deal-highlight  { padding: 12px 8px; }
    .radio-group     { flex-direction: column; gap: 8px; }
    .radio-group label { padding: 10px 14px; }
}

/* ── Very small 360px ──────────────────────────────────────── */
@media (max-width: 360px) {
    .bdcom-page-hero h1 { font-size: 1.45rem; }
    .hero-mini-cards    { max-width: 100%; padding: 0 10px; }
    .bdcom-form-panel form { padding: 14px 12px; }
    .form-control { font-size: 16px; }
    .bdcom-section-label::after { display: none; }
}

/* ── Touch: show remove button always on touch devices ─────── */
@media (hover: none) {
    .file-preview-item .remove-file { opacity: 1; }
    .bdcom-feature-card:hover { transform: none; }
    .bdcom-info-card:hover    { transform: none; }
    .hero-mini-card:hover     { transform: none; background: rgba(255,255,255,.09); }
}

/* ── FILE SIZE ERROR (inline, below upload area) ──────────── */
.upload-size-error {
    display: none;
    align-items: flex-start;
    gap: 8px;
    background: #fff5f5;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.82rem;
    color: #991b1b;
    margin-top: 8px;
    line-height: 1.55;
    animation: ca-slideIn .25s ease;
}
.upload-size-error.show { display: flex; }
.upload-size-error span:first-child { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.upload-size-error strong { font-weight: 700; }

/* ── COMPRESSION BADGE (on image preview) ─────────────────── */
.preview-compress-badge {
    position: absolute;
    top: 4px; left: 4px;
    background: rgba(211,47,47,0.82);
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.3px;
    pointer-events: none;
    white-space: nowrap;
}

/* ── SIZE WARNING (over 3MB) ───────────────────────────────── */
.preview-size-warn {
    position: absolute;
    bottom: 22px; left: 0; right: 0;
    text-align: center;
    font-size: 8px;
    font-weight: 700;
    color: #fff;
    background: rgba(230,81,0,0.75);
    padding: 2px 4px;
    pointer-events: none;
}

/* doc size warn text */
.doc-size-warn { color: #E65100 !important; font-weight: 600; }