/* =======================================================
   ACF FRONTEND FORM - DARK THEME (MonkeyFactory Style)
   ======================================================= */

/* Form wrapper */
.acf-form {
    font-family: inherit;
    margin-top: 24px;
}

/* Field label (Participants) */
.acf-form .acf-label label {
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    display: block;
}

/* Field description */
.acf-form p.description {
    color: #888888;
    font-size: 13px;
    margin-top: 12px;
    margin-bottom: 24px;
}

/* Remove default ACF table border and background */
.acf-form .acf-table {
    border: none;
    background: transparent;
    box-shadow: none;
}

/* Hide table header (Name column label) */
.acf-form .acf-table thead {
    display: none;
}

/* Each repeater row as a styled card */
.acf-form .acf-table tbody tr.acf-row {
    background-color: var(--mf-color-surface);
    border-left: 3px solid var(--accent); 
    display: flex;
    align-items: center;
    padding: 0;
    margin-bottom: 12px;
}

/* Remove cell borders */
.acf-form .acf-table td {
    border: none;
    padding: 0 12px;
    background: transparent;
}

/* Row number (1, 2, 3...) */
.acf-form .acf-row-handle.order {
    color: var(--accent);
    font-weight: 700;
    font-size: 18px;
    width: 30px;
    min-width: 30px;
    text-align: center;
    cursor: default;
    background: transparent;
    border: none;
    line-height: 1;
}

/* Remove any inherited background from handle cell */
.acf-form .acf-table td.acf-row-handle {
    background: transparent;
    border: none;
    padding: 0 8px;
}

.acf-repeater .acf-row-handle.order .acf-row-number {
    text-shadow: none;
}

/* Input field takes remaining space */
.acf-form .acf-field-text {
    flex: 1;
}

/* Text input field */
.acf-form input[type="text"] {
    width: 100%;
    background-color: var(--mf-color-surface-raised);
    border: 1px solid #333333;
    color: var(--white);
    font-size: 16px;
    padding: 12px 16px;
    transition: all 0.2s ease;
    box-shadow: none;
}

/* Input focus state */
.acf-form input[type="text"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

/* Hide clone row */
.acf-form .acf-table tbody tr.acf-clone {
    display: none;
}

/* Add/remove row icons */
.acf-form .acf-icon {
    background-color: #333333;
    border-color: #333333;
    color: var(--white);
    transition: all 0.2s;
}

.acf-form .acf-icon:hover {
    background-color: var(--accent);
    border-color: var(--accent);
}

/* =======================================================
   SPEICHERN BUTTON
   ======================================================= */
.acf-form .acf-form-submit {
    margin-top: 24px;
    text-align: right;
}

.acf-form .acf-button.button-primary {
    background-color: var(--white);
    color: var(--background-body);
    border: none;
    font-size: 15px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    text-shadow: none;
    box-shadow: none;
    height: auto;
    line-height: normal;
    display: inline-block;
}

.acf-form .acf-button.button-primary.button-large {
    background-color: var(--accent);
    color: var(--white);
    font-size: 1.125rem;
}

.acf-form .acf-button.button-primary:hover {
    opacity: 0.9;
}

.acf-form .acf-button.button-primary:active {
    transform: translateY(1px);
}

/* Spinner - invert for dark background */
.acf-form .acf-spinner {
    filter: invert(1);
}

/* Remove row removal animation for instant feedback */
.acf-form .acf-row {
    transition: none !important;
    animation: none !important;
}