.billing {
  background: var(--bg-light);
  padding: clamp(40px, 8vw, 80px) 0;
}

.billing-content {
  max-width: 1200px;
  margin: 0 auto;
}

.billing h2 {
  text-align: center;
  color: var(--bg-dark);
  margin-bottom: 0.5em;
}

.billing-intro {
  text-align: center;
  color: #374151;
  margin-bottom: 3em;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(17px, 2.5vw, 19px);
  line-height: 1.7;
}

.billing-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2em;
  margin-bottom: 4em;
}

.billing-step {
  background: transparent;
  padding: 0;
  border-radius: 0;
  border: none;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.billing-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-yellow);
  border-radius: 8px;
  margin-bottom: 1.5em;
  flex-shrink: 0;
}

.billing-step h3 {
  color: var(--bg-dark);
  font-weight: 600;
  margin-bottom: 1em;
  font-size: clamp(18px, 2.5vw, 21px);
  text-align: left;
}

.billing-step p {
  color: #374151;
  flex-grow: 1;
  margin-bottom: 0;
  line-height: 1.7;
  font-size: clamp(16px, 2vw, 18px);
  text-align: left;
}

.example-billing-title {
  text-align: center;
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 600;
  color: var(--bg-dark);
  margin-bottom: 2em;
}

.example-billing {
  background: transparent !important;
  border-radius: 0;
  padding: 0;
  margin-top: 2em;
}

/* INVOICE MOCKUP STYLING */
.invoice-mockup {
  background: var(--bg-invoice) !important;
  border-radius: 12px;
  padding: 2em;
  text-align: left;
  border: 1px solid var(--border-medium);
  box-shadow: 0 0px 25px rgba(0,0,0,0.50);
  /* box-shadow: 0 2px 8px rgba(0,0,0,0.06); */
  max-width: 800px;
  margin: 0 auto;
}

.invoice-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 1.5em;
  border-bottom: 2px solid #b0b0b0;
  margin-bottom: 1.5em;
  background: transparent;
}

.invoice-logo {
  background: transparent;
}

.invoice-number {
  text-align: right;
  font-size: 14px;
  color: var(--bg-dark);
  background: transparent;
  font-weight: 500;
}

.invoice-body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2em;
  margin-bottom: 1.5em;
  background: transparent;
}

.invoice-section h4 {
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 600;
  color: var(--bg-dark);
  margin-bottom: 0.75em;
}

.invoice-section {
  background: transparent;
}

.payment-details {
  background: transparent;
}

.payment-details p {
  font-size: clamp(14px, 2vw, 16px);
  color: #1f2937;
  margin-bottom: 0.5em;
  line-height: 1.6;
}

.qr-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.qr-placeholder {
  text-align: center;
  background: #ffffff;
  padding: 16px;
  border-radius: 8px;
  border: 2px solid var(--border-medium);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.invoice-table {
  margin: 1.5em 0;
  background: transparent;
}

.invoice-table h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--bg-dark);
  margin-bottom: 0.75em;
}

.invoice-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(14px, 2vw, 16px);
  background: transparent;
}

.invoice-table thead {
  background: var(--border-medium);
}

.invoice-table th {
  padding: 0.75em;
  text-align: left;
  font-weight: 700;
  color: var(--bg-dark);
  border-bottom: 2px solid #a0a0a0;
  background: var(--border-medium);
}

.invoice-table td {
  padding: 0.75em;
  border-bottom: 1px solid #c0c0c0;
  color: #1f2937;
  vertical-align: top;
  background: transparent;
}

.invoice-table tbody tr:hover {
  background: rgba(255, 186, 0, 0.05);
}

.invoice-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5em 0;
  border-top: 2px solid var(--border-light);
  margin-top: 1em;
}

.payment-deadline {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--primary-dark);
}

.total-amount {
  font-size: clamp(17px, 2.5vw, 20px);
  color: var(--primary-dark);
  padding: 0.5em 1em;
  background: var(--bg-light);
  border-radius: 8px;
}

.invoice-thanks {
  margin-top: 1.5em;
  padding-top: 1.5em;
  border-top: 1px solid var(--border-light);
}

/* MOBILE - Extra Small (up to 480px) */
@media (max-width: 480px) {
  .billing-flow {
      grid-template-columns: 1fr;
      gap: 1.5em;
  }

  .billing-icon {
      width: 50px;
      height: 50px;
  }

  .example-billing-title {
      font-size: 20px;
      margin-bottom: 1.5em;
  }

  .invoice-mockup {
      padding: 1.5em;
  }

  .invoice-table table {
      font-size: 12px;
  }

  .example-billing {
      padding: 1.5em;
      margin-top: 1.5em;
  }

  .invoice-mockup {
      padding: 1.25em;
  }

  .invoice-header {
      flex-direction: column;
      gap: 1em;
  }

  .invoice-number {
      text-align: left;
      font-size: 12px;
  }

  .invoice-body {
      grid-template-columns: 1fr;
      gap: 1.5em;
  }

  .payment-details p {
      font-size: 12px;
  }

  .qr-placeholder svg {
      width: 120px;
      height: 120px;
  }

  .invoice-table {
      overflow-x: auto;
  }

  .invoice-table table {
      font-size: 11px;
      min-width: 100%;
  }

  .invoice-table th,
  .invoice-table td {
      padding: 0.5em;
  }

  .invoice-footer {
      flex-direction: column;
      gap: 1em;
      align-items: flex-start;
  }

  .total-amount {
      font-size: 16px;
      width: 100%;
      text-align: center;
  }
}

/* TABLET - Small to Medium (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .billing-flow {
      grid-template-columns: repeat(2, 1fr);
      gap: 1.5em;
  }

  .billing-icon {
      width: 50px;
      height: 50px;
  }

  .example-billing-title {
      font-size: 20px;
      margin-bottom: 1.5em;
  }

  .billing-flow {
      grid-template-columns: repeat(2, 1fr);
      gap: 1.5em;
  }

  .billing-step {
      padding: 1.5em;
  }
}

/* TABLET to DESKTOP - Medium (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {

  .billing-flow {
      grid-template-columns: repeat(2, 1fr);
      gap: 1.5em;
  }

  .billing-icon {
      width: 50px;
      height: 50px;
  }

  .billing-flow {
      grid-template-columns: repeat(2, 1fr);
      gap: 2em;
  }
}

/* MOBILE - Very Small (up to 360px) */
@media (max-width: 360px) {
  .billing-step {
      padding: 1.25em;
  }

  .billing-step h3 {
      font-size: 16px;
      margin-bottom: 0.75em;
  }

  .billing-step p {
      font-size: 14px;
      line-height: 1.5;
  }

  .example-billing {
      padding: 1.25em;
  }

  .invoice-mockup {
      padding: 1em;
  }

  .invoice-table table {
      font-size: 10px;
  }

  .invoice-table th,
  .invoice-table td {
      padding: 0.4em;
  }

  .qr-placeholder svg {
      width: 100px;
      height: 100px;
  }
}