/* DSE Assessment Form - Premium LIGHT UI (Final Polish) */
:root {
	--dse-primary: #3b82f6;
	--dse-primary-light: #eff6ff;
	--dse-primary-dark: #2563eb;
	--dse-success: #10b981;
	--dse-success-light: #f0fdf4;
	--dse-bg: #f8fafc;
	--dse-card-bg: #ffffff;
	--dse-text: #0f172a;
	--dse-text-light: #64748b;
	--dse-border: #e2e8f0;
	--dse-radius: 20px;
}

/* Outer Wrapper Background */
#dse-assessment-container {
    background: radial-gradient(circle at top left, #cfe5fb30, #c5e2ff99);
    padding: 20px 20px;
    border-radius: 20px;
    border: 1px solid #c6e7ff;
}

.dse-form-premium {
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	background: #ffffff;
	padding: 60px;
	border-radius: var(--dse-radius);
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
	font-family: 'Outfit', 'Inter', sans-serif;
	color: var(--dse-text);
	box-sizing: border-box;
	border: 1px solid rgba(255, 255, 255, 0.8);
}

.dse-form-premium.full-width {
	max-width: 100%;
}

/* Progress Bar */
.dse-progress-bar {
    height: 10px;
    background: #bebebe;
    border-radius: 5px;
    overflow: hidden;
    width: 90%;
    margin: 0 auto 20px;
}

.dse-progress-inner {
	height: 100%;
	background: linear-gradient(90deg, #3b82f6, #6366f1);
	transition: width 0.8s cubic-bezier(0.18, 0.89, 0.32, 1.28);
	border-radius: 30px;
}

/* Step Headers */
.dse-step-header {
	margin-bottom: 50px;
	text-align: center;
}

.dse-form-group * {
    font-family: 'Outfit', 'Inter', sans-serif !important;
}

.dse-step-badge {
    display: inline-block;
    background: #d9ecff;
    color: #000000;
    padding: 15px 18px;
    border-radius: 9px;
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 5px;
}

.dse-step-header h2 {
	font-size: 30px;
	margin: 0 0 10px 0;
	font-weight: 800;
	color: #111827;
	letter-spacing: -0.02em;
}

.dse-step-header p {
    color: #64748b;
    font-size: 18px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Form Layouts */
.dse-form-row {
	display: flex;
	gap: 30px;
	margin-bottom: 30px;
}

.dse-form-group {
	flex: 1;
}

.dse-form-group.quarter {
	flex: 0 0 calc(25% - 22.5px);
}

.dse-form-group.three-quarters {
	flex: 0 0 calc(75% - 7.5px);
}

.dse-field-hint {
	font-size: 14px;
	color: #64748b;
	margin-bottom: 10px;
	font-style: italic;
	line-height: 1.4;
}

.dse-button-group {
    margin: 25px 0 0;
    display: flex;
    gap: 10px;
    justify-content: end;
}

.dse-form-group label {
	display: block;
	font-weight: 700;
	margin-bottom: 7px;
	font-size: 16px;
	color: #334155;
}

.dse-form-group input {
	padding-left: 12px !important;
	padding-right: 12px !important;
}

.dse-form-group input,
.dse-form-group select,
.dse-form-group textarea {
	width: 100%;
	padding: 16px 22px;
	border: 1.5px solid #d9d9d9 !important;
	border-radius: 12px !important;
	font-size: 16px !important;
	transition: all 0.3s ease;
	background: #fbfcfe !important;
	color: #0f172a !important;
}

.dse-form-group input:focus,
.dse-form-group select:focus,
.dse-form-group textarea:focus {
	outline: none;
	border-color: var(--dse-primary);
	background: #ffffff;
	box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.dse-input-split {
	display: flex;
	gap: 15px;
}

/* Section Dividers */
.dse-form-divider {
	text-align: center;
	margin: 35px 0 30px;
	position: relative;
}

.dse-form-divider::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	width: 100%;
	height: 1px;
	background: #e2e8f0;
}

.dse-form-divider span {
    position: relative;
    background: #d9ecff;
    padding: 12px 26px;
    color: #3a3a3a;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-radius: 5px;
}

/* Question Boxes */
.dse-requirements-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
	gap: 25px;
	margin-top: 25px;
}

.dse-question-box {
	background: #ffffff;
	border: 2px solid #f1f5f9;
	padding: 30px;
	border-radius: 10px;
	transition: all 0.4s ease;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.dse-question-box.active-yes {
	border-color: var(--dse-success);
	background: var(--dse-success-light);
	box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.1);
}

/* Binary Toggle */
.dse-binary-group {
	display: flex;
	background: #f8fafc;
	padding: 4px;
	border-radius: 12px;
	border: 1px solid #f1f5f9;
	gap: 5px;
}

button#dse-remove-photo {
    color: red;
    font-size: 29px;
    position: absolute;
    width: 22px;
    line-height: 0px;
    margin-top: -30px;
    padding: 0;
    background: transparent;
}

