/* Customer Requirement Survey - Web Form Styling (acct.ppgcenter.biz/inquiry) */

/* Scope every rule to the survey web form page */
#page-customer-requirement-survey {
	font-family: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ============ Page backdrop ============ */
#page-customer-requirement-survey .page-content-wrapper {
	background:
		radial-gradient(900px 380px at 88% -12%, rgba(212, 175, 55, 0.12), transparent 60%),
		radial-gradient(860px 420px at 4% -10%, rgba(15, 181, 174, 0.10), transparent 55%),
		linear-gradient(180deg, #eaeff6 0%, #f4f7fb 42%, #eef3f9 100%);
}

/* ============ Width (Frappe default .page_content is 800px) ============
   Widened stepwise by +30% each time per customer request:
     800 -> 1040 -> 1352 -> 1760px (current).
   The wrapping <main class="container"> must also be widened so it never caps the card. */
#page-customer-requirement-survey .container,
#page-customer-requirement-survey main.container {
	max-width: 1900px;
}

#page-customer-requirement-survey .page_content {
	max-width: 1760px;
	margin-left: auto;
	margin-right: auto;
	padding-bottom: 26px;
}

/* ============ Header / hero ============ */
#page-customer-requirement-survey .web-form-header {
	position: relative;
	background: linear-gradient(120deg, #0d274a 0%, #0b2138 45%, #0d3a52 100%);
	border: 0;
	border-radius: 20px 20px 0 0;
	padding: 40px 44px 30px;
	overflow: hidden;
}

#page-customer-requirement-survey .web-form-header::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(420px 260px at 88% 8%, rgba(15, 181, 174, 0.30), transparent 60%),
		radial-gradient(320px 220px at 4% 110%, rgba(212, 175, 55, 0.22), transparent 55%);
	pointer-events: none;
}

#page-customer-requirement-survey .web-form-header .breadcrumb-container {
	padding-left: 0;
}

#page-customer-requirement-survey .web-form-header .breadcrumb {
	background: transparent;
}

#page-customer-requirement-survey .web-form-header .breadcrumb a {
	color: #b9c8da;
}

#page-customer-requirement-survey .web-form-head {
	position: relative;
	border-bottom: 0;
	padding-bottom: 0;
}

#page-customer-requirement-survey .web-form-head::after {
	content: "";
	display: block;
	position: relative;
	width: 74px;
	height: 4px;
	margin-top: 18px;
	border-radius: 3px;
	background: linear-gradient(90deg, #d4af37, #0fb5ae);
}

#page-customer-requirement-survey .web-form-title h1 {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	margin: 0;
	color: #ffffff;
	font-size: 30px;
	font-weight: 700;
	letter-spacing: -0.3px;
	line-height: 1.25;
}

#page-customer-requirement-survey .web-form-title h1 > .crs-khmer {
	color: #8fe6e0;
	font-size: 28px;
	font-weight: 700;
	white-space: normal;
	line-height: 1.35;
}

#page-customer-requirement-survey .web-form-title h1 > .crs-title-en {
	margin-top: 2px;
}

#page-customer-requirement-survey .web-form-introduction {
	position: relative;
	margin-top: 14px;
}

#page-customer-requirement-survey .web-form-introduction p {
	color: #cdd9e6;
}

#page-customer-requirement-survey .web-form-head .indicator-pill {
	position: relative;
	background: rgba(255, 255, 255, 0.16);
	color: #ffffff;
	font-weight: 600;
}

#page-customer-requirement-survey .web-form-header .web-form-actions {
	position: relative;
}

#page-customer-requirement-survey .web-form-header .web-form-actions .btn {
	background: rgba(255, 255, 255, 0.14);
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 10px;
	backdrop-filter: blur(4px);
}

#page-customer-requirement-survey .web-form-header .web-form-actions .btn:hover {
	background: rgba(255, 255, 255, 0.24);
}

/* ============ Main card ============ */
#page-customer-requirement-survey .web-form {
	max-width: 100%;
	background: #ffffff;
	border: 1px solid #e3e9f1;
	border-top: 0;
	border-radius: 0 0 20px 20px;
	padding: 34px 44px 40px;
	box-shadow: 0 24px 60px -30px rgba(11, 33, 56, 0.40);
	counter-reset: crs-part;
}

