/* ESI Quote Request - front end */

.esiqr-box {
	--esiqr-accent: #e3a93c;
	--esiqr-accent-text: #1b2436;
	--esiqr-border: #c9cfd8;
	--esiqr-radius: 4px;
	margin: 28px 0;
	padding: 20px 22px 22px;
	border: 1px solid var(--esiqr-border);
	border-radius: 6px;
	background: #fff;
	box-sizing: border-box;
}

.esiqr-box *,
.esiqr-box *::before,
.esiqr-box *::after {
	box-sizing: border-box;
}

.esiqr-lead {
	margin: 0 0 14px;
	font-size: 15px;
	line-height: 1.5;
}

.esiqr-lead strong {
	color: #1b2436;
}

.esiqr-part {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin: 0 0 14px;
	padding: 9px 12px;
	background: #f4f6f9;
	border-radius: var(--esiqr-radius);
	font-size: 14px;
}

.esiqr-part span {
	color: #5a6472;
	font-weight: 600;
	letter-spacing: 0.01em;
}

.esiqr-part strong {
	color: #1b2436;
	word-break: break-word;
}

.esiqr-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.esiqr-field {
	flex: 1 1 100%;
	min-width: 0;
}

.esiqr-col-2 { flex: 0 0 calc(16.6667% - 10px); }
.esiqr-col-4 { flex: 1 1 calc(33.3333% - 8px); }
.esiqr-col-6 { flex: 1 1 calc(50% - 6px); }
.esiqr-col-12 { flex: 1 1 100%; }

.esiqr-box input[type="text"],
.esiqr-box input[type="email"],
.esiqr-box input[type="number"],
.esiqr-box select,
.esiqr-box textarea {
	width: 100%;
	max-width: 100%;
	padding: 11px 13px;
	border: 1px solid var(--esiqr-border);
	border-radius: var(--esiqr-radius);
	background: #fff;
	color: #22272f;
	font-size: 15px;
	line-height: 1.35;
	font-family: inherit;
	transition: border-color .15s ease, box-shadow .15s ease;
	appearance: none;
	-webkit-appearance: none;
}

.esiqr-box select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235a6472' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 32px;
}

.esiqr-box textarea {
	min-height: 84px;
	resize: vertical;
}

.esiqr-box input::placeholder,
.esiqr-box textarea::placeholder {
	color: #8a929d;
	opacity: 1;
}

.esiqr-box input:focus,
.esiqr-box select:focus,
.esiqr-box textarea:focus {
	outline: none;
	border-color: var(--esiqr-accent);
	box-shadow: 0 0 0 3px rgba(0, 0, 0, .06);
}

.esiqr-box .esiqr-invalid {
	border-color: #d63638;
	background: #fff8f8;
}

.esiqr-error-text {
	display: block;
	margin-top: 4px;
	color: #b32d2e;
	font-size: 12.5px;
}

.esiqr-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 16px;
}

.esiqr-box .esiqr-submit {
	display: inline-block;
	padding: 12px 24px;
	border: 0;
	border-radius: var(--esiqr-radius);
	background: var(--esiqr-accent);
	color: var(--esiqr-accent-text);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	transition: filter .15s ease, transform .05s ease;
}

.esiqr-box .esiqr-submit:hover { filter: brightness(.94); }
.esiqr-box .esiqr-submit:active { transform: translateY(1px); }
.esiqr-box .esiqr-submit[disabled] { opacity: .6; cursor: default; }

.esiqr-spinner {
	width: 18px;
	height: 18px;
	border: 2px solid rgba(0, 0, 0, .15);
	border-top-color: var(--esiqr-accent);
	border-radius: 50%;
	animation: esiqr-spin .7s linear infinite;
}

@keyframes esiqr-spin { to { transform: rotate(360deg); } }

.esiqr-notice {
	margin-top: 14px;
	padding: 11px 14px;
	border-radius: var(--esiqr-radius);
	font-size: 14.5px;
	line-height: 1.45;
}

.esiqr-notice.is-success {
	background: #eaf7ee;
	border: 1px solid #b7e0c4;
	color: #17612f;
}

.esiqr-notice.is-error {
	background: #fdeceb;
	border: 1px solid #f3bfbd;
	color: #9c2b28;
}

.esiqr-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.esiqr-box .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

@media (max-width: 600px) {
	.esiqr-box { padding: 16px; }
	.esiqr-col-2,
	.esiqr-col-4,
	.esiqr-col-6 { flex: 1 1 100%; }
}
