/* =========================================================
   Painting Quote Calculator - Frontend
   ========================================================= */

.gshqpqc-calculator {
	--gshqpqc-primary: #2563eb;
	--gshqpqc-primary-dark: #1d4ed8;
	--gshqpqc-text: #172033;
	--gshqpqc-muted: #667085;
	--gshqpqc-border: #e4e7ec;
	--gshqpqc-bg: #f8fafc;
	--gshqpqc-white: #ffffff;
	--gshqpqc-success: #16a34a;
	--gshqpqc-danger: #dc2626;

	width: 100%;
	max-width: 900px;
	margin: 40px auto;
	padding: 0;
	box-sizing: border-box;
	color: var(--gshqpqc-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
		Helvetica, Arial, sans-serif;
}

.gshqpqc-calculator *,
.gshqpqc-calculator *::before,
.gshqpqc-calculator *::after {
	box-sizing: border-box;
}

/* =========================================================
   Header
   ========================================================= */

.gshqpqc-header {
	margin-bottom: 24px;
	padding: 32px;
	border: 1px solid var(--gshqpqc-border);
	border-radius: 18px;
	background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
	text-align: center;
	box-shadow: 0 8px 30px rgba(16, 24, 40, 0.06);
}

.gshqpqc-header h2 {
	margin: 0 0 8px;
	color: var(--gshqpqc-text);
	font-size: 30px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.gshqpqc-header p {
	margin: 0;
	color: var(--gshqpqc-muted);
	font-size: 15px;
	line-height: 1.6;
}

/* =========================================================
   General Section
   ========================================================= */

.gshqpqc-section {
	margin-bottom: 18px;
	padding: 24px;
	border: 1px solid var(--gshqpqc-border);
	border-radius: 16px;
	background: var(--gshqpqc-white);
	box-shadow: 0 3px 15px rgba(16, 24, 40, 0.04);
}

.gshqpqc-section h3,
.gshqpqc-quote-request h3 {
	margin: 0 0 18px;
	color: var(--gshqpqc-text);
	font-size: 18px;
	font-weight: 650;
	line-height: 1.4;
}

/* =========================================================
   Project Type
   ========================================================= */

.gshqpqc-project-types {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.gshqpqc-project-type-option {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 76px;
	padding: 18px 20px;
	border: 2px solid var(--gshqpqc-border);
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
	transition:
		border-color 0.18s ease,
		background 0.18s ease,
		box-shadow 0.18s ease,
		transform 0.18s ease;
}

.gshqpqc-project-type-option:hover {
	border-color: #b9c7dd;
	background: #fbfdff;
	transform: translateY(-1px);
}

.gshqpqc-project-type-option input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.gshqpqc-project-type-option span {
	position: relative;
	padding-left: 31px;
	color: var(--gshqpqc-text);
	font-size: 15px;
	font-weight: 600;
}

.gshqpqc-project-type-option span::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 20px;
	height: 20px;
	border: 2px solid #98a2b3;
	border-radius: 50%;
	background: #fff;
	transform: translateY(-50%);
	transition: all 0.18s ease;
}

.gshqpqc-project-type-option span::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 6px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #fff;
	opacity: 0;
	transform: translateY(-50%);
	transition: opacity 0.18s ease;
}

.gshqpqc-project-type-option:has(input:checked) {
	border-color: var(--gshqpqc-primary);
	background: #f5f9ff;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.gshqpqc-project-type-option input:checked + span::before {
	border-color: var(--gshqpqc-primary);
	background: var(--gshqpqc-primary);
}

.gshqpqc-project-type-option input:checked + span::after {
	opacity: 1;
}

/* =========================================================
   Fields
   ========================================================= */

.gshqpqc-fields {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.gshqpqc-field {
	min-width: 0;
}

.gshqpqc-field label,
.gshqpqc-form-field label {
	display: block;
	margin-bottom: 7px;
	color: #344054;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
}

.gshqpqc-field input,
.gshqpqc-field select,
.gshqpqc-form-field input {
	width: 100%;
	height: 46px;
	margin: 0;
	padding: 0 13px;
	border: 1px solid #d0d5dd;
	border-radius: 9px;
	background: #fff;
	color: var(--gshqpqc-text);
	font-family: inherit;
	font-size: 14px;
	outline: none;
	transition:
		border-color 0.18s ease,
		box-shadow 0.18s ease;
}

.gshqpqc-field input:hover,
.gshqpqc-field select:hover,
.gshqpqc-form-field input:hover {
	border-color: #98a2b3;
}

.gshqpqc-field input:focus,
.gshqpqc-field select:focus,
.gshqpqc-form-field input:focus {
	border-color: var(--gshqpqc-primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
	outline: none;
}

/* Remove browser number arrows where appropriate */

.gshqpqc-field input[type="number"]::-webkit-inner-spin-button,
.gshqpqc-field input[type="number"]::-webkit-outer-spin-button {
	margin: 0;
}

/* =========================================================
   Preparation
   ========================================================= */

.gshqpqc-checkbox {
	margin-top: 20px;
}

.gshqpqc-checkbox label {
	display: flex;
	align-items: center;
	gap: 11px;
	min-height: 50px;
	padding: 13px 15px;
	border: 1px solid var(--gshqpqc-border);
	border-radius: 10px;
	background: #fafbfc;
	color: #344054;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.18s ease;
}

.gshqpqc-checkbox label:hover {
	border-color: #b9c7dd;
	background: #f8faff;
}

.gshqpqc-checkbox input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--gshqpqc-primary);
	cursor: pointer;
}

/* =========================================================
   Result
   ========================================================= */

.gshqpqc-result {
	margin: 22px 0;
	padding: 28px;
	border: 1px solid #cfe0ff;
	border-radius: 16px;
	background: linear-gradient(135deg, #f5f9ff 0%, #eef5ff 100%);
	text-align: center;
	box-shadow: 0 6px 22px rgba(37, 99, 235, 0.07);
}

.gshqpqc-result-title {
	margin-bottom: 5px;
	color: #475467;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.gshqpqc-total {
	margin-bottom: 22px;
	color: var(--gshqpqc-primary);
	font-size: 40px;
	font-weight: 750;
	line-height: 1.15;
	letter-spacing: -0.03em;
}

.gshqpqc-breakdown {
	max-width: 600px;
	margin: 0 auto;
	padding: 0;
	border-top: 1px solid #d9e5f7;
}

.gshqpqc-breakdown-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 12px 0;
	border-bottom: 1px solid #d9e5f7;
	color: #475467;
	font-size: 14px;
	text-align: left;
}

.gshqpqc-breakdown-row:last-child {
	border-bottom: 0;
}

.gshqpqc-breakdown-row strong {
	color: var(--gshqpqc-text);
	font-weight: 650;
	white-space: nowrap;
}

/* =========================================================
   Quote Request
   ========================================================= */

.gshqpqc-quote-request {
	margin-top: 22px;
	padding: 28px;
	border: 1px solid var(--gshqpqc-border);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 5px 20px rgba(16, 24, 40, 0.05);
}

.gshqpqc-quote-request > p {
	margin: -8px 0 22px;
	color: var(--gshqpqc-muted);
	font-size: 14px;
	line-height: 1.6;
}

.gshqpqc-lead-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.gshqpqc-form-field {
	min-width: 0;
}

.gshqpqc-form-field label span {
	color: var(--gshqpqc-danger);
}

/* Phone full width */

.gshqpqc-form-field:nth-child(3) {
	grid-column: 1 / -1;
}

/* =========================================================
   Submit
   ========================================================= */

.gshqpqc-submit {
	grid-column: 1 / -1;
	width: 100%;
	min-height: 50px;
	margin-top: 3px;
	padding: 0 22px;
	border: 0;
	border-radius: 10px;
	background: var(--gshqpqc-primary);
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 650;
	cursor: pointer;
	box-shadow: 0 5px 14px rgba(37, 99, 235, 0.22);
	transition:
		background 0.18s ease,
		transform 0.18s ease,
		box-shadow 0.18s ease;
}

.gshqpqc-submit:hover {
	background: var(--gshqpqc-primary-dark);
	transform: translateY(-1px);
	box-shadow: 0 7px 18px rgba(37, 99, 235, 0.28);
}

.gshqpqc-submit:active {
	transform: translateY(0);
}

.gshqpqc-submit:disabled {
	opacity: 0.65;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

/* =========================================================
   Messages
   ========================================================= */

.gshqpqc-form-message {
	display: none;
	grid-column: 1 / -1;
	margin-top: 2px;
	padding: 13px 15px;
	border-radius: 9px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.5;
}

.gshqpqc-form-message:not(:empty) {
	display: block;
}

.gshqpqc-form-message.success {
	border: 1px solid #b7ebc6;
	background: #ecfdf3;
	color: #137333;
}

.gshqpqc-form-message.error {
	border: 1px solid #f5c2c7;
	background: #fff5f5;
	color: #b42318;
}

/* =========================================================
   Responsive - Tablet
   ========================================================= */

@media screen and (max-width: 700px) {

	.gshqpqc-calculator {
		margin: 25px auto;
	}

	.gshqpqc-header {
		padding: 26px 20px;
		border-radius: 14px;
	}

	.gshqpqc-header h2 {
		font-size: 25px;
	}

	.gshqpqc-section,
	.gshqpqc-quote-request,
	.gshqpqc-result {
		padding: 21px;
		border-radius: 13px;
	}

	.gshqpqc-fields {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.gshqpqc-lead-form {
		grid-template-columns: 1fr;
	}

	.gshqpqc-form-field:nth-child(3),
	.gshqpqc-submit,
	.gshqpqc-form-message {
		grid-column: auto;
	}

}

/* =========================================================
   Responsive - Mobile
   ========================================================= */

@media screen and (max-width: 480px) {

	.gshqpqc-calculator {
		margin: 15px auto;
	}

	.gshqpqc-header {
		margin-bottom: 15px;
		padding: 22px 17px;
	}

	.gshqpqc-header h2 {
		font-size: 22px;
	}

	.gshqpqc-header p {
		font-size: 13px;
	}

	.gshqpqc-project-types {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.gshqpqc-project-type-option {
		min-height: 64px;
		padding: 15px;
	}

	.gshqpqc-section,
	.gshqpqc-quote-request,
	.gshqpqc-result {
		padding: 18px;
	}

	.gshqpqc-section h3,
	.gshqpqc-quote-request h3 {
		font-size: 16px;
	}

	.gshqpqc-fields {
		grid-template-columns: 1fr;
		gap: 13px;
	}

	.gshqpqc-total {
		font-size: 32px;
	}

	.gshqpqc-breakdown-row {
		font-size: 13px;
	}

	.gshqpqc-submit {
		min-height: 48px;
	}

}