/*
 Theme Name:     Divi Child
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Divi Child Theme
 Author:         Elegant Themes
 Author URI:     https://www.elegantthemes.com
 Template:       Divi
 Version:        1.0.0
*/
 
 
/* =Theme customization starts here
------------------------------------------------------- */

/* Required field indicators */
.required-indicator {
    color: #d32f2f;
    font-weight: bold;
    font-size:1.25rem
}

/* Experience validation styling */
.experience-validation-message {
    background-color: #ffebee;
    border: 1px solid #d32f2f;
    border-radius: 4px;
    padding: 8px 12px;
    margin-top: 10px;
    font-size: 14px;
    color: #d32f2f;
}

.experience-validation-message.show {
    display: block !important;
}

/* Experience ID validation message styling */
.experience-id-validation-message {
    grid-column-start: span 12;
}

/* Toggle icon styling - when input-section is visible (open) */
.span-block .minus {
    display: block;
}

.span-block .plus {
    display: none;
}

.span-block .minus.hide {
    display: none;
}

.span-block .plus.hide {
    display: block;
}

/* When input-section is hidden (section closed), show both icons */
.input-section.hide ~ .span-block .minus,
.first-block:has(.input-section.hide) .span-block .minus {
    display: block;
}

.input-section.hide ~ .span-block .plus,
.first-block:has(.input-section.hide) .span-block .plus {
    display: block;
}

/* Grid Layout for Form Categories */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 200px;
    grid-column: span 12;
}

/* Enhanced Citations with Interventions and Outcomes */
.all-citations-section {
    margin-top: 40px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.all-citations-section h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.8rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.citation-with-interventions {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.citation-with-interventions:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.citation-item {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-left: 4px solid #3498db;
    border-radius: 4px;
}

.citation-item strong {
    color: #2c3e50;
    font-size: 1.1rem;
}

.interventions-outcomes {
    margin-left: 20px;
    margin-top: 15px;
}

.intervention-group {
    margin-bottom: 15px;
    padding: 15px;
}

.intervention {
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c3e50;
}

.intervention strong {
    color: #e74c3c;
}

.outcomes {
    margin-left: 15px;
    margin-top: 10px;
}

.outcomes strong {
    color: #27ae60;
    font-size: 1rem;
}

.outcome-item {
    margin-left: 10px;
    margin-top: 5px;
    padding: 5px 0;
    color: #34495e;
    line-height: 1.4;
}

.outcome-item.experience-related {
    padding: 8px 12px;
    margin-left: 0;
    margin-top: 8px;
}

.filtered-out-message {
    color: #6c757d;
    font-style: italic;
    margin: 8px 0;
    margin-left: 15px;
    padding: 5px 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #6c757d;
}

.no-interventions {
    margin-left: 20px;
    color: #6c757d;
    font-style: italic;
    padding: 10px;
}

/* Responsive design for citations */
@media (max-width: 768px) {
    .all-citations-section {
        padding: 15px;
        margin-top: 20px;
    }
    
    .citation-with-interventions {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .interventions-outcomes {
        margin-left: 10px;
    }
    
    .intervention-group {
        padding: 10px;
    }
    
    .outcomes {
        margin-left: 10px;
    }
}

/* Hide subcategories container when all dropdowns are hidden */
.categories-grid.subcategories-container:not(:has(.subcategory-input-wrapper:not(.hide))) {
    display: none;
}

/* Responsive grid adjustments */
@media (max-width: 767px) {
    .categories-grid {
        grid-template-columns: repeat(1, 1fr);
        grid-column: span 12;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-column: span 12;
    }
}

@media (min-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-column: span 12;
    }
}

/* Category input wrapper styling */
/* .category-input-wrapper {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background-color: #f9f9f9;
} */

.category-input-wrapper label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.category-input-wrapper input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}

/* Autocomplete styling */
.category-input-wrapper input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.category-input-wrapper input::placeholder {
    color: #999;
    font-style: italic;
}

/* Subcategory section styling */
.subCatSection {
    grid-column: span 3;
    margin-top: 1rem;
}

/* Chips container styling */
.chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 15px;
    margin-top: 0;
    min-height: 60px;
    align-items: center;
}

/* Subcategory chip styling */
.subcategory-chip {
    display: inline-flex;
    align-items: center;
    background: #007cba;
    color: white;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    margin: 6px 0;
    cursor: default;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    animation: chipAppear 0.5s ease-out;
}

/* Removable chip styling */
.subcategory-chip.removable {
    cursor: pointer;
    padding-right: 12px;
}

/* Chip being removed styling */
.subcategory-chip.removing {
    opacity: 0.5;
    pointer-events: none;
}

