﻿/* =========================================================
   Form Wizard Design System â€” Steps 1â€“5
   Matches reference layout (yellow header, cream bg, green CTA)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --fw-yellow: #FFC107;
  --fw-yellow-soft: #FFF3CD;
  --fw-yellow-border: #F0B429;
  --fw-green: #4CAF50;
  --fw-green-dark: #3d9c41;
  --fw-green-soft: #E8F5E9;
  --fw-navy: #0F1C2E;
  --fw-text: #1A2332;
  --fw-muted: #6B7280;
  --fw-border: #E5E7EB;
  --fw-bg: #F8F5EF;
  --fw-white: #FFFFFF;
  --fw-radius: 14px;
  --fw-radius-sm: 10px;
  --fw-shadow: 0 4px 24px rgba(15, 28, 46, 0.06);
  --fw-font: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
}

/* ----- Reset page chrome for wizard pages ----- */
html:has(body.fw-page) {
  overflow-x: hidden;
  max-width: 100%;
}

body.fw-page {
  margin: 0;
  font-family: var(--fw-font);
  background: var(--fw-bg);
  color: var(--fw-text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

body.fw-page *,
body.fw-page *::before,
body.fw-page *::after {
  box-sizing: border-box;
}

body.fw-page .container {
  max-width: 1100px;
  width: 100%;
  padding-left: 20px;
  padding-right: 20px;
  margin-left: auto;
  margin-right: auto;
}

/* ----- Header ----- */
.fw-header {
  background: var(--fw-yellow);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  overflow: visible;
}

.fw-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  overflow: visible;
  position: relative;
  box-sizing: border-box;
}

.fw-header-inner .language-switcher {
  margin-left: auto;
  position: relative;
  z-index: 1001;
  flex-shrink: 0;
}

.fw-header-inner .lang-dropdown-menu {
  z-index: 1002;
  right: 0;
  left: auto;
}

.fw-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
  min-width: 0;
  flex: 1 1 auto;
  max-width: calc(100% - 88px);
}

.fw-logo img.headerlogo {
  height: 35px;
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
  object-position: left center;
}

.fw-header-badges {
  display: flex;
  align-items: center;
  gap: 18px;
}

.fw-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--fw-navy);
  white-space: nowrap;
}

.fw-badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ----- Page title ----- */
.fw-page-intro {
  text-align: center;
  padding: 28px 20px 4px;
}

.fw-page-intro h1 {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 800;
  color: var(--fw-navy);
  letter-spacing: -0.02em;
}

.fw-page-intro p {
  margin: 0;
  font-size: 15px;
  color: var(--fw-muted);
  font-weight: 500;
}

/* ----- Stepper ----- */
.fw-stepper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 720px;
  margin: 18px auto 16px;
  padding: 0 16px;
  list-style: none;
}

.fw-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  min-width: 0;
}

.fw-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 16px;
  left: calc(50% + 20px);
  right: calc(-50% + 20px);
  height: 3px;
  background: var(--fw-border);
  z-index: 0;
}

.fw-step.is-done:not(:last-child)::after,
.fw-step.is-active:not(:last-child)::after {
  background: var(--fw-green);
}

.fw-step.is-active:not(:last-child)::after {
  background: linear-gradient(90deg, var(--fw-green) 0%, var(--fw-border) 100%);
}

.fw-step-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #E5E7EB;
  color: #9CA3AF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  position: relative;
  z-index: 1;
  border: 3px solid transparent;
}

.fw-step.is-done .fw-step-dot {
  background: var(--fw-green);
  color: #fff;
}

.fw-step.is-active .fw-step-dot {
  background: var(--fw-yellow);
  color: var(--fw-navy);
  box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.25);
}

.fw-step-label {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #9CA3AF;
  text-align: center;
  line-height: 1.3;
  max-width: 110px;
}

.fw-step.is-active .fw-step-label,
.fw-step.is-done .fw-step-label {
  color: var(--fw-navy);
}

/* Mobile circular stepper — hidden on desktop */
.fw-mobile-stepper {
  display: none;
}

.fw-mobile-step-ring {
  --fw-progress: 25;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: conic-gradient(#F5C518 calc(var(--fw-progress) * 1%), #E5E7EB 0);
  position: relative;
}

.fw-mobile-step-ring::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: #fff;
}

.fw-mobile-step-frac {
  position: relative;
  z-index: 1;
  font-size: 15px;
  font-weight: 800;
  color: var(--fw-navy);
}

.fw-mobile-step-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.fw-mobile-step-text strong {
  font-size: 16px;
  font-weight: 800;
  color: var(--fw-navy);
  line-height: 1.25;
}

.fw-mobile-step-text span {
  font-size: 13px;
  font-weight: 500;
  color: var(--fw-muted);
}

/* Sidebar accordion head — plain on desktop */
.fw-side-acc-head {
  display: block;
  width: 100%;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0 0 0;
  text-align: left;
  cursor: default;
  pointer-events: none;
  font: inherit;
  color: inherit;
}

.fw-side-acc-text {
  min-width: 0;
}

.fw-side-chevron {
  display: none;
}

