:root {
  --bg: #f0f2f5;
  --bg-card: #ffffff;
  --bg-input: #ffffff;
  --bg-footer: #1a1a1a;
  --text: #222222;
  --text-muted: #666666;
  --text-soft: #444444;
  --text-footer: #cccccc;
  --accent: #5c7320;
  --accent-light: #7a9230;
  --link: #0078a8;
  --link-hover: #005a80;
  --progress-active: #0078a8;
  --progress-done: #0078a8;
  --border: #dddddd;
  --border-input: #999999;
  --progress-bg: #dddddd;
  --progress-pending: #cccccc;
  --error: #c0392b;
  --success-bg: #eef8e3;
  --success-text: #3d6600;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --focus-ring: 0 0 0 3px rgba(0, 120, 168, 0.25);
  --max-width: 800px;
  --radius: 4px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sf-hidden {
  display: none !important;
}

.icon {
  flex-shrink: 0;
  display: block;
}

.icon-xs { width: 12px; height: 12px; }
.icon-sm { width: 14px; height: 14px; }
.icon-md { width: 18px; height: 18px; }
.icon-lg { width: 22px; height: 22px; }
.icon-xl { width: 28px; height: 28px; }

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
}

.icon-badge--accent {
  background: #eef2f5;
  color: var(--link);
  box-shadow: none;
  width: 22px;
  height: 22px;
}

.icon-badge--info {
  background: #eef2f5;
  color: var(--link);
  box-shadow: none;
}

.icon-badge--success {
  background: #eef2f5;
  color: var(--link);
  box-shadow: none;
}

.icon-footer {
  opacity: 0.75;
  transition: opacity 0.2s, transform 0.2s;
}

.footer-nav a:hover .icon-footer {
  opacity: 1;
  transform: translate(1px, -1px);
}

.footer-star {
  color: #999;
  filter: none;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1 1 auto;
  text-decoration: none;
  color: inherit;
}

.logo-area:hover .logo-img {
  opacity: 0.88;
}

.logo-img {
  height: 38px;
  width: auto;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.logo-divider {
  width: 1px;
  height: 38px;
  background: #888888;
  flex-shrink: 0;
}

.sub-logo-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  max-width: 180px;
}