.subcategory-chip.removable:hover {
    background: #005a87;
    color: white;
}

/* Chip remove button */
.chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    /* background: rgba(244, 67, 54, 0.1); */
    /* color: #f44336; */
    font-size: 14px;
    font-weight: bold;
    margin-left: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
}

.chip-remove{
    background: #f44336;
    color: white;
    transform: scale(1.1);
}

@keyframes chipAppear {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}



.subcategory-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #f3e5f5 0%, #e8f5e8 100%);
    border-color: #90caf9;
}

.subcategory-chip::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.subcategory-chip:hover::before {
    left: 100%;
}

.subcategory-chip-wrapper {
    display: flex;
    align-items: center;
    min-height: 60px;
    background: transparent;
    border: none;
}

.subcategory-chip-wrapper label {
    margin-bottom: 0;
    margin-right: 10px;
    flex-shrink: 0;
}

/* Responsive chip styling */
@media (max-width: 767px) {
    .chips-container {
        padding: 10px;
        gap: 6px;
    }
    
    .subcategory-chip {
        font-size: 13px;
        padding: 8px 12px;
        border-radius: 16px;
    }
    
    .subcategory-chip-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .subcategory-chip-wrapper label {
        margin-bottom: 8px;
        margin-right: 0;
    }
    
    .chip-remove {
        width: 16px;
        height: 16px;
        font-size: 12px;
    }
}

/* Responsive subcategory section */
@media (max-width: 767px) {
    .subCatSection {
        grid-column: span 12;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .subCatSection {
        grid-column: span 12;
    }
}

/* Subcategory input wrapper styling */
.subcategory-input-wrapper {
    padding: 5px 15px;
    transition: all 0.3s ease;
}

/* Remove background and border for chip containers */
.subcategory-input-wrapper:has(.subcategory-chip) {
    background: transparent;
    border: none;
    padding: 0;
    margin-left: 0;
}

/* Ensure subcategories are hidden by default */
.subcategory-input-wrapper.hide {
    display: none !important;
}

/* Input validation feedback styles */
input[style*="border-color: rgb(244, 67, 54)"] {
    border-color: #f44336 !important;
    box-shadow: 0 0 0 2px rgba(244, 67, 54, 0.2) !important;
    animation: shake 0.5s ease-in-out;
}

input[placeholder*="Please select from the dropdown options"] {
    color: #f44336 !important;
}

input[placeholder*="Please select from the dropdown options"]::placeholder {
    color: #f44336 !important;
    font-style: italic;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.subcategory-input-wrapper label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.subcategory-input-wrapper input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}

/* Subcategory autocomplete styling */
.subcategory-input-wrapper input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.subcategory-input-wrapper input::placeholder {
    color: #999;
    font-style: italic;
}

/* Container overflow handling */
.categories-grid.overflow-handle {
    overflow-x: auto;
}

/* Remove grid-column-start from input_wrapper class */
.input_wrapper {
    grid-column-start: unset !important;
}

/* Style for inputs and selects in the character-block section */
.character-block input,
.character-block select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
    background-color: #fff;
    color: #333;
    margin-bottom: 10px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    padding-right: 30px;
}

.character-block input:focus,
.character-block select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.character-block select option {
    padding: 8px;
    background-color: #fff;
    color: #333;
}

.character-block select option:hover {
    background-color: #f0f8ff;
}

/* Remove default dropdown arrow for select elements */
.character-block select::-ms-expand {
    display: none;
}

/* Style for labels in character-block */
.character-block label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
	margin-bottom:1rem;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
  margin-bottom: 1rem;
}

/* The slider */
.method-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.method-slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .method-slider {
  background-color: #2196F3;
}

input:focus + .method-slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .method-slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.method-slider.round {
  border-radius: 34px;
}

.method-slider.round:before {
  border-radius: 50%;
}

.switch-title{
	font-size:1.25rem;
	letter-spacing: 2px;
}

/* .disabilities {
    grid-column-start: span 8;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr;
} */

.disabilities {
    grid-column-start: span 8;
/*     display: grid
;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 1rem; */
    margin-top: 1rem;
    padding: 1rem;
}

.disability-block label{
    font-size: 1.25rem;


}

.disability-block input[type="checkbox"]{
    width: 25px;
    height: 25px;
    margin: 0;
   	align-self: end;
    justify-self: end;
}

/* .disability-block {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
} */

.disability-block{
display: grid;
    grid-template-columns: 2fr 1fr;
}

.submit-row input[type="submit"]{
	font-size:1.75rem;
	font-weight: 700;
	text-transform:uppercase;
	letter-spacing: 1px;
	padding: 0.8rem 1.25rem;
	background-color:#001539;
	color:#fff;
	border: none;
	

}