.fw-side-body {
  display: block;
}

/* ----- Layout grid ----- */
.fw-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto 40px;
  padding: 0 20px;
}

.fw-main-card,
.fw-side-card {
  background: var(--fw-white);
  border-radius: var(--fw-radius);
  box-shadow: var(--fw-shadow);
  border: 1px solid rgba(15, 28, 46, 0.04);
}

.fw-main-card {
  padding: 32px 36px;
}

.fw-side-card {
  padding: 24px;
  position: sticky;
  top: 80px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.fw-card-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  color: var(--fw-navy);
}

.fw-card-sub {
  margin: 0 0 28px;
  font-size: 14px;
  color: var(--fw-muted);
  font-weight: 500;
}

.fw-side-title {
  display: block;
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 800;
  color: var(--fw-navy);
}

.fw-side-sub {
  display: block;
  margin: 0 0 18px;
  font-size: 12px;
  color: var(--fw-muted);
}

/* ----- Choice cards (Step 1) ----- */
.fw-field-group {
  margin-bottom: 28px;
}

.fw-field-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--fw-text);
  margin-bottom: 12px;
}

.fw-choice-row {
  display: grid;
  gap: 12px;
}

.fw-choice-row.cols-2 {
  grid-template-columns: 1fr 1fr;
}

.fw-choice-row.cols-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.fw-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 1.5px solid var(--fw-border);
  border-radius: var(--fw-radius-sm);
  background: var(--fw-white);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  position: relative;
  user-select: none;
  font-weight: 600;
  font-size: 15px;
  color: var(--fw-text);
}

.fw-choice:hover {
  border-color: #D1D5DB;
}

.fw-choice.is-selected {
  background: var(--fw-yellow-soft);
  border-color: var(--fw-yellow-border);
  box-shadow: 0 0 0 1px var(--fw-yellow-border);
}

.fw-choice-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--fw-yellow);
  color: var(--fw-navy);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

.fw-choice.is-selected .fw-choice-check {
  display: flex;
}

.fw-choice-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #F3F4F6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fw-muted);
  flex-shrink: 0;
}

.fw-choice.is-selected .fw-choice-icon {
  background: rgba(240, 180, 41, 0.25);
  color: var(--fw-navy);
}

.fw-choice-icon svg {
  width: 20px;
  height: 20px;
}

.fw-choice-text {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.fw-choice-main {
  font-weight: 600;
  font-size: 15px;
  color: var(--fw-text);
  line-height: 1.3;
}

.fw-choice-sub {
  font-weight: 500;
  font-size: 12px;
  color: #9CA3AF;
  line-height: 1.3;
}

.fw-choice.is-selected .fw-choice-sub {
  color: #8A9099;
}

.fw-date-wrap {
  margin-top: 14px;
  display: none;
}

.fw-date-wrap.is-visible {
  display: block;
}

/* ----- Form fields ----- */
.fw-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--fw-text);
  margin-bottom: 8px;
}

.fw-label .req {
  color: #E53935;
}

.fw-input,
.fw-select,
body.fw-page .form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--fw-border);
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--fw-font);
  background: #FAFAFA;
  color: var(--fw-text);
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
  height: auto;
  box-shadow: none;
}

.fw-input:focus,
.fw-select:focus,
body.fw-page .form-control:focus {
  outline: none;
  border-color: var(--fw-yellow-border);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.18);
}

.fw-row {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.fw-row.cols-2 {
  grid-template-columns: 1fr 1fr;
}

.fw-row.street-num {
  grid-template-columns: 1fr 110px;
}

.fw-row.plz-ort {
  grid-template-columns: 140px 1fr;
}

.fw-section-block {
  margin-bottom: 28px;
}

.fw-section-block h3 {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--fw-navy);
}

/* ----- Additional person ----- */
.fw-btn-add {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1.5px solid var(--fw-yellow-border);
  border-radius: 8px;
  background: #fff;
  color: var(--fw-text);
  font-family: var(--fw-font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.fw-btn-add:hover {
  background: var(--fw-yellow-soft);
}

.fw-btn-add:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.additional-person {
  background: #F9FAFB;
  border: 1px solid var(--fw-border);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
  position: relative;
}

.person-remove {
  position: absolute;
  top: 12px;
  right: 14px;
  color: #E53935;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  float: none;
}

/* ----- Radio pills ----- */
.fw-radio-row {
  display: flex;
  gap: 24px;
  margin-top: 8px;
}

.fw-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.fw-radio input {
  accent-color: var(--fw-yellow-border);
  width: 18px;
  height: 18px;
}

/* ----- Primary CTA ----- */
.fw-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 28px;
  background: var(--fw-green);
  color: #fff !important;
  border: none;
  border-radius: 10px;
  font-family: var(--fw-font);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  text-decoration: none;
  margin-top: 8px;
}

.fw-btn-primary:hover {
  background: var(--fw-green-dark);
  color: #fff;
}

.fw-btn-primary:active {
  transform: scale(0.99);
}

.fw-btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.fw-actions {
  margin-top: 28px;
  padding-top: 8px;
}

/* ----- Sidebar summary ----- */
.fw-summary-box {
  background: #F3F4F6;
  border: 1px solid var(--fw-border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.fw-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.fw-summary-head h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--fw-navy);
}

.fw-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--fw-font);
  font-size: 11px;
  font-weight: 700;
  color: var(--fw-muted);
  cursor: pointer;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fw-edit-btn:hover {
  color: var(--fw-navy);
}

