/* ============================================================
   DAST-10 Demo Stylesheet
   Tailored glassmorphism layout and interactive details
   ============================================================ */

:root {
	--dast-accent: #4c9aff;
	--dast-accent-soft: rgba(76, 154, 255, 0.18);
	--dast-warning: #f59e0b;
	--dast-danger: #ef4444;
	--dast-success: #10b981;
}

.hero-card__body {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.hero-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.hero-card__aside {
	margin-top: 1.75rem;
	padding-left: 1rem;
	border-left: 3px solid rgba(255, 255, 255, 0.25);
}

.hero-card__quote {
	font-size: 0.95rem;
	line-height: 1.6;
	color: var(--glass-text-soft);
}

.section-heading {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.section-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.35rem 0.75rem;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--glass-text-muted);
	background: rgba(255, 255, 255, 0.08);
	border-radius: 999px;
}

.section-description {
	max-width: 720px;
	color: var(--glass-text-soft);
}

.guidelines-list {
	margin: 0;
	padding-left: 1.1rem;
	display: grid;
	gap: 0.75rem;
	color: var(--glass-text-soft);
}

.glass-subcard {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: calc(var(--glass-surface-radius) - 6px);
	padding: 1.25rem;
	backdrop-filter: blur(16px);
}

.info-highlight ul li::marker {
	color: var(--dast-accent);
}

.assessment-card {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.question-grid {
	display: grid;
	gap: 1.25rem;
}

.question-block {
	padding: 1.25rem;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 18px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.question-block:hover {
	transform: translateY(-2px);
	box-shadow: 0 18px 30px rgba(15, 23, 42, 0.32);
}

.question-header {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.question-meta {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 0.82rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--glass-text-muted);
}

.question-index {
	padding: 0.3rem 0.65rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
}

.question-hint {
	padding: 0.3rem 0.5rem;
	border-radius: 999px;
	background: rgba(76, 154, 255, 0.12);
	color: var(--dast-accent);
}

.question-title {
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--glass-text-strong);
	margin: 0;
}

.question-note {
	margin: 0.5rem 0 0.75rem;
	font-size: 0.85rem;
}

.options-group {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.option {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 150px;
	padding: 0.65rem 1.15rem;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.18);
	cursor: pointer;
	transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.option:hover {
	background: rgba(255, 255, 255, 0.14);
	transform: translateY(-1px);
}

.option-input {
	accent-color: var(--dast-accent);
	width: 18px;
	height: 18px;
}

.option-content {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
	color: var(--glass-text-soft);
}

.option-score {
	font-size: 0.78rem;
	color: var(--glass-text-muted);
}

.option-input:checked + .option-content {
	color: var(--glass-text-strong);
}

.option-input:checked + .option-content .option-score {
	color: var(--dast-accent);
}

.results-panel {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	padding: 1.75rem;
}

.results-title {
	font-size: 1.1rem;
	font-weight: 700;
}

.score-summary {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	padding-bottom: 0.75rem;
}

.score-value {
	font-size: 2.75rem;
	font-weight: 700;
	color: var(--glass-text-strong);
	letter-spacing: -0.02em;
}

.trend-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.trend-pill {
	display: inline-flex;
	align-items: center;
	padding: 0.35rem 0.75rem;
	font-size: 0.75rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	color: var(--glass-text-muted);
}

.severity-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.35rem 0.85rem;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.severity-none {
	background: rgba(16, 185, 129, 0.18);
	color: var(--dast-success);
}

.severity-low {
	background: rgba(245, 158, 11, 0.15);
	color: var(--dast-warning);
}

.severity-moderate {
	background: rgba(245, 158, 11, 0.22);
	color: #fbbf24;
}

.severity-high {
	background: rgba(239, 68, 68, 0.2);
	color: var(--dast-danger);
}

.risk-level {
	padding: 0.75rem 0.85rem;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
	margin-bottom: 0.75rem;
}

.risk-none {
	border-color: rgba(16, 185, 129, 0.35);
}

.risk-low {
	border-color: rgba(245, 158, 11, 0.42);
}

.risk-moderate {
	border-color: rgba(250, 204, 21, 0.45);
}

.risk-high {
	border-color: rgba(239, 68, 68, 0.5);
}

.action-block ul li::marker {
	color: var(--dast-warning);
}

.chart-wrapper {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.chart-container {
	position: relative;
	height: 240px;
	padding: 1rem;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
}

.button-group {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.button-group .btn {
	border-radius: 14px;
	padding: 0.75rem 1rem;
	font-weight: 600;
}

.reference-card .glass-subcard ul li::marker {
	color: var(--dast-accent);
}

.print-sheet {
	background: #ffffff;
	color: #1f2937;
	padding: 2rem 0;
	margin-top: 3rem;
}

.print-sheet__header {
	display: flex;
	align-items: center;
	gap: 1rem;
	border-bottom: 2px solid #1f2937;
	padding-bottom: 1rem;
	margin-bottom: 1.5rem;
}

.print-logo {
	width: 64px;
	height: 64px;
}

.print-interpretation {
	background: rgba(31, 41, 55, 0.05);
	border-radius: 12px;
	padding: 1rem;
	font-size: 0.95rem;
}

.signature-block {
	margin-top: 2rem;
	text-align: center;
}

.signature-line {
	width: min(240px, 60%);
	margin: 0 auto 0.35rem;
	border-bottom: 1px solid #1f2937;
	padding-top: 1.75rem;
}

@media (max-width: 1200px) {
	.hero-card__body {
		gap: 1rem;
	}
	.hero-card__aside {
		border-left: none;
		padding-left: 0;
		margin-top: 1rem;
	}
}

@media (max-width: 992px) {
	.question-block {
		padding: 1rem;
	}
	.options-group {
		flex-direction: column;
	}
	.option {
		width: 100%;
	}
	.results-panel {
		position: static;
	}
}

@media (max-width: 576px) {
	.hero-card__meta {
		flex-direction: column;
		align-items: flex-start;
	}
	.section-heading {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media print {
	body {
		background: #ffffff !important;
	}
	.no-print,
	.header,
	.main-content,
	.footer,
	.button-group,
	.chart-wrapper,
	.trend-badges,
	.glass-subcard,
	#toast-container {
		display: none !important;
	}
	.print-sheet {
		margin-top: 0;
		padding: 0;
	}
	.print-sheet .container {
		max-width: 100%;
	}
}

/* ============================================================
   HCPE Form Styles - Added for standardized patient data section
   ============================================================ */

.form-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    backdrop-filter: blur(16px);
}

.form-section h2 {
    color: var(--glass-text-strong);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--glass-text-strong);
    font-size: 0.9rem;
}

.form-control {
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--glass-text-strong);
    font-size: 0.9rem;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--dast-accent);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(76, 154, 255, 0.1);
}

.form-control::placeholder {
    color: var(--glass-text-muted);
}

.form-control[readonly] {
    background: rgba(255, 255, 255, 0.05);
    cursor: not-allowed;
}

.voice-controls {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.voice-controls .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: var(--glass-text-soft);
    transition: all 0.25s ease;
}

.voice-controls .btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.voice-controls .btn i {
    font-size: 0.9rem;
}

.voice-controls select {
    padding: 0.4rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--glass-text-soft);
    font-size: 0.8rem;
}

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

    .voice-controls {
        flex-direction: column;
    }

    .voice-controls .btn,
    .voice-controls select {
        width: 100%;
    }
}