.submit-row{
	grid-column-start:6;
	margin-top: 3rem;
    grid-row-start: 7;
}

input[type=range] {
  -webkit-appearance: none;
  margin: 18px 0;
  width: 100%;
}
input[type=range]:focus {
  outline: none;
}
input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 8.4px;
  cursor: pointer;
  box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
  background: #3071a9;
  border-radius: 1.3px;
  border: 0.2px solid #010101;
}
input[type=range]::-webkit-slider-thumb {
  box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
  border: 1px solid #000000;
  height: 36px;
  width: 16px;
  border-radius: 3px;
  background: #ffffff;
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -14px;
}
input[type=range]:focus::-webkit-slider-runnable-track {
  background: #367ebd;
}
input[type=range]::-moz-range-track {
  width: 100%;
  height: 8.4px;
  cursor: pointer;
  box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
  background: #3071a9;
  border-radius: 1.3px;
  border: 0.2px solid #010101;
}
input[type=range]::-moz-range-thumb {
  box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
  border: 1px solid #000000;
  height: 36px;
  width: 16px;
  border-radius: 3px;
  background: #ffffff;
  cursor: pointer;
}
input[type=range]::-ms-track {
  width: 100%;
  height: 8.4px;
  cursor: pointer;
  background: transparent;
  border-color: transparent;
  border-width: 16px 0;
  color: transparent;
}
input[type=range]::-ms-fill-lower {
  background: #2a6495;
  border: 0.2px solid #010101;
  border-radius: 2.6px;
  box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
}
input[type=range]::-ms-fill-upper {
  background: #3071a9;
  border: 0.2px solid #010101;
  border-radius: 2.6px;
  box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
}
input[type=range]::-ms-thumb {
  box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
  border: 1px solid #000000;
  height: 36px;
  width: 16px;
  border-radius: 3px;
  background: #ffffff;
  cursor: pointer;
}
input[type=range]:focus::-ms-fill-lower {
  background: #3071a9;
}
input[type=range]:focus::-ms-fill-upper {
  background: #367ebd;
}


.input-section {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
	grid-column-start: span 12;
	margin-top: 1rem;
}






select#ages{
    line-height: 1.4rem;
    font-size: 1.25rem;
    border-radius: 15px;
    border: solid 1px #1b3664;
    padding: 1rem;
    margin: 1rem 0;
    width: 100%;
    background-color: hsl(0, 0%, 95%);
}

.field-help {
    display: block;
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.25rem;
    font-style: italic;
}

/* Disabled dropdown styling */
.dropdown-disabled {
    opacity: 0.6;
    pointer-events: none;
}

.dropdown-disabled label {
    color: #999 !important;
    cursor: not-allowed;
}

.dropdown-disabled input:disabled {
    background-color: #f5f5f5 !important;
    color: #999 !important;
    cursor: not-allowed !important;
    border-color: #ddd !important;
}

.dropdown-disabled input:disabled::placeholder {
    color: #bbb !important;
    font-style: italic;
}

/* Additional visual indicator for disabled state */
.dropdown-disabled::after {
    content: " (No options)";
    color: #999;
    font-size: 0.8em;
    font-style: italic;
}

.dropdown-disabled label::after {
    content: " (No options)";
    color: #999;
    font-size: 0.8em;
    font-style: italic;
    font-weight: normal;
}

h3.left-arrow-heading {
    background: url(img/double-leftarrow-oragne.png) no-repeat left 4px;
    background-size: 1.4444444444em 1.3888888889em;
    font-size: 1.125em;
    padding: 0.5em 0 0.6666666667em 2.2222222222em;
}

tr:nth-child(odd) {
    background: #f6f6f6;
}

#left-area ul.et_pb_tabs_controls {
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    
}

#left-area ul.et_pb_tabs_controls>li:first-child.et_pb_tab_active a{
    border-top-left-radius: 0.5rem;
    padding-left:1rem;
    border: solid 1px #d32f2f;
}

#left-area ul.et_pb_tabs_controls>li:first-child a{
    border-top-left-radius: 0.5rem;
}

#left-area  .et_pb_tabs{
    border: none;
}

#left-area .et_pb_all_tabs{

    border: solid 1px #d32f2f;

}

.metasynthesis-content h2{
font-size: clamp(2.25rem, 2rem + 1.25vw, 2.9375rem);
}

.metasynthesis-content label{
        font-size: 1rem;
        line-height: 1.25em;
    
}

.method-toggles div {
    display: flex;
    justify-content: space-between;
    align-content: space-between;
    align-items: center;
}