/* ===============================================
   PROGRAMME FINDER — COLLAPSIBLES
   =============================================== */

/* HEADER */
.mce-collapsible-header {
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 12px;
    margin-bottom: 0;
    border: 1px solid #ddd;
    background: #fafafa;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: none;
    align-items: flex-start;   /* aligns arrow to the top */
    gap: 6px;                  /* optional spacing */	
}

.mce-collapsible-header.open .arrow {
    transform: rotate(90deg);
    margin-top: 2px;           /* fine-tuning */
    display: inline-block;	
}

.mce-collapsible-header .arrow {
    width: 0;
    height: 0;
    border-left: 10px solid #79745e; /* arrow color */
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    transition: transform 0.25s ease;
    margin-right: 3px;
	display: inline-block;
	transform: rotate(0deg);
	margin-top: 2px;
}


/* BODY */
.mce-collapsible-body {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease;
    padding-left: 3px;
    margin-top: 2px;
}

.mce-collapsible-body.open {
    max-height: 1200px; /* enough for full content; JS updates real height */
}

/* CHECKBOX AREA */
.mce-dynamic-zone {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px 8px 10px 8px;
}

/* Hide the native checkbox */
.mce-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    width: 16px;
    height: 16px;
    border: 2px solid #79745e; /* border color */
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    display: inline-block;
    background: white;
    margin: 0;
}

/* CHECKED STATE — GOLD BACKGROUND */
.mce-checkbox input[type="checkbox"]:checked {
    background-color: #bc982d;
    border-color: #bc982d;
}

/* Draw the checkmark */
.mce-checkbox input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
}


.mce-checkbox span {
    cursor: pointer;
    font-size: 14px;
}

/* Remove Formidable native checkboxes */
.frm_checkbox,
.frm_radio {
    display: none !important;
}

/* ===============================================
   FORMAT FIELD (OPTIONAL ALWAYS-OPEN DESIGN)
   =============================================== */

/* Format header looks like collapsible, but does NOT collapse */
.static-header {
    cursor: default !important;
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px 12px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

/* Arrow for static header is dimmed */
.static-header .arrow.no-rotate {
    transform: rotate(0deg) !important;
    opacity: 0.4;
}

/* Format body is always open (OPTIONAL) */
.always-open {
    max-height: none !important;
    overflow: visible !important;
    padding: 8px 12px;
}

/* Hide the Formidable success message */
.frm_message {
    display: none !important;
}


/* Restore visibility for the GTR checkbox */
.mce-gtr .frm_checkbox {
    display: flex !important;
    align-items: center;
    gap: 6px;
}

