/* Solarcycle Quote Calculator. Everything is scoped to #sqc-root so Divi styles don't leak in or out.
   Visual language matches the Solarcycle campus quiz (#scq-root). */
#sqc-root {
	--sqc-navy: #231C5A;
	--sqc-blue: #3D5CE8;
	--sqc-blue-dk: #2C45B8;
	--sqc-teal: #59DDC6;
	--sqc-green-dk: #2E8A12;
	--sqc-grey: #F2F2F2;
	--sqc-line: #E3E7F2;
	--sqc-body: #3B3A5A;
	--sqc-white: #FBFDFF;
	--sqc-tint: #EEF1FD;
	--sqc-red: #C2410C;
	--sqc-head: 'Oswald', Arial, sans-serif;
	--sqc-sticky-top: 120px; /* clears the Divi fixed header */
	font-family: inherit;
	color: var(--sqc-navy);
	max-width: 1080px;
	margin: 0 auto;
	box-sizing: border-box;
	line-height: 1.5;
	font-size: 17px;
}
#sqc-root *, #sqc-root *::before, #sqc-root *::after { box-sizing: border-box; }
#sqc-root h1, #sqc-root h2, #sqc-root h3, #sqc-root p, #sqc-root ul, #sqc-root dl, #sqc-root dd, #sqc-root fieldset, #sqc-root legend { margin: 0; padding: 0; }
#sqc-root fieldset { border: 0; min-width: 0; }
#sqc-root .sqc-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Cards */
#sqc-root .sqc-card {
	background: linear-gradient(180deg, #59DDC6 0px, #8EE9DA 180px, #E7FAF8 520px, #FBFEFD 900px);
	border-radius: 24px;
	padding: 36px 44px;
	box-shadow: 0 10px 30px rgba(35, 28, 90, 0.08);
}

/* Type */
#sqc-root .sqc-eyebrow { font-family: var(--sqc-head); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; color: var(--sqc-blue); font-size: 20px; line-height: 1.2; }
#sqc-root .sqc-title { font-family: var(--sqc-head); font-weight: 600; text-transform: uppercase; color: var(--sqc-navy); line-height: 1.08; font-size: clamp(32px, 4.4vw, 52px); padding: 0; }
#sqc-root .sqc-title.sqc-q { font-size: clamp(24px, 2.9vw, 34px); line-height: 1.15; }
#sqc-root .sqc-sub { font-family: var(--sqc-head); font-weight: 500; text-transform: uppercase; color: var(--sqc-blue); font-size: clamp(20px, 2.2vw, 26px); line-height: 1.2; }
#sqc-root .sqc-rule { border-left: 6px solid var(--sqc-blue); padding-left: 24px; display: flex; flex-direction: column; gap: 8px; }
#sqc-root .sqc-lead { font-size: 19px; max-width: 640px; margin-top: 20px; }
#sqc-root .sqc-help { color: var(--sqc-body); font-size: 16px; margin-top: 6px; max-width: 620px; }
#sqc-root .sqc-rule + .sqc-help { margin-top: 14px; }
#sqc-root h3 { font-family: var(--sqc-head); font-weight: 600; text-transform: uppercase; font-size: 22px; line-height: 1.15; }

/* Buttons (same as the quiz) */
#sqc-root .sqc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font-family: inherit; font-weight: 700; font-size: 17px; line-height: 1.2;
	padding: 14px 28px; border-radius: 999px;
	border: 2px solid var(--sqc-blue); background: var(--sqc-blue); color: var(--sqc-white);
	cursor: pointer; text-decoration: none; transition: background 0.15s, transform 0.1s;
}
#sqc-root .sqc-btn:hover { background: var(--sqc-blue-dk); border-color: var(--sqc-blue-dk); color: var(--sqc-white); }
#sqc-root .sqc-btn:active { transform: translateY(1px); }
#sqc-root .sqc-btn[disabled] { opacity: 0.4; cursor: not-allowed; }
#sqc-root .sqc-btn.sqc-ghost { background: transparent; color: var(--sqc-blue); }
#sqc-root .sqc-btn.sqc-ghost:hover { background: rgba(61, 92, 232, 0.08); color: var(--sqc-blue-dk); }
#sqc-root .sqc-btn.sqc-go { background: var(--sqc-green-dk); border-color: var(--sqc-green-dk); }
#sqc-root .sqc-btn.sqc-go:hover { background: #24700E; border-color: #24700E; }
#sqc-root .sqc-btn.sqc-small { padding: 6px 16px; font-size: 15px; border-width: 2px; }
#sqc-root .sqc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; align-items: center; }
#sqc-root .sqc-actions .sqc-spacer { flex: 1; }
#sqc-root :is(a, button, input, select, textarea):focus-visible { outline: 3px solid var(--sqc-navy); outline-offset: 2px; }

/* Page layout: title band, then two columns
   desktop:  [package] [routes]      phone:  routes
             [question] [price]               package
                                              question  (price becomes a bottom bar) */
#sqc-root .sqc-shell { padding: 0; overflow: clip; }
#sqc-root .sqc-band { padding: 40px 44px 8px; }
#sqc-root .sqc-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
	grid-template-areas: "pkg routes" "main price";
	column-gap: 28px; row-gap: 24px;
	padding: 28px 44px 44px;
	align-items: start;
}
#sqc-root .sqc-area-pkg { grid-area: pkg; }
#sqc-root .sqc-area-routes { grid-area: routes; display: flex; flex-direction: column; gap: 14px; }
#sqc-root .sqc-area-main { grid-area: main; scroll-margin-top: var(--sqc-sticky-top); }
#sqc-root .sqc-area-price { grid-area: price; position: sticky; top: var(--sqc-sticky-top); }
#sqc-root .sqc-area-routes .sqc-lead { margin: 4px 0 0; font-size: 17px; font-weight: 600; text-align: center; }
#sqc-root .sqc-route { background: var(--sqc-white); border-radius: 18px; padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; box-shadow: 0 4px 14px rgba(35, 28, 90, 0.06); }
#sqc-root .sqc-route p { font-size: 15px; color: var(--sqc-body); margin-bottom: 12px; }

/* Question panel */
#sqc-root .sqc-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
#sqc-root .sqc-progress { flex: 1; height: 8px; background: rgba(35, 28, 90, 0.1); border-radius: 999px; overflow: hidden; max-width: 320px; }
#sqc-root .sqc-progress span { display: block; height: 100%; background: var(--sqc-blue); border-radius: 999px; transition: width 0.3s; }
#sqc-root .sqc-count { font-weight: 600; letter-spacing: 1px; font-size: 14px; white-space: nowrap; color: var(--sqc-body); }
#sqc-root .sqc-panel { background: var(--sqc-white); border-radius: 20px; padding: 28px 32px 32px; box-shadow: 0 8px 24px rgba(35, 28, 90, 0.1); }

/* Question groups */
#sqc-root .sqc-group { margin-top: 24px; }
#sqc-root .sqc-group:first-of-type { margin-top: 20px; }
#sqc-root .sqc-legend { font-weight: 700; font-size: 17px; color: var(--sqc-navy); display: block; }
#sqc-root .sqc-legend small, #sqc-root .sqc-field label small { font-weight: 400; color: var(--sqc-body); }
#sqc-root .sqc-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
#sqc-root .sqc-opts.sqc-one { grid-template-columns: 1fr; }
#sqc-root .sqc-opts.sqc-three { grid-template-columns: repeat(3, 1fr); }
#sqc-root .sqc-opt {
	display: flex; align-items: flex-start; gap: 12px;
	background: #FFFFFF; border: 2px solid var(--sqc-line); border-radius: 14px;
	padding: 12px 16px; cursor: pointer; font-weight: 600; font-size: 16px; line-height: 1.35;
	transition: border-color 0.15s, background 0.15s;
}
#sqc-root .sqc-opt:hover { border-color: rgba(61, 92, 232, 0.45); }
#sqc-root .sqc-opt.is-on { border-color: var(--sqc-blue); background: var(--sqc-tint); }
#sqc-root .sqc-opt input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--sqc-blue); cursor: pointer; }
#sqc-root .sqc-opt small { display: block; font-weight: 400; color: var(--sqc-body); font-size: 14px; margin-top: 2px; }
#sqc-root .sqc-opt-body { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; }
#sqc-root .sqc-opt-body small { flex-basis: 100%; margin-top: 0; }
#sqc-root .sqc-opt-body .sqc-price-tag { margin-top: 0; text-align: right; }
#sqc-root .sqc-opts:not(.sqc-one) .sqc-opt-body .sqc-price-tag { flex-basis: 100%; text-align: left; order: 3; margin-top: 2px; }
#sqc-root .sqc-tag-sub { display: block; font-weight: 400; color: var(--sqc-body); font-size: 12px; }
#sqc-root .sqc-badge { display: inline-block; background: var(--sqc-green-dk); color: #FFFFFF; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 2px 8px; border-radius: 999px; vertical-align: 2px; margin-left: 4px; }
#sqc-root .sqc-opt.sqc-featured { border-color: rgba(46, 138, 18, 0.45); }
#sqc-root .sqc-opt.sqc-featured.is-on { border-color: var(--sqc-green-dk); background: #EEF8EA; }
#sqc-root .sqc-bundle { grid-column: 1 / -1; border-style: dashed; border-color: var(--sqc-blue); }
#sqc-root .sqc-bundle.is-on { border-style: solid; }
#sqc-root .sqc-bundle-icons { display: flex; gap: 6px; flex-basis: 100%; margin: 6px 0 4px; }
#sqc-root .sqc-bundle-icons .sqc-opt-icon { width: 32px; height: 32px; margin: 0; border-radius: 10px; }
#sqc-root .sqc-bundle-icons .sqc-opt-icon svg { width: 18px; height: 18px; }
#sqc-root .sqc-bundle .sqc-bundle-price { font-size: 17px; }
#sqc-root .sqc-bundle-price s { color: var(--sqc-body); font-weight: 600; margin-right: 4px; }
#sqc-root .sqc-warn { background: #FFF7DB; border-radius: 12px; padding: 10px 14px; font-size: 15px; margin-top: 12px; }
#sqc-root .sqc-calc-note { font-weight: 700; color: var(--sqc-blue); font-size: 15px; margin-top: 6px; }
#sqc-root .sqc-calc-note:empty { display: none; }
#sqc-root .sqc-field > .sqc-help { margin-top: 0; font-size: 14px; }
#sqc-root .sqc-opt-icon { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--sqc-tint); color: var(--sqc-blue); display: flex; align-items: center; justify-content: center; margin-top: -6px; }
#sqc-root .sqc-opt-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#sqc-root .sqc-opt.is-on .sqc-opt-icon { background: var(--sqc-blue); color: #FFFFFF; }
#sqc-root .sqc-opt .sqc-price-tag { display: block; color: var(--sqc-blue); font-weight: 700; font-size: 14px; margin-top: 2px; }

/* Fields */
#sqc-root .sqc-field { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
#sqc-root .sqc-field label { font-weight: 600; font-size: 15px; }
#sqc-root .sqc-field :is(input, select) {
	font-family: inherit; font-size: 17px; padding: 12px 14px; border: 2px solid var(--sqc-line); border-radius: 12px;
	background: #FFFFFF; color: var(--sqc-navy); width: 100%; margin: 0; min-height: 50px; box-shadow: none;
}
#sqc-root .sqc-field :is(input, select):focus { border-color: var(--sqc-blue); }
#sqc-root .sqc-field [aria-invalid="true"] { border-color: var(--sqc-red); }
#sqc-root .sqc-field.sqc-narrow { max-width: 220px; }
#sqc-root .sqc-money { position: relative; max-width: 260px; }
#sqc-root .sqc-money span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-weight: 600; color: var(--sqc-body); }
#sqc-root .sqc-money input { padding-left: 32px; }
#sqc-root .sqc-field input.sqc-default { color: #8C94B0; }
#sqc-root .sqc-loc { display: flex; gap: 8px; align-items: center; }
#sqc-root .sqc-loc + .sqc-loc { margin-top: 8px; }
#sqc-root .sqc-loc input { flex: 1; }
#sqc-root .sqc-remove { background: none; border: 0; color: var(--sqc-blue); font-weight: 700; cursor: pointer; padding: 10px; font-size: 15px; font-family: inherit; }
#sqc-root .sqc-add { margin-top: 10px; }
#sqc-root .sqc-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
#sqc-root .sqc-error { color: var(--sqc-red); font-weight: 600; font-size: 15px; margin-top: 8px; }
#sqc-root .sqc-error:empty { display: none; }
#sqc-root .sqc-small { font-size: 13px; color: var(--sqc-body); margin-top: 14px; }

/* Smooth conditional reveal */
#sqc-root .sqc-reveal { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 0.3s ease, opacity 0.3s ease; }
#sqc-root .sqc-reveal > div { overflow: hidden; min-height: 0; padding: 0 4px; margin: 0 -4px; }
#sqc-root .sqc-reveal.is-open { grid-template-rows: 1fr; opacity: 1; }
#sqc-root .sqc-reveal.is-open > div { padding-bottom: 4px; }
#sqc-root .sqc-reveal .sqc-group:first-child, #sqc-root .sqc-reveal .sqc-field:first-child { margin-top: 16px; }

/* Package image */
#sqc-root .sqc-side-card { background: var(--sqc-white); border-radius: 20px; padding: 20px; box-shadow: 0 8px 24px rgba(35, 28, 90, 0.08); }
#sqc-root .sqc-pkg-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
#sqc-root .sqc-pkg-head h3 { font-size: 22px; }
#sqc-root .sqc-pkg-frame { position: relative; aspect-ratio: 1065 / 810; border-radius: 12px; overflow: hidden; background: #E5E7EB; }
#sqc-root .sqc-pkg-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.35s ease; display: block; }
#sqc-root .sqc-pkg-frame img.is-fading { opacity: 0; }
#sqc-root .sqc-pkg-ph { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; text-align: center; padding: 16px; background: #E5E7EB; color: #4B5563; font-weight: 700; font-size: 17px; }
#sqc-root .sqc-pkg-frame.is-missing .sqc-pkg-ph { display: flex; }
#sqc-root .sqc-pkg-frame.is-missing img { display: none; }
#sqc-root .sqc-pkg-name { font-weight: 700; margin-top: 12px; font-size: 18px; }
#sqc-root .sqc-pkg-note { font-size: 13px; color: var(--sqc-body); }

/* Live price */
#sqc-root .sqc-price { background: var(--sqc-navy); color: var(--sqc-white); border-radius: 20px; padding: 24px; box-shadow: 0 8px 24px rgba(35, 28, 90, 0.18); }
#sqc-root .sqc-price h3 { color: var(--sqc-white); font-size: 18px; margin-bottom: 12px; }
#sqc-root .sqc-price dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 15px; }
#sqc-root .sqc-price dt { opacity: 0.85; }
#sqc-root .sqc-price dd { text-align: right; font-weight: 600; }
#sqc-root .sqc-price .sqc-disc { color: #9BEDDF; }
#sqc-root .sqc-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1px solid rgba(255, 255, 255, 0.2); margin-top: 12px; padding-top: 12px; }
#sqc-root .sqc-total b { font-family: var(--sqc-head); font-weight: 600; font-size: 36px; line-height: 1; }
#sqc-root .sqc-total small { font-size: 14px; opacity: 0.85; }
#sqc-root .sqc-price .sqc-note { font-size: 13px; opacity: 0.8; margin-top: 12px; }
#sqc-root .sqc-price .is-zero { opacity: 0.4; }
#sqc-root .sqc-price .sqc-total.is-zero b { opacity: 0.4; }
#sqc-root .sqc-price .sqc-total { margin-top: 10px; padding-top: 10px; }
#sqc-root .sqc-price .sqc-total b { font-size: 30px; }
#sqc-root .sqc-deposit { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; background: rgba(255, 255, 255, 0.1); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
#sqc-root .sqc-review-est { margin-top: 20px; }
#sqc-root .sqc-price .sqc-price-sec { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #9BEDDF; margin: 18px 0 8px; }
#sqc-root .sqc-price h3 + .sqc-price-sec { margin-top: 0; }
#sqc-root .sqc-total b small { font-family: inherit; font-size: 13px; }

/* Mobile sticky price bar */
#sqc-root .sqc-bar { display: none; }

/* Review */
#sqc-root .sqc-sum { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
#sqc-root .sqc-sum-item { background: #FFFFFF; border: 2px solid var(--sqc-line); border-radius: 14px; padding: 14px 18px; }
#sqc-root .sqc-sum-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
#sqc-root .sqc-sum-head h3 { font-size: 18px; }
#sqc-root .sqc-sum dl { margin-top: 8px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 4px 16px; font-size: 15px; }
#sqc-root .sqc-sum dt { color: var(--sqc-body); }
#sqc-root .sqc-sum dd { font-weight: 600; overflow-wrap: anywhere; }
#sqc-root .sqc-sum dd.is-empty { font-weight: 400; color: #8C94B0; }
#sqc-root .sqc-review-pkg { margin-top: 20px; background: var(--sqc-tint); border-radius: 16px; padding: 14px 18px; }

/* Confirmation */
#sqc-root .sqc-done .sqc-lead { margin-top: 18px; }
#sqc-root .sqc-done-call { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 24px; background: var(--sqc-tint); border-radius: 16px; padding: 18px 20px; }
#sqc-root .sqc-done-call .sqc-help { margin-top: 2px; }
#sqc-root .sqc-done details { margin-top: 16px; font-size: 13px; }
#sqc-root .sqc-done pre { white-space: pre-wrap; background: var(--sqc-grey); padding: 12px; border-radius: 10px; max-height: 320px; overflow: auto; }

@media (max-width: 900px) {
	#sqc-root .sqc-grid { grid-template-columns: 1fr; grid-template-areas: "routes" "pkg" "main"; }
	#sqc-root .sqc-area-price { display: none; }
	#sqc-root .sqc-area-routes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
	#sqc-root .sqc-area-routes .sqc-lead { grid-column: 1 / -1; }
	#sqc-root.has-bar { padding-bottom: 84px; }
	#sqc-root.has-bar .sqc-bar {
		display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990;
		background: var(--sqc-navy); color: var(--sqc-white);
		padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
		align-items: center; justify-content: space-between; gap: 12px; box-shadow: 0 -6px 20px rgba(35, 28, 90, 0.2);
	}
	#sqc-root .sqc-bar small { display: block; font-size: 12px; opacity: 0.85; line-height: 1.3; }
	#sqc-root .sqc-bar b { font-family: var(--sqc-head); font-weight: 600; font-size: 24px; line-height: 1.1; white-space: nowrap; }
	#sqc-root .sqc-bar span { font-size: 13px; white-space: nowrap; }
	#sqc-root .sqc-bar .is-zero { opacity: 0.45; }
	#sqc-root .sqc-bar-r { text-align: right; }
}
@media (max-width: 760px) {
	#sqc-root { font-size: 16px; }
	#sqc-root .sqc-card { border-radius: 18px; }
	#sqc-root .sqc-band { padding: 26px 18px 0; }
	#sqc-root .sqc-grid { padding: 20px 14px 24px; row-gap: 16px; }
	#sqc-root .sqc-area-routes { grid-template-columns: 1fr; }
	#sqc-root .sqc-panel { padding: 20px 16px; border-radius: 16px; }
	#sqc-root .sqc-pkg-note { display: none; }
	#sqc-root .sqc-rule { padding-left: 16px; }
	#sqc-root .sqc-eyebrow { font-size: 16px; }
	#sqc-root .sqc-title.sqc-q { font-size: 22px; }
	#sqc-root .sqc-lead { font-size: 17px; }
	#sqc-root .sqc-opts, #sqc-root .sqc-opts.sqc-three { grid-template-columns: 1fr; }
	#sqc-root .sqc-btn { padding: 12px 22px; font-size: 16px; }
	#sqc-root .sqc-actions .sqc-btn { flex: 1 1 auto; }
	#sqc-root .sqc-actions .sqc-spacer { display: none; }
	#sqc-root .sqc-sum dl { grid-template-columns: 1fr; gap: 0; }
	#sqc-root .sqc-sum dd + dt { margin-top: 6px; }
	#sqc-root .sqc-field.sqc-narrow { max-width: none; }
}
#sqc-root .sqc-calculating { font-family: inherit; font-size: 14px; font-weight: 600; letter-spacing: 0.3px; color: #9BEDDF; white-space: nowrap; animation: sqc-pulse 1.6s ease-in-out infinite; }
#sqc-root .sqc-total .sqc-calculating { font-size: 18px; }
#sqc-root .sqc-calculating i { font-style: normal; animation: sqc-dot 1.4s infinite; opacity: 0; }
#sqc-root .sqc-calculating i:nth-child(2) { animation-delay: 0.2s; }
#sqc-root .sqc-calculating i:nth-child(3) { animation-delay: 0.4s; }
@keyframes sqc-dot { 0%, 20% { opacity: 0; } 40%, 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes sqc-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
@media (prefers-reduced-motion: reduce) {
	#sqc-root * { transition: none !important; }
	#sqc-root .sqc-calculating, #sqc-root .sqc-calculating i { animation: none; opacity: 1; }
}
#sqc-root [data-focus]:focus { outline: none; }
