/* ── Layout (shared with form-courses patterns) ───────────────────────────── */

.form-events {
    background: var(--wp--preset--color--dark);
    padding: 96px 0;
    min-height: 100vh;
}

.form-events .fc-layout {
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

.form-events .fc-form-col {
    flex: 1 1 50%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.form-events .fc-sidebar {
    flex: 1 1 50%;
    min-width: 0;
    position: sticky;
    top: calc(var(--nav-height) + 24px);
}

/* ── Header ──────────────────────────────────────────────────────────────── */

.form-events .fc-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-events .fc-title {
    font-size: 32px;
    font-weight: 400;
    color: var(--wp--preset--color--white);
    margin: 0;
    line-height: 1;
}

.form-events .fc-header-line {
    height: 1px;
    background: rgba(255,255,255,0.2);
}

.form-events .fc-desc {
    font-size: 16px;
    font-weight: 300;
    color: var(--wp--preset--color--neutral-100);
    line-height: 24px;
    margin: 0;
}

.form-events .fc-course-name {
    font-size: 24px;
    font-weight: 300;
    color: var(--wp--preset--color--white);
    margin: 0;
    line-height: 1;
}

/* ── Form ────────────────────────────────────────────────────────────────── */

.form-events .fc-form {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

/* ── Options section ─────────────────────────────────────────────────────── */

.form-events .fe-options-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-events .fc-section-label-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-events .fc-section-label {
    font-size: 16px;
    font-weight: 300;
    color: var(--wp--preset--color--white);
    line-height: 24px;
}

.form-events .fc-section-line {
    height: 1px;
    background: rgba(255,255,255,0.2);
}

.form-events .fe-options-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── Option card ─────────────────────────────────────────────────────────── */

.form-events .fe-option-card {
    background: var(--wp--preset--color--black);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid transparent;
    transition: border-color 0.15s;
    cursor: pointer;
}

.form-events .fe-option-card:hover {
    border-color: rgba(255,255,255,0.25);
}

.form-events .fe-option-card.is-selected {
    border-color: var(--wp--preset--color--yellow);
    cursor: default;
}

.form-events .fe-option-card-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    outline: none;
}

.form-events .fe-option-card-name {
    font-size: 14px;
    font-weight: 400;
    color: var(--wp--preset--color--white);
    line-height: 20px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.form-events .fe-option-card-price {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
    flex-shrink: 0;
}

.form-events .fe-price-netto {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 16px;
    font-weight: 400;
    color: var(--wp--preset--color--white);
    line-height: 24px;
    margin: 0;
    white-space: nowrap;
}

.form-events .fe-price-unit {
    font-weight: 300;
    font-size: 16px;
    color: var(--wp--preset--color--white);
}

.form-events .fe-price-brutto {
    font-size: 12px;
    font-weight: 300;
    color: var(--wp--preset--color--neutral-200);
    line-height: 16px;
    margin: 0;
    white-space: nowrap;
    text-align: right;
}

.form-events .fe-price-netto--strike {
    text-decoration: line-through;
    color: var(--wp--preset--color--neutral-300);
}

.form-events .fe-price-netto--strike .fe-price-unit {
    color: var(--wp--preset--color--neutral-300);
}

/* ── Termin row (select + nagrania) ──────────────────────────────────────── */

.form-events .fe-termin-row {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.form-events .fe-termin-row[hidden] {
    display: none;
}

.form-events .fe-termin-row .fc-select-wrap {
    flex: 0 0 240px;
}

/* ── Bundle card extras ───────────────────────────────────────────────────── */

.form-events .fe-option-card--bundle .fe-option-card-main {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
}

.form-events .fe-bundle-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.form-events .fe-bundle-label {
    font-size: 12px;
    font-weight: 400;
    color: var(--wp--preset--color--yellow);
    line-height: normal;
    letter-spacing: 0.01em;
}

.form-events .fe-bundle-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ddf1e7;
    border: 1px solid #bfe3cf;
    border-radius: 4px;
    padding: 4px 6px;
    font-size: 12px;
    font-weight: 700;
    color: #098257;
    line-height: normal;
    white-space: nowrap;
}

.form-events .fe-bundle-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid var(--wp--preset--color--neutral-300);
    border-radius: 4px;
    padding: 16px;
}

.form-events .fe-bundle-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 44px;
}

.form-events .fe-bundle-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.form-events .fe-bundle-item-tag {
    font-size: 12px;
    font-weight: 300;
    color: var(--wp--preset--color--neutral-200);
    line-height: 16px;
    white-space: nowrap;
}

.form-events .fe-bundle-item-name {
    font-size: 14px;
    font-weight: 400;
    color: var(--wp--preset--color--white);
    line-height: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.form-events .fe-bundle-total {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.form-events .fe-bundle-total-label {
    font-size: 14px;
    font-weight: 400;
    color: var(--wp--preset--color--white);
    line-height: 24px;
}

/* ── Nagrania wrapper (below option cards) ───────────────────────────────── */

.form-events .fe-nagrania-wrap {
    padding: 16px 0 4px;
}

.form-events .fe-nagrania-wrap[hidden] {
    display: none;
}

/* ── Nagrania checkbox ───────────────────────────────────────────────────── */

.form-events .fe-nagrania-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    flex-shrink: 0;
}

.form-events .fe-nagrania-cb {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.form-events .fe-nagrania-cb-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.form-events .fe-nagrania-icon {
    display: block;
    color: rgba(255,255,255,0.5);
}

.form-events .fe-nagrania-icon-checked {
    display: none;
}

.form-events .fe-nagrania-cb:checked + .fe-nagrania-cb-box .fe-nagrania-icon {
    display: none;
}

.form-events .fe-nagrania-cb:checked + .fe-nagrania-cb-box .fe-nagrania-icon-checked {
    display: block;
}

.form-events .fe-nagrania-label {
    font-size: 14px;
    font-weight: 300;
    color: var(--wp--preset--color--neutral-100);
    line-height: 20px;
    white-space: nowrap;
}

/* ── Participants ────────────────────────────────────────────────────────── */

.form-events .fc-participants {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.form-events .fc-participant {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-events .fc-participant-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-events .fc-participant-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.form-events .fc-participant-nr {
    font-size: 16px;
    font-weight: 300;
    color: var(--wp--preset--color--neutral-100);
    line-height: 24px;
    margin: 0;
}

.form-events .fc-remove-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--wp--preset--color--neutral-300);
    font-size: 13px;
    font-weight: 300;
    cursor: pointer;
    padding: 0;
    transition: color 0.15s;
}

.form-events .fc-remove-btn:hover {
    color: var(--wp--preset--color--neutral-100);
}

/* ── Fields ──────────────────────────────────────────────────────────────── */

.form-events .fc-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-events .fc-input {
    width: 100%;
    height: 56px;
    background: var(--wp--preset--color--black);
    border: none;
    border-radius: 4px;
    padding: 0 24px;
    font-size: 14px;
    font-weight: 300;
    color: var(--wp--preset--color--white);
    line-height: 20px;
    box-sizing: border-box;
    outline: none;
    transition: box-shadow 0.15s, padding-top 0.15s ease, padding-bottom 0.15s ease;
    font-family: inherit;
}

.form-events .fc-input:focus,
.form-events .fc-input:not(:placeholder-shown) {
    padding-top: 18px;
    padding-bottom: 0;
}

.form-events .fc-input::placeholder {
    color: rgba(255,255,255,0.5);
}

.form-events .fc-input:focus {
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3);
}

.form-events .fc-input.fc-invalid {
    box-shadow: inset 0 0 0 1px #fc8181;
}

/* ── Select ──────────────────────────────────────────────────────────────── */

.form-events .fc-select-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
}

.form-events .fe-options-section .fc-select-wrap {
    flex: 0 1 260px;
}

.form-events .fc-select {
    width: 100%;
    height: 56px;
    background: var(--wp--preset--color--black);
    border: none;
    border-radius: 4px;
    padding: 0 48px 0 24px;
    font-size: 14px;
    font-weight: 300;
    color: var(--wp--preset--color--white);
    line-height: 20px;
    box-sizing: border-box;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: box-shadow 0.15s, padding-top 0.15s ease, padding-bottom 0.15s ease;
    font-family: inherit;
}

.form-events .fc-select-wrap.is-floated .fc-select {
    padding-top: 18px;
    padding-bottom: 0;
}

.form-events .fc-select option {
    background: var(--wp--preset--color--black);
    color: var(--wp--preset--color--white);
}

.form-events .fc-select option[value=""] {
    color: rgba(255,255,255,0.5);
}

.form-events .fc-select:focus {
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3);
}