/* ============ Sections ============ */
#page-customer-requirement-survey .form-section {
	padding: 10px 0 8px;
	border-bottom: 1px solid #eef1f6;
}

#page-customer-requirement-survey .form-section:last-of-type {
	border-bottom: 0;
}

#page-customer-requirement-survey .form-section .section-head {
	counter-increment: crs-part;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 0 13px;
	font-size: 17px;
	font-weight: 700;
	color: #0b2138;
	border-bottom: 0;
	box-shadow: 0 16px 22px -18px rgba(11, 33, 56, 0.30);
	margin-bottom: 16px;
}

#page-customer-requirement-survey .form-section:first-of-type .section-head {
	padding-top: 4px;
}

#page-customer-requirement-survey .section-head::before {
	content: counter(crs-part, decimal-leading-zero);
	min-width: 36px;
	height: 36px;
	padding: 0 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 11px;
	font-size: 14px;
	font-weight: 700;
	color: #0b2138;
	background: linear-gradient(135deg, #e4f6f4, #d3efed);
	border: 1px solid rgba(15, 181, 174, 0.35);
}

#page-customer-requirement-survey .section-head .collapsible .collapse-indicator {
	color: #0fb5ae;
}

/* Section heading text: Khmer on top, English underneath */
#page-customer-requirement-survey .crs-section-head-text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	line-height: 1.2;
}

#page-customer-requirement-survey .crs-section-head-text .crs-khmer {
	margin-bottom: 3px;
	white-space: normal;
	font-size: 15px;
	line-height: 1.35;
}

#page-customer-requirement-survey .crs-section-head-text .crs-section-head-en {
	font-size: 17px;
	line-height: 1.2;
}

#page-customer-requirement-survey .form-section-description {
	color: #5b6b82;
	font-size: 13.5px;
	margin-top: -6px;
}

/* ============ Fields ============ */
#page-customer-requirement-survey .section-body {
	padding-top: 2px;
}

#page-customer-requirement-survey .form-group {
	margin-bottom: 20px;
}

#page-customer-requirement-survey .control-label,
#page-customer-requirement-survey .section-body label.control-label {
	font-size: 13px;
	font-weight: 600;
	color: #33405a;
	margin-bottom: 7px;
	letter-spacing: 0.1px;
}

/* Field labels: Khmer on top, English underneath */
#page-customer-requirement-survey label.control-label {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
}

#page-customer-requirement-survey label.control-label > .crs-khmer {
	order: -1;
	margin-bottom: 2px;
	white-space: normal;
}

/* Required fields: move the " *" from below the English label up next to the
   Khmer label (top line). */
#page-customer-requirement-survey label.control-label.reqd.crs-has-khmer::after {
	display: none !important;
}

#page-customer-requirement-survey label.control-label.reqd.crs-has-khmer > .crs-khmer::after {
	content: " *";
	color: #e5484d;
	font-weight: 700;
	white-space: nowrap;
}

#page-customer-requirement-survey .section-body label.control-label .reqd {
	color: #e5484d;
}

#page-customer-requirement-survey .form-control,
#page-customer-requirement-survey .input-with-feedback.form-control,
#page-customer-requirement-survey select.form-control,
#page-customer-requirement-survey textarea.form-control {
	/* Frappe's .form-control pins height: 28px; with the generous padding below
	   that collapses the content box and clips the value text out of view
	   (notably for <select>, whose chosen option then appears blank). Let the
	   control grow to fit its padding + text. */
	height: auto;
	min-height: 48px;
	line-height: 1.4;
	padding: 12px 15px;
	border: 1px solid #d6deea;
	border-radius: 11px;
	background: #fbfcfe;
	font-size: 14.5px;
	color: #16233b;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
	transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

#page-customer-requirement-survey .form-control:focus {
	border-color: #0fb5ae;
	background: #ffffff;
	box-shadow: 0 0 0 3.5px rgba(15, 181, 174, 0.16);
	outline: none;
}

#page-customer-requirement-survey .form-control::placeholder {
	color: #94a3b8;
}