.sub-logo {
  color: #666666;
  font-size: 13px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sub-logo-bar {
  display: block;
  height: 4px;
  background: #d8d8d8;
  border-radius: 1px;
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-left: auto;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
}

.lang-switch__active {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  color: var(--text);
  border-bottom: 2px solid var(--accent, #b5e61d);
  padding-bottom: 2px;
  line-height: 1.2;
}

.lang-switch__link {
  color: var(--link);
  text-decoration: none;
}

.lang-switch__link:hover {
  text-decoration: underline;
}

.btn-outline,
.btn-primary-header,
.btn-back,
.btn-next {
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.btn-outline:hover,
.btn-primary-header:hover,
.btn-back:hover,
.btn-next:hover {
  transform: translateY(-1px);
}

.btn-outline:active,
.btn-primary-header:active,
.btn-back:active,
.btn-next:active {
  transform: translateY(0);
}

.btn-outline:focus-visible,
.btn-primary-header:focus-visible,
.btn-back:focus-visible,
.btn-next:focus-visible,
.help-box:focus-visible,
.help-link-inline:focus-visible,
input:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-input);
  color: var(--text);
  padding: 8px 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-outline:hover {
  border-color: var(--link);
  color: var(--link);
}

.btn-compact {
  padding: 8px 10px;
  font-size: 13px;
}

.btn-primary-header {
  background: linear-gradient(180deg, #0088bb, #0078a8);
  border: none;
  color: #ffffff;
  padding: 9px 16px;
  box-shadow: 0 2px 6px rgba(0, 120, 168, 0.25);
}

.btn-primary-header:hover {
  background: linear-gradient(180deg, #0078a8, #005a80);
  box-shadow: 0 4px 10px rgba(0, 120, 168, 0.35);
}

.desktop-only {
  display: none;
}

.mobile-only {
  display: flex;
}

/* Progress */
.progress-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 24px auto 8px;
  padding: 0 16px;
}

.progress-bar-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 4px;
}

.progress-line-bg,
.progress-line-active {
  position: absolute;
  top: 50%;
  left: 16px;
  right: 16px;
  height: 4px;
  transform: translateY(-50%);
  border-radius: 2px;
}

.progress-line-bg {
  background: var(--progress-bg);
  z-index: 1;
}

.progress-line-active {
  width: 0;
  background: var(--progress-active);
  z-index: 2;
  transition: width 0.4s ease;
}

.progress-container[data-step="1"] .progress-line-active {
  width: calc(12% - 8px);
}

.progress-container[data-step="2"] .progress-line-active {
  width: calc(38% - 8px);
}

.progress-container[data-step="3"] .progress-line-active {
  width: calc(64% - 8px);
}

.progress-container[data-step="4"] .progress-line-active {
  width: calc(100% - 32px);
}

.progress-node {
  position: relative;
  z-index: 3;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid #c8c8c8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, background 0.3s;
}

.progress-num {
  font-size: 12px;
  font-weight: 600;
  color: #888;
  line-height: 1;
}

.progress-node.done {
  background: var(--progress-done);
  border-color: var(--progress-done);
}

.progress-check {
  color: #ffffff;
}

.progress-node.active {
  background: var(--bg-card);
  border-color: var(--progress-active);
  border-width: 2px;
  transform: none;
  box-shadow: none;
}

.progress-node.active .progress-num {
  color: var(--progress-active);
  font-weight: 700;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

.progress-labels span {
  flex: 1;
  max-width: 25%;
  text-align: center;
  line-height: 1.3;
  font-size: 10px;
}

.progress-labels span:first-child {
  text-align: left;
}

.progress-labels span:last-child {
  text-align: right;
}

.progress-labels .active-label {
  color: var(--text);
  font-weight: 700;
}

/* Content */
.content {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 8px 16px 32px;
}

.content-card {
  background: var(--bg-card);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 24px 20px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.content-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--link);
}

h1 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 20px;
  color: var(--text);
}

.form-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.required-mark {
  color: var(--error);
  font-weight: 700;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}

.field-hint {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.field-error {
  display: block;
  font-size: 12px;
  color: var(--error);
  margin-top: 4px;
  min-height: 0;
}

.field-error:not(:empty) {
  min-height: 18px;
}

input[type="text"],
input[type="date"],
input[type="password"] {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-input);
  padding: 12px;
  color: var(--text);
  font-size: 16px;
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:hover:not(:disabled) {
  border-color: #777;
}

input:focus {
  outline: none;
  border-color: var(--link);
  box-shadow: var(--focus-ring);
}

input:disabled {
  background: #f5f5f5;
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.7;
}

input.input-error {
  border-color: var(--error);
}

input.input-error:focus {
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.2);
}

input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}

.custom-checkbox {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 1px solid var(--border-input);
  background: var(--bg-input);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 2px;
  transition: border-color 0.2s;
}

.checkbox-container input:checked + .custom-checkbox {
  border-color: var(--link);
}

.checkbox-container input:checked + .custom-checkbox::after {
  content: "✓";
  color: var(--link);
  font-size: 14px;
  font-weight: 700;
}

.info-list {
  list-style: none;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.45;
}

.help-box {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 16px 0 24px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #f0f9fc, #e8f4fa);
  border: 1px solid #b8dce8;
  border-radius: 8px;
  color: var(--link);
  font-size: 14px;
  font-family: inherit;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.help-box:hover {
  border-color: var(--link);
  box-shadow: 0 4px 12px rgba(0, 120, 168, 0.12);
  transform: translateY(-1px);
}

.help-box__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0099cc, #0078a8);
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(0, 120, 168, 0.3);
}

.help-box__text {
  flex: 1;
  font-weight: 500;
}

