.ldcsc-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(280px, 0.95fr);
  gap: 14px;
  background: #f4f6f8;
  border-radius: 8px;
  padding: 14px;
  max-width: 1100px;
  margin: 0 auto;
  font-family: "Inter", Arial, sans-serif;
}

.ldcsc-left,
.ldcsc-right {
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 6px;
  padding: 14px;
}

.ldcsc-left h2 {
  margin: 12px 0 8px;
  color: #0d2d47;
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
}

.ldcsc-left h2:first-child {
  margin-top: 0;
}

.ldcsc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
}

.ldcsc-field label {
  display: block;
  font-size: 11px;
  color: #344a5f;
  margin: 0 0 4px;
  font-weight: 600;
}

.ldcsc-grid input,
.ldcsc-grid select,
.ldcsc-card-element,
.ldcsc-payment-element {
  border: 1px solid #e0e6ec;
  border-radius: 4px;
  min-height: 38px;
  padding: 8px 10px;
  font-size: 12px;
  width: 100%;
  box-sizing: border-box;
  background: #fbfcfd;
}

.ldcsc-grid select {
  appearance: none;
}

.ldcsc-card-box {
  border: 1px solid #e0e6ec;
  border-radius: 6px;
  padding: 10px;
  background: #fbfcfd;
}

.ldcsc-card-errors {
  color: #cc0000;
  margin-top: 8px;
  font-size: 13px;
}

.ldcsc-card-errors--visible {
  margin-top: 0;
}

.ldcsc-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 6px;
  color: #1f2b37;
  font-size: 11px;
  line-height: 1.35;
}

.ldcsc-submit {
  width: 100%;
  margin-top: 10px;
  background: #003b6f;
  color: #fff;
  border: 0;
  border-radius: 5px;
  min-height: 38px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.ldcsc-submit[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

.ldcsc-status {
  margin-top: 10px;
  font-size: 14px;
  color: #0b2a44;
}

.ldcsc-mini {
  font-size: 10px;
  text-transform: uppercase;
  color: #8798aa;
  letter-spacing: 0.4px;
  margin: 0;
  font-weight: 700;
}

.ldcsc-right h3 {
  margin: 2px 0 8px;
  color: #0d2d47;
  font-size: 24px;
  line-height: 1.1;
}

.ldcsc-benefits,
.ldcsc-security {
  margin: 12px 0;
  padding-left: 18px;
  color: #1f2b37;
  font-size: 11px;
  line-height: 1.45;
}

.ldcsc-totals {
  margin-top: 10px;
}

.ldcsc-totals div {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #e8edf2;
  padding-top: 8px;
  font-size: 12px;
  color: #20374c;
  font-weight: 600;
}

.ldcsc-totals div + div {
  margin-top: 2px;
}

.ldcsc-payment-methods {
  margin-top: 10px;
}

.ldcsc-pay-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  font-size: 12px;
}

.ldcsc-pay-row--muted {
  opacity: 0.65;
}

.ldcsc-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #e0e6ec;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 11px;
  margin-bottom: 8px;
}

.ldcsc-toggle-options {
  display: flex;
  gap: 8px;
}

.ldcsc-promo {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.ldcsc-promo input {
  border: 1px solid #d6dde5;
  border-radius: 2px;
  min-height: 32px;
  padding: 8px 10px;
  width: 100%;
  font-size: 12px;
}

.ldcsc-promo button {
  border: 1px solid #e2b8c8;
  border-radius: 2px;
  background: #fff;
  color: #ce7a95;
  min-height: 32px;
  padding: 0 12px;
  font-size: 12px;
  cursor: pointer;
}

.ldcsc-coupon-status {
  font-size: 11px;
  color: #36546f;
  margin-top: 4px;
}

.ldcsc-method-hint {
  margin-top: 8px;
  font-size: 11px;
  color: #617487;
}

@media (max-width: 900px) {
  .ldcsc-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  /* Flatten both columns so their children share one flex flow and can be reordered. */
  .ldcsc-left,
  .ldcsc-right {
    display: contents;
  }

  /* Left form sections (Persönliche, Unternehmens, Teilnehmer, Zahlungsart) come first. */
  .ldcsc-left > * {
    order: 1;
  }

  /* Right column (Ihre Buchung, totals, security, coupon) comes after the form sections. */
  .ldcsc-right > * {
    order: 2;
  }

  /* Consent + submit button come last, after the right column. */
  .ldcsc-consent-heading,
  .ldcsc-check,
  .ldcsc-submit,
  .ldcsc-status {
    order: 3;
  }

  .ldcsc-grid {
    grid-template-columns: 1fr;
  }
}