#page-customer-requirement-survey .frappe-control input[type="checkbox"],
#page-customer-requirement-survey .frappe-control input[type="radio"] {
	accent-color: #0fb5ae;
}

#page-customer-requirement-survey .frappe-control .checkbox label,
#page-customer-requirement-survey .frappe-control {
	color: #33405a;
}

/* ============ File upload ============ */
#page-customer-requirement-survey .file-upload {
	border: 2px dashed #cbd5e1;
	border-radius: 14px;
	padding: 30px 20px;
	background: #f8fafc;
	color: #64748b;
	transition: border-color 0.18s, background 0.18s, color 0.18s;
}

#page-customer-requirement-survey .file-upload:hover {
	border-color: #0fb5ae;
	background: #f0fdfb;
	color: #0b2138;
}

#page-customer-requirement-survey .file-upload .btn {
	border-color: #0fb5ae;
	color: #0fb5ae;
	background: #ffffff;
}

#page-customer-requirement-survey .file-upload .btn:hover {
	background: #0fb5ae;
	color: #ffffff;
}

#page-customer-requirement-survey .attachment-row {
	border: 1px solid #e3e9f1;
	border-radius: 10px;
	padding: 8px 12px;
	margin-top: 10px;
}

/* ============ Child-table grids ============ */
#page-customer-requirement-survey .grid {
	border: 1px solid #e3e9f1;
	border-radius: 12px;
	overflow: hidden;
}

#page-customer-requirement-survey .grid-heading-row {
	background: #f4f7fb;
	border-bottom: 1px solid #e3e9f1;
	/* Frappe pins the heading row/cells to 32px; let them grow with padding. */
	height: auto;
	min-height: 40px;
}

#page-customer-requirement-survey .grid-heading-row .grid-static-col,
#page-customer-requirement-survey .grid-heading-row .row-check,
#page-customer-requirement-survey .grid-heading-row .row-index {
	height: auto;
	padding: 10px 12px !important;
}

#page-customer-requirement-survey .grid-heading-cell {
	font-size: 12px;
	font-weight: 700;
	color: #4b5a70;
	letter-spacing: 0.3px;
	text-transform: uppercase;
	padding: 12px;
}

/* Grid header: Khmer on top, English underneath */
#page-customer-requirement-survey .grid-heading-row .static-area.crs-head-stack {
	display: flex;
	flex-direction: column;
	justify-content: center;
	white-space: normal;
	overflow: visible;
	line-height: 1.35;
}

#page-customer-requirement-survey .grid-heading-row .static-area.crs-head-stack .crs-khmer,
#page-customer-requirement-survey .grid-heading-row .static-area.crs-head-stack .crs-head-en {
	display: block;
	text-transform: none;
	letter-spacing: 0;
	font-size: 11.5px;
	white-space: normal;
	line-height: 1.35;
}

#page-customer-requirement-survey .grid-heading-row .static-area.crs-head-stack .crs-khmer {
	margin-bottom: 2px;
}

/* Required fields: move the " *" from the bottom (English line) to the top,
   right beside the Khmer label. */
#page-customer-requirement-survey .grid-heading-row .static-area.reqd.crs-head-stack::after {
	display: none !important;
}

#page-customer-requirement-survey .grid-heading-row .static-area.reqd.crs-head-stack .crs-khmer::after {
	content: " *";
	color: #e5484d;
	font-weight: 700;
}

#page-customer-requirement-survey .grid-row {
	border-bottom: 1px solid #eef1f6;
}

#page-customer-requirement-survey .grid-row:hover {
	background: #f8fbfe;
}

#page-customer-requirement-survey .grid .form-control {
	background: #ffffff;
}

#page-customer-requirement-survey .grid-footer {
	padding: 8px;
	background: #fbfcfe;
}

#page-customer-requirement-survey .grid .grid-add-row,
#page-customer-requirement-survey .grid-footer .btn,
#page-customer-requirement-survey .grid .btn-sm {
	color: #0fb5ae;
	font-weight: 600;
}

/* ============ Grid totals row ============ */
#page-customer-requirement-survey .crs-grid-total-row {
	background: #f4f7fb;
	border-top: 2px solid #d7e0ec;
	color: #0b2138;
	font-weight: 700;
	font-size: 12.5px;
}

#page-customer-requirement-survey .crs-grid-total-row .data-row {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
}

#page-customer-requirement-survey .crs-grid-total-row .grid-static-col,
#page-customer-requirement-survey .crs-grid-total-row .row-index,
#page-customer-requirement-survey .crs-grid-total-row .row-check {
	min-height: 38px;
	display: flex;
	align-items: center;
	padding: 8px 12px;
}

#page-customer-requirement-survey .crs-grid-total-row .row-index {
	justify-content: center;
	color: #5b6b82;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

#page-customer-requirement-survey .crs-grid-total-row .crs-total-label {
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #0d274a;
}

#page-customer-requirement-survey .crs-grid-total-row .crs-total-value {
	color: #0d9d97;
	font-weight: 800;
	font-size: 13.5px;
}

#page-customer-requirement-survey .crs-grid-total-row .grid-static-col.text-right {
	justify-content: flex-end;
}

/* ============ Footer / submit ============ */
#page-customer-requirement-survey .web-form-footer {
	margin-top: 8px;
}

#page-customer-requirement-survey .web-form-footer .web-form-actions {
	border-top: 1px solid #eef1f6;
	padding-top: 22px;
	justify-content: flex-end;
}

#page-customer-requirement-survey .web-form-actions .btn-primary {
	background: linear-gradient(135deg, #17c3bb 0%, #0fb5ae 55%, #0d9d97 100%);
	border: 0;
	border-radius: 12px;
	padding: 13px 30px;
	font-size: 14.5px;
	font-weight: 700;
	letter-spacing: 0.2px;
	color: #ffffff;
	box-shadow: 0 10px 22px -10px rgba(15, 181, 174, 0.70);
	transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}

#page-customer-requirement-survey .web-form-actions .btn-primary:hover {
	filter: brightness(1.05);
	transform: translateY(-1px);
	box-shadow: 0 14px 26px -10px rgba(15, 181, 174, 0.75);
}

#page-customer-requirement-survey .web-form-footer .discard-btn,
#page-customer-requirement-survey .web-form-actions .btn-default {
	border: 1px solid #d6deea;
	border-radius: 12px;
	color: #33405a;
	background: #ffffff;
}

/* ============ Success & attachments ============ */
#page-customer-requirement-survey .success-page {
	margin-top: 28px;
	background: #ffffff;
	border: 1px solid #e3e9f1;
	border-radius: 20px;
	box-shadow: 0 24px 60px -30px rgba(11, 33, 56, 0.40);
}

#page-customer-requirement-survey .success-page .success-icon {
	color: #0fb5ae;
}

#page-customer-requirement-survey .success-page .success-title {
	color: #0b2138;
}

#page-customer-requirement-survey .success-page .btn-primary {
	background: linear-gradient(135deg, #17c3bb 0%, #0fb5ae 55%, #0d9d97 100%);
	border: 0;
	border-radius: 12px;
	color: #ffffff;
	font-weight: 700;
}

#page-customer-requirement-survey .attachments {
	margin-top: 24px;
	background: #ffffff;
	border: 1px solid #e3e9f1;
	border-radius: 14px;
}

#page-customer-requirement-survey .attachments .attachment {
	color: #5b6b82;
}

/* ============ Responsive ============ */
@media (max-width: 991px) {
	#page-customer-requirement-survey .web-form {
		padding: 28px 32px 34px;
	}

	#page-customer-requirement-survey .web-form-header {
		padding: 34px 32px 26px;
	}
}

