/* =================================================================
   Hawaii Quote Form — Frontend
   Brand: navy #0B1C2E · teal #0D9488 · gold #C9A84C · white #FFFFFF
   ================================================================= */

.hqf {
	--navy:      #0B1C2E;
	--navy2:     #132638;
	--teal:      #0D9488;
	--teal-dk:   #0a7a70;
	--teal-lt:   rgba(13,148,136,0.10);
	--teal-ring: rgba(13,148,136,0.22);
	--gold:      #C9A84C;
	--gold-dk:   #b0923e;
	--gold-lt:   rgba(201,168,76,0.12);
	--gold-ring: rgba(201,168,76,0.25);
	--white:     #ffffff;
	--base:      #F7F8FA;
	--border:    #DDE3EC;
	--text:      #0B1C2E;
	--muted:     #64748B;
	--radius:    8px;
	--radius-lg: 14px;
	font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
	width: 100%;
	max-width: 400px;
	background: var(--white);
	border-radius: var(--radius-lg);
	border: 1px solid var(--border);
	box-shadow: 0 20px 60px rgba(11,28,46,0.18), 0 4px 16px rgba(11,28,46,0.08);
	overflow: hidden;
	-webkit-font-smoothing: antialiased;
}

/* ── TOP HEADER ────────────────────────────────────── */
.hqf-top {
	background: var(--navy);
	padding: 18px 22px;
	display: flex;
	align-items: center;
	gap: 14px;
	border-bottom: 3px solid var(--teal);
}
.hqf-top-icon {
	width: 44px;
	height: 44px;
	border-radius: var(--radius);
	background: rgba(13,148,136,0.15);
	border: 1px solid rgba(13,148,136,0.30);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.hqf-top-title {
	font-weight: 700;
	font-size: 1rem;
	color: var(--white);
	margin: 0;
	line-height: 1.2;
	letter-spacing: -0.01em;
}
.hqf-top-sub {
	font-size: 0.6875rem;
	color: var(--gold);
	font-weight: 600;
	letter-spacing: 0.04em;
	margin: 4px 0 0;
}

/* ── PROGRESS ──────────────────────────────────────── */
.hqf-progress {
	display: flex;
	align-items: center;
	padding: 16px 22px 0;
	background: var(--white);
}
.hqf-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	flex-shrink: 0;
}
.hqf-step-num {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 2px solid var(--border);
	background: var(--white);
	color: var(--muted);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.75rem;
	font-weight: 700;
	transition: all 0.25s ease;
	position: relative;
}
.hqf-step-check { display: none; }
.hqf-step-num-val { display: block; }
.hqf-step-lbl {
	font-size: 0.5625rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--muted);
	white-space: nowrap;
	transition: color 0.25s;
}
.hqf-step-line {
	flex: 1;
	height: 2px;
	background: var(--border);
	margin: 0 6px;
	margin-bottom: 18px;
	transition: background 0.25s;
}

/* Active step */
.hqf-step.is-active .hqf-step-num {
	background: var(--teal);
	border-color: var(--teal);
	color: var(--white);
	box-shadow: 0 0 0 4px var(--teal-ring);
}
.hqf-step.is-active .hqf-step-lbl { color: var(--teal); }

/* Done step */
.hqf-step.is-done .hqf-step-num {
	background: var(--navy);
	border-color: var(--navy);
	color: var(--white);
	box-shadow: none;
}
.hqf-step.is-done .hqf-step-num-val { display: none; }
.hqf-step.is-done .hqf-step-check   { display: block; }
.hqf-step.is-done .hqf-step-lbl     { color: var(--navy); }
.hqf-step-line.is-done               { background: var(--navy); }

/* ── BODY ──────────────────────────────────────────── */
.hqf-body { padding: 16px 22px 20px; }

/* ── PANELS ────────────────────────────────────────── */
.hqf-panel { animation: hqf-in 0.22s ease; }
.hqf-panel.is-hidden { display: none !important; }
@keyframes hqf-in {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ── GROUPS & LABELS ───────────────────────────────── */
.hqf-group { margin-bottom: 14px; }
.hqf-lbl {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.625rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--muted);
	margin-bottom: 6px;
}
.hqf-lbl svg { color: var(--teal); flex-shrink: 0; }

/* ── TOGGLE BUTTONS ────────────────────────────────── */
.hqf-toggle-row {
	display: flex;
	gap: 8px;
}
.hqf-toggle {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 10px 8px;
	border-radius: var(--radius);
	border: 1.5px solid var(--border);
	background: var(--base);
	color: var(--muted);
	font-size: 0.8125rem;
	font-weight: 500;
	font-family: inherit;
	cursor: pointer;
	transition: all 0.15s ease;
	line-height: 1.2;
	text-align: center;
}
.hqf-toggle svg { flex-shrink: 0; color: var(--muted); transition: color 0.15s; }
.hqf-toggle:hover {
	border-color: var(--teal);
	background: var(--teal-lt);
	color: var(--teal);
}
.hqf-toggle:hover svg { color: var(--teal); }
.hqf-toggle.is-active {
	border-color: var(--teal) !important;
	background: var(--teal-lt) !important;
	color: var(--teal) !important;
	font-weight: 700 !important;
}
.hqf-toggle.is-active svg { color: var(--teal) !important; }

/* ── PORT GRID ─────────────────────────────────────── */
.hqf-port-grid {
	display: flex;
	gap: 8px;
}
.hqf-port {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 12px 8px;
	border-radius: var(--radius);
	border: 1.5px solid var(--border);
	background: var(--base);
	font-family: inherit;
	cursor: pointer;
	transition: all 0.15s ease;
	text-align: center;
}
.hqf-port:hover { border-color: var(--teal); background: var(--teal-lt); }
.hqf-port-icon {
	color: var(--muted);
	margin-bottom: 6px;
	transition: color 0.15s;
}
.hqf-port-name {
	display: block;
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--text);
	margin-bottom: 2px;
	transition: color 0.15s;
}
.hqf-port-sub {
	display: block;
	font-size: 0.6875rem;
	color: var(--muted);
}
.hqf-port-badge {
	display: inline-block;
	margin-top: 6px;
	font-size: 0.5rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--teal);
	background: var(--teal-lt);
	border: 1px solid var(--teal-ring);
	border-radius: 50px;
	padding: 2px 7px;
}
.hqf-port.is-active {
	border-color: var(--teal) !important;
	background: var(--teal-lt) !important;
	box-shadow: 0 0 0 3px var(--teal-ring);
}
.hqf-port.is-active .hqf-port-icon { color: var(--teal); }
.hqf-port.is-active .hqf-port-name { color: var(--teal); }

/* ── ISLAND GRID ───────────────────────────────────── */
.hqf-island-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}
.hqf-island {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 12px 8px;
	border-radius: var(--radius);
	border: 1.5px solid var(--border);
	background: var(--base);
	font-family: inherit;
	cursor: pointer;
	transition: all 0.15s ease;
	text-align: center;
}
.hqf-island:hover { border-color: var(--gold); background: var(--gold-lt); }
.hqf-island-icon {
	color: var(--muted);
	margin-bottom: 6px;
	transition: color 0.15s;
}
.hqf-island-name {
	display: block;
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--text);
	margin-bottom: 2px;
	transition: color 0.15s;
}
.hqf-island-city {
	display: block;
	font-size: 0.6875rem;
	color: var(--muted);
}
.hqf-island.is-active {
	border-color: var(--gold) !important;
	background: var(--gold-lt) !important;
	box-shadow: 0 0 0 3px var(--gold-ring);
}
.hqf-island.is-active .hqf-island-icon { color: var(--gold); }
.hqf-island.is-active .hqf-island-name { color: var(--gold); }

