
  :root {
    --brand: #2b3494;
    --brand-light: #E0F2FE;
    --brand-mid: #265a88;
    --accent: #F97316;
    --accent-light: #FFF7ED;
    --surface: #F8FAFC;
    --card: #FFFFFF;
    --text: #1E293B;
    --text-muted: #64748B;
    --border: #E2E8F0;
    --success: #16A34A;
    --success-bg: #F0FDF4;
    --error: #DC2626;
    --error-bg: #FEF2F2;
    --radius: 10px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  body {
    background: var(--surface);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
  }

  /* ─── HEADER ─── */
  .header {
    background: var(--brand);
    color: #fff;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(12,74,110,0.3);
  }
  .header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .logo {
    font-family: 'Space Mono', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.5px;
  }
  .logo span { color: var(--brand-mid); }
  .header-tag {
    font-size: 0.8rem;
    opacity: 0.7;
    letter-spacing: 0.5px;
  }

  /* ─── MAIN LAYOUT ─── */


  .page-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--brand);
  }
  .page-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 32px;
  }

  .form-grid {
    display: flex;
    gap: 28px;
    align-items: start;
    justify-content: space-between;
  }
  .left-col {width: 50%;} 
  .sidebar {width: 48%;}

  #quote-request.new-form {margin: 0 ;}
  @media (max-width: 860px) {
    .form-grid { flex-direction: column; }
    .left-col  , .sidebar {width: 100%;}

  }

  .selected-item .left-box {display: flex;justify-content: start;align-items: center;gap: 12px;width: 90%;}
 .selected-item .model-name {width: 80%;}


  /* ─── CARDS ─── */
  .card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
  }
  .card + .card { margin-top: 20px; }
  .card-title {
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
  }
  .card-title .step-num {
    background: var(--brand);
    color: #fff;
    width: 26px; height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    flex-shrink: 0;
  }
  .card-desc {
    color: var(--text-muted);
    margin-bottom: 20px;
  }

  /* ─── PRODUCT SELECTOR ─── */
  .category-tabs {
    margin-bottom: 16px; 
    position: relative;
  }
.categorySwiper {padding: 0 20px;}

.swiper-slide {
    width: auto !important; /* key for auto width */
}

.cat-tab {
    white-space: nowrap;
    padding: 8px 16px;
}

.category-tabs .nav-btn {
    height: 25px;
    width: 25px;
    background-color: e0f2fe;
    border-radius: 50%;
    padding: 8px;
    color: #2b3494;position: absolute;
}
.category-tabs .swiper-button-next.nav-btn , .category-tabs .swiper-button-prev.nav-btn{top: 25px;}


  /* Hide scrollbar (optional, modern browsers) */
