/* ══════════════════════════════════════════════
   Metorbike Order – form.css  v1.4.0
   Light theme, einspaltig, kein Stepper, Mehrfachauswahl
══════════════════════════════════════════════ */
#mod-wrap, #mod-wrap * { box-sizing: border-box; margin: 0; padding: 0; }
#mod-wrap { width: 100%; font-family: inherit; color: #111; }

/* Heading */
#mod-wrap .mod-heading { font-size: 2em; font-weight: 700; color: #111; margin: 0 0 24px; line-height: 1.2; }

/* Gewählte Produkte */
#mod-wrap #mod-selected-products { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
#mod-wrap .mod-prod-header { display: flex; align-items: center; gap: 10px; background: #f5f5f5; border-radius: 6px; padding: 10px 12px; }
#mod-wrap .mod-prod-thumb { width: 72px; height: 54px; background: #e0e0e0; border-radius: 4px; flex-shrink: 0; object-fit: cover; display: block; }
#mod-wrap .mod-prod-thumb-ph { width: 72px; height: 54px; background: #e0e0e0; border-radius: 4px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 10px; color: #aaa; font-style: italic; }
#mod-wrap .mod-prod-info { flex: 1; min-width: 0; }
#mod-wrap .mod-prod-info-name { font-size: 14px; font-weight: 600; color: #111; margin-bottom: 2px; }
#mod-wrap .mod-prod-info-price { font-size: 13px; font-weight: 700; color: #111; }

/* Aktionen */
#mod-wrap .mod-prod-actions { margin-bottom: 12px; }
#mod-wrap .mod-btn-small { font-size: 12px; font-family: inherit; padding: 5px 16px; border-radius: 99px; cursor: pointer; border: 1px solid #ccc; background: transparent; color: #555; transition: border-color .15s, color .15s; }
#mod-wrap .mod-btn-small:hover { border-color: #111; color: #111; }

/* Gesamtbetrag */
#mod-wrap .mod-total-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: #f5f5f5; border-radius: 4px; margin-bottom: 12px; }
#mod-wrap .mod-total-label { font-size: 12px; color: #777; }
#mod-wrap .mod-total-price { font-size: 15px; font-weight: 700; color: #111; }

/* Overlay */
#mod-wrap .mod-prod-overlay { display: none; background: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 12px; margin-bottom: 16px; }
#mod-wrap .mod-prod-overlay.open { display: block; }
#mod-wrap .mod-prod-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#mod-wrap .mod-prod-tile { border: 1px solid #e0e0e0; border-radius: 6px; overflow: hidden; cursor: pointer; transition: border-color .15s, background .15s; }
#mod-wrap .mod-prod-tile:hover { border-color: #888; }
#mod-wrap .mod-prod-tile.selected { background: #053331; border-color: #053331; }
#mod-wrap .mod-prod-tile-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; border-radius: 0; }
#mod-wrap .mod-prod-tile-ph { width: 100%; aspect-ratio: 16/9; background: #f0f0f0; display: flex; align-items: center; justify-content: center; font-size: 10px; color: #bbb; font-style: italic; }
#mod-wrap .mod-prod-tile.selected .mod-prod-tile-ph { background: #333; }
#mod-wrap .mod-prod-tile-info { padding: 8px 10px; }
#mod-wrap .mod-prod-tile-name { font-size: 12px; font-weight: 600; color: #111; margin-bottom: 2px; }
#mod-wrap .mod-prod-tile.selected .mod-prod-tile-name { color: #fff; }
#mod-wrap .mod-prod-tile-price { font-size: 11px; font-weight: 700; color: #555; }
#mod-wrap .mod-prod-tile.selected .mod-prod-tile-price { color: rgba(255,255,255,0.65); }
#mod-wrap .mod-overlay-footer { margin-top: 10px; display: flex; gap: 8px; }
#mod-wrap .mod-btn-confirm { font-size: 12px; font-family: inherit; padding: 7px 18px; border-radius: 99px; cursor: pointer; background: #111; color: #fff; border: 1px solid #111; transition: background .15s; }
#mod-wrap .mod-btn-confirm:hover { background: #333; border-color: #333; }
#mod-wrap .mod-btn-cancel { font-size: 12px; font-family: inherit; padding: 7px 14px; border-radius: 99px; cursor: pointer; border: 1px solid #ccc; background: transparent; color: #555; transition: border-color .15s, color .15s; }
#mod-wrap .mod-btn-cancel:hover { border-color: #111; color: #111; }

/* Section label */
#mod-wrap .mod-section-label { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #999; margin-bottom: 14px; margin-top: 20px; }