.fw-kv {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  margin-bottom: 8px;
  min-width: 0;
  max-width: 100%;
}

.fw-kv:last-child {
  margin-bottom: 0;
}

.fw-kv-label {
  color: var(--fw-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex: 0 0 auto;
  max-width: 42%;
  line-height: 1.35;
}

.fw-kv-value {
  font-weight: 600;
  color: var(--fw-text);
  text-align: right;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

/* ----- Trust bar ----- */
.fw-trust {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px 40px;
  padding: 28px 20px;
  background: transparent;
  max-width: 1100px;
  margin: 0 auto;
}

.fw-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fw-muted);
}

.fw-trust-item svg {
  width: 22px;
  height: 22px;
  color: #9CA3AF;
  flex-shrink: 0;
}

/* ----- Footer ----- */
.fw-footer {
  background: var(--fw-navy);
  padding: 28px 20px 24px;
  margin-top: 8px;
}

.fw-footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 0;
  margin-bottom: 12px;
  font-size: 14px;
}

.fw-footer-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 0 10px;
}

.fw-footer-links a:hover {
  text-decoration: underline;
}

.fw-footer-links .sep {
  color: rgba(255, 255, 255, 0.35);
}

.fw-footer-copy {
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

/* ----- Step panels ----- */
.fw-panel {
  display: none;
}

.fw-panel.is-active {
  display: block;
  animation: fwFadeIn 0.25s ease;
}

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

/* ----- Loading overlay ----- */
.loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 28, 46, 0.72);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.loading-overlay.active {
  display: flex;
}

.loading-content {
  text-align: center;
  color: #fff;
}

.spinner {
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top: 4px solid var(--fw-yellow);
  border-radius: 50%;
  width: 52px;
  height: 52px;
  animation: spin 0.9s linear infinite;
  margin: 0 auto 18px;
}

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

.loading-text {
  font-size: 17px;
  font-weight: 700;
}

/* ----- Review (Step 4) ----- */
.fw-review-list {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.fw-form-error {
  display: none;
  background: #FDECEA;
  border: 1px solid #F5C2C0;
  color: #B42318;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.fw-form-error.is-visible,
.fw-form-error:not([hidden]) {
  display: block;
}

.fw-verify-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--fw-green-soft);
  border: 1px solid #A5D6A7;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 16px;
  color: #2E7D32;
  font-weight: 600;
  font-size: 14px;
}

.fw-verify-bar svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.fw-verify-toggle {
  background: none;
  border: none;
  font-family: var(--fw-font);
  font-size: 13px;
  font-weight: 700;
  color: #2E7D32;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
}

.fw-verify-details {
  display: none;
  margin-bottom: 20px;
}

.fw-verify-details.is-open {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

/* Step 4 package + price layout */
.fw-step4-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
  align-items: start;
}

.fw-pkg-title {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--fw-navy);
}

.fw-pkg-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 1.5px solid var(--fw-border);
  border-radius: 12px;
  margin-bottom: 12px;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.15s, background 0.15s;
  position: relative;
}

.fw-pkg-option.is-selected {
  border-color: var(--fw-green);
  background: var(--fw-green-soft);
  box-shadow: 0 0 0 1px var(--fw-green);
}

.fw-pkg-option input {
  accent-color: var(--fw-green);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.fw-pkg-meta {
  flex: 1;
  min-width: 0;
}

.fw-pkg-meta strong {
  display: block;
  font-size: 15px;
  color: var(--fw-navy);
}

.fw-pkg-meta span {
  font-size: 13px;
  color: var(--fw-muted);
  font-weight: 500;
}

.fw-pkg-badge {
  position: absolute;
  top: -10px;
  right: 14px;
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.fw-price-card {
  border: 1.5px solid var(--fw-border);
  border-radius: 12px;
  padding: 20px;
  background: #fff;
}

.fw-price-main {
  font-size: 28px;
  font-weight: 800;
  color: var(--fw-green);
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}

.fw-price-save {
  font-size: 13px;
  color: var(--fw-green);
  font-weight: 600;
  margin: 0 0 16px;
}

.fw-price-save s {
  color: var(--fw-muted);
  font-weight: 500;
  margin-right: 4px;
}

.fw-price-rows {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--fw-border);
}

.fw-price-rows .fw-kv-label {
  font-size: 12px;
}

.fw-features-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--fw-navy);
  margin: 0 0 10px;
}

.fw-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.fw-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--fw-text);
  font-weight: 500;
}

.fw-features li::before {
  content: "\2713";
  color: var(--fw-green);
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
  flex-shrink: 0;
}

.fw-legal-block {
  margin: 8px 0 20px;
}

