#addParticipantBtn {
    padding: 10px 15px;
    color: #002339;
    font-weight: 500;
    width: fit-content;
}

fieldset {
    border: none;
    margin: 0;
    padding: 0;
    margin-bottom: 20px;
}

legend {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
}

.grid-cols-3 {
    grid-template-columns: repeat(auto-fit, minmax(9rem, 26rem)) !important;
}

form input[type=text],
form input[type=number],
form input[type=email],
form input[type=tel] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.custom-checkbox-wrapper {
    align-items:center;
}

form input[type=submit] {
    background-color: #e62d38;
    padding: 10px 15px;
    color: white;
    font-weight: 600;
}

form input[type=submit]:hover {
    background-color: #0056b3;
}

.removeParticipantButton {
    color: #e62d38;
    padding: 0.5rem 1rem;
    font-weight: 600;
    text-transform: uppercase;
}

.removeParticipantButton:disabled {
    opacity: 0;
}

.custom-checkbox-wrapper input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    width: 2rem;
    height: 2rem;
    cursor: pointer;
}

.custom-checkbox-wrapper input[type="checkbox"]+label {
    width: 100%;
    height: 100%;
    display: block;
    /* Macht das Label klickbar */
    cursor: pointer;
}

.custom-checkbox-wrapper input[type="checkbox"]+label::before {
    content: '';
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 2px solid #004973;
    margin-right: 10px;
    vertical-align: middle;
    transition: background-color 0.3s, border-color 0.3s;
    cursor: pointer;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateY(-50%) translateX(-50%);
}

.custom-checkbox-wrapper input[type="checkbox"]:checked+label::after {
    content: '';
    display: inline-block;
    background-image: url('/images/check.svg');
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1.2rem;
    height: 1.2rem;
}

.participant label {
    display: none;
}

.loader {
    width: 45px;
    height: 45px;
    --c: no-repeat linear-gradient(#E82A32 0 0);
    background:
        var(--c) 0% 50%,
        var(--c) 50% 50%,
        var(--c) 100% 50%;
    background-size: 20% 100%;
    animation: l1 1s infinite linear;
}

@keyframes l1 {
    0% {
        background-size: 20% 100%, 20% 100%, 20% 100%
    }

    33% {
        background-size: 20% 10%, 20% 100%, 20% 100%
    }

    50% {
        background-size: 20% 100%, 20% 10%, 20% 100%
    }

    66% {
        background-size: 20% 100%, 20% 100%, 20% 10%
    }

    100% {
        background-size: 20% 100%, 20% 100%, 20% 100%
    }
}

#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

@media (max-width: 768px) {
    .participant-table-headings {
        display: none;
    }

    .participant label {
        display: flex;
    }

    .teilnehmer_box_heading {
        background-color: #00233912;
        font-weight: 600;
        padding-right: 20%;
    }

    .grid-cols-11 {
        grid-template-columns: 1fr;
    }

    .col-span-3,
    .col-span-1 {
        grid-column: auto;
    }

    .grid {
        gap: 0.5rem;
    }

    .p-8{
        padding:1rem;
    }
    
    .form-row {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(9rem, 26rem));
        gap: 0rem;
      }

      .custom-checkbox-wrapper input[type="checkbox"] + label::before {
        content: '';
        display: inline-block;
        width: 2rem;
        height: 2rem;
        border-radius: 50%;
        border: 2px solid #004973;
        margin-right: 10px;
        vertical-align: middle;
        transition: background-color 0.3s, border-color 0.3s;
        cursor: pointer;
        position: absolute;
        right: 0%!important;
        left:auto;
        top: 50%;
        transform: translateY(-50%) translateX(-50%);
      }
      .custom-checkbox-wrapper input[type="checkbox"] + label {
        width: 100%;
        height: 100%;
        display: block;
        cursor: pointer;
        position: absolute;
        top: 0;
      }
      .custom-checkbox-wrapper input[type="checkbox"]:checked + label::after {
        content: '';
        display: inline-block;
        background-image: url('/images/check.svg');
        background-size: contain;
        background-repeat: no-repeat;
        position: absolute;
        top: 50%;
        right: 1.4rem;
        left:auto;
        transform: translate(-50%, -50%);
        width: 1.2rem;
        height: 1.2rem;
      }
      .custom-checkbox-wrapper {
        margin-top: 0.5rem;
      }
}

.form-group-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Verstecke die Standard-Checkbox */
.form-group-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

/* Style für das Label, um die runde Checkbox darzustellen */
.form-group-checkbox input[type="checkbox"]+label::before {
    content: '';
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 2px solid #004973;
    margin-right: 10px;
    vertical-align: middle;
    transition: background-color 0.3s, border-color 0.3s;
    cursor: pointer;
    position: absolute;
    left: 0rem;
    top: 50%;
    transform: translateY(-50%);
}

/* Hacken (SVG) anzeigen, wenn Checkbox ausgewählt ist */
.form-group-checkbox input[type="checkbox"]:checked+label::after {
    content: '';
    display: inline-block;
    background-image: url('/images/check.svg');
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translate(-50%, -50%);
    width: 1.2rem;
    height: 1.2rem;
}