.dse-binary-btn {
    flex: 1;
    background: none;
    padding: 12px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    border-radius: 10px !important;
    color: #000000 !important;
    border: 1px solid #c9c9c9 !important;
}

.dse-binary-btn.active[data-value="yes"] {
    background: var(--dse-success);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    border-color: #10b981 !important;
}

.dse-binary-btn.active[data-value="no"] {
	background: #fff;
	color: #1e293b;
	box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* Pain Cards */
.dse-pain-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 20px;
}

.dse-pain-card {
	background: #ffffff;
	border: 2px solid #f1f5f9;
	border-radius: 20px;
	padding: 20px;
	text-align: center;
	cursor: pointer;
	transition: all 0.4s ease;
}

.dse-pain-card.active {
	background: var(--dse-primary-light);
	border-color: var(--dse-primary);
	box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.1);
}

.dse-pain-icon { font-size: 44px; display: block; }
.dse-pain-label { font-size: 15px; font-weight: 800; color: #1e293b; }

/* Photo Field */
.dse-upload-area {
	border: 3px dashed var(--dse-border);
	border-radius: 24px;
	padding: 60px 40px;
	text-align: center;
	background: #fbfcfe;
	transition: all 0.3s ease;
	cursor: pointer;
}

#dse-image-preview {
	max-width: 100%;
	max-height: 150px;
	border-radius: 12px;
	object-fit: contain;
	border: 5px solid #ffffff;
	box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Consent Checkbox */
.dse-consent-box {
	margin: 30px 0;
	background: #f8fafc;
	padding: 30px;
	border-radius: 16px;
	border: 1.5px solid #f1f5f9;
}

.dse-custom-checkbox {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	position: relative;
}

.dse-custom-checkbox input {
	position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; pointer-events: none;
}

.dse-checkmark {
	height: 24px; width: 24px; background-color: #ffffff; border: 2px solid #cbd5e1; border-radius: 6px; flex-shrink: 0; transition: all 0.2s ease; margin-top: 4px;
}

.dse-custom-checkbox input:checked ~ .dse-checkmark { background-color: var(--dse-primary); border-color: var(--dse-primary); }
.dse-checkmark:after { content: ""; position: absolute; display: none; left: 9px; top: 9px; width: 5px; height: 10px; border: solid white; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.dse-custom-checkbox input:checked ~ .dse-checkmark:after { display: block; }

/* Buttons */
button.dse-btn {
	padding: 18px 45px;
	border-radius: 16px;
	font-weight: 800;
	font-size: 18px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	border: none;
	cursor: pointer;
}

button.dse-next-btn, button.dse-submit-btn, button.dse-primary {
	background: #3b82f6; color: #ffffff; box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.3);
}

button.dse-secondary { background: #eff6ff; color: #3b82f6; border: 1px solid #dbeafe; }

/* ANALYSIS WRAPPER & PRELOADER RESTORED */
.dse-status-step {
	padding: 60px 0;
	text-align: center;
}

.dse-loader-container {
	animation: fadeIn 0.5s ease;
}

.dse-spinner, .dse-spinner-premium {
	width: 80px;
	height: 80px;
	border: 6px solid #f3f3f3;
	border-top: 6px solid #3b82f6;
	border-radius: 50%;
	animation: dse-spin 1s linear infinite;
	margin: 0 auto 30px;
	box-shadow: 0 0 15px rgba(59, 130, 246, 0.1);
}

@keyframes dse-spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

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

#dse-status-title {
	font-size: 32px;
	font-weight: 800;
	color: #1e293b;
	margin-bottom: 15px;
}

#dse-status-desc {
	font-size: 18px;
	color: #64748b;
	max-width: 500px;
	margin: 0 auto;
	line-height: 1.6;
}

/* SMART REPORT BUTTON */
.dse-download-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	background: linear-gradient(135deg, #10b981, #059669);
	color: #fff;
	text-decoration: none;
	padding: 20px 50px;
	border-radius: 20px;
	font-weight: 800;
	font-size: 20px;
	box-shadow: 0 15px 35px -10px rgba(16, 185, 129, 0.4);
	transition: all 0.3s ease;
	margin-top: 30px;
}

.dse-download-btn::after {
	content: '→';
	font-size: 24px;
	transition: transform 0.3s ease;
}

.dse-download-btn:hover {
	transform: translateY(-5px) scale(1.02);
	box-shadow: 0 20px 45px -12px rgba(16, 185, 129, 0.5);
}

.dse-download-btn:hover::after {
	transform: translateX(5px);
}

.dse-success-icon-premium {
	width: 100px;
	height: 100px;
	background: #ecfdf5;
	color: #10b981;
	font-size: 48px;
	line-height: 100px;
	border-radius: 50%;
	margin: 0 auto 30px;
	text-align: center;
	border: 3px solid #10b981;
}

/* Responsive */
@media (max-width: 768px) {
	.dse-form-premium { padding: 40px 25px; }
	.dse-step-header h2 { font-size: 32px; }
	.dse-btn { width: 100%; }
}