.fw-legal-block h3 {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 800;
  color: var(--fw-navy);
}

.fw-terms {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--fw-text);
  font-weight: 500;
}

.fw-terms input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--fw-yellow-border);
  flex-shrink: 0;
}

.fw-terms a {
  color: var(--fw-yellow-border);
  font-weight: 700;
  text-decoration: none;
}

.fw-terms a:hover {
  text-decoration: none;
}

@media (max-width: 900px) {
  .fw-step4-grid {
    grid-template-columns: 1fr;
  }
}


/* ----- Payment page: Step 5 two-column layout ----- */
body.fw-page .payment-container {
  background: transparent !important;
  min-height: auto !important;
  max-width: 1100px !important;
  margin: 24px auto 40px !important;
  padding: 0 20px !important;
  box-shadow: none !important;
}

body.fw-page .header-top,
body.fw-page .dark-footer,
body.fw-page #fw-payment-intro {
  display: none !important;
}

body.fw-page .well.box-main {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.fw-page #payment-checkout-shell.container {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.fw-page .section-title {
  font-family: var(--fw-font) !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  color: var(--fw-navy) !important;
  margin: 0 0 18px !important;
  padding: 0 !important;
  border: none !important;
}

/* Hide billing (inputs still readable by JS for save_billing) */
body.fw-page .billing-section {
  display: none !important;
}

/* Show payment errors in a fixed toast when billing is hidden */
body.fw-page #error-message.active {
  position: fixed !important;
  left: 50% !important;
  top: 80px !important;
  transform: translateX(-50%);
  z-index: 10001;
  width: min(520px, calc(100% - 32px));
  display: block !important;
  margin: 0 !important;
  padding: 14px 18px !important;
  background: #fff3f3 !important;
  border: 1px solid #f5c2c7 !important;
  color: #842029 !important;
  border-radius: 10px !important;
  box-shadow: var(--fw-shadow) !important;
}

/* Main Step 5 grid: banner full-width, payment left, summary right */
body.fw-page .payment-content.fw-step5-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 320px !important;
  gap: 20px 28px !important;
  align-items: start !important;
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 8px 0 0 !important;
  flex-wrap: nowrap !important;
}

body.fw-page .payment-content.fw-step5-grid > .thank-you-message,
body.fw-page .payment-content.fw-step5-grid > #fw-success-banner {
  grid-column: 1 / -1 !important;
  grid-row: 1 !important;
  margin: 0 0 4px !important;
}

body.fw-page .payment-content.fw-step5-grid > #payment-modal,
body.fw-page .payment-content.fw-step5-grid > #payment-modal.active {
  grid-column: 1 !important;
  grid-row: 2 !important;
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  left: auto !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  z-index: 1 !important;
  display: block !important;
  overflow: visible !important;
  justify-content: stretch !important;
  align-items: stretch !important;
}

body.fw-page .payment-content.fw-step5-grid > .order-summary {
  grid-column: 2 !important;
  grid-row: 2 !important;
  position: sticky !important;
  top: 80px !important;
  flex: none !important;
  width: auto !important;
  background: var(--fw-white) !important;
  border-radius: 12px !important;
  box-shadow: var(--fw-shadow) !important;
  border: 1px solid rgba(15, 28, 46, 0.06) !important;
  border-left: 1px solid rgba(15, 28, 46, 0.06) !important;
  padding: 22px 20px !important;
}

body.fw-page .payment-modal-content {
  width: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
  animation: none !important;
}

body.fw-page .payment-modal .progress-indicator-container {
  display: none !important;
}

body.fw-page .thank-you-message {
  background: #E8F5E9 !important;
  border: 1px solid #A5D6A7 !important;
  border-radius: 12px !important;
  margin: 0 0 18px !important;
  padding: 0 !important;
}

body.fw-page .thank-you-message-inner {
  display: flex !important;
  align-items: flex-start !important;
  gap: 14px !important;
  padding: 14px 18px !important;
}

body.fw-page .fw-success-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #43A047;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}

body.fw-page .thank-you-heading {
  color: #2E7D32 !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  margin: 0 0 2px !important;
  line-height: 1.35 !important;
}

body.fw-page .fw-success-sub {
  margin: 0 !important;
  font-size: 13px !important;
  color: #388E3C !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
}

body.fw-page .payment-modal-body {
  padding: 0 !important;
  background: transparent !important;
}

/* Payment method panel: title | method tile left + card form right | CTA full width */
body.fw-page .payment-card-box {
  background: var(--fw-white) !important;
  border: 1px solid rgba(15, 28, 46, 0.06) !important;
  border-radius: 14px !important;
  box-shadow: var(--fw-shadow) !important;
  padding: 24px !important;
  display: grid !important;
  grid-template-columns: minmax(160px, 200px) minmax(0, 1fr) !important;
  column-gap: 28px !important;
  row-gap: 16px !important;
  align-items: start !important;
}

body.fw-page .payment-card-box > .fw-method-title {
  grid-column: 1 / -1 !important;
  margin: 0 !important;
}

body.fw-page .payment-total-box,
body.fw-page .trust-badges {
  display: none !important;
}

