/* =====================================================================
   Get Quotes — B2B request for quote.

   A project brief builder, not the question-driven Find a Provider flow:
   nothing here loads or renders category_form_inputs. One page, one form,
   a sticky summary that fills in as the customer types.

   Bootstrap stays the grid and component base; these rules only tighten
   spacing, borders and typography on top of it.
   ===================================================================== */

.gq-page {
	background: #f7f8fa;
	/* Keeps the grey filling the viewport on short states (success), so
	   the white body never shows as a band beneath the page. */
	min-height: 70vh;
	padding: clamp(24px, 3vw, 40px) 0 clamp(48px, 6vw, 80px);
	--gq-line: var(--ts-line-10, rgba(16, 24, 40, .1));
	--gq-line-soft: var(--ts-line-soft, rgba(16, 24, 40, .07));
	--gq-ink: var(--ts-ink, #101828);
	--gq-muted: var(--ts-muted, #667085);
	--gq-faint: var(--ts-faint, #98a2b3);
}
/* The theme's .content paints an opaque white slab, which showed through
   as a band across the grey page. Two surfaces only on this page:
   the grey page and the white cards. */
.gq-page .content { background: transparent; }
.gq-page .gq-shell { max-width: 1280px; margin: 0 auto; }

/* ---- Compact intro ---- */
.gq-intro { margin-bottom: 28px; }
.gq-eyebrow {
	display: inline-block; margin-bottom: 12px;
	font-size: 11.5px; font-weight: 700; letter-spacing: .14em;
	text-transform: uppercase; color: var(--primary, #FD2692);
}
.gq-intro h1 {
	margin: 0 0 10px;
	font-size: clamp(24px, 2.6vw, 33px); font-weight: 700;
	letter-spacing: -.03em; color: #0f1523; line-height: 1.2;
}
.gq-intro p { margin: 0 0 16px; max-width: 62ch; font-size: 15px; line-height: 1.6; color: var(--gq-muted); }

.gq-flow { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--gq-faint); }
.gq-flow b { font-weight: 600; color: #475467; }
.gq-flow i { font-size: 14px; color: #cdd2db; }

/* ---- Cards ---- */
.gq-card {
	background: #fff; border: 1px solid var(--gq-line);
	border-radius: 14px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.gq-card-head { padding: 24px; border-bottom: 1px solid var(--gq-line-soft); }
.gq-card-head h2 { margin: 0 0 4px; font-size: 17px; font-weight: 650; letter-spacing: -.015em; color: var(--gq-ink); }
.gq-card-head p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--gq-muted); }
.gq-card-body { padding: 24px; }

/* ---- Sections ---- */
.gq-section + .gq-section { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--gq-line-soft); }
.gq-section-title {
	margin: 0 0 4px; font-size: 15px; font-weight: 650;
	letter-spacing: -.01em; color: var(--gq-ink);
}
.gq-section-note { margin: 0 0 24px; font-size: 13px; color: var(--gq-faint); }
.gq-section-title + .gq-grid, .gq-section-title + .gq-field { margin-top: 24px; }

/* ---- Fields ---- */
.gq-grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .gq-grid.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.gq-field { margin-bottom: 20px; }
.gq-field:last-child { margin-bottom: 0; }
.gq-grid .gq-field { margin-bottom: 0; }

.gq-label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: #344054; }
.gq-req { color: var(--primary, #FD2692); }
.gq-opt { font-weight: 500; color: var(--gq-faint); }
.gq-help { display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.5; color: var(--gq-faint); }

.gq-page .gq-field .form-control,
.gq-page .gq-field .form-select {
	height: 46px; padding: 0 14px;
	border: 1px solid rgba(16, 24, 40, .16); border-radius: 10px;
	font-size: 14.5px; color: var(--gq-ink); background-color: #fff;
	box-shadow: none; transition: border-color .16s ease, box-shadow .16s ease;
}
.gq-page .gq-field textarea.form-control { height: auto; min-height: 96px; padding: 12px 14px; line-height: 1.6; }
.gq-page .gq-field .form-control:focus,
.gq-page .gq-field .form-select:focus {
	border-color: var(--primary, #FD2692);
	box-shadow: 0 0 0 3px rgba(253, 38, 150, .12);
}
.gq-page .gq-field .form-control::placeholder { color: #b3b9c4; }

.gq-field-error { display: none; margin-top: 6px; font-size: 12.5px; color: #b42318; }
.gq-field.has-error .form-control,
.gq-field.has-error .form-select,
.gq-field.has-error .note-editor.note-frame { border-color: #f04438; }
.gq-field.has-error .gq-field-error { display: block; }
.gq-field.has-error .gq-help { display: none; }

/* ---- Choice chips (radio / checkbox) ---- */
.gq-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.gq-choice { position: relative; margin: 0; cursor: pointer; }
.gq-choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.gq-choice span {
	display: inline-flex; align-items: center; gap: 8px;
	height: 42px; padding: 0 16px; border-radius: 10px;
	border: 1px solid rgba(16, 24, 40, .16); background: #fff;
	font-size: 14px; color: #344054;
	transition: border-color .16s ease, background .16s ease, color .16s ease;
}
.gq-choice input:checked + span {
	border-color: var(--primary, #FD2692);
	background: rgba(253, 38, 150, .05);
	color: var(--gq-ink); font-weight: 600;
}
.gq-choice input:focus-visible + span { outline: 2px solid var(--primary, #FD2692); outline-offset: 2px; }
@media (hover: hover) { .gq-choice:hover span { border-color: rgba(16, 24, 40, .3); } }

/* Checkbox variant shows a tick box */
.gq-choice.is-check span::before {
	content: ""; width: 16px; height: 16px; flex: 0 0 auto;
	border: 1.5px solid rgba(16, 24, 40, .24); border-radius: 4px; background: #fff;
	transition: all .16s ease;
}
.gq-choice.is-check input:checked + span::before {
	border-color: var(--primary, #FD2692); background: var(--primary, #FD2692);
	box-shadow: inset 0 0 0 2px #fff;
}

/* ---- Money ---- */
.gq-money { position: relative; }
.gq-money > span {
	position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
	font-size: 14.5px; font-weight: 600; color: var(--gq-muted); pointer-events: none; z-index: 2;
}
.gq-page .gq-money .form-control { padding-left: 36px; }

/* ---- Rich text (Summernote, already shipped with the theme) ---- */
.gq-page .note-editor.note-frame {
	margin: 0; border: 1px solid rgba(16, 24, 40, .16); border-radius: 11px;
	box-shadow: none; overflow: hidden;
}
.gq-page .note-editor.note-frame.is-focused { border-color: var(--primary, #FD2692); box-shadow: 0 0 0 3px rgba(253, 38, 150, .12); }
.gq-page .note-toolbar {
	padding: 8px 10px; background: transparent;
	border-bottom: 1px solid var(--gq-line-soft);
}
.gq-page .note-toolbar .note-btn {
	border: 0; background: transparent; border-radius: 7px;
	color: #475467; padding: 5px 9px; box-shadow: none;
}
.gq-page .note-toolbar .note-btn:hover { background: rgba(16, 24, 40, .06); color: var(--gq-ink); }
.gq-page .note-toolbar .note-btn.active { background: rgba(253, 38, 150, .1); color: var(--primary, #FD2692); }
.gq-page .note-editable {
	min-height: 200px; padding: 14px 16px;
	font-size: 14.5px; line-height: 1.65; color: var(--gq-ink); background: #fff;
}
.gq-page .note-editable[contenteditable="true"]:empty::before { color: #b3b9c4; }
.gq-page .note-statusbar { display: none; }
.gq-count { display: block; margin-top: 8px; font-size: 12.5px; color: var(--gq-faint); text-align: right; }
.gq-count.is-over { color: #b42318; }

/* ---- Attachments ---- */
.gq-drop {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	gap: 6px; padding: 26px 20px; text-align: center; cursor: pointer;
	border: 1.5px dashed rgba(16, 24, 40, .2); border-radius: 12px; background: transparent;
	transition: border-color .16s ease, background .16s ease;
}
.gq-drop:hover, .gq-drop.is-over { border-color: var(--primary, #FD2692); background: rgba(253, 38, 150, .03); }
.gq-drop i { font-size: 24px; color: var(--gq-faint); }
.gq-drop strong { font-size: 14px; font-weight: 600; color: #344054; }
.gq-drop strong u { color: var(--primary, #FD2692); text-decoration: none; }
.gq-drop small { font-size: 12.5px; color: var(--gq-faint); }

.gq-files { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.gq-file {
	display: flex; align-items: center; gap: 12px;
	padding: 10px 12px; border: 1px solid var(--gq-line); border-radius: 10px; background: #fff;
}
.gq-file-icon {
	flex: 0 0 auto; width: 34px; height: 34px; border-radius: 8px;
	display: inline-flex; align-items: center; justify-content: center;
	background: rgba(16, 24, 40, .05); color: #475467; font-size: 16px;
}
.gq-file-meta { flex: 1 1 auto; min-width: 0; }
.gq-file-name { display: block; font-size: 13.5px; font-weight: 600; color: var(--gq-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gq-file-sub { display: block; font-size: 12px; color: var(--gq-faint); text-transform: uppercase; letter-spacing: .04em; }
.gq-file-remove {
	flex: 0 0 auto; border: 0; background: transparent; cursor: pointer;
	color: var(--gq-faint); font-size: 17px; line-height: 1; padding: 4px; border-radius: 6px;
}
.gq-file-remove:hover { color: #b42318; background: rgba(240, 68, 56, .08); }

/* ---- Submit ---- */
.gq-submit-bar {
	display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
	padding: 20px 24px; border-top: 1px solid var(--gq-line-soft);
	border-radius: 0 0 14px 14px;
}
.gq-submit-note { font-size: 13px; color: var(--gq-muted); }

.gq-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 46px; padding: 0 22px; border-radius: 10px;
	font-size: 14.5px; font-weight: 600; border: 1px solid transparent;
	text-decoration: none; cursor: pointer;
	transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.gq-btn-primary { background: var(--primary, #FD2692); color: #fff; }
.gq-btn-primary:hover:not(:disabled) { background: #e0157d; color: #fff; }
.gq-btn-primary:disabled { opacity: .6; cursor: not-allowed; }
.gq-btn-ghost { background: #fff; color: #344054; border-color: rgba(16, 24, 40, .16); }
.gq-btn-ghost:hover { border-color: rgba(16, 24, 40, .32); color: var(--gq-ink); }

.gq-error {
	display: none; margin: 0 24px 18px; padding: 11px 14px; border-radius: 9px;
	background: rgba(240, 68, 56, .08); color: #b42318; font-size: 13.5px;
}
.gq-error.is-shown { display: block; }

/* ---- Sidebar ---- */
.gq-aside { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 88px; }
@media (max-width: 991.98px) { .gq-aside { position: static; } }

.gq-aside-head { padding: 16px 20px; border-bottom: 1px solid var(--gq-line-soft); }
.gq-aside-head h3 { margin: 0; font-size: 14.5px; font-weight: 650; color: var(--gq-ink); letter-spacing: -.01em; }
.gq-aside-body { padding: 20px; }

.gq-summary { display: grid; gap: 13px; }
.gq-summary-row { display: grid; gap: 2px; }
.gq-summary-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gq-faint); }
.gq-summary-value { font-size: 14px; color: var(--gq-ink); line-height: 1.5; word-break: break-word; }
.gq-summary-empty { font-size: 13.5px; color: var(--gq-faint); line-height: 1.6; }

.gq-steps { list-style: none; margin: 0; padding: 0; }
.gq-steps li { position: relative; padding: 0 0 18px 34px; }
.gq-steps li:last-child { padding-bottom: 0; }
.gq-steps li::before {
	content: attr(data-n); position: absolute; left: 0; top: 0;
	width: 22px; height: 22px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: rgba(16, 24, 40, .06); color: #475467;
	font-size: 10.5px; font-weight: 700;
}
.gq-steps li::after {
	content: ""; position: absolute; left: 11px; top: 26px; bottom: 4px;
	width: 1px; background: var(--gq-line);
}
.gq-steps li:last-child::after { display: none; }
.gq-steps strong { display: block; font-size: 13.5px; font-weight: 650; color: var(--gq-ink); margin-bottom: 2px; }
.gq-steps span { display: block; font-size: 12.5px; line-height: 1.55; color: var(--gq-muted); }

.gq-trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.gq-trust li { display: flex; gap: 9px; font-size: 13.5px; color: #475467; line-height: 1.5; }
.gq-trust i { flex: 0 0 auto; color: #12b76a; font-size: 15px; margin-top: 1px; }

/* ---- Review modal ---- */
.gq-review-list { display: grid; gap: 0; border: 1px solid var(--gq-line); border-radius: 11px; overflow: hidden; }
.gq-review-row { display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 12px 15px; background: #fff; }
.gq-review-row + .gq-review-row { border-top: 1px solid var(--gq-line-soft); }
.gq-review-label { font-size: 12px; font-weight: 600; color: var(--gq-faint); }
.gq-review-value { font-size: 14px; color: var(--gq-ink); line-height: 1.55; word-break: break-word; }
.gq-review-value ul, .gq-review-value ol { margin: 0 0 0 18px; padding: 0; }
.gq-review-value p:last-child { margin-bottom: 0; }
@media (max-width: 575.98px) { .gq-review-row { grid-template-columns: 1fr; gap: 3px; } }

/* ---- Success ---- */
.gq-success { padding: clamp(36px, 5vw, 56px) 24px; text-align: center; }
.gq-success-mark {
	width: 62px; height: 62px; margin: 0 auto 20px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: rgba(18, 183, 106, .12); color: #12b76a; font-size: 30px;
}
.gq-success h2 { margin: 0 0 10px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--gq-ink); }
.gq-success p { margin: 0 auto 20px; max-width: 48ch; font-size: 14.5px; line-height: 1.65; color: var(--gq-muted); }
.gq-status-pill {
	display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px;
	padding: 7px 15px; border-radius: 999px;
	background: rgba(247, 144, 9, .12); color: #b54708;
	font-size: 13px; font-weight: 600;
}
.gq-status-pill i { font-size: 9px; }
.gq-success-actions { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }

@media (max-width: 575.98px) {
	.gq-card-body, .gq-card-head, .gq-submit-bar { padding-left: 16px; padding-right: 16px; }
	.gq-error { margin-left: 16px; margin-right: 16px; }
	.gq-submit-bar .gq-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.gq-btn, .gq-choice span, .gq-drop, .gq-page .gq-field .form-control { transition: none; }
}

/* ---- Review modal: same surface language as the form card ---- */
.gq-modal-content {
	border: 0; border-radius: 18px; overflow: hidden;
	box-shadow: 0 24px 64px rgba(16, 24, 40, .22), 0 2px 8px rgba(16, 24, 40, .08);
}
.gq-modal-header {
	align-items: flex-start; gap: 16px;
	padding: 24px 26px 20px; border-bottom: 1px solid rgba(16, 24, 40, .07);
}
.gq-modal-header .modal-title { font-size: 18px; font-weight: 650; letter-spacing: -.02em; color: #101828; }
.gq-modal-header p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.55; color: #667085; }
.gq-modal-header .btn-close { margin: 0; opacity: .5; }
.gq-modal-header .btn-close:hover { opacity: .9; }
.gqp-page ~ .modal .modal-body, .modal-body:has(.gq-review-list) { padding: 22px 26px; }
.gq-modal-footer {
	display: flex; justify-content: flex-end; gap: 10px;
	padding: 18px 26px 22px; border-top: 1px solid rgba(16, 24, 40, .07);
}
.gq-modal-footer > * { margin: 0; }