@media (max-width: 767px) {
	#page-customer-requirement-survey .page_content {
		max-width: 100%;
		padding-left: 6px;
		padding-right: 6px;
	}

	#page-customer-requirement-survey .web-form-header {
		padding: 26px 20px 22px;
		border-radius: 14px 14px 0 0;
	}

	#page-customer-requirement-survey .web-form-title h1 {
		font-size: 22px;
	}

	#page-customer-requirement-survey .web-form {
		padding: 18px 18px 28px;
		border-radius: 0 0 14px 14px;
	}

	#page-customer-requirement-survey .form-section {
		padding: 4px 0;
	}

	#page-customer-requirement-survey .form-section .section-head {
		font-size: 15px;
	}

	#page-customer-requirement-survey .web-form-header .web-form-actions,
	#page-customer-requirement-survey .web-form-footer .web-form-actions {
		flex-wrap: wrap;
	}

	#page-customer-requirement-survey .web-form-actions .btn-primary {
		width: 100%;
		justify-content: center;
	}
}

/* ============ Interactive section tabs ============ */
#page-customer-requirement-survey .crs-tabs-wrap {
	margin: 4px -44px 0;
	padding: 20px 44px 6px;
	background: linear-gradient(180deg, #fbfcfe 0%, #ffffff 100%);
	border-bottom: 1px solid #eef1f6;
}

#page-customer-requirement-survey .crs-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

#page-customer-requirement-survey .crs-tab {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 9px 14px;
	border: 1px solid #e3e9f1;
	border-radius: 12px;
	background: #f4f7fb;
	color: #5b6b82;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: all 0.18s ease;
}

#page-customer-requirement-survey .crs-tab .crs-tab-num {
	width: 22px;
	height: 22px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #ffffff;
	border: 1px solid #d6deea;
	color: #0b2138;
	font-size: 11.5px;
	font-weight: 700;
	transition: all 0.18s ease;
	flex: none;
}

#page-customer-requirement-survey .crs-tab:hover {
	border-color: #0fb5ae;
	background: #f0fdfb;
	color: #0b2138;
}

#page-customer-requirement-survey .crs-tab:focus-visible {
	outline: 2px solid rgba(15, 181, 174, 0.6);
	outline-offset: 2px;
}

#page-customer-requirement-survey .crs-tab.done {
	border-color: rgba(15, 181, 174, 0.45);
	color: #0b2138;
}

#page-customer-requirement-survey .crs-tab.done .crs-tab-num {
	background: #0fb5ae;
	border-color: #0fb5ae;
	color: #ffffff;
}

#page-customer-requirement-survey .crs-tab.active {
	background: linear-gradient(135deg, #0b2138 0%, #163a5f 100%);
	border-color: #0b2138;
	color: #ffffff;
	box-shadow: 0 8px 18px -8px rgba(11, 33, 56, 0.55);
}

#page-customer-requirement-survey .crs-tab.active .crs-tab-num {
	background: #0fb5ae;
	border-color: #0fb5ae;
	color: #ffffff;
}

#page-customer-requirement-survey .crs-tabs-track {
	height: 5px;
	margin-top: 16px;
	border-radius: 99px;
	background: #eef1f6;
	overflow: hidden;
}

#page-customer-requirement-survey .crs-tabs-progress {
	height: 100%;
	width: 0;
	border-radius: 99px;
	background: linear-gradient(90deg, #d4af37 0%, #0fb5ae 100%);
	transition: width 0.3s ease;
}

#page-customer-requirement-survey .crs-tabs-caption {
	margin-top: 9px;
	font-size: 12px;
	font-weight: 600;
	color: #5b6b82;
	letter-spacing: 0.2px;
}

/* Panels */
#page-customer-requirement-survey .crs-panel {
	display: none;
	padding-top: 10px;
}

/* In tab mode each section is an independent panel - drop divider lines */
#page-customer-requirement-survey .web-form-wrapper .form-section {
	border-bottom: 0;
}

#page-customer-requirement-survey .crs-panel.active {
	display: block;
	animation: crs-fade 0.28s ease;
}

@keyframes crs-fade {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* Field validation error highlight */
#page-customer-requirement-survey .crs-field-error .form-control {
	border-color: #e5484d !important;
	box-shadow: 0 0 0 3.5px rgba(229, 72, 77, 0.15) !important;
}

/* Prev / Next navigation */
#page-customer-requirement-survey .crs-btn-nav {
	border-radius: 12px;
	padding: 12px 22px;
	font-size: 14.5px;
	font-weight: 700;
	letter-spacing: 0.2px;
	transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s, background 0.15s;
}