.form-events .fc-select.fc-invalid {
    box-shadow: inset 0 0 0 1px #fc8181;
}

.form-events .fc-error-tip {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 300;
    line-height: 16px;
    color: #fc8181;
}

/* ── Floating labels (same mechanism as form-diagnosis/form-financing) ───── */

.form-events .fc-field {
    position: relative;
}

.form-events .fc-field-label,
.form-events .fc-select-label {
    position: absolute;
    left: 24px;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    font-weight: 300;
    line-height: 20px;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    transition: top 0.15s ease, font-size 0.15s ease, transform 0.15s ease, color 0.15s ease, line-height 0.15s ease;
}

.form-events .fc-select-label {
    right: 48px;
}

.form-events .fc-label-req {
    color: inherit;
}

.form-events .fc-input:focus + .fc-field-label,
.form-events .fc-input:not(:placeholder-shown) + .fc-field-label,
.form-events .fc-select-wrap.is-floated .fc-select-label {
    top: 10px;
    transform: none;
    font-size: 10px;
    line-height: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.form-events .fc-chevron {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--wp--preset--color--white);
    flex-shrink: 0;
}

/* ── Field with icon (numer zamówienia) ──────────────────────────────────── */

.form-events .fc-field-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.form-events .fc-field-with-icon .fc-field {
    flex: 1 0 0;
    min-width: 0;
}

