/* ============================================
   MORYA AUTOMOBILES — style.css
   Color: Red #D32F2F, Black #1a1a1a, White
   Font: Poppins (display), Inter (body)
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #D32F2F;
  --red-dark: #B71C1C;
  --red-light: #FFEBEE;
  --orange: #F57C00;
  --yellow: #F9C400;
  --black: #1a1a1a;
  --gray-dark: #2d2d2d;
  --gray: #555;
  --gray-light: #f5f5f5;
  --white: #ffffff;
  --border: #e0e0e0;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.12);
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--black);
  background: #fff;
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
}

h1,h2,h3,h4 { font-family: 'Poppins', sans-serif; font-weight: 700; line-height: 1.25; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; width: 100%; }

/* ─── TOPBAR ─── */
.topbar {
  background: var(--black);
  color: rgba(255,255,255,0.75);
  font-size: 12.5px;
  padding: 6px 0;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar i { color: var(--red); margin-right: 5px; }

/* ─── NAVBAR ─── */
.navbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo {
  width: 44px; height: 44px;
  background: var(--red);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.brand-logo.sm { width: 36px; height: 36px; border-radius: 8px; }
.brand-ma { color: #fff; font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 16px; }
.brand-name { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 16px; color: var(--black); }
.brand-sub { font-size: 10.5px; color: var(--gray); }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  text-decoration: none;
  color: var(--gray);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.nav-links a:hover { color: var(--red); background: var(--red-light); }

.btn-book-now {
  background: var(--red);
  color: #fff;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  transition: background 0.2s;
  white-space: nowrap;
}
.btn-book-now:hover { background: var(--red-dark); }

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--black);
  margin-left: auto;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 8px 0;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 24px;
  text-decoration: none;
  color: var(--black);
  font-weight: 500;
  border-bottom: 1px solid var(--gray-light);
}
.mobile-menu a:hover { background: var(--red-light); color: var(--red); }

/* ─── HERO ─── */
.hero {
  background: linear-gradient(135deg, #fff 60%, #FFF5F5 100%);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  background: var(--red);
}
.shape1 { width: 500px; height: 500px; top: -150px; right: -100px; }
.shape2 { width: 300px; height: 300px; bottom: -80px; left: -60px; }

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  background: var(--red-light);
  color: var(--red);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hero-title {
  font-size: clamp(32px, 5vw, 48px);
  color: var(--black);
  margin-bottom: 16px;
}
.accent { color: var(--red); }
.hero-desc { color: var(--gray); font-size: 15px; margin-bottom: 28px; max-width: 440px; }

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }

.btn-primary {
  background: var(--red);
  color: #fff;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, transform 0.1s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--red);
  text-decoration: none;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  border: 1.5px solid var(--red);
  transition: all 0.2s;
}
.btn-outline:hover { background: var(--red-light); }

.hero-stats { display: flex; align-items: center; gap: 20px; }
.stat { text-align: center; }
.stat strong { display: block; font-size: 24px; font-weight: 800; color: var(--red); font-family: 'Poppins', sans-serif; }
.stat span { font-size: 12px; color: var(--gray); }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* Hero Visual Cards */
.hero-visual { position: relative; padding: 20px 0; }
.hero-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}
.hero-card-sm {
  position: absolute;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 160px;
}
.hero-card-sm { bottom: 20px; left: -20px; }
.hero-card-sm.right { left: auto; right: -10px; bottom: 80px; }
.hc-icon {
  width: 48px; height: 48px;
  background: var(--red-light);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: var(--red);
  margin-bottom: 12px;
}
.hc-icon.sm { width: 32px; height: 32px; font-size: 14px; margin-bottom: 0; }
.hc-icon.orange { background: #FFF3E0; color: var(--orange); }
.hc-label { font-weight: 700; font-size: 15px; font-family: 'Poppins', sans-serif; }
.hc-sub { font-size: 12.5px; color: var(--gray); margin-top: 4px; margin-bottom: 14px; }
.hc-btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s;
}
.hc-btn:hover { background: var(--red-dark); }