#page-customer-requirement-survey .crs-btn-prev {
	border: 1px solid #d6deea;
	background: #ffffff;
	color: #33405a;
}

#page-customer-requirement-survey .crs-btn-prev:hover {
	border-color: #0fb5ae;
	color: #0b2138;
	background: #f0fdfb;
}

#page-customer-requirement-survey .crs-btn-next {
	background: linear-gradient(135deg, #17c3bb 0%, #0fb5ae 55%, #0d9d97 100%);
	border: 0;
	color: #ffffff;
	box-shadow: 0 10px 22px -10px rgba(15, 181, 174, 0.70);
}

#page-customer-requirement-survey .crs-btn-next:hover {
	filter: brightness(1.05);
	transform: translateY(-1px);
	box-shadow: 0 14px 26px -10px rgba(15, 181, 174, 0.75);
}

@media (max-width: 767px) {
	#page-customer-requirement-survey .crs-tabs-wrap {
		margin: 4px -18px 0;
		padding: 16px 18px 4px;
	}

	#page-customer-requirement-survey .crs-tabs {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 6px;
		-webkit-overflow-scrolling: touch;
	}

	#page-customer-requirement-survey .crs-tab {
		flex: none;
		padding: 8px 12px;
	}

	#page-customer-requirement-survey .crs-btn-nav {
		width: 100%;
		margin-top: 8px;
	}

	#page-customer-requirement-survey .crs-btn-prev {
		order: -1;
	}
}

/* ============ Sidebar section navigation ============ */
#page-customer-requirement-survey .web-form-wrapper {
	display: flex;
	align-items: flex-start;
	gap: 28px;
}

#page-customer-requirement-survey .crs-body {
	flex: 1 1 auto;
	min-width: 0;
}

#page-customer-requirement-survey .web-form-wrapper > .form-layout {
	flex: 1 1 auto;
	min-width: 0;
}

#page-customer-requirement-survey .crs-side-caption {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #0d274a;
	padding: 4px 8px 12px;
	border-bottom: 1px dashed #d7dfec;
	margin-bottom: 8px;
}

#page-customer-requirement-survey .crs-sidebar {
	position: sticky;
	top: 24px;
	flex: 0 0 252px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	background: #ffffff;
	border: 1px solid #e3e9f0;
	border-radius: 14px;
	padding: 10px;
	box-shadow: 0 6px 18px -8px rgba(13, 39, 74, 0.18);
	max-height: calc(100vh - 48px);
	overflow-y: auto;
}

#page-customer-requirement-survey .crs-side-item {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	text-align: left;
	border: 0;
	background: transparent;
	border-radius: 10px;
	padding: 9px 10px;
	cursor: pointer;
	font-size: 13.5px;
	font-weight: 500;
	color: #45567a;
	line-height: 1.25;
	transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

#page-customer-requirement-survey .crs-side-item:hover {
	background: #eef3fa;
	color: #0d274a;
}

/* Sidebar labels: Khmer on top, English underneath (Hanuman) */
#page-customer-requirement-survey .crs-side-label {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
	line-height: 1.25;
}

#page-customer-requirement-survey .crs-side-label .crs-khmer-side {
	order: -1;
	margin-bottom: 2px;
	font-size: 11.5px;
	font-weight: 500;
	line-height: 1.4;
	white-space: normal;
	overflow-wrap: anywhere;
}

#page-customer-requirement-survey .crs-side-item.active .crs-khmer-side {
	color: #8fe6e0;
}

#page-customer-requirement-survey .crs-side-item.disabled .crs-khmer-side {
	color: inherit;
}

#page-customer-requirement-survey .crs-side-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 26px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #e7edf5;
	color: #4a5b80;
	font-size: 12px;
	font-weight: 700;
	transition: background 0.15s ease, color 0.15s ease;
}

#page-customer-requirement-survey .crs-side-item.active {
	background: linear-gradient(120deg, #0d274a 0%, #0b2138 45%, #0d3a52 100%);
	color: #ffffff;
	box-shadow: 0 8px 16px -8px rgba(13, 39, 74, 0.55);
}

#page-customer-requirement-survey .crs-side-item.active .crs-side-num {
	background: #f0b84b;
	color: #0d274a;
}