.form-events .fc-field-with-icon .fc-input {
    padding-right: 52px;
}

.form-events .fc-info-btn {
    position: absolute;
    right: 18px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--wp--preset--color--neutral-300);
    display: flex;
    align-items: center;
    transition: color 0.15s;
    flex-shrink: 0;
}

.form-events .fc-info-btn:hover {
    color: var(--wp--preset--color--neutral-100);
}

.form-events .fc-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    background: var(--wp--preset--color--black);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 300;
    color: var(--wp--preset--color--neutral-100);
    line-height: 18px;
    white-space: normal;
    max-width: 260px;
    z-index: 10;
    pointer-events: none;
}

/* ── Add participant ──────────────────────────────────────────────────────── */

.form-events .fc-add-row {
    display: flex;
}

.form-events .fc-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--wp--preset--color--white);
    background: none;
    color: var(--wp--preset--color--white);
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    padding: 14px 32px;
    border-radius: 0;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, color 0.15s;
}

.form-events .fc-add-btn:hover {
    background: rgba(255,255,255,0.05);
}

/* ── Form footer ─────────────────────────────────────────────────────────── */

.form-events .fc-footer {
    display: flex;
    align-items: center;
    gap: 24px;
}

.form-events .fc-required-note {
    flex: 1;
    font-size: 16px;
    font-weight: 300;
    color: var(--wp--preset--color--neutral-100);
    line-height: 24px;
    margin: 0;
}

.form-events .fc-submit-btn {
    border: 1px solid var(--wp--preset--color--white);
    background: none;
    color: var(--wp--preset--color--white);
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    padding: 18px 40px;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

.form-events .fc-submit-btn:hover {
    background: rgba(255,255,255,0.05);
}

.form-events .fc-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-events .fc-submit-btn.is-loading,
.form-events .fc-sticky-submit.is-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.form-events .fc-submit-btn.is-loading::after,
.form-events .fc-sticky-submit.is-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: var(--wp--preset--color--white);
    border-radius: 50%;
    animation: fe-btn-spin 0.6s linear infinite;
}

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

/* ── Messages ────────────────────────────────────────────────────────────── */

.form-events .fc-msg {
    font-size: 14px;
    font-weight: 300;
    color: #fc8181;
    line-height: 20px;
    padding: 12px 0;
}

.form-events .fc-msg--success {
    color: #5cb85c;
}

.form-events .fe-no-product {
    padding: 40px 0;
    color: var(--wp--preset--color--neutral-300);
    font-size: 16px;
}

/* ── Sidebar / Summary ───────────────────────────────────────────────────── */