/* ─── BRANDS STRIP ─── */
.brands-strip {
  background: var(--black);
  padding: 24px 0;
}
.strip-label {
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.brands-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.brand-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  padding: 10px 24px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid rgba(255,255,255,0.12);
  transition: background 0.2s;
}
.brand-pill:hover { background: var(--red); }
.brand-pill i { color: var(--yellow); }

/* ─── SECTIONS ─── */
.section { padding: 80px 0; }
.section-alt { background: var(--gray-light); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-eyebrow {
  display: inline-block;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.section-title { font-size: clamp(26px, 4vw, 36px); color: var(--black); margin-bottom: 12px; }
.section-title.white { color: #fff; }
.section-desc { color: var(--gray); max-width: 500px; margin: 0 auto; font-size: 15px; }

/* ─── SERVICES GRID ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.sc-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.sc-icon.red { background: #FFEBEE; color: var(--red); }
.sc-icon.blue { background: #E3F2FD; color: #1976D2; }
.sc-icon.green { background: #E8F5E9; color: #388E3C; }
.sc-icon.orange { background: #FFF3E0; color: var(--orange); }
.sc-icon.purple { background: #F3E5F5; color: #7B1FA2; }
.sc-icon.teal { background: #E0F2F1; color: #00796B; }
.service-card h3 { font-size: 17px; margin-bottom: 8px; }
.service-card p { color: var(--gray); font-size: 14px; margin-bottom: 14px; }
.sc-tag {
  display: inline-block;
  background: var(--red-light);
  color: var(--red);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
}

/* ─── SPARES GRID ─── */
.spares-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}
.spare-item {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 20px 12px;
  text-align: center;
  border: 1px solid var(--border);
  transition: all 0.2s;
  cursor: default;
}
.spare-item:hover { border-color: var(--red); background: var(--red-light); color: var(--red); }
.spare-item i { font-size: 24px; color: var(--red); display: block; margin-bottom: 8px; }
.spare-item:hover i { color: var(--red); }
.spare-item span { font-size: 13px; font-weight: 500; display: block; }

/* ─── BOOKING ─── */
.booking-section { background: var(--red-dark); padding: 80px 0; }
.booking-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: start;
}
.booking-info { color: #fff; }
.booking-info .section-eyebrow { color: var(--yellow); }
.booking-perks { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.perk { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255,255,255,0.9); }
.perk i { color: var(--yellow); font-size: 16px; }
.booking-contact { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.booking-contact a {
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.booking-contact a i { color: var(--yellow); }
.booking-contact span { color: rgba(255,255,255,0.6); font-size: 14px; }

/* Form Card */
.booking-form-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.form-title {
  font-size: 20px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  color: var(--black);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 0; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-dark);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: var(--black);
  background: #fff;
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--red); }
.form-group textarea { resize: vertical; }

/* Checkboxes */
.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}
.cb-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--gray-dark);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: all 0.15s;
}
.cb-label:hover { background: var(--red-light); border-color: var(--red); }
.cb-label input[type="checkbox"] {
  width: auto;
  padding: 0;
  border: none;
  accent-color: var(--red);
  cursor: pointer;
}
.btn-submit {
  width: 100%;
  background: var(--red);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s, transform 0.1s;
  margin-top: 8px;
}
.btn-submit:hover { background: var(--red-dark); transform: translateY(-1px); }