/* Payment processing loader: centered full-screen overlay */
body.fw-page #payment-modal-loading.active {
  display: flex !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 10002 !important;
  grid-column: unset !important;
  margin: 0 !important;
  padding: 24px !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: column !important;
  background: rgba(15, 28, 46, 0.55) !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
}

body.fw-page .payment-card-box > .pay-now-button,
body.fw-page .payment-card-box > #pay-now-button,
body.fw-page .payment-card-box > #payment-modal-error,
body.fw-page .payment-card-box > #payment-modal-loading,
body.fw-page .payment-card-box > #paypal-button-container,
body.fw-page .payment-card-box > #ngenius-3ds-mount {
  grid-column: 1 / -1 !important;
}

/* N-Genius form also uses .card-element-container — keep it in the right column */
body.fw-page #ngenius-card-container.card-element-container {
  grid-column: 2 !important;
  grid-row: 1 / span 8 !important;
}

/* Method list + form share the 2-col panel via display:contents */
body.fw-page .payment-methods.fw-method-tiles {
  display: contents !important;
  margin: 0 !important;
}

body.fw-page .fw-method-tile {
  display: contents !important;
}

body.fw-page .fw-method-tile[style*="display: none"],
body.fw-page .fw-method-tile[style*="display:none"] {
  display: none !important;
}

body.fw-page .fw-method-tile[style*="display: none"] > *,
body.fw-page .fw-method-tile[style*="display:none"] > * {
  display: none !important;
}

body.fw-page .fw-method-tile .payment-method-header {
  grid-column: 1 !important;
  position: relative !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
  margin: 0 !important;
  border: 1.5px solid #E8E5DC !important;
  border-radius: 12px !important;
  background: #fff !important;
  padding: 16px 14px !important;
  cursor: pointer !important;
  min-height: 78px !important;
  transition: border-color 0.15s ease, background 0.15s ease !important;
}

body.fw-page .fw-method-tile.active .payment-method-header {
  border-color: #E8B923 !important;
  background: #FFF8E1 !important;
}

body.fw-page .fw-method-tile input[type="radio"] {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  accent-color: #C9A227 !important;
  cursor: pointer !important;
  opacity: 1 !important;
  z-index: 2 !important;
}

body.fw-page .fw-method-tile .payment-method-content {
  width: 100% !important;
  text-align: left !important;
  display: block !important;
  padding-right: 22px !important;
  cursor: pointer !important;
}

body.fw-page .fw-method-tile .payment-method-name {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--fw-navy) !important;
  margin: 0 !important;
  line-height: 1.3 !important;
}

body.fw-page .fw-tile-sub {
  font-size: 12px;
  color: var(--fw-muted);
  margin-top: 4px;
  font-weight: 500;
  line-height: 1.3;
}

body.fw-page .fw-method-tile .payment-icons {
  display: none !important;
}

body.fw-page .fw-tile-check {
  display: none !important;
}

/* Card form sits in the right column beside the method tile (top-aligned) */
body.fw-page .fw-method-tile .card-element-container {
  grid-column: 2 !important;
  grid-row: 1 / span 8 !important;
  margin: 0 !important;
  padding: 0 0 0 4px !important;
  border: none !important;
  background: transparent !important;
}

/* When a method title is present, form starts on the row under the title */
body.fw-page .payment-card-box:has(> .fw-method-title) .fw-method-tile .card-element-container,
body.fw-page .payment-card-box:has(> .fw-method-title) #ngenius-card-container.card-element-container {
  grid-row: 2 / span 8 !important;
}

body.fw-page .fw-card-hint {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--fw-muted);
  line-height: 1.5;
}

body.fw-page .fw-field {
  margin-bottom: 14px;
}

body.fw-page .fw-field:last-child {
  margin-bottom: 0;
}

body.fw-page .fw-field label {
  display: block;
  margin-bottom: 7px;
  font-weight: 700;
  font-size: 13px;
  color: var(--fw-navy);
}

body.fw-page .fw-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 0;
}

body.fw-page .card-input-field {
  border: 1.5px solid #E5E7EB !important;
  border-radius: 10px !important;
  padding: 12px 14px !important;
  background: #fff !important;
  min-height: 48px !important;
  box-shadow: none !important;
}

/* Same primary green as .fw-btn-primary across the funnel */
body.fw-page .pay-now-button,
body.fw-page .payment-modal .pay-now-button,
body.fw-page #pay-now-button {
  background: var(--fw-green) !important;
  border: none !important;
  border-radius: 12px !important;
  font-family: var(--fw-font) !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  width: 100% !important;
  padding: 16px 20px !important;
  margin-top: 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  color: #fff !important;
  box-shadow: none !important;
}

body.fw-page .pay-now-button::before,
body.fw-page #pay-now-button::before {
  content: "";
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.fw-page .pay-now-button:hover,
body.fw-page .payment-modal .pay-now-button:hover:not(:disabled),
body.fw-page #pay-now-button:hover:not(:disabled) {
  background: var(--fw-green-dark) !important;
}