.form-events .fc-summary {
    background: var(--wp--preset--color--black);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-events .fc-summary-title {
    font-size: 14px;
    font-weight: 300;
    color: var(--wp--preset--color--neutral-200);
    line-height: 20px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.form-events .fc-summary-item {
    background: var(--wp--preset--color--black);
    border: 1px solid var(--wp--preset--color--neutral-300);
    border-radius: 4px;
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    justify-content: space-between;
}

.form-events .fc-summary-item[hidden] {
    display: none;
}

.form-events .fc-summary-item-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.form-events .fc-summary-item-name {
    font-size: 16px;
    font-weight: 400;
    color: var(--wp--preset--color--white);
    line-height: 24px;
    margin: 0;
}

.form-events .fc-summary-item-sub {
    font-size: 12px;
    font-weight: 300;
    color: var(--wp--preset--color--neutral-200);
    line-height: 16px;
    margin: 0;
}

.form-events .fc-summary-item-sub[hidden] {
    display: none;
}

.form-events .fc-summary-item-price {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
    flex-shrink: 0;
}

.form-events .fc-s-netto {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 16px;
    color: var(--wp--preset--color--white);
    line-height: 24px;
}

.form-events .fc-s-netto span:first-child {
    font-weight: 400;
    white-space: nowrap;
}

.form-events .fc-s-label {
    font-weight: 300;
    font-size: 14px;
    color: var(--wp--preset--color--white);
}

.form-events .fc-s-brutto {
    font-size: 12px;
    font-weight: 300;
    color: var(--wp--preset--color--neutral-200);
    line-height: 16px;
    margin: 0;
    white-space: nowrap;
}

/* ── Summary total ───────────────────────────────────────────────────────── */

.form-events .fc-summary-total {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-events .fc-total-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.form-events .fc-total-label {
    font-size: 16px;
    font-weight: 400;
    color: var(--wp--preset--color--white);
    line-height: 24px;
    flex: 1;
    min-width: 0;
}

.form-events .fc-total-prices {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
    flex-shrink: 0;
}

.form-events .fc-total-netto {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 16px;
    color: var(--wp--preset--color--white);
    line-height: 24px;
    margin: 0;
}

.form-events .fc-total-netto-val {
    font-weight: 400;
    white-space: nowrap;
}

.form-events .fc-total-unit {
    font-weight: 300;
    white-space: nowrap;
}

.form-events .fc-total-brutto {
    font-size: 12px;
    font-weight: 300;
    color: var(--wp--preset--color--neutral-200);
    line-height: 16px;
    margin: 0;
    white-space: nowrap;
}

.form-events .fc-total-brutto-val {
    font-weight: 400;
}

/* ── TAK / NIE toggle ────────────────────────────────────────────────────── */

.form-events .fc-reuse-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.form-events .fc-reuse-label {
    font-size: 16px;
    font-weight: 300;
    color: var(--wp--preset--color--neutral-100);
    line-height: 24px;
}

.form-events .fc-toggle-btns {
    display: flex;
    flex-shrink: 0;
}

.form-events .fc-toggle-btn {
    background: var(--wp--preset--color--black);
    border: 1px solid var(--wp--preset--color--neutral-300);
    color: var(--wp--preset--color--neutral-300);
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    padding: 10px 24px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.form-events .fc-toggle-btn:first-child {
    border-right: none;
    border-radius: 4px 0 0 4px;
}

.form-events .fc-toggle-btn:last-child {
    border-radius: 0 4px 4px 0;
}

.form-events .fc-toggle-btn.is-active {
    background: var(--wp--preset--color--white);
    border-color: var(--wp--preset--color--white);
    color: var(--wp--preset--color--black);
}

/* ── Picker label ─────────────────────────────────────────────────────────── */

.form-events .fc-picker-label {
    font-size: 14px;
    font-weight: 300;
    color: var(--wp--preset--color--neutral-200);
    line-height: 20px;
    margin: 0 0 12px;
}

/* ── Existing participant rows ────────────────────────────────────────────── */

.form-events .fc-ep-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.form-events .fc-ep-row {
    background: var(--wp--preset--color--black);
    border-radius: 4px;
    overflow: hidden;
    transition: background 0.15s;
}

.form-events .fc-ep-row.is-selected {
    background: #23233a;
    outline: 1px solid rgba(255,255,255,0.15);
}

.form-events .fc-ep-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    gap: 12px;
}

.form-events .fc-ep-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.form-events .fc-ep-cb-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
}

.form-events .fc-ep-cb {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.form-events .fc-ep-cb-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.form-events .fc-ep-cb-icon {
    display: block;
    color: var(--wp--preset--color--neutral-300);
}

.form-events .fc-ep-cb-icon-checked {
    display: none;
}

.form-events .fc-ep-cb:checked + .fc-ep-cb-box .fc-ep-cb-icon {
    display: none;
}

.form-events .fc-ep-cb:checked + .fc-ep-cb-box .fc-ep-cb-icon-checked {
    display: block;
}

.form-events .fc-ep-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.form-events .fc-ep-identity::before {
    content: '/';
    color: var(--wp--preset--color--neutral-300);
    font-weight: 300;
    flex-shrink: 0;
}

.form-events .fc-ep-name {
    font-size: 14px;
    font-weight: 400;
    color: var(--wp--preset--color--white);
    line-height: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.form-events .fc-ep-email {
    font-size: 13px;
    font-weight: 300;
    color: var(--wp--preset--color--neutral-300);
    line-height: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.form-events .fc-ep-toggle-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--wp--preset--color--neutral-300);
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: color 0.15s;
    border-radius: 2px;
}

.form-events .fc-ep-toggle-btn:hover {
    color: var(--wp--preset--color--neutral-100);
}

.form-events .fc-ep-chevron {
    transition: transform 0.2s;
    display: block;
}

.form-events .fc-ep-details {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 12px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-events .fc-ep-details[hidden] {
    display: none;
}

.form-events .fc-ep-field {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.form-events .fc-ep-field-label {
    font-size: 12px;
    font-weight: 300;
    color: var(--wp--preset--color--neutral-300);
    line-height: 18px;
    white-space: nowrap;
    min-width: 130px;
    flex-shrink: 0;
}

.form-events .fc-ep-field-val {
    font-size: 13px;
    font-weight: 300;
    color: var(--wp--preset--color--neutral-100);
    line-height: 18px;
}

.form-events .fc-new-participants {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 0;
}

.form-events .fc-new-participants:not(:empty) {
    margin-top: 24px;
}

#fc-picker-mode .fc-section-label-row,
#fc-form-mode .fc-section-label-row {
    display: none;
}

/* ── Mobile sticky bar ───────────────────────────────────────────────────── */

.form-events .fc-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--wp--preset--color--dark);
    border-top: 1px solid rgba(255,255,255,0.15);
    z-index: 100;
    padding: 12px 0;
}

.form-events .fc-sticky-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.form-events .fc-sticky-total {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.form-events .fc-sticky-label {
    font-size: 12px;
    font-weight: 300;
    color: var(--wp--preset--color--neutral-200);
    line-height: 16px;
}

.form-events .fc-sticky-prices {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.form-events .fc-sticky-netto {
    font-size: 16px;
    color: var(--wp--preset--color--white);
    line-height: 24px;
    margin: 0;
}

.form-events .fc-sticky-netto-val {
    font-weight: 400;
}

.form-events .fc-sticky-unit {
    font-weight: 300;
}

.form-events .fc-sticky-brutto {
    font-size: 12px;
    font-weight: 300;
    color: var(--wp--preset--color--neutral-200);
    line-height: 16px;
    margin: 0;
}

.form-events .fc-sticky-submit {
    border: 1px solid var(--wp--preset--color--white);
    background: none;
    color: var(--wp--preset--color--white);
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    padding: 14px 20px;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}

.form-events .fc-sticky-submit:hover {
    background: rgba(255,255,255,0.05);
}

.form-events .fc-sticky-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 1200px) {
    .form-events .fc-layout {
        gap: 48px;
    }
}

@media (max-width: 960px) {
    .form-events .fc-layout {
        flex-direction: column;
    }

    .form-events .fc-sidebar {
        flex: 1 1 auto;
        width: 100%;
        position: static;
        order: -1;
    }

    .form-events .fc-form-col {
        flex: 1 1 auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .form-events .fc-sticky-bar {
        display: block;
    }

    .form-events {
        padding-bottom: calc(48px + 72px);
    }

    .form-events .fc-submit-btn {
        display: none;
    }
}

@media (max-width: 600px) {
    .form-events {
        padding: 48px 0;
    }

    .form-events .fc-title {
        font-size: 24px;
    }

    .form-events .fc-course-name {
        font-size: 20px;
    }

    .form-events .fc-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-events .fe-subpanel-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-events .fe-options-section .fc-select-wrap,
    .form-events .fe-termin-row .fc-select-wrap {
        flex: 1 1 auto;
        width: 100%;
    }

    .form-events .fe-termin-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-events .fc-reuse-toggle {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .form-events .fc-ep-identity {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .form-events .fc-ep-identity::before {
        display: none;
    }
}