/* Inputs */
#mod-wrap .mod-input-row { margin-bottom: 14px; }
#mod-wrap .mod-input-row label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #111; margin-bottom: 7px; }
#mod-wrap .mod-input-row input { width: 100%; background: transparent; border: none; border-bottom: 1px solid #ccc; color: #111; font-size: 15px; font-family: inherit; padding: 5px 0 10px; outline: none; border-radius: 0; transition: border-color .2s; }
#mod-wrap .mod-input-row input::placeholder { color: #bbb; }
#mod-wrap .mod-input-row input:hover { border-bottom-color: #888; }
#mod-wrap .mod-input-row input:focus { border-bottom-color: #111; }
#mod-wrap .mod-input-row input.invalid { border-bottom-color: #c0392b; }
#mod-wrap .mod-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
#mod-wrap .mod-three-col { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 0 20px; padding-top: 0; }
@media (max-width: 480px) {
  #mod-wrap .mod-two-col,
  #mod-wrap .mod-three-col { grid-template-columns: 1fr; gap: 0; }
  #mod-wrap .mod-prod-grid { grid-template-columns: 1fr 1fr; }
}

/* Legal */
#mod-wrap .mod-legal { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid #e0e0e0; }
#mod-wrap .mod-legal-item { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
#mod-wrap .mod-legal-item input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
#mod-wrap .mod-legal-box { width: 18px; height: 18px; flex-shrink: 0; border: 1px solid #bbb; border-radius: 0; margin-top: 1px; display: flex; align-items: center; justify-content: center; transition: background .15s, border-color .15s; }
#mod-wrap .mod-legal-box svg { display: none; width: 10px; height: 10px; stroke: #fff; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
#mod-wrap .mod-legal-item input:checked ~ .mod-legal-box { background: #111; border-color: #111; }
#mod-wrap .mod-legal-item input:checked ~ .mod-legal-box svg { display: block; }
#mod-wrap .mod-legal-text { font-size: 12px; color: #555; line-height: 1.5; }
#mod-wrap .mod-legal-text a { color: #111; text-decoration: underline; }
#mod-wrap .mod-req { color: #c0392b; }

/* Submit */
#mod-wrap .mod-submit-note { font-size: 11px; color: #aaa; line-height: 1.6; margin-top: 14px; }
#mod-wrap .mod-actions { margin-top: 20px; }
#mod-wrap .btn-primary { width: 100%; padding: 15px 24px; background: #111; color: #fff; font-size: 14px; font-weight: 600; font-family: inherit; border: 1px solid #111; border-radius: 99px; cursor: pointer; transition: background .2s; }
#mod-wrap .btn-primary:hover { background: #053331; border-color: #053331; }
#mod-wrap .btn-primary:disabled { opacity: 0.35; cursor: not-allowed; }

/* Error */
#mod-wrap .mod-error { font-size: 11px; color: #c0392b; margin-top: 5px; min-height: 16px; }

/* ══════════════════════════════════════════════
   SUCCESS – inline im selben Container,
   mod-wrap bleibt sichtbar, nur der Formular-
   Inhalt wird durch .mod-form-body ersetzt.
══════════════════════════════════════════════ */
#mod-success { display: none; opacity: 0; transform: translateY(10px); transition: opacity 0.4s ease, transform 0.4s ease; padding: 20px 0 8px; text-align: center; }
#mod-success.visible { opacity: 1; transform: translateY(0); }
#mod-success .ok-icon { width: 48px; height: 48px; background: #f5f5f5; border: 1px solid #e0e0e0; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
#mod-success .ok-icon svg { width: 20px; height: 20px; stroke: #111; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
#mod-success h3 { font-size: 20px; font-weight: 650; color: #111; margin-bottom: 8px; }
#mod-success .success-text { font-size: 13px; color: #777; line-height: 1.6; margin-bottom: 20px; }
#mod-success .success-summary { background: #f5f5f5; border: 1px solid #e0e0e0; border-radius: 8px; padding: 18px 20px; text-align: left; }
#mod-success .summary-row { display: flex; justify-content: space-between; align-items: baseline; padding: 7px 0; border-bottom: 1px solid #e8e8e8; gap: 16px; }
#mod-success .summary-row:last-child { border-bottom: none; }
#mod-success .summary-label { font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #aaa; flex-shrink: 0; }
#mod-success .summary-val { font-size: 13px; color: #333; text-align: right; word-break: break-all; }
#mod-success .summary-val.price { color: #111; font-weight: 700; font-size: 15px; }
#mod-success .summary-note { margin-top: 16px; font-size: 11px; color: #aaa; line-height: 1.6; text-align: center; }