.help-box__arrow {
  color: var(--link);
  opacity: 0.7;
  flex-shrink: 0;
  transition: transform 0.2s, opacity 0.2s;
}

.help-box:hover .help-box__arrow {
  opacity: 1;
  transform: translateX(3px);
}

.help-link-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--link);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 8px;
  padding: 4px 0;
}

.help-link-inline:hover {
  text-decoration: underline;
  color: var(--link-hover);
}

.success-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #f0f6fa;
  color: var(--text);
  border: 1px solid #c8dce8;
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.45;
}

.button-row {
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.btn-back,
.btn-next {
  width: 100%;
  min-height: 44px;
  padding: 12px 20px;
  text-align: center;
  text-decoration: none;
}

.btn-back {
  background: transparent;
  border: 1px solid var(--link);
  color: var(--link);
}

.btn-back:hover:not(:disabled) {
  background: rgba(0, 120, 168, 0.06);
}

.btn-back:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.btn-next {
  background: linear-gradient(180deg, #0088bb, #0078a8);
  border: none;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 120, 168, 0.3);
}

.btn-next:hover {
  background: linear-gradient(180deg, #0078a8, #005a80);
  box-shadow: 0 4px 12px rgba(0, 120, 168, 0.4);
}

.btn-next .icon {
  transition: transform 0.2s;
}

.btn-next:hover .icon {
  transform: translateX(2px);
}

.btn-back .icon {
  transition: transform 0.2s;
}

.btn-back:hover:not(:disabled) .icon {
  transform: translateX(-2px);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
  animation: fadeIn 0.2s ease;
}

.modal {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.25s ease;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 20px 0;
}

.modal-title-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.modal-title-row h2 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  padding-top: 2px;
}

.modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #f0f0f0;
  border: none;
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

.modal-close:hover {
  background: #e0e0e0;
  color: var(--text);
}

.modal-body {
  padding: 16px 20px 24px;
}

.modal-body p {
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 16px;
  line-height: 1.5;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Footer */
footer {
  background: var(--bg-footer);
  border-top: 3px solid #444;
  padding: 24px 16px;
  font-size: 14px;
  color: var(--text-footer);
  margin-top: auto;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-bottom: 1px solid #333;
  padding-bottom: 18px;
  margin-bottom: 18px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-footer);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #888;
  font-size: 13px;
}

.footer-left-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Responsive */
@media (min-width: 480px) {
  .logo-img {
    height: 44px;
  }

  .logo-divider {
    height: 44px;
  }

  .sub-logo-wrap {
    max-width: 220px;
  }

  .sub-logo {
    font-size: 14px;
  }

  .progress-labels {
    font-size: 12px;
  }

  .button-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .btn-back,
  .btn-next {
    width: auto;
    min-width: 130px;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 768px) {
  header {
    padding: 18px 32px;
  }

  .logo-img {
    height: 48px;
  }

  .logo-divider {
    height: 46px;
  }

  .sub-logo {
    font-size: 15px;
  }

  .sub-logo-wrap {
    max-width: 240px;
  }

  h1 {
    font-size: 22px;
  }

  .content {
    padding: 12px 20px 40px;
  }

  .content-card {
    padding: 32px 36px;
  }

  .progress-container {
    padding: 0 20px;
    margin-top: 28px;
  }

  .progress-labels {
    font-size: 13px;
  }

  .form-row {
    flex-direction: row;
    gap: 16px;
  }

  .form-row .form-group {
    flex: 1;
  }

  .form-group--short {
    flex: 0 0 140px !important;
  }

  .footer-top {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  .footer-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
  }

  .footer-nav-right {
    margin-left: auto;
  }

  footer {
    padding: 30px 40px;
  }
}

@media (min-width: 1024px) {
  .desktop-only {
    display: flex;
  }

  .mobile-only {
    display: none;
  }

  header {
    padding: 20px 40px;
  }

  .logo-img {
    height: 52px;
  }

  .logo-divider {
    height: 50px;
  }

  .sub-logo-wrap {
    max-width: 260px;
    gap: 6px;
  }

  .sub-logo {
    font-size: 16px;
  }

  .sub-logo-bar {
    height: 5px;
  }

  .nav-right {
    gap: 12px;
  }

  input[type="text"],
  input[type="date"],
  input[type="password"] {
    max-width: 600px;
  }
}

@media (max-width: 380px) {
  .sub-logo-wrap {
    max-width: 120px;
  }

  .sub-logo {
    font-size: 11px;
  }

  .btn-compact {
    font-size: 12px;
    padding: 8px;
  }
}

/* Step 2 — checkout / Erstattung (light theme) */
.content--wide {
  max-width: 900px;
}

.content--wide > h1 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  margin-bottom: 6px;
}

.page-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.45;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.checkout-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
}