#page-customer-requirement-survey .crs-side-item.done:not(.active) {
	color: #0d3f45;
}

#page-customer-requirement-survey .crs-side-item.done:not(.active) .crs-side-num {
	background: linear-gradient(120deg, #0fb1ae, #12a5a0);
	color: #ffffff;
}

#page-customer-requirement-survey .crs-side-item.disabled {
	opacity: 0.45;
	filter: grayscale(0.7);
	box-shadow: none;
	background: transparent;
	color: #8a9ab8;
	cursor: not-allowed;
}

#page-customer-requirement-survey .crs-side-item.disabled:hover {
	background: transparent;
	color: #8a9ab8;
}

#page-customer-requirement-survey .crs-side-item.disabled .crs-side-num {
	background: #eef2f7;
	color: #9aa9c2;
}

#page-customer-requirement-survey .crs-btn-next.disabled {
	opacity: 0.5;
	filter: grayscale(0.5);
	cursor: not-allowed;
	box-shadow: none;
	transform: none;
}

@media (max-width: 1199px) {
	#page-customer-requirement-survey .web-form-wrapper {
		display: block;
	}

	#page-customer-requirement-survey .crs-sidebar {
		display: none;
	}
}
/* Autosave status + print button */
#page-customer-requirement-survey .crs-autosave-status {
	font-size: 12px;
	color: #64829c;
	margin-right: 14px;
	white-space: nowrap;
}

#page-customer-requirement-survey .crs-btn-nav {
	margin-right: 8px;
	border-radius: 9px;
	font-weight: 600;
}

#page-customer-requirement-survey .crs-btn-print {
	background: #f0fbfa;
	border: 1px solid #0fb5ae;
	color: #0b7285;
}

#page-customer-requirement-survey .crs-btn-print:hover {
	background: #e2f7f5;
	border-color: #0b7285;
}

#page-customer-requirement-survey .crs-btn-clear {
	background: #fef2f2;
	border: 1px solid #f0b4b6;
	color: #b42318;
}

#page-customer-requirement-survey .crs-btn-clear:hover {
	background: #fde3e4;
	border-color: #e5484d;
	color: #912018;
}

/* Khmer helper text shown beside each field / section label */
#page-customer-requirement-survey .crs-khmer {
	font-family: 'Hanuman', 'Noto Sans Khmer', 'Khmer OS Battambang', 'Khmer OS', sans-serif;
	color: #0b7285;
	font-weight: 600;
	font-size: 0.92em;
	white-space: nowrap;
}

/* Survey ID picker */
#page-customer-requirement-survey [data-fieldname=survey_id] select[disabled] {
	background: #f1f5f9;
	color: #64748b;
	cursor: not-allowed;
}

#page-customer-requirement-survey [data-fieldname=survey_id] .crs-picker-hint {
	margin-top: 6px;
	font-style: italic;
}

/* Khmer text inside dialogs (rendered outside the survey page scope) */
.crs-khmer-dialog {
	font-family: 'Hanuman', 'Noto Sans Khmer', 'Khmer OS Battambang', 'Khmer OS', sans-serif;
	color: #0b7285;
	font-weight: 600;
}

/* Success page: Khmer on top, English underneath */
#page-customer-requirement-survey .success-title {
	display: flex;
	flex-direction: column;
	align-items: center;
}

#page-customer-requirement-survey .success-title > .crs-khmer {
	margin-bottom: 8px;
	white-space: normal;
	font-size: 32px;
	line-height: 1.25;
}

#page-customer-requirement-survey .success-message .crs-khmer-block-line {
	display: block;
	margin-bottom: 12px;
	white-space: normal;
	font-size: 18px;
	line-height: 1.7;
	color: #0b7285;
}

#page-customer-requirement-survey .success_url_message .crs-khmer {
	display: block;
	margin-top: 6px;
	font-size: 16px;
	line-height: 1.6;
	white-space: normal;
}

/* ---------------------------------------------------------------
   Modern message popup: confirm dialog + toast notifications
   (rendered on <body>, so not scoped to the survey page)
   --------------------------------------------------------------- */