body.fw-page .order-summary .package-selection,
body.fw-page .order-summary .service-description,
body.fw-page .order-summary .order-item-pricing,
body.fw-page .order-summary .order-item-price,
body.fw-page .order-summary .price-row.total {
  display: none !important;
}

body.fw-page .fw-pay-side-toggle {
  display: block;
  width: 100%;
  margin: 0 0 14px;
  padding: 0;
  border: none;
  background: transparent;
  text-align: left;
  cursor: default;
  font: inherit;
  color: inherit;
}

body.fw-page .fw-pay-side-toggle .fw-side-chevron {
  display: none;
}

body.fw-page .fw-side-heading {
  margin: 0 0 14px !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  color: var(--fw-navy) !important;
}

body.fw-page .fw-pay-side-toggle .fw-side-heading {
  margin: 0 !important;
}

body.fw-page .fw-side-card-title {
  display: none !important;
}

body.fw-page .fw-invoice-box {
  background: #FFFBEA;
  border: 1.5px solid #F5E0A0;
  border-radius: 16px;
  padding: 24px 26px;
  margin-bottom: 20px;
}

body.fw-page .fw-invoice-box h3 {
  margin: 0 0 18px;
  font-size: 16px;
  font-weight: 800;
  color: #8B5A2B;
  display: flex;
  align-items: center;
  gap: 10px;
}

body.fw-page .fw-inv-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #F3E2B8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

body.fw-page .fw-invoice-rows {
  display: block;
  width: 100%;
  font-size: 14px;
}

/* Avoid Bootstrap .row — use dedicated invoice rows */
body.fw-page .fw-invoice-rows .fw-inv-row {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  gap: 24px;
  color: var(--fw-text);
  box-sizing: border-box;
}

body.fw-page .fw-invoice-rows .fw-invoice-top {
  padding-bottom: 16px;
}

body.fw-page .fw-inv-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 0 1 auto;
}

body.fw-page .fw-inv-col-right {
  text-align: right;
  align-items: flex-end;
  margin-left: auto;
}

body.fw-page .fw-inv-label {
  font-size: 13px;
  color: #8A9099;
  font-weight: 500;
  line-height: 1.35;
}

body.fw-page .fw-inv-value {
  font-size: 22px;
  color: #0F1C2E;
  font-weight: 800;
  line-height: 1.15;
}

body.fw-page .fw-inv-value strong {
  font-weight: 800;
}

body.fw-page .fw-inv-monthly-line {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}

body.fw-page .fw-inv-suffix {
  font-size: 13px;
  font-weight: 500;
  color: #8A9099;
}

body.fw-page .fw-invoice-rows .fw-inv-total-row {
  padding-top: 16px;
  border-top: 1px solid #F0E2B0;
}

body.fw-page .fw-inv-total-label {
  font-size: 16px;
  font-weight: 800;
  color: #0F1C2E;
  padding-top: 2px;
  margin: 0;
  flex: 0 0 auto;
}

body.fw-page .fw-inv-total-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 2px;
  margin: 0 0 0 auto;
  flex: 0 0 auto;
}

body.fw-page .fw-inv-total-wrap strong {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
  color: #0F1C2E;
}

body.fw-page .fw-inv-total-wrap small {
  font-size: 12px;
  font-weight: 500;
  color: #9AA0A8;
}

body.fw-page .fw-pay-heading {
  margin: 0 0 16px;
  font-size: 26px;
  font-weight: 800;
  color: var(--fw-navy);
  letter-spacing: -0.02em;
}

body.fw-page .fw-method-title {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 800;
  color: var(--fw-navy);
}

body.fw-page .fw-auftrag-section {
  border-bottom: 1px solid var(--fw-border);
  padding-bottom: 14px;
  margin-bottom: 14px;
}

body.fw-page .fw-auftrag-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

body.fw-page .fw-auftrag-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

body.fw-page .fw-auftrag-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

body.fw-page .fw-auftrag-icon svg {
  width: 15px;
  height: 15px;
}

body.fw-page .fw-icon-orange {
  background: #FFF3CD;
  color: #E8A317;
}

body.fw-page .fw-icon-blue {
  background: #E3F2FD;
  color: #1E88E5;
}

body.fw-page .fw-icon-green {
  background: #E8F5E9;
  color: #43A047;
}

body.fw-page .fw-auftrag-section h4 {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fw-muted);
  font-weight: 800;
}