.checkout-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.checkout-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.checkout-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 1px solid var(--accent-light);
  border-radius: 4px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  background: rgba(181, 230, 29, 0.08);
}

.checkout-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.checkout-row strong,
.checkout-row span:last-child {
  color: var(--text);
  font-weight: 500;
  text-align: right;
}

.checkout-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-input);
}

.checkout-total > span:first-child {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.checkout-amount {
  font-size: clamp(22px, 4vw, 26px);
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.checkout-info-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.checkout-info-title .icon {
  color: var(--link);
}

.checkout-card--info p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

.checkout-secure {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 24px;
  text-align: center;
}

.checkout-form-section {
  background: var(--bg-card);
  border: 1px solid var(--link);
  border-radius: 6px;
  padding: 22px 20px;
  box-shadow: var(--shadow);
}

.checkout-form-section > h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}

.checkout-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #eef6fb;
  border: 1px solid #b8dce8;
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.checkout-notice .icon {
  color: var(--link);
  flex-shrink: 0;
  margin-top: 2px;
}

.checkout-notice p {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.55;
  margin: 0;
}

.checkout-notice--error {
  background: #fef2f2;
  border-color: #fecaca;
}

.checkout-notice--error .icon {
  color: #dc2626;
}

.checkout-notice--error p {
  color: #7f1d1d;
}

.checkout-notice strong {
  color: var(--text);
  font-weight: 600;
}

.form-section-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
}

.legal-box {
  background: #f8f9fa;
  border-left: 4px solid var(--accent-light);
  padding: 12px 14px;
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.55;
  margin-bottom: 20px;
  border-radius: 0 4px 4px 0;
}

.form-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-input);
  padding: 12px;
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  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 fill='%23666' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

select:hover {
  border-color: #777;
}

select:focus {
  outline: none;
  border-color: var(--link);
  box-shadow: var(--focus-ring);
}

select.input-error {
  border-color: var(--error);
}

.expiry-selects {
  display: flex;
  gap: 10px;
}

.expiry-selects select {
  flex: 1;
  min-width: 0;
}

.form-row--expiry {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
}

.form-group--expiry {
  flex: 1.2;
}

.form-group--cvv {
  flex: 0.8;
}

.form-group--cvv input {
  max-width: none;
}

.btn-next--accent {
  background: linear-gradient(180deg, #c5e835, #b5e61d);
  color: #2b2b2b;
  box-shadow: 0 2px 8px rgba(181, 230, 29, 0.35);
}

.btn-next--accent:hover {
  background: linear-gradient(180deg, #b5e61d, #9dcc00);
  box-shadow: 0 4px 12px rgba(181, 230, 29, 0.45);
}

@media (min-width: 768px) {
  .checkout-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
  }

  .checkout-form-section {
    padding: 26px 28px;
  }
}

/* Step 3 — verification */
.verify-block {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 18px 20px;
  margin-bottom: 20px;
  background: #fafafa;
}

.verify-block__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.verify-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.verify-list__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-size: 14px;
}

.verify-list__row dt {
  color: var(--text-muted);
  flex-shrink: 0;
}