/* .category-tabs::-webkit-scrollbar {
height: 4px;
width: 100%;
}

.category-tabs::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.category-tabs::-webkit-scrollbar-thumb {
  background: var(--brand);
  border-radius: 10px;
}

.category-tabs::-webkit-scrollbar-thumb:hover {
  background: var(--brand-mid);
} */

  .cat-tab {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: #fff;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-muted);
  }
  .cat-tab:hover { border-color: var(--brand-mid); color: var(--brand); }
  .cat-tab.active {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
  }

  .product-search {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 12px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242.156a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E") 12px center no-repeat;
    margin-bottom: 12px;
  }
  .product-search:focus { border-color: var(--brand-mid); }

  .product-list {
    max-height: 340px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    scrollbar-width: thin;
  }
  .product-list::-webkit-scrollbar { width: 6px; }
  .product-list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

  .product-item {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.15s;
    user-select: none;
  }
  .product-item:last-child { border-bottom: none; }
  .product-item:hover { background: var(--brand-light); }
  .product-item.selected { background: var(--brand-light); }

  .product-check {
    width: 20px; height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 5px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    position: relative;
  }
  .product-item.selected .product-check {
    background: var(--brand);
    border-color: var(--brand);
  }
  .product-item.selected .product-check::after {
    content: '✓';
    color: #fff;
    font-size: 13px;
    font-weight: 700;
  }

  .product-info { flex: 1; min-width: 0; }
  .product-model {
    font-weight: 700;
    color: var(--brand);
  }
  .product-name {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .product-qty {
    display: flex;
    width: 80%;
    gap: 6px;
  }
  .product-item.selected .product-qty { display: flex; }
  .qty-btn {
    width: 26px; height: 26px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: #fff;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: all 0.15s;
  }
  .qty-btn:hover { background: var(--brand-light); border-color: var(--brand-mid); }
  .qty-val {
    font-size: 12px;
    font-weight: 700;
    min-width: 20px;
    text-align: center;border-radius: 6px;
  }



  /* ─── SELECTED PRODUCTS SUMMARY (SIDEBAR) ─── */
  .sidebar { position: sticky; top: 40px; }

  .selected-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
  }
  .selected-count {
    background: var(--error);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    padding: 2px 12px;
    border-radius: 20px;
  }

  .selected-empty {
    text-align: center;
    padding: 32px 16px;
    color: var(--text-muted);

  }
  .selected-empty .icon { font-size: 26px; margin-bottom: 8px; opacity: 0.6; }

  .selected-list { list-style: none; }
  .selected-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    gap: 8px;
    animation: slideIn 0.25s ease;
  }
  .selected-item:last-child { border-bottom: none; }
  @keyframes slideIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .sel-model {
    font-weight: 700;
    color: var(--brand);
  }
  .sel-name {
    font-size: 12px;
    color: var(--text-muted);
  }
  .sel-qty {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
  }
  .sel-remove {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 14px;
    padding: 2px 4px;
    border-radius: 4px;
    transition: background 0.15s;
    flex-shrink: 0;
  }
  .sel-remove:hover { background: var(--error-bg); }

  .product-warning {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--radius);
    background: var(--error-bg);
    border: 1px solid #FECACA;
    color: var(--error);
    font-size: 0.82rem;
    font-weight: 500;
    margin-top: 12px;
    animation: shake 0.4s ease;
  }
  .product-warning.show { display: flex; }
  @keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-4px); }
    40% { transform: translateX(4px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(2px); }
  }

  /* ─── FORM FIELDS ─── */
  .field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .field-grid .full { grid-column: 1 / -1; }

  .field { display: flex; flex-direction: column; gap: 4px; }
  .field label {
    font-size: 012px;
    font-weight: 500;
    color: var(--text);
  }
  .field label .req { color: var(--error); margin-left: 2px; }
  .field input, .field select, .field textarea {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 12px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
  }
  .field input:focus, .field select:focus, .field textarea:focus {
    border-color: var(--brand-mid);
    box-shadow: none;
  }
  .field input.invalid, .field select.invalid {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(220,38,38,0.1);
  }
  .field .field-error {
    font-size: 0.75rem;
    color: var(--error);
    display: none;
  }
  .field input.invalid + .field-error,
  .field select.invalid + .field-error { display: block; }

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

  /* ─── PROMO ─── */
  .promo-row {
    display: flex;
    gap: 10px;
    align-items: end;
  }
  .promo-row .field { flex: 1; }
  .promo-link {
    font-size: 0.78rem;
    color: var(--brand-mid);
    text-decoration: none;
  }
  .promo-link:hover { text-decoration: underline; }

  /* ─── SUBMIT ─── */
  .submit-section {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(249,115,22,0.3);
    letter-spacing: 0.3px;
  }
  .submit-btn:hover { background: #EA580C; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(249,115,22,0.35); }
  .submit-btn:active { transform: translateY(0); }
  .submit-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

  .form-status {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 500;
    display: none;
    align-items: center;
    gap: 8px;
  }
  .form-status.error {
    display: flex;
    background: var(--error-bg);
    border: 1px solid #FECACA;
    color: var(--error);
    animation: shake 0.4s ease;
  }
  .form-status.success {
    display: flex;
    background: var(--success-bg);
    border: 1px solid #BBF7D0;
    color: var(--success);
  }

  /* ─── FOOTER ─── */
  .footer {
    text-align: center;
    padding: 28px 24px;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-top: 1px solid var(--border);
    margin-top: 48px;
  }

  .selected-item .product-add-img {height: 50px;width: 50px;}


  /* ─── RESPONSIVE ─── */

  @media screen and (max-width: 1023px) {
    .model-name {width: 90%;}
    .category-tabs .swiper-wrapper {height: auto;}
  }
  @media (max-width: 600px) {
    .field-grid { grid-template-columns: 1fr; }
    .field-grid .full { grid-column: 1; }
    .page { padding: 20px 16px 40px; }
    .card { padding: 20px; }
    .page-title { font-size: 1.4rem; }
    .category-tabs { gap: 4px; }
    .cat-tab { font-size: 10px; padding: 5px 10px; }
  }

  @media screen and (max-width:639px) {
    .category-tabs .swiper-button-next.nav-btn, .category-tabs .swiper-button-prev.nav-btn {top: 24px;}
    .category-tabs .nav-btn {height: 22px;width: 22px;padding: 6px;}
  }