body.fw-page .fw-status-pill {
  display: inline-block;
  background: var(--fw-green-soft);
  color: #2E7D32;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

body.fw-page .fw-kv {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  margin-bottom: 8px;
  min-width: 0;
  max-width: 100%;
}

body.fw-page .fw-kv-label {
  color: var(--fw-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex: 0 0 auto;
  max-width: 42%;
  line-height: 1.35;
}

body.fw-page .fw-kv-value {
  font-weight: 600;
  color: var(--fw-text);
  text-align: right;
  font-size: 13px;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

body.fw-page .fw-addr-block .address-box,
body.fw-page .order-summary {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.fw-page .fw-addr-block {
  margin-bottom: 10px;
}

body.fw-page .fw-addr-block .address-box {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fw-text);
  line-height: 1.4;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

@media (max-width: 900px) {
  .fw-header {
    width: 100%;
    max-width: 100%;
    padding: 10px 0;
  }

  .fw-header-inner {
    padding: 0 12px;
    gap: 8px;
    max-width: 100%;
  }

  .fw-logo {
    max-width: calc(100% - 72px);
  }

  .fw-logo img.headerlogo {
    height: 28px;
    max-width: 100%;
  }

  .fw-header-inner .language-switcher .lang-dropdown-btn {
    padding: 5px 8px;
  }

  .fw-layout {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    padding: 0 16px;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
  }

  .fw-page-intro {
    padding-left: 16px;
    padding-right: 16px;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  body.fw-page .payment-container {
    margin: 12px auto 28px !important;
    padding: 0 12px !important;
    max-width: 100% !important;
  }

  body.fw-page .well.box-main {
    margin-top: 0 !important;
  }

  body.fw-page .payment-content.fw-step5-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    padding-top: 0 !important;
  }

  /* Mobile order: banner → pay → order summary accordion */
  body.fw-page .payment-content.fw-step5-grid > .thank-you-message,
  body.fw-page .payment-content.fw-step5-grid > #fw-success-banner {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  body.fw-page .payment-content.fw-step5-grid > #payment-modal,
  body.fw-page .payment-content.fw-step5-grid > #payment-modal.active {
    grid-column: 1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  body.fw-page .payment-content.fw-step5-grid > .order-summary {
    grid-column: 1 !important;
    grid-row: 3 !important;
    position: static !important;
    top: auto !important;
    width: 100% !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  body.fw-page .payment-modal-content {
    min-height: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body.fw-page .thank-you-message-inner {
    padding: 12px 14px !important;
    gap: 10px !important;
  }

  body.fw-page .thank-you-heading {
    font-size: 14px !important;
  }

  body.fw-page .fw-success-sub {
    font-size: 12px !important;
  }

  body.fw-page .fw-pay-heading {
    font-size: 22px;
    margin: 4px 0 14px;
    line-height: 1.25;
  }

  body.fw-page .fw-invoice-box {
    padding: 16px 14px;
    margin-bottom: 14px;
    border-radius: 14px;
  }

  body.fw-page .fw-invoice-box h3 {
    font-size: 15px;
    margin-bottom: 14px;
  }

  body.fw-page .fw-inv-value,
  body.fw-page .fw-inv-total-wrap strong {
    font-size: 18px;
  }

  body.fw-page .fw-inv-total-label {
    font-size: 15px;
  }

  body.fw-page .payment-card-box {
    grid-template-columns: 1fr !important;
    padding: 16px 14px !important;
    row-gap: 12px !important;
    border-radius: 14px !important;
  }

  body.fw-page .fw-method-title {
    font-size: 16px;
  }

  body.fw-page .fw-method-tile .payment-method-header,
  body.fw-page .fw-method-tile .card-element-container,
  body.fw-page #ngenius-card-container.card-element-container {
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  body.fw-page .fw-method-tile .card-element-container,
  body.fw-page #ngenius-card-container.card-element-container {
    padding: 4px 0 0 !important;
  }

  body.fw-page .payment-card-box:has(> .fw-method-title) .fw-method-tile .card-element-container,
  body.fw-page .payment-card-box:has(> .fw-method-title) #ngenius-card-container.card-element-container {
    grid-row: auto !important;
  }

  body.fw-page .fw-method-tile .payment-method-header {
    min-height: 64px !important;
    padding: 14px 12px !important;
  }

  body.fw-page .pay-now-button {
    width: 100% !important;
    margin-top: 14px !important;
    padding: 15px 16px !important;
    font-size: 15px !important;
  }

  body.fw-page .fw-invoice-rows .fw-invoice-top {
    flex-direction: column !important;
    gap: 14px;
  }

  body.fw-page .fw-inv-col-right {
    text-align: left;
    align-items: flex-start;
    margin-left: 0;
  }

  body.fw-page .fw-invoice-rows .fw-inv-total-row {
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 12px;
  }

  body.fw-page .fw-field-row {
    grid-template-columns: 1fr;
  }

  body.fw-page .card-input-field {
    min-height: 48px !important;
    font-size: 16px !important;
  }

  /* Order summary accordion on payment mobile */
  body.fw-page .fw-pay-side-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 16px 18px;
    cursor: pointer;
    pointer-events: auto;
  }

  body.fw-page .fw-pay-side-toggle .fw-side-chevron {
    display: block;
  }

  body.fw-page .order-summary .fw-pay-side-body {
    display: none;
    padding: 0 18px 18px;
    border-top: 1px solid #F0F1F3;
  }

  body.fw-page .order-summary.is-open .fw-pay-side-body {
    display: block;
    padding-top: 14px;
  }

  body.fw-page .order-summary.is-open .fw-side-chevron {
    transform: rotate(225deg);
    margin-top: 4px;
  }

  body.fw-page .fw-trust {
    margin-left: 12px;
    margin-right: 12px;
  }

  .fw-side-card {
    position: static;
    order: 2;
    padding: 0;
    overflow: hidden;
    min-width: 0;
    max-width: 100%;
  }

  .fw-summary-box {
    padding: 12px 12px;
  }

  .fw-kv {
    gap: 8px;
  }

  .fw-kv-label {
    max-width: 38%;
  }

  .fw-kv-value {
    font-size: 12px;
  }
  .fw-main-card { padding: 24px 20px; order: 1; }
  .fw-choice-row.cols-3 { grid-template-columns: 1fr; }
  .fw-page-intro h1 { font-size: 26px; }
  .fw-header-badges .fw-badge span { display: none; }
  .fw-row.cols-2,
  .fw-row.street-num,
  .fw-row.plz-ort,
  .fw-choice-row.cols-2 { grid-template-columns: 1fr; }
  /* Trust bar: white card, 4 cols, icon above text (matches mobile design) */
  .fw-trust {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 6px;
    justify-items: center;
    align-items: start;
    background: #fff;
    border: 1px solid rgba(15, 28, 46, 0.06);
    border-radius: 18px;
    box-shadow: var(--fw-shadow);
    padding: 20px 10px;
    width: auto;
    max-width: none;
    margin: 8px 16px 28px;
    box-sizing: border-box;
  }

  .fw-trust-item {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    gap: 8px;
    width: 100%;
    max-width: none;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    color: #4B5563;
  }

  .fw-trust-item svg {
    width: 26px;
    height: 26px;
    color: #F5C518;
  }

  /* Hide desktop stepper; show circular mobile stepper */
  .fw-stepper {
    display: none !important;
  }

  .fw-mobile-stepper {
    display: flex !important;
    align-items: center;
    gap: 12px;
    max-width: none;
    margin: 12px 16px 14px;
    padding: 14px 16px;
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--fw-shadow);
    border: 1px solid rgba(15, 28, 46, 0.06);
    width: auto;
    box-sizing: border-box;
    min-width: 0;
  }

  .fw-mobile-step-text {
    min-width: 0;
    flex: 1 1 auto;
  }

  .fw-mobile-step-text strong {
    display: block;
    overflow-wrap: anywhere;
  }

  /* Sidebar as accordion */
  .fw-side-acc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 18px 20px;
    pointer-events: auto;
    cursor: pointer;
  }

  .fw-side-sub {
    margin: 0;
  }

  .fw-side-title {
    margin: 0 0 2px;
  }

  .fw-side-chevron {
    display: block;
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    border-right: 2px solid #9CA3AF;
    border-bottom: 2px solid #9CA3AF;
    transform: rotate(45deg);
    margin-top: -4px;
    transition: transform 0.2s ease;
  }

  .fw-side-card.is-open .fw-side-chevron {
    transform: rotate(225deg);
    margin-top: 4px;
  }

  .fw-side-body {
    display: none;
    padding: 0 20px 20px;
    border-top: 1px solid #F0F1F3;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .fw-side-card.is-open .fw-side-body {
    display: block;
    padding-top: 16px;
  }

  /* Step 4 mobile: always show sidebar details (no accordion) */
  .fw-side-card.is-step-4 .fw-side-body {
    display: block;
    padding: 0 20px 20px;
    padding-top: 16px;
    border-top: 1px solid #F0F1F3;
  }

  .fw-side-card.is-step-4 .fw-side-chevron {
    display: none;
  }

  .fw-side-card.is-step-4 .fw-side-acc-head {
    pointer-events: none;
    cursor: default;
  }

  .fw-side-card.is-step-4 .fw-side-sub {
    margin: 0 0 0;
  }
}

@media (max-width: 480px) {
  .fw-header-inner {
    padding: 0 10px;
  }

  .fw-logo img.headerlogo {
    height: 24px;
  }

  .fw-mobile-stepper {
    margin: 10px 12px 12px;
    padding: 12px 14px;
  }

  .fw-mobile-step-ring {
    width: 52px;
    height: 52px;
  }

  .fw-mobile-step-frac {
    font-size: 13px;
  }

  .fw-layout {
    padding: 0 12px;
  }

  .fw-trust {
    margin: 8px 12px 24px;
    padding: 18px 8px;
    gap: 10px 4px;
    border-radius: 16px;
  }

  .fw-trust-item {
    font-size: 10px;
  }

  .fw-trust-item svg {
    width: 24px;
    height: 24px;
  }

  body.fw-page .payment-container {
    padding: 0 10px !important;
    margin: 8px auto 24px !important;
  }

  body.fw-page .fw-pay-heading {
    font-size: 20px;
  }

  body.fw-page .fw-invoice-box {
    padding: 14px 12px;
  }

  body.fw-page .payment-card-box {
    padding: 14px 12px !important;
  }

  body.fw-page .fw-pay-side-toggle {
    padding: 14px 14px;
  }

  body.fw-page .order-summary .fw-pay-side-body {
    padding-left: 14px;
    padding-right: 14px;
  }

  body.fw-page .fw-inv-value,
  body.fw-page .fw-inv-total-wrap strong {
    font-size: 17px;
  }
}