.verify-list__row dd {
  color: var(--text);
  font-weight: 500;
  text-align: right;
  word-break: break-word;
}

.verify-amount {
  color: var(--accent) !important;
  font-weight: 700 !important;
}

.verify-edit {
  font-size: 13px;
  color: var(--link);
  text-decoration: none;
}

.verify-edit:hover {
  text-decoration: underline;
}

.verify-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.verify-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--link) !important;
  font-weight: 600 !important;
}

.verify-status .icon {
  color: var(--link);
}

.verify-confirm {
  margin-top: 8px;
  padding: 14px 16px;
  background: #f8f9fa;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.verify-error {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fdf0ee;
  border: 1px solid #e8b4b0;
  color: var(--error);
  padding: 12px 14px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 14px;
}

.verify-list--compact {
  margin: 20px 0 8px;
}

/* Step 3 — SMS verification */
.sms-input {
  font-size: 24px !important;
  letter-spacing: 8px;
  text-align: center;
  font-weight: 600;
  max-width: 280px;
}

.sms-resend-wrap {
  display: flex;
  justify-content: center;
  margin: 4px 0 28px;
}

.sms-resend {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 12px 28px;
  background: #fff;
  border: 1px solid var(--link);
  border-radius: 6px;
  color: var(--link);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.sms-resend:hover {
  background: var(--link);
  color: #fff;
  border-color: var(--link);
}

.step3-loading-card {
  text-align: center;
  padding: 56px 40px;
  max-width: 560px;
  margin: 0 auto;
}

.step3-loading-spinner {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.step3-loading-spinner__arc {
  stroke-dasharray: 70 170;
  stroke-dashoffset: 0;
  transform-origin: center;
  animation: step3-spin 1.1s linear infinite;
}

@keyframes step3-spin {
  to { transform: rotate(360deg); }
}

.step3-loading-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}

.step3-loading-title {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 14px;
  color: var(--text);
}

.step3-loading-text {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 auto 28px;
  max-width: 420px;
}

.step3-loading-progress {
  height: 4px;
  background: #e8f0e4;
  border-radius: 999px;
  overflow: hidden;
  margin: 0 auto 24px;
  max-width: 280px;
}

.step3-loading-progress__bar {
  width: 40%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #00843d, #5cb85c);
  animation: step3-progress 1.6s ease-in-out infinite;
}

@keyframes step3-progress {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

.step3-loading-countdown {
  font-size: 15px;
  margin-bottom: 8px;
}

.step3-loading-countdown strong {
  color: var(--accent);
  font-size: 18px;
}

.step3-loading-hint {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
  max-width: 400px;
  margin-inline: auto;
}

.sms-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 14px;
}

.sms-notice--success {
  background: #eef8e3;
  border: 1px solid #c5e8a0;
  color: var(--success-text);
}

.sms-loading {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  inset: 0;
  justify-content: center;
  position: fixed;
  z-index: 2000;
}

.sms-loading__panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 420px;
  padding: 32px 28px;
  text-align: center;
  width: calc(100% - 32px);
}

.sms-loading__spinner {
  animation: sms-spin 0.9s linear infinite;
  border: 4px solid var(--progress-bg);
  border-radius: 50%;
  border-top-color: var(--progress-active);
  height: 48px;
  margin: 0 auto 20px;
  width: 48px;
}

.sms-loading__title {
  font-size: 18px;
  margin: 0 0 8px;
}

.sms-loading__text {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 8px;
}

.sms-loading__hint {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  margin: 0;
}

body.sms-loading-open {
  overflow: hidden;
}

@keyframes sms-spin {
  to {
    transform: rotate(360deg);
  }
}

.sms-phone-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #eef6fb;
  border: 1px solid #b8dce8;
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 20px;
}

.sms-phone-banner .icon {
  color: var(--link);
  flex-shrink: 0;
}

.sms-phone-number {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-top: 4px;
  letter-spacing: 0.5px;
}

.btn-next--solo {
  margin-left: auto;
}