/* ── INPUTS ────────────────────────────────────────── */
.hqf-input {
	width: 100%;
	padding: 11px 14px;
	border: 1.5px solid var(--border);
	border-radius: var(--radius);
	background: var(--base);
	font-size: 0.9375rem;
	font-family: inherit;
	color: var(--text);
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.hqf-input:focus {
	border-color: var(--teal);
	box-shadow: 0 0 0 3px var(--teal-ring);
	background: var(--white);
}
.hqf-input::placeholder { color: #B0BAC9; }
.hqf-input.is-error {
	border-color: #E53E3E !important;
	box-shadow: 0 0 0 3px rgba(229,62,62,0.15) !important;
}

/* ── SELECT ────────────────────────────────────────── */
.hqf-select-wrap { position: relative; }
.hqf-select {
	width: 100%;
	padding: 11px 36px 11px 14px;
	border: 1.5px solid var(--border);
	border-radius: var(--radius);
	background: var(--base);
	font-size: 0.9375rem;
	font-family: inherit;
	color: var(--text);
	outline: none;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.hqf-select:focus {
	border-color: var(--teal);
	box-shadow: 0 0 0 3px var(--teal-ring);
	background: var(--white);
}
.hqf-select-arrow {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--muted);
	pointer-events: none;
}

/* ── AUTOCOMPLETE ──────────────────────────────────── */
.hqf-ac-wrap { position: relative; }
.hqf-ac-list {
	display: none;
	position: absolute;
	top: calc(100% + 3px);
	left: 0; right: 0;
	background: var(--white);
	border: 1.5px solid var(--border);
	border-radius: var(--radius);
	max-height: 188px;
	overflow-y: auto;
	z-index: 9999;
	box-shadow: 0 8px 28px rgba(11,28,46,0.14);
	list-style: none;
	padding: 4px 0;
	margin: 0;
}
.hqf-ac-list.is-open { display: block; }
.hqf-ac-list li {
	padding: 9px 14px;
	font-size: 0.875rem;
	color: var(--text);
	cursor: pointer;
	transition: background 0.1s;
}
.hqf-ac-list li:hover,
.hqf-ac-list li.is-hi {
	background: var(--teal-lt);
	color: var(--teal);
}

/* ── HINT ──────────────────────────────────────────── */
.hqf-hint {
	font-size: 0.6875rem;
	color: var(--muted);
	margin: 5px 0 0;
	line-height: 1.4;
}

/* ── TRUST STRIP ───────────────────────────────────── */
.hqf-trust-strip {
	display: flex;
	gap: 6px;
	margin-bottom: 14px;
	flex-wrap: wrap;
}
.hqf-trust-item {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 0.6875rem;
	font-weight: 600;
	color: var(--muted);
	background: var(--base);
	border: 1px solid var(--border);
	border-radius: 50px;
	padding: 4px 10px;
	white-space: nowrap;
}
.hqf-trust-item svg { color: var(--teal); flex-shrink: 0; }

/* ── ERROR ─────────────────────────────────────────── */
.hqf-error {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	background: #FFF5F5;
	border: 1.5px solid #FEB2B2;
	border-radius: var(--radius);
	padding: 10px 13px;
	font-size: 0.8125rem;
	color: #C53030;
	margin-bottom: 12px;
}
.hqf-error.is-hidden { display: none; }
.hqf-error svg { flex-shrink: 0; margin-top: 1px; }

/* ── BUTTONS ───────────────────────────────────────── */
.hqf-btn-row {
	display: flex;
	gap: 8px;
	margin-top: 14px;
}

/* Next button */
.hqf-next {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 18px;
	border-radius: var(--radius);
	background: var(--teal);
	color: var(--white);
	border: none;
	font-size: 0.9375rem;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	letter-spacing: 0.01em;
	transition: background 0.15s, transform 0.1s;
	margin-top: 14px;
	box-shadow: 0 4px 16px rgba(13,148,136,0.28);
}
.hqf-next:hover  { background: var(--teal-dk); transform: translateY(-1px); }
.hqf-next:active { transform: translateY(0); }
.hqf-next svg    { flex-shrink: 0; }

/* Submit button (gold — final action) */
.hqf-submit {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 18px;
	border-radius: var(--radius);
	background: var(--gold);
	color: var(--white);
	border: none;
	font-size: 0.9375rem;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	letter-spacing: 0.01em;
	transition: background 0.15s, transform 0.1s;
	box-shadow: 0 4px 16px rgba(201,168,76,0.30);
}
.hqf-submit:hover    { background: var(--gold-dk); transform: translateY(-1px); }
.hqf-submit:active   { transform: translateY(0); }
.hqf-submit:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }
.hqf-submit svg      { flex-shrink: 0; }

/* Back button */
.hqf-back {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 13px 16px;
	border-radius: var(--radius);
	background: var(--base);
	color: var(--muted);
	border: 1.5px solid var(--border);
	font-size: 0.8125rem;
	font-weight: 500;
	font-family: inherit;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
	flex-shrink: 0;
}
.hqf-back:hover { background: #EAEFF6; color: var(--text); }
.hqf-btn-row .hqf-next { margin-top: 0; }

/* ── SUCCESS ───────────────────────────────────────── */
.hqf-success { padding: 8px 0; }
.hqf-success-icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: rgba(13,148,136,0.10);
	border: 2px solid var(--teal);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 14px;
}
.hqf-success-title {
	font-size: 1.0625rem;
	font-weight: 700;
	color: var(--navy);
	text-align: center;
	margin: 0 0 6px;
	font-family: inherit;
}
.hqf-success-msg {
	font-size: 0.8125rem;
	color: var(--muted);
	text-align: center;
	margin: 0 0 20px;
	line-height: 1.5;
}
.hqf-success-steps {
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 14px;
	margin-bottom: 16px;
	background: var(--base);
}
.hqf-success-steps-lbl {
	font-size: 0.5625rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--muted);
	margin: 0 0 12px;
}
.hqf-success-step {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 10px;
}
.hqf-success-step:last-child { margin-bottom: 0; }
.hqf-success-step-icon {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: var(--teal-lt);
	border: 1px solid var(--teal-ring);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: var(--teal);
}
.hqf-success-step strong {
	display: block;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--text);
	line-height: 1.3;
}
.hqf-success-step p {
	font-size: 0.6875rem;
	color: var(--muted);
	margin: 2px 0 0;
}
.hqf-call-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 12px;
	border-radius: var(--radius);
	background: var(--navy);
	color: var(--white);
	font-size: 0.875rem;
	font-weight: 600;
	font-family: inherit;
	text-decoration: none;
	transition: background 0.15s;
}
.hqf-call-btn:hover { background: var(--navy2); color: var(--white); }

/* ── FOOTER ────────────────────────────────────────── */
.hqf-foot {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 12px 22px;
	border-top: 1px solid var(--border);
	background: var(--base);
	font-size: 0.6875rem;
	color: var(--muted);
	font-weight: 500;
}
.hqf-foot svg { color: var(--teal); flex-shrink: 0; }

/* ── FOCUS VISIBLE ─────────────────────────────────── */
.hqf *:focus-visible {
	outline: 2px solid var(--teal);
	outline-offset: 2px;
}

/* ── SCROLLBAR ─────────────────────────────────────── */
.hqf-ac-list::-webkit-scrollbar { width: 4px; }
.hqf-ac-list::-webkit-scrollbar-track { background: transparent; }
.hqf-ac-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