#dialog-container .modal:has(.frappe-confirm-message) .modal-dialog {
	max-width: 470px;
	margin: 8vh auto;
}

#dialog-container .modal:has(.frappe-confirm-message) .modal-content,
body > .modal:has(.frappe-confirm-message) .modal-content {
	border: 0;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 26px 64px -20px rgba(11, 33, 56, 0.45);
}

body > .modal:has(.frappe-confirm-message) .modal-header {
	background: linear-gradient(120deg, #0d274a 0%, #0b2138 55%, #0d3a52 100%);
	border: 0;
	padding: 18px 24px;
}

body > .modal:has(.frappe-confirm-message) .modal-title {
	color: #ffffff;
	font-weight: 700;
	font-size: 16px;
	letter-spacing: 0.2px;
}

body > .modal:has(.frappe-confirm-message) .modal-header .close {
	color: #ffffff;
	opacity: 0.85;
	text-shadow: none;
}

body > .modal:has(.frappe-confirm-message) .modal-body {
	padding: 26px 24px 8px;
	font-size: 15px;
	line-height: 1.6;
	color: #33405a;
}

body > .modal:has(.frappe-confirm-message) .frappe-confirm-message {
	margin: 0;
}

body > .modal:has(.frappe-confirm-message) .modal-footer {
	border: 0;
	padding: 14px 20px 20px;
	gap: 10px;
}

body > .modal:has(.frappe-confirm-message) .modal-footer .btn {
	border-radius: 11px;
	font-weight: 700;
	padding: 10px 24px;
	border: 1px solid transparent;
	transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

body > .modal:has(.frappe-confirm-message) .modal-footer .btn-primary {
	background: linear-gradient(135deg, #17c3bb 0%, #0fb5ae 55%, #0d9d97 100%);
	color: #ffffff;
	box-shadow: 0 10px 22px -10px rgba(15, 181, 174, 0.7);
}

body > .modal:has(.frappe-confirm-message) .modal-footer .btn-primary:hover {
	filter: brightness(1.05);
	transform: translateY(-1px);
}

body > .modal:has(.frappe-confirm-message) .modal-footer .btn-secondary,
body > .modal:has(.frappe-confirm-message) .modal-footer .btn-default {
	background: #f1f5f9;
	color: #33405a;
	border-color: #e2e8f0;
}

body > .modal:has(.frappe-confirm-message) .modal-footer .btn-secondary:hover,
body > .modal:has(.frappe-confirm-message) .modal-footer .btn-default:hover {
	background: #e8eef5;
}

/* Toast / alert notifications */
#alert-container {
	position: fixed;
	top: 18px;
	right: 18px;
	z-index: 2000;
	display: flex;
	flex-direction: column;
	gap: 12px;
	pointer-events: none;
}

#alert-container .alert.desk-alert {
	pointer-events: auto;
	position: relative;
	margin: 0;
	min-width: 300px;
	max-width: 420px;
	padding: 15px 40px 15px 18px;
	background: #ffffff;
	border: 0;
	border-left: 5px solid #0fb5ae;
	border-radius: 14px;
	box-shadow: 0 18px 44px -16px rgba(11, 33, 56, 0.42);
	color: #33405a;
	font-size: 14px;
	line-height: 1.5;
	overflow: hidden;
}

#alert-container .alert.desk-alert .alert-title-container {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

#alert-container .alert.desk-alert .alert-message {
	font-weight: 600;
	color: #0b2138;
}

#alert-container .alert.desk-alert .alert-subtitle {
	margin-top: 4px;
	color: #64748b;
	font-size: 12.5px;
}

#alert-container .alert.desk-alert .close {
	position: absolute;
	top: 12px;
	right: 12px;
	opacity: 0.5;
}

#alert-container .alert.desk-alert.green {
	border-left-color: #0fb5ae;
}

#alert-container .alert.desk-alert.red {
	border-left-color: #e5484d;
}

#alert-container .alert.desk-alert.orange,
#alert-container .alert.desk-alert.yellow {
	border-left-color: #f0b84b;
}

#alert-container .alert.desk-alert.blue {
	border-left-color: #3b82f6;
}
