/* prj-forms-instruments.css */

/* ===============================
   PRJ – Instrumentalist Form
   Layout (2 columns: Song | Instruments)
   =============================== */

.prj-form-wrapper-instruments .prj-instruments-section {
    margin-top: 20px;
}

/* Container for all rows */
.prj-form-wrapper-instruments .prj-instr-rows {
    margin-top: 10px;
}

/* Each song+instrument row */
.prj-form-wrapper-instruments .prj-instr-row {
    margin-bottom: 24px;
    position: relative; /* so the X can sit in the top-right */
}

/* Default: stacked on narrow screens */
.prj-form-wrapper-instruments .prj-instr-row > .prj-form-row.prj-inline-field {
    width: 100%;
    max-width: 100%;
}

/* Desktop: 2 columns – Song (left) | Instruments (right) */
@media (min-width: 600px) {

    /* true 2-column layout via CSS grid */
    .prj-form-wrapper-instruments .prj-instr-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        column-gap: 20px;
        row-gap: 0;
        align-items: flex-start;
    }

    .prj-form-wrapper-instruments .prj-instr-row > .prj-form-row.prj-inline-field {
        width: auto;
        max-width: none;
    }

    /* first is Song, second is Instruments */
    .prj-form-wrapper-instruments .prj-instr-row > .prj-form-row.prj-inline-field:first-child {
        grid-column: 1 / 2;
    }

    .prj-form-wrapper-instruments .prj-instr-row > .prj-form-row.prj-inline-field.prj-inline-instruments {
        grid-column: 2 / 3;
    }
}

/* Instruments group margin tweak */
.prj-form-wrapper-instruments .prj-inline-instruments {
    margin-top: 4px;
}

/* Flex wrap pills */
.prj-form-wrapper-instruments .prj-instr-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
}

/* Checkbox-as-button */
.prj-form-wrapper-instruments .prj-instr-checkbox {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* Hide native checkbox */
.prj-form-wrapper-instruments .prj-instr-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Visible pill */
.prj-form-wrapper-instruments .prj-instr-checkbox span {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 140px;     /* set fixed width */
    height: 44px;     /* set fixed height */

    padding: 0;
    border: 1px solid #222;
    border-radius: 4px;

    font-size: 14px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.03em;

    cursor: pointer;
    background: #fff;
    text-align: center;
}

/* Active state (checked) */
.prj-form-wrapper-instruments
.prj-instr-checkbox input[type="checkbox"]:checked + span {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* "+ Add More Songs" button */
.prj-form-wrapper-instruments .prj-instr-add {
    display: inline-block;
    margin-top: 4px;
    padding: 10px 18px;
    border-radius: 4px;
    border: 1px solid #ff59bf;
    background: #fff;
    color: #ff59bf;
    font-size: 14px;
    cursor: pointer;
}

/* Remove row "×" button – same style as singer form, top-right of row */
.prj-form-wrapper-instruments .prj-instr-remove {
    position: absolute;
    top: 20px; /* was 6px – lower so it lines up with the song select */
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: none;
    background: #e0e0e0; /* darker gray */
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 0;
	font-weight: bold; /* bold X */
}

.prj-form-wrapper-instruments .prj-instr-remove:hover {
    background: #e0e0e0;
}

/* Mobile: add space between Song select and Instrument(s) block */
@media (max-width: 768px) {
  .prj-form-wrapper-instruments .prj-instr-row .prj-inline-instruments {
    margin-top: 20px; /* tweak 6–16px to taste */
  }
}

/* SONG label: "Song #1", "Song #2", etc. */
.prj-form-wrapper-instruments .prj-inline-field .prj-field-label {
    font-size: 15px;   /* change to what you want */
}

/* INSTRUMENT(S) label: "Instrument(s)" */
.prj-form-wrapper-instruments .prj-inline-instruments .prj-field-label {
    font-size: 15px;   /* change separately if needed */
}

/* Optional: make the (Required) tag a bit smaller */
.prj-form-wrapper-instruments .prj-field-label .prj-required {
    font-size: 11px;
}

.prj-slot-disabled{
    opacity: .45;
}
.prj-slot-disabled span{
    text-decoration: line-through;
}