/* ── Race4Friends – Öffentliche Formulare ────────── */
.r4f-wrap { max-width: 720px; margin: 0 auto; font-family: inherit; }

/* Stepper-Fortschrittsanzeige */
.r4f-stepper { position: relative; }

/* Felder */
.r4f-field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.r4f-field label { font-weight: 600; font-size: .9rem; }
.r4f-field input[type="text"],
.r4f-field input[type="email"],
.r4f-field input[type="tel"],
.r4f-field input[type="date"],
.r4f-field input[type="number"],
.r4f-field select { width: 100%; padding: .6rem .8rem; border: 1px solid #ccc;
                    border-radius: 6px; font-size: 1rem; box-sizing: border-box; }
.r4f-field input:focus, .r4f-field select:focus { outline: none; border-color: #c00; box-shadow: 0 0 0 2px rgba(204,0,0,.15); }

.r4f-field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }

/* Checkboxen */
.r4f-checkboxes { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1rem; }
.r4f-checkbox   { display: flex; align-items: flex-start; gap: .5rem; font-weight: normal; cursor: pointer; line-height: 1.4; }
.r4f-checkbox input[type="checkbox"] { margin-top: .2rem; accent-color: #c00; flex-shrink: 0; }

/* Upload */
.r4f-upload-area { border: 2px dashed #ccc; border-radius: 8px; padding: 1.5rem; text-align: center;
                   cursor: pointer; transition: border-color .2s; background: #fafafa; }
.r4f-upload-area:hover { border-color: #c00; }
.r4f-upload-placeholder { display: flex; flex-direction: column; align-items: center; gap: .4rem; color: #888; }
.r4f-upload-icon { font-size: 2rem; }
.r4f-upload-preview { width: 100%; max-height: 180px; object-fit: cover; border-radius: 6px; display: block; }

/* Navigation */
.r4f-step-nav { display: flex; justify-content: space-between; margin-top: 1.5rem; }
.r4f-step-nav .r4f-btn:only-child { margin-left: auto; }

/* Buttons */
.r4f-btn { padding: .6rem 1.4rem; border: none; border-radius: 6px; font-size: 1rem;
           cursor: pointer; font-weight: 600; transition: background .2s; }
.r4f-btn--next, .r4f-btn--submit { background: #c00; color: #fff; }
.r4f-btn--next:hover, .r4f-btn--submit:hover { background: #a00; }
.r4f-btn--back { background: #eee; color: #333; }
.r4f-btn--back:hover { background: #ddd; }
.r4f-btn:disabled { opacity: .6; cursor: not-allowed; }

/* Fehler */
.r4f-error { background: #fde; border: 1px solid #c00; color: #c00;
             padding: .75rem 1rem; border-radius: 6px; margin-top: 1rem; }

/* Erfolg */
.r4f-success { text-align: center; padding: 3rem 1rem; }
.r4f-success-icon { font-size: 4rem; }
.r4f-success h2 { margin: 1rem 0 .5rem; }

/* Step-Überschrift */
.r4f-step h3 { margin-top: 0; padding-bottom: .75rem; border-bottom: 2px solid #c00; color: #c00; }

@media (max-width: 480px) {
  .r4f-field-row { grid-template-columns: 1fr; }
  .r4f-step-nav  { flex-direction: column; gap: .5rem; }
  .r4f-step-nav .r4f-btn { width: 100%; }
}
