/**
 * Styles for Event Entries and input forms
 * Form Class:
 *  acf_form['pkrrun-acf-form']
 * Container Structure is as follows
 *  <div class="pkrrun-event-entry-shell">
 *      <div class="regform-header">
 *          Title
 *          [Additional elements]
 *      </div>
 *      <div class="regform-content">
 *          [acf_form]
 *      </div>
 *      <div class="regform-actions">
 *          <button|a class="pkrrun-entry-submit">
 *          <button|a class="pkrrun-entry-cancel">
 *      </div>
 *  </div>
 */

 /** Container Styles **/
.pkrrun-event-entry-shell {
    width: 100%;
    display: block;
}

/** Header Styles **/
.pkrrun-event-entry-shell p.event-entry-title {
    font-size: 1.4rem;
    font-weight: 700;
}

.pkrrun-event-entry-shell div.event-entry-static {
    /* Pre-filled data values displayed as read-only */
    display: flex; 
    flex-flow: row nowrap;
    align-items: flex-end;
    justify-content: space-between;
}

/*
.pkrrun-event-entry-shell div.event-entry-static .pkrrun-field-value {
    color: White;
}

.pkrrun-event-entry-shell div.event-entry-static .pkrrun-field-label {
    color: #E09900;
    font-size: 0.8rem;
    font-style: italic;
    border-top: 1px solid #E09900; #important   
}
*/

.pkrrun-event-entry-shell .event-entry-submit-btn {
	background-color: #0C71C3;
  	border-radius: 2rem;
  	color: White;
  	font-weight: 700;
  	padding: 1rem 2rem;
  	margin-right: 1rem;
  	cursor: pointer;
}
.pkrrun-event-entry-shell .event-entry-cancel-btn {
	background-color: #E09900;
  	border-radius: 2rem;
  	font-weight: 700;
  	padding: 1rem 2rem;
  	margin-left: 1rem;
  	cursor: pointer;
}

.pkrrun-event-entry-shell .pkrrun-hr-light {
    width: 80%;
    margin-top: 1rem;
    margin-bottom: 1rem;
    border-top: 2px solid #E09900;
}

/** Form & ACF Styles **/
.pkrrun-event-entry-shell .acf-field {
    margin-top: 1rem;
}

.pkrrun-event-entry-shell .acf-label {
    font-weight: 600;
    font-size: 1rem;
    color: #E09900;
}

.pkrrun-event-entry-shell .acf-fields p.description{
    font-weight: 400;
    font-size: 0.8rem;
    color: #aaa;
    font-style: italic;    
}

/* Entry Type Radio Button Group container, aligned center */
.pkrrun-event-entry-shell .acf-field.acf-field-radio > .acf-input {
    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: center;
    align-items: center;
}

/* each option label becomes a two-column grid: radio | text */
.pkrrun-event-entry-shell .acf-radio-list li label {
  display: grid;
  grid-template-columns: 22px 1fr; /* fixed width for radio, rest for text */
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  background: transparent;
}

/* style the radio input */
.pkrrun-event-entry-shell .acf-radio-list li label input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0;
  justify-self: center;
  align-self: center;
}

/* optional: hover / selected visual */
.pkrrun-event-entry-shell .acf-radio-list li label:hover {
  background: rgba(0,0,0,0.03);
}
.pkrrun-event-entry-shell .acf-radio-list li input[type="radio"]:checked + span,
.pkrrun-event-entry-shell .acf-radio-list li input[type="radio"]:checked ~ span {
  font-weight: 600;
  color: #0a66c2;
}


div.pkrrun-eventreg-actions {
	width: 100%;
  	display: grid;
  	grid-template: auto / 1fr 1fr;
  	align-content: center;
}
button.pkrrun-eventreg-save {
	background-color: #0C71C3;
  	color: White;
  	border-radius: 6px;
  	padding: 0.5rem;
  	width: 80%;
}
button.pkrrun-eventreg-cancel {
	background-color: #E09900;
  	color: White;
  	border-radius: 6px;
  	padding: 0.5rem;
  	width: 80%;
}

.pkrrun-event-entry-shell .select2-container {
    width: 80% !important;
}

/* Base Select2 control */
.select2-container .select2-selection--single {
  background-color: white;
  color: black;
  border: 1px solid #ccc;
}

/* Text inside the selection */
.select2-container .select2-selection--single .select2-selection__rendered {
  color: black;
}

/* Dropdown background and text */
.select2-container .select2-dropdown {
  background-color: white;
  color: black;
}

/* Individual options */
.select2-container .select2-results__option {
  background-color: white;
  color: black;
}

/* Highlighted (hovered or selected) option */
.select2-container .select2-results__option--highlighted {
  background-color: #007BFF; /* Bootstrap blue or any blue you prefer */
  color: white;
}