/* ─── SUCCESS MODAL ─── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 999;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px 36px;
  text-align: center;
  max-width: 420px;
  width: 90%;
  box-shadow: var(--shadow-md);
}
.modal-icon { font-size: 52px; color: #388E3C; margin-bottom: 16px; }
.modal-card h3 { font-size: 22px; margin-bottom: 10px; }
.modal-card p { color: var(--gray); margin-bottom: 24px; font-size: 14.5px; line-height: 1.6; }

/* ─── WHY US ─── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.why-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  transition: transform 0.2s;
}
.why-card:hover { transform: translateY(-3px); }
.why-num {
  font-family: 'Poppins', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--red);
  opacity: 0.15;
  margin-bottom: 8px;
  line-height: 1;
}
.why-card h3 { font-size: 16px; margin-bottom: 8px; }
.why-card p { color: var(--gray); font-size: 14px; }

/* ─── CONTACT ─── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.contact-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--border);
  text-align: center;
  transition: transform 0.2s;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cc-icon {
  width: 52px; height: 52px;
  background: var(--red-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: var(--red);
  margin: 0 auto 14px;
}
.contact-card h4 { font-size: 16px; margin-bottom: 8px; }
.contact-card a {
  color: var(--red);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
}
.contact-card p { color: var(--gray); font-size: 13.5px; }

/* ─── FOOTER ─── */
.footer { background: var(--gray-dark); padding: 40px 0 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 32px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--yellow); }
.footer-brands { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-brands span {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 13px;
  border: 1px solid rgba(255,255,255,0.1);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px 20px;
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 12.5px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .topbar-inner { justify-content: center; gap: 6px; }
  .topbar span:nth-child(2) { display: none; }

  .nav-links, .btn-book-now { display: none; }
  .hamburger { display: block; }

  .hero { padding: 48px 0 40px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { display: none; }
  .hero-stats { gap: 14px; }
  .stat strong { font-size: 20px; }

  .brands-row { gap: 10px; }
  .brand-pill { padding: 8px 16px; font-size: 13px; }

  .section { padding: 52px 0; }
  .services-grid { grid-template-columns: 1fr; }

  .booking-wrapper { grid-template-columns: 1fr; }
  .booking-info { padding-bottom: 8px; }
  .booking-form-card { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .checkbox-grid { grid-template-columns: 1fr; }

  .why-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-links { gap: 12px; }
}

@media (max-width: 480px) {
  .why-grid, .contact-grid { grid-template-columns: 1fr; }
  .spares-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-cta { flex-direction: column; }
  .btn-primary, .btn-outline { text-align: center; justify-content: center; }
}

/* ─── BILL GENERATOR ─── */
.billing-section { background: #fff; }

.bill-form-wrapper {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: start;
}

.bill-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.bill-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-light);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
}

.bill-card-title i { color: var(--red); }

.bill-table-wrap { overflow-x: auto; }

.bill-items-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 460px;
}

.bill-items-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: var(--gray);
  padding: 7px 8px;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.bill-items-table td {
  padding: 6px 6px;
  vertical-align: middle;
  border-bottom: 1px solid var(--gray-light);
}

.bill-items-table td input,
.bill-items-table td select {
  width: 100%;
  padding: 6px 8px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  color: var(--black);
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}

.bill-items-table td input:focus,
.bill-items-table td select:focus { border-color: var(--red); }

.bill-del-btn {
  background: none;
  border: none;
  color: var(--red);
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.15s;
}
.bill-del-btn:hover { opacity: 1; }

.btn-add-row {
  margin-top: 12px;
  background: none;
  border: 1.5px dashed var(--border);
  color: var(--gray);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  font-family: 'Poppins', sans-serif;
}
.btn-add-row:hover { border-color: var(--red); color: var(--red); background: var(--red-light); }

.bill-totals {
  margin-top: 20px;
  border-top: 1.5px solid var(--border);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.bill-total-row {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: var(--gray);
}

.bill-total-row span:last-child,
.bill-total-row label + * {
  min-width: 110px;
  text-align: right;
  color: var(--black);
  font-weight: 600;
}

.bill-total-row.grand {
  font-size: 18px;
  font-weight: 800;
  color: var(--black);
  border-top: 1.5px solid var(--black);
  padding-top: 10px;
  margin-top: 4px;
  font-family: 'Poppins', sans-serif;
}

.bill-total-row.grand span:last-child { color: var(--red); }

.discount-input {
  width: 90px !important;
  padding: 6px 8px !important;
  border: 1.5px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  font-size: 13px !important;
  text-align: right !important;
  font-family: 'Inter', sans-serif;
  color: var(--black) !important;
  outline: none;
}
.discount-input:focus { border-color: var(--red) !important; }

.bill-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* Bill Preview */
.bill-preview-sticky {
  position: sticky;
  top: 80px;
}

.bill-preview-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.bill-preview-label i { color: var(--red); }

.bill-preview-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
  box-shadow: var(--shadow-md);
  font-size: 12px;
}

.bp-header {
  background: #1a2744;
  color: #fff;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.bp-logo {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: #fff; flex-shrink: 0;
}

.bp-shop-name { font-size: 13px; font-weight: 700; }
.bp-shop-sub { font-size: 9px; opacity: 0.75; margin-top: 1px; }
.bp-devotion { font-size: 8.5px; opacity: 0.55; margin-top: 2px; }

.bp-bill-meta { text-align: right; }
.bp-bill-label { font-size: 9px; opacity: 0.6; text-transform: uppercase; letter-spacing: 0.06em; }
.bp-bill-no { font-size: 15px; font-weight: 700; }
.bp-bill-date { font-size: 9px; opacity: 0.75; margin-top: 2px; }

.bp-contact-strip {
  background: var(--red);
  color: #fff;
  padding: 5px 12px;
  display: flex;
  justify-content: space-around;
  font-size: 9px;
  gap: 4px;
  flex-wrap: wrap;
}

.bp-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
}