.form-group-checkbox label {
    display: block;
    font-weight: 500;
    position: relative;
    padding-left: 4rem;
}

/* Wenn die Checkbox fokussiert ist */
input[type="checkbox"]:focus+label::before {
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.2);
}

/* Wenn die Checkbox fokussiert ist */
input[type="checkbox"]:focus+label::before {
    box-shadow: none;
    /* Entferne den Fokus-Rahmen (Outline) */
}

/* ===== SUMMARY ===== */
/* Teilnehmer-Tabelle: volle Breite, darunter AP + RA nebeneinander */
#booking-summary {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}
.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
@media (max-width: 540px) {
    .summary-grid { grid-template-columns: 1fr; }
}
.summary-section {
    background: #f8fafa;
    border: 1px solid #e8edf0;
    border-radius: 6px;
    padding: 1rem 1.25rem;
}
.summary-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #e82b32;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.summary-count {
    background: #e82b32;
    color: #fff;
    border-radius: 999px;
    padding: 0.05rem 0.45rem;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.4;
}
/* Scrollbare Teilnehmer-Tabelle */
.summary-table-wrap {
    max-height: 13rem;
    overflow-y: auto;
}
.summary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.summary-table thead th {
    text-align: left;
    font-size: 0.68rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.3rem 0.5rem;
    border-bottom: 1px solid #e0e6ea;
    position: sticky;
    top: 0;
    background: #f8fafa;
}
.summary-table tbody tr {
    border-bottom: 1px solid #eff2f4;
}
.summary-table tbody tr:last-child { border-bottom: none; }
.summary-table td {
    padding: 0.4rem 0.5rem;
    color: #002339;
    vertical-align: middle;
}
.st-num { color: #aab; font-size: 0.72rem; width: 1.5rem; }
.st-name { font-weight: 600; }
.st-funk { color: #556; font-size: 0.82rem; }
.st-veg { width: 3.5rem; text-align: center; }
.summary-row {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eaeaea;
    font-size: 0.875rem;
}
.summary-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.summary-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.summary-value {
    color: #002339;
    font-weight: 500;
    line-height: 1.5;
}
.summary-badge {
    display: inline-block;
    background: #f0faf0;
    color: #2d7a2d;
    border: 1px solid #b6dfb6;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.1rem 0.5rem;
    vertical-align: middle;
}

/* ===== CUSTOM ALERT MODAL ===== */
#phm-alert-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
#phm-alert-box {
    background: #fff;
    border-radius: 6px;
    padding: 2rem 2rem 1.5rem;
    max-width: 380px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
#phm-alert-msg {
    font-size: 0.95rem;
    color: #002339;
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
}
#phm-alert-ok {
    align-self: flex-end;
    background: #e82b32;
    color: #fff;
    border: none;
    padding: 0.5rem 1.4rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s;
}
#phm-alert-ok:hover {
    background: #c0222b;
}

/* ===== BOOKING INFO PILLS ===== */
.booking-info-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}
.booking-info-pill {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 999px;
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    color: #002339;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    white-space: nowrap;
}

/* ===== BOOKING STEPPER ===== */
.booking-stepper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}
.stepper-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}
.stepper-circle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: #e0e0e0;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    transition: background 0.2s, color 0.2s;
}
.stepper-label {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
    text-align: center;
    max-width: 7rem;
    line-height: 1.3;
    transition: color 0.2s;
}
.stepper-connector {
    height: 2px;
    background: #e0e0e0;
    width: 3rem;
    margin-top: 1.25rem;
    flex-shrink: 0;
    transition: background 0.2s;
}
.stepper-item.active .stepper-circle {
    background: #002339;
    color: #fff;
}
.stepper-item.active .stepper-label {
    color: #002339;
    font-weight: 700;
    font-size: 0.85rem;
}
.stepper-item.completed .stepper-circle {
    background: #e82b32;
    color: #fff;
}
.stepper-item.completed .stepper-label {
    color: #e82b32;
}
.stepper-connector.completed {
    background: #e82b32;
}

@media (max-width: 600px) {
    .stepper-connector {
        width: 1.5rem;
    }
    .stepper-label {
        font-size: 0.65rem;
        max-width: 4.5rem;
    }
}

/* ===== STEP NAV BUTTONS ===== */
.step-nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
    gap: 0.5rem;
}
.step-back-btn {
    background: transparent;
    color: #002339;
    border: 2px solid #002339;
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    font-size: 0.875rem;
}
.step-back-btn:hover {
    background: #002339;
    color: #fff;
}
.step-next-btn {
    background: #e82b32;
    color: #fff;
    border: 2px solid #e82b32;
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 0.875rem;
    margin-left: auto;
}
.step-next-btn:hover {
    background: #c0222b;
    border-color: #c0222b;
}

/* ===== HIDDEN STEP ===== */
.phm-box.booking-step-hidden {
    display: none !important;
}

/* Im Multi-Step-Modus alle Boxen auf gleicher Position */
.seminar_booking_form .phm-box {
    margin-top: 0 !important;
}

/* ===== INPUT VALIDATION ERROR ===== */
.input-error {
    border-color: #e82b32 !important;
}