/* ==========================================================================
   GoBill widgets — forms, quiz, dashboard mock, chat launcher
   ========================================================================== */

/* ---------- Forms ---------- */
.gb-form { max-width: 780px; margin-inline: auto; }
.gb-form__grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gb-form__field { margin: 0 0 18px; display: flex; flex-direction: column; gap: 7px; }
.gb-form__grid .gb-form__field { margin: 0; }
.gb-form__field--textarea { grid-column: 1 / -1; }
.gb-form__field label { font-size: var(--gb-fs-sm); font-weight: 600; color: var(--gb-navy); }
.gb-form__req { color: #e2622f; margin-left: 2px; }
.gb-form input, .gb-form select, .gb-form textarea {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid rgba(10, 6, 85, .14); border-radius: 12px;
  font-family: var(--gb-font-display); font-size: .9375rem; color: var(--gb-text-dark);
  background: #fff; transition: border-color var(--gb-dur) var(--gb-ease), box-shadow var(--gb-dur) var(--gb-ease);
}
.gb-form textarea { resize: vertical; min-height: 120px; }
.gb-form input:focus, .gb-form select:focus, .gb-form textarea:focus {
  outline: none; border-color: var(--gb-primary); box-shadow: var(--gb-shadow-glow);
}
.gb-form input:user-invalid, .gb-form select:user-invalid, .gb-form textarea:user-invalid { border-color: #e2622f; }
.gb-form__consent { font-size: .8125rem; color: var(--gb-text-muted); margin: 18px 0 16px; }
.gb-form__note { font-size: .8125rem; color: var(--gb-text-muted); margin: 4px 0 16px; }
.gb-form__submit { width: 100%; }
.gb-form__submit[disabled] { opacity: .6; cursor: progress; }
.gb-form__status { margin: 14px 0 0; font-size: var(--gb-fs-sm); font-weight: 600; min-height: 1.4em; }
.gb-form__status.is-error { color: #c8351a; }
.gb-form__status.is-success { color: #1a7f6b; }
/* Honeypot: off-screen but still focusable-free for bots. */
.gb-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gb-form.is-done .gb-form__grid,
.gb-form.is-done .gb-form__field,
.gb-form.is-done .gb-form__consent,
.gb-form.is-done .gb-form__submit { display: none; }
.gb-form.is-done .gb-form__status {
  background: rgba(26, 127, 107, .1); color: #1a7f6b;
  padding: 20px 24px; border-radius: var(--gb-radius-card); text-align: center; font-size: 1rem;
}
.gb-section--navy .gb-form label, .gb-section--violet .gb-form label { color: #fff; }
.gb-section--navy .gb-form__consent, .gb-section--violet .gb-form__consent { color: rgba(255,255,255,.75); }
@media (max-width: 620px) { .gb-form__grid { grid-template-columns: 1fr; } }

/* ---------- Assessment quiz ---------- */
.gb-quiz { max-width: 720px; margin-inline: auto; }
.gb-quiz__progress { margin-bottom: 28px; }
.gb-quiz__bar { height: 8px; border-radius: 99px; background: rgba(10, 6, 85, .1); overflow: hidden; }
.gb-quiz__bar-fill { display: block; height: 100%; border-radius: 99px; background: var(--gb-primary); transition: width .35s var(--gb-ease); }
.gb-quiz__count { font-size: .8125rem; color: var(--gb-text-muted); margin: 8px 0 0; text-align: right; }
.gb-quiz__step { display: none; border: 0; padding: 0; margin: 0; }
.gb-quiz__step.is-active { display: block; animation: gb-fade .3s var(--gb-ease) both; }
.gb-quiz__question { font-size: var(--gb-fs-h3); font-weight: 700; color: var(--gb-navy); padding: 0; margin-bottom: 8px; }
.gb-quiz__help { font-size: var(--gb-fs-sm); color: var(--gb-text-muted); margin-bottom: 20px; }
.gb-quiz__answers { display: grid; gap: 12px; margin-top: 18px; }
.gb-quiz__answer {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  padding: 16px 20px; border: 1.5px solid rgba(10, 6, 85, .14); border-radius: 14px;
  font-size: .9375rem; background: #fff;
  transition: all var(--gb-dur) var(--gb-ease);
}
.gb-quiz__answer:hover { border-color: var(--gb-primary); background: var(--gb-violet-soft); }
.gb-quiz__answer input { width: 20px; height: 20px; accent-color: var(--gb-primary); flex: 0 0 auto; margin: 0; }
.gb-quiz__answer:has(input:checked) { border-color: var(--gb-primary); background: var(--gb-violet-soft); box-shadow: var(--gb-shadow-glow); }
.gb-quiz__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.gb-quiz__nav .gb-btn[disabled] { opacity: .4; cursor: not-allowed; }

.gb-quiz__result { text-align: center; animation: gb-fade .4s var(--gb-ease) both; }
.gb-quiz__score { --gb-result-color: var(--gb-primary); font-size: clamp(3rem, 2rem + 4vw, 4.5rem); font-weight: 800; line-height: 1; color: var(--gb-result-color); }
.gb-quiz__score-unit { font-size: .45em; }
.gb-quiz__result-title { margin: 12px 0 8px; font-size: var(--gb-fs-h3); color: var(--gb-result-color, var(--gb-navy)); }
.gb-quiz__result-text { max-width: 55ch; margin: 0 auto 32px; color: var(--gb-text-body); }
.gb-quiz__capture { text-align: left; background: var(--gb-canvas); border-radius: var(--gb-radius-card); padding: clamp(24px, 3vw, 36px); }
.gb-quiz__capture-intro { font-size: var(--gb-fs-sm); color: var(--gb-text-body); margin-bottom: 20px; text-align: center; }

/* ---------- Dashboard mock ---------- */
.gb-dash {
  background: #fff; border-radius: var(--gb-radius-card); overflow: hidden;
  box-shadow: var(--gb-shadow-testimonial); max-width: 1040px; margin-inline: auto;
}
.gb-dash__head {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px; background: var(--gb-navy); color: #fff;
}
.gb-dash__dots { display: flex; gap: 6px; }
.gb-dash__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.32); }
.gb-dash__panel-title { font-size: var(--gb-fs-sm); font-weight: 600; }
.gb-dash__body { display: grid; grid-template-columns: 300px 1fr; gap: 0; }
.gb-dash__score { padding: 28px; border-right: 1px solid rgba(10,6,85,.08); text-align: center; }
.gb-dash__dial {
  width: 148px; height: 148px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center;
  background: conic-gradient(var(--gb-dial-color) calc(var(--gb-dial-pct) * 1%), rgba(10,6,85,.09) 0);
  position: relative;
}
.gb-dash__dial::before { content: ""; position: absolute; inset: 14px; background: #fff; border-radius: 50%; }
.gb-dash__dial-value { position: relative; font-size: 2.25rem; font-weight: 800; color: var(--gb-dial-color); }
.gb-dash__score-label { font-size: var(--gb-fs-sm); font-weight: 600; color: var(--gb-navy); margin-bottom: 20px; }
.gb-dash__breakdown { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; text-align: left; }
.gb-dash__breakdown li { display: grid; grid-template-columns: 1fr 70px 34px; gap: 8px; align-items: center; font-size: .75rem; }
.gb-dash__bk-label { color: var(--gb-text-muted); }
.gb-dash__bk-bar { height: 6px; border-radius: 99px; background: rgba(10,6,85,.09); overflow: hidden; }
.gb-dash__bk-bar span { display: block; height: 100%; border-radius: 99px; }
.gb-dash__bk-pct { text-align: right; font-weight: 700; color: var(--gb-navy); }
.gb-dash__main { padding: 28px; }
.gb-dash__tiles { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0,1fr)); }
.gb-dash__tile { background: var(--gb-canvas); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 3px; }
.gb-dash__tile-value { font-size: 1.375rem; font-weight: 800; color: var(--gb-navy); }
.gb-dash__tile-label { font-size: .75rem; color: var(--gb-text-muted); }
.gb-dash__tile-delta { font-size: .75rem; font-weight: 700; margin-top: 4px; }
.gb-dash__tile-delta--up { color: #1a7f6b; }
.gb-dash__tile-delta--down { color: #c8351a; }
.gb-dash__tile-delta--flat { color: var(--gb-text-muted); }
.gb-dash__insights { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.gb-dash__insights li {
  display: flex; gap: 12px; align-items: flex-start; font-size: var(--gb-fs-sm);
  background: var(--gb-violet-soft); border-radius: 12px; padding: 14px 16px; color: var(--gb-text-body);
}
.gb-dash__ins-icon { color: var(--gb-primary); flex: 0 0 auto; }
@media (max-width: 900px) {
  .gb-dash__body { grid-template-columns: 1fr; }
  .gb-dash__score { border-right: 0; border-bottom: 1px solid rgba(10,6,85,.08); }
  .gb-dash__tiles { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* ---------- Chat launcher ---------- */
.gb-chat { position: fixed; bottom: 24px; z-index: 600; }
.gb-chat--right { right: 24px; }
.gb-chat--left { left: 24px; }
.gb-chat__btn {
  width: 56px; height: 56px; border: 0 !important; border-radius: 50% !important; cursor: pointer;
  background: var(--gb-chat-bg, var(--gb-primary)) !important; color: #fff !important;
  display: grid; place-items: center; box-shadow: var(--gb-shadow-lift);
  transition: transform var(--gb-dur) var(--gb-ease);
}
.gb-chat__btn[aria-expanded="false"] .gb-chat__icon-close { display: none; }
.gb-chat__btn[aria-expanded="true"] .gb-chat__icon-open { display: none; }
.gb-chat__btn:hover { transform: scale(1.07); }
.gb-chat__panel {
  position: absolute; bottom: 70px; width: min(340px, calc(100vw - 48px));
  background: #f9f9fc; border-radius: var(--gb-radius-card); padding: 0; overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15); animation: gb-fade .25s var(--gb-ease) both;
}
.gb-chat--right .gb-chat__panel { right: 0; }
.gb-chat--left .gb-chat__panel { left: 0; }
.gb-chat__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: var(--gb-chat-bg, var(--gb-primary)); color: #fff; }
.gb-chat__head-info { display: flex; align-items: center; gap: 12px; }
.gb-chat__head-text { display: flex; flex-direction: column; gap: 2px; }
.gb-chat__head strong { color: #fff; font-size: 1.0625rem; margin: 0; line-height: 1.2; font-weight: 600; }
.gb-chat__status { font-size: .8125rem; display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.8); }
.gb-chat__dot { width: 8px; height: 8px; background: #22c55e; border-radius: 50%; display: inline-block; }
.gb-chat__avatar { width: 38px; height: 38px; background: #fff; border-radius: 50%; display: grid; place-items: center; color: var(--gb-primary); flex-shrink: 0; }
.gb-chat__avatar svg { width: 22px; height: 22px; }
.gb-chat__close { border: 0; background: transparent; cursor: pointer; color: rgba(255,255,255,0.8); padding: 4px; display: grid; place-items: center; transition: color .2s; }
.gb-chat__close:hover { color: #fff; }

.gb-chat__messages { padding: 20px; display: flex; flex-direction: column; gap: 16px; max-height: calc(100vh - 200px); overflow-y: auto; }
.gb-chat__msg { display: flex; align-items: flex-start; gap: 12px; }
.gb-chat__avatar--sm { width: 30px; height: 30px; background: var(--gb-primary); color: #fff; }
.gb-chat__avatar--sm svg { width: 16px; height: 16px; }
.gb-chat__bubble { background: #fff; border: 1px solid #eaeaea; border-radius: 12px; border-top-left-radius: 4px; padding: 14px 16px; font-size: .9375rem; color: var(--gb-text-heading); line-height: 1.5; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }

.gb-chat__actions { list-style: none; margin: 0; padding: 0 0 0 42px; display: flex; flex-direction: column; gap: 10px; }
.gb-chat__action-btn { border: 1px solid var(--gb-primary) !important; background: #fff !important; color: var(--gb-primary) !important; border-radius: 20px !important; padding: 10px 16px !important; font-size: .875rem; font-weight: 600; text-align: left; cursor: pointer; transition: all .2s; display: block; width: 100%; outline: none !important; }
.gb-chat__action-btn:hover { background: var(--gb-primary) !important; color: #fff !important; }
.gb-chat__close, .gb-chat__back { border: 0 !important; background: transparent !important; cursor: pointer; color: rgba(255,255,255,0.8) !important; padding: 4px; display: grid; place-items: center; transition: color .2s; outline: none !important; }
.gb-chat__close:hover, .gb-chat__back:hover { color: #fff !important; }
.gb-chat__back[hidden] { display: none !important; }

.gb-chat__form { display: flex !important; flex-direction: column !important; gap: 12px !important; padding: 0 0 0 42px !important; }
.gb-chat__form[hidden] { display: none !important; }
.gb-chat__field input { width: 100% !important; border: 1px solid #eaeaea !important; border-radius: 8px !important; padding: 12px 14px !important; font-size: .875rem !important; outline: none !important; transition: border .2s; background: #fff !important; font-family: inherit; color: var(--gb-text-heading) !important; margin: 0 !important; box-shadow: none !important; }
.gb-chat__field input::placeholder { color: #aaa !important; }
.gb-chat__field input:focus { border-color: var(--gb-primary) !important; }
.gb-chat__submit { background: var(--gb-primary) !important; color: #fff !important; border: none !important; border-radius: 8px !important; padding: 12px !important; font-weight: 600 !important; font-size: .9375rem !important; cursor: pointer; transition: background .2s; font-family: inherit; width: 100% !important; margin: 0 !important; }
.gb-chat__submit:hover { background: var(--gb-navy) !important; opacity: 1 !important; }
.gb-chat__success { font-size: .875rem; color: #22c55e; font-weight: 600; text-align: center; padding: 10px; }

@media print { .gb-chat { display: none; } }

/* Contact Page Hero */
.gb-contact-hero-wrap {
	position: relative;
	padding: 80px 0;
	min-height: 80vh;
	display: flex;
	align-items: center;
	overflow: hidden;
}
.gb-contact-hero-overlay {
	position: absolute;
	top: 0; left: 0; bottom: 0; right: 0;
	width: 100%;
	z-index: 1;
}
.gb-contact-hero-inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	gap: 60px;
	width: 100%;
}
.gb-contact-hero-left {
	flex: 1;
	min-width: 300px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.gb-contact-hero-title {
	font-size: 3.5rem;
	font-weight: 700;
	color: #fff;
	margin-bottom: 20px;
	text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.gb-contact-hero-desc {
	font-size: 1.125rem;
	color: rgba(255, 255, 255, 0.9);
	margin-bottom: 40px;
	max-width: 450px;
	line-height: 1.6;
	text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}
.gb-contact-hero-glass {
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 16px;
	padding: 30px;
	display: flex;
	flex-direction: column;
	gap: 20px;
	max-width: 450px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
.gb-contact-info-item {
	display: flex;
	align-items: flex-start;
	gap: 16px;
}
.gb-contact-icon {
	color: #fff;
	display: grid;
	place-items: center;
	padding-top: 2px;
}
.gb-contact-text {
	display: flex;
	flex-direction: column;
	color: #fff;
	font-size: 0.95rem;
}
.gb-contact-text a {
	color: #fff;
	text-decoration: none;
	font-weight: 500;
}
.gb-contact-text a:hover {
	text-decoration: underline;
}
.gb-contact-lbl {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	opacity: 0.7;
	margin-bottom: 4px;
}
.gb-contact-hero-right {
	flex: 1;
	min-width: 340px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
}
.gb-contact-form-card {
	background: #fff;
	border-radius: 16px;
	padding: 40px;
	width: 100%;
	max-width: 500px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.gb-contact-form-card h2 {
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--gb-text-heading, #111);
	margin-bottom: 24px;
}
.gb-contact-hero-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.gb-form-row {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.gb-form-row--half {
	flex-direction: row;
	gap: 16px;
}
.gb-form-col {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.gb-contact-hero-form label {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--gb-text-heading, #111);
}
.gb-contact-hero-form input,
.gb-contact-hero-form textarea {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid #eaeaea;
	border-radius: 8px;
	font-size: 0.9375rem;
	outline: none;
	transition: border-color 0.2s;
	font-family: inherit;
}
.gb-contact-hero-form input:focus,
.gb-contact-hero-form textarea:focus {
	border-color: var(--gb-primary, #665ffd);
}
.gb-btn-submit {
	background: var(--gb-primary, #272c91) !important;
	color: #fff !important;
	border: none !important;
	border-radius: 8px !important;
	padding: 14px !important;
	font-size: 1rem !important;
	font-weight: 600 !important;
	cursor: pointer;
	transition: background-color 0.2s, opacity 0.2s;
	margin-top: 10px !important;
	width: 100% !important;
}
.gb-btn-submit:hover {
	background: var(--gb-navy, #0b135a) !important;
	opacity: 1 !important;
}
@media (max-width: 991px) {
	.gb-contact-hero-inner {
		flex-direction: column;
	}
	.gb-contact-hero-right {
		justify-content: center;
	}
	.gb-contact-hero-overlay {
		width: 100%;
		background: rgba(11, 19, 90, 0.85);
	}
}
@media (max-width: 500px) {
	.gb-form-row--half {
		flex-direction: column;
	}
}