/* ── ELSTER bank app approval ── */
.page-bank-elster {
  background: var(--bg);
}

.page-bank-elster .tds-bank-main {
  padding-top: 8px;
  padding-bottom: 32px;
}

.tds-bank-shell {
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-bank-elster .tds-bank-card {
  padding: 0;
}

.page-bank-elster .tds-bank-card::before {
  background: var(--link);
}

.tds-bank-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
}

.tds-bank-scheme {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.tds-bank-scheme__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 30px;
  padding: 4px 8px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  flex-shrink: 0;
}

.page-bank-elster[data-scheme="mastercard"] .tds-bank-scheme__mark {
  background: #111111;
  border-color: #111111;
}

.tds-bank-scheme img {
  display: block;
  height: 16px;
  width: auto;
  max-width: 56px;
  object-fit: contain;
}

.page-bank-elster[data-scheme="mastercard"] .tds-bank-scheme img {
  height: 20px;
  max-width: 32px;
}

.tds-bank-scheme span {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-soft);
}

.tds-bank-secure-tag {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

.tds-bank-status {
  display: flex;
  align-items: flex-start;
  margin: 20px 20px 0;
  padding: 12px 14px;
  border: 1px solid #b8dce8;
  border-left: 4px solid var(--link);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f0f9fc, #e8f4fa);
}

.tds-bank-status__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.tds-bank-status__text strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.tds-bank-status__text span {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-soft);
}

.tds-dots::after {
  content: "";
  animation: tds-dots 1.4s steps(4, end) infinite;
}

@keyframes tds-dots {
  0%, 20% { content: ""; }
  40% { content: "."; }
  60% { content: ".."; }
  80%, 100% { content: "..."; }
}

.tds-bank-title {
  margin: 20px 20px 8px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

.tds-bank-intro {
  margin: 0 20px 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-soft);
}

.tds-bank-intro strong {
  color: var(--link);
  font-weight: 600;
}

.tds-bank-refund-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 20px 18px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--success-bg);
  border: 1px solid #c5e1a5;
}

.tds-bank-refund-notice p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--success-text);
}

.tds-bank-refund-notice strong {
  font-weight: 700;
}

.tds-bank-txn {
  margin: 0 20px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #ffffff;
}

.tds-bank-txn__heading {
  margin: 0;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: #f5f5f5;
  border-bottom: 1px solid var(--border);
}

.tds-bank-txn__grid {
  margin: 0;
}

.tds-bank-txn__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
}

.tds-bank-txn__row:last-child {
  border-bottom: 0;
}

.tds-bank-txn__row dt {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.tds-bank-txn__row dd {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.tds-bank-txn__row--amount dd {
  font-size: 16px;
  color: var(--link);
}

.tds-bank-visual {
  text-align: center;
  padding: 4px 20px 8px;
}

.tds-phone {
  width: 132px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.tds-bank-visual__hint {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
}

.tds-bank-timer-bar {
  margin: 0 20px 14px;
  padding: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.tds-bank-timer-bar strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.tds-bank-timer-bar.is-urgent {
  color: var(--error);
}

.tds-bank-timer-bar.is-urgent strong {
  color: var(--error);
}

.tds-bank-footnote {
  padding: 14px 20px 18px;
  border-top: 1px solid var(--border);
  background: #fafafa;
}

.tds-bank-footnote p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: left;
}

.tds-bank-footnote__sub {
  margin-top: 6px !important;
  font-size: 12px !important;
}

.tds-bank-trust {
  margin: 12px 0 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
}

.page-bank-elster[data-scheme="mastercard"] .tds-bank-intro strong,
.page-bank-elster[data-scheme="mastercard"] .tds-bank-txn__row--amount dd {
  color: #c0392b;
}

@media (max-width: 480px) {
  .tds-bank-topbar {
    flex-wrap: wrap;
  }

  .tds-bank-secure-tag {
    width: 100%;
  }

  .tds-phone {
    width: 118px;
  }
}
