/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */
 body {
    background: #f8f9fa;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.section {
    display: none;
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.section.active {
    display: block;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
}

.section-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    background: #1976d2;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

h1, h2, h3 {
    color: #262626;
    margin-bottom: 15px;
}

h1 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
}

.question-text {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #555;
}

.textarea-large {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    resize: vertical;
    background: #f8fffe;
}

.textarea-large:focus {
    outline: none;
    border-color: #1976d2;
    background: white;
}

.pathway-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.pathway-card {
    padding: 25px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    background: white;
}

.pathway-card:hover {
    border-color: #1976d2;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(25,118,210,0.1);
}

.pathway-card.selected {
    border-color: #1976d2;
    background: #e3f2fd;
}

.pathway-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.btn {
    background: #2a66aa;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
    margin: 10px 5px;
  font-weight: 800;
}

.btn:hover {
    background: #1565c0;
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #5a6268;
}

.checkbox-group {
    margin: 20px 0;
}

.checkbox-item {
    display: flex;
    align-items: center;
    margin: 12px 0;
    padding: 12px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.checkbox-item:hover {
    background: #f5f5f5;
}

.checkbox-item input[type="checkbox"] {
    margin-right: 12px;
    transform: scale(1.2);
}

.challenge-grid {
    display: grid;
    gap: 15px;
    margin: 20px 0;
}

.challenge-card,
.card {
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.challenge-card:hover {
    border-color: #1976d2;
    background: #f8f9ff;
}

.challenge-card.selected {
    border-color: #1976d2;
    background: #e3f2fd;
}

.challenge-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 20px 0;
}

.challenge-section {
    padding: 20px;
    border: 2px dashed #d1c4e9;
    border-radius: 12px;
    min-height: 300px;
}

.solutions-grid {
    display: grid;
    gap: 15px;
    margin: 20px 0;
}

.solution-card {
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.solution-card:hover {
    border-color: #1976d2;
    background: #f8f9ff;
}

.solution-card.selected {
    border-color: #1976d2;
    background: #e3f2fd;
}

.solution-icon {
    margin-right: 15px;
    font-size: 1.5rem;
}

div[data-section="4"] .solution-card {
	background: white;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 20px;
	margin: 15px 0;
	border-left: 4px solid #1976d2;
}

div[data-section="4"] .solution-card h4 {
	color: #1976d2;
	margin-bottom: 8px;
	display: flex;
	align-items: center;
}

.placeholder-msg {
	color: #999;
	font-style: italic;
}

.smallBtn {
    background: #1359A0;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    color: #fff;
    margin-top: 0.5rem;
	border: 2px solid #1359A0;
}

#solutionOptions .solution-card.selected,
.intervention-card.selected  {
    background-color: #E4F0FB;
    border: 2px solid #1976d2;
    transition: all 0.3s;
}

#solutionOptions .solution-card.selected {
    background-color: #E4F0FB;
}

.responseWrapper p {
    font-size: 1rem;
    margin: 0.5rem auto;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
}

.analysis-table th,
.analysis-table td {
    padding: 15px;
    text-align: left;
    border: 1px solid #e0e0e0;
}

.analysis-table th {
    background: #f5f5f5;
    font-weight: 600;
}

.analysis-table input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #1976d2;
}

.timeline-number {
    background: #1976d2;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-weight: bold;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #c4e5dc;
	width: 0;
    transition: width 0.3s ease;
}

.selected-solutions {
    background: #c4e5dc;
    padding: 20px;
    border-radius: 8px;
  border: 2px solid #e0e0e0;
    margin: 20px 0;
}

.solution-tag {
    display: inline-block;
    background: #e1f5fe;
    color: #262626;
    padding: 15px;
    border-radius: 8px;
    margin: 5px;
    font-size: 0.9rem;
}

.complete-section {
    text-align: center;
    padding: 40px 20px;
}

.complete-icon {
    font-size: 4rem;
    color: #4caf50;
    margin-bottom: 20px;
}

.intervention-card {
	padding: 10px;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s ease;
	background: white;
	margin-bottom: 0.25rem;
}
.intervention-card.selected,
.solution-card.selected {
	border-color: #1976d2;
}

.hide {
	display: none;
}

@media (max-width: 768px) {
    .pathway-options {
        grid-template-columns: 1fr;
    }

    .challenge-sections {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 10px;
    }
}

/* Category Buttons */
button.categoryBtn {
    background: #fff;
    padding: 4%;
    font-size: 1rem;
    width: 50%;
    max-width: 224px;
    margin-right: 1%;
	margin-bottom: 1%;
	transition: transform 300ms ease;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
}

.categoryBtn.selected {
    border-color: #1976d2;
    background: #e3f2fd;
}

.challengeCatWrapper {
	display: flex;
	flex-wrap: wrap;
}

/* For Accessibility */
.challenge-card:focus,
.pathway-card:focus,
.backBtn:focus,
.continueBtn:focus,
.intervention-card:focus,
.solution-card:focus {
    outline: auto;
}

/* For Printing */
@media print {
	#et-main-area #section-welcome *,
	#et-main-area #section-pathways *,
	#et-main-area #section-worksheet *,
	#et-main-area #section-challenges *,
	#et-main-area #section-challenge-solutions *,
	#editChallenge,
	#editSolution,
	#editIntervention,
	#main-footer,
	.hide-from-print,
	.btn {
		display: none !important;
		margin: none !important;
		padding: none !important;
	}
	#et-main-area #section-solutions * {
		display: block;
	}
	#et_mobile_nav_menu,
	#et_top_search {
		display: none;
	}
	.container {
		width: 100% !important;
	}
	.card {
		padding: 12px 0 !important;
		border: 0  !important;
	}
	#ps-challenge-category {
		font-size: 24px;
	}
	.section-header h2 {
		font-size: 20px;
	}
	.responseWrapper h3 {
		font-size: 18px;
	}
	.section-header {
		padding: 0;
	}
}