.bp-meta-col { padding: 10px 12px; }
.bp-meta-col:first-child { border-right: 1px solid var(--border); }

.bp-meta-label {
  font-size: 8.5px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.bp-meta-val { font-size: 12px; font-weight: 600; color: var(--black); }
.bp-meta-sub { font-size: 9.5px; color: var(--gray); margin-top: 2px; }

.bp-items { padding: 4px 0; }

.bp-totals {
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.bp-total-row {
  display: flex;
  gap: 16px;
  font-size: 11px;
  color: var(--gray);
}

.bp-total-row span:last-child { min-width: 70px; text-align: right; color: var(--black); font-weight: 600; }
.bp-total-row.grand { font-size: 13px; font-weight: 800; color: var(--black); border-top: 1.5px solid var(--black); padding-top: 6px; margin-top: 2px; }
.bp-total-row.grand span:last-child { color: var(--red); }

.bp-footer {
  background: var(--gray-light);
  padding: 8px 12px;
  font-size: 9px;
  color: var(--gray);
  text-align: center;
  border-top: 1px solid var(--border);
}

/* Responsive bill */
@media (max-width: 900px) {
  .bill-form-wrapper { grid-template-columns: 1fr; }
  .bill-preview-sticky { position: static; }
}

@media (max-width: 600px) {
  /* Cards */
  .bill-card { padding: 14px 12px; margin-bottom: 14px; max-width: 100%; }
  .bill-card-title { font-size: 13px; margin-bottom: 14px; }

  /* Form rows stack to single column */
  .form-row { grid-template-columns: 1fr !important; gap: 0; }

  /* Inputs full width */
  .form-group input,
  .form-group select,
  .form-group textarea { width: 100%; max-width: 100%; box-sizing: border-box; }

  /* Actions */
  .bill-actions { flex-direction: column; gap: 10px; }
  .bill-actions .btn-primary,
  .bill-actions .btn-outline { text-align: center; justify-content: center; width: 100%; box-sizing: border-box; }

  /* Items table — make it scroll smoothly */
  .bill-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .bill-items-table { min-width: 420px; font-size: 12px; }
  .bill-items-table th,
  .bill-items-table td { padding: 5px 4px; }
  .bill-items-table td input,
  .bill-items-table td select { padding: 5px 6px; font-size: 12px; }

  /* Totals */
  .bill-totals { align-items: stretch; }
  .bill-total-row { justify-content: space-between; font-size: 13px; }
  .bill-total-row.grand { font-size: 16px; }
  .discount-input { width: 80px !important; }

  /* Preview card */
  .bill-preview-card { font-size: 11px; max-width: 100%; }
  .bp-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .bp-bill-meta { text-align: left; }
  .bp-contact-strip { font-size: 8.5px; gap: 6px; }
  .bp-meta { grid-template-columns: 1fr; }
  .bp-meta-col:first-child { border-right: none; border-bottom: 1px solid var(--border); }

  /* Section padding */
  .billing-section { padding: 24px 0 40px; }
  .container { padding: 0 14px; }

  /* Section header */
  .section-title { font-size: 22px; }
  .section-desc { font-size: 13px; }
}