/* =============================================================================
   LDA Insurance Checker — Stylesheet
   Design reference: Perplexity-style full-viewport search hero
   ============================================================================= */

/* Wrapper — hero, height set by WPBakery row */
.lda-ic-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	/* Accent colour #7fab0f — light tint at top, full accent at base */
	background:
		linear-gradient(
			180deg,
			#f0f8e4 0%,
			#f0f8e4 60%,
			#d9e9a3 89%,
			#b2d262 96%,
			#8cba18 99%,
			#7fab0f 100%
		);
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	box-sizing: border-box;
	padding: 6rem 2rem;
}

/* Inner column — constrained width */
.lda-ic-content {
	width: 100%;
	max-width: 620px;
	text-align: center;
}

/* ── Icon tile ─────────────────────────────────────────────────────────────── */
.lda-ic-icon {
	width: 106px;
	height: 106px;
	border-radius: 26px;
	/* White background so the coloured LDA mark reads cleanly */
	background: linear-gradient(145deg, #f4fafb 0%, #ffffff 45%, #eaf6f8 100%);
	box-shadow:
		inset 0 1px 0 rgba(255,255,255,1),
		inset 0 -1px 0 rgba(0,0,0,0.04),
		0 6px 28px rgba(3,95,127,0.18);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 2rem;
}

/* ── Heading & sub-heading ─────────────────────────────────────────────────── */
.lda-ic-heading {
	font-size: clamp(2.4rem, 5.5vw, 3.8rem);
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.2;
	letter-spacing: -0.025em;
	margin: 0 0 0.55rem;
}

.lda-ic-subheading {
	color: #5e5e5e;
	margin: 0 0 2rem;
	line-height: 1.5;
}

/* ── Form area ─────────────────────────────────────────────────────────────── */
.lda-ic-form-area {
	text-align: left;
	position: relative;
}

.lda-ic-label {
	display: block;
	font-size: 1.1rem;
	font-weight: 600;
	color: #444;
	margin-bottom: 0.5rem;
	letter-spacing: 0.01em;
    text-transform:uppercase;
}

.lda-ic-input-wrap {
	position: relative;
}

.lda-ic-input {
	width: 100%;
	padding: 1.1rem 4.2rem 1.1rem 1.5rem;
	border: 1px solid rgba(0, 0, 0, 0.09);
	border-radius: 50px;
	background: #ffffff !important;
	color: #1a1a1a !important;
	box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
	outline: none;
	transition: box-shadow 0.2s ease;
	box-sizing: border-box;
	-webkit-appearance: none;
}

.lda-ic-input::placeholder {
	color: #b0b0b0;
}

.lda-ic-input:focus {
	box-shadow: 0 2px 14px rgba(0, 0, 0, 0.15);
}

/* Arrow button inside input */
.lda-ic-submit {
	position: absolute;
	right: 0px;
	top: 50%;
	transform: translateY(-50%);
	width: 47px;
	height: 47px;
	border: none;
	background: linear-gradient(145deg, #1a7590, #035F7F);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, transform 0.1s ease;
	padding: 0;
	flex-shrink: 0;
}

.lda-ic-submit:hover {
	background: linear-gradient(145deg, #2a8aa0, #024f6a);
}

.lda-ic-submit:active {
	transform: translateY(-50%) scale(0.94);
}

/* ── Autocomplete dropdown ─────────────────────────────────────────────────── */
.lda-ic-suggestions {
	list-style: none;
	margin: 0;
	padding: 0.5rem 0;
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 6px 28px rgba(0, 0, 0, 0.13);
	display: none; /* toggled by JS */
	text-align: left;
	/* max-height keeps the list self-contained so parent overflow:hidden can't clip it */
	max-height: 320px;
	overflow-y: auto;
	border: 1px solid rgba(0, 0, 0, 0.1);
	/* position set entirely by JS after portalling to <body> */
	position: absolute;
	z-index: 9999;
}

.lda-ic-suggestion {
	padding: 0.85rem 1.4rem;
	color: #2a2a2a;
	cursor: pointer;
	transition: background 0.12s ease;
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.lda-ic-suggestion::before {
	content: '';
	display: inline-block;
	width: 18px;
	height: 18px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Ccircle cx='10' cy='10' r='9' stroke='%23b0b8c8' stroke-width='1.5'/%3E%3Cpath d='M7 10l2 2 4-4' stroke='%23b0b8c8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	flex-shrink: 0;
}

.lda-ic-suggestion--rejected::before {
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Ccircle cx='10' cy='10' r='9' stroke='%23e57373' stroke-width='1.5'/%3E%3Cpath d='M7 7l6 6M13 7l-6 6' stroke='%23e57373' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.lda-ic-suggestion:hover,
.lda-ic-suggestion--active {
	background: #f4f6fa;
}

/* "Call us" fallback item */
.lda-ic-suggestion--callout {
	color: #555;
	border-top: 1px solid #f0f0f0;
	margin-top: 0.3rem;
	padding-top: 0.85rem;
	cursor: default;
}

.lda-ic-suggestion--callout::before {
	display: none;
}

.lda-ic-suggestion--callout a {
	color: #035F7F;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.lda-ic-suggestion--callout a:hover {
	text-decoration: underline;
}

/* ── Alt link below input ──────────────────────────────────────────────────── */
.lda-ic-alt-link {
	display: inline-block;
	margin-top: 1.4rem;
	font-size: 1.05rem;
	color: rgba(30, 55, 5, 0.75);
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color 0.15s;
}

.lda-ic-alt-link:hover {
	color: #1a2d08;
}

/* ── Insurance details section — ported 1:1 from the approved mockup ────────── */
.lda-insdet {

	color: #23262A;
	background: #ffffff;
	padding: 64px 0 72px;
	display: flex;
	flex-direction: column;
	gap: 44px;
}

.lda-insdet__inner {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 24px;
	width: 100%;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.lda-insdet__eyebrow {
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #8C9198;
}

.lda-insdet__heading {
	margin: 0 0 6px;
	font-size: 30px;
	font-weight: 500;
	letter-spacing: -0.01em;
}

.lda-insdet__text {
	margin: 0;
	font-size: 16px;
	line-height: 1.7;
	color: #6B7076;
}

.lda-insdet__marquee-wrap {
	position: relative;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.lda-insdet__track {
	display: flex;
	align-items: center;
	gap: 28px;
	width: max-content;
	animation: ldaMarquee 45s linear infinite;
}

.lda-insdet__track:hover {
	animation-play-state: paused;
}

@keyframes ldaMarquee {
	from { transform: translate3d(0, 0, 0); }
	to   { transform: translate3d(-50%, 0, 0); }
}

.lda-insdet__logo-item {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 160px;
	height: 54px;
}

.lda-insdet__logo-item img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	opacity: 0.82;
}

.lda-insdet__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

.lda-insdet__grid-item {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 104px;
	padding: 28px;
	box-sizing: border-box;
	background: #ffffff;
	border: 1px solid #e5e5e2;
	border-radius: 12px;
}

.lda-insdet__grid-item img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

@media (max-width: 900px) {
	.lda-insdet__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
	.lda-insdet__grid { grid-template-columns: 1fr; }
}

.lda-insdet__plans {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 12px 32px;
}

.lda-insdet__plans li {
	display: flex;
	align-items: baseline;
	gap: 12px;
	font-size: 16px;
	line-height: 1.6;
	color: #4A4F55;
}

.lda-insdet__dot {
	flex: 0 0 auto;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #9BBE3B;
	transform: translateY(-2px);
}

@media (max-width: 640px) {
	.lda-insdet { padding: 44px 0 52px; gap: 32px; }
	.lda-insdet__heading { font-size: 24px; }
	.lda-insdet__logo-item { width: 120px; height: 44px; }
}

/* ── Result panel ──────────────────────────────────────────────────────────── */
.lda-ic-result-panel {
	display: none;
	animation: ldaFadeUp 0.35s ease both;
}

@keyframes ldaFadeUp {
	from { opacity: 0; transform: translateY(24px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* Animated checkmark circle */
.lda-ic-check-icon {
	width: 76px;
	height: 76px;
	border-radius: 50%;
	background: linear-gradient(135deg, #16a34a, #22c55e);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1.6rem;
	box-shadow: 0 4px 22px rgba(34, 197, 94, 0.38);
	animation: ldaScaleIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes ldaScaleIn {
	from { transform: scale(0); opacity: 0; }
	to   { transform: scale(1); opacity: 1; }
}

/* Checkmark path draw-on animation */
.lda-ic-check-icon svg path {
	stroke-dasharray: 50;
	stroke-dashoffset: 50;
	animation: ldaDraw 0.45s 0.25s ease forwards;
}

@keyframes ldaDraw {
	to { stroke-dashoffset: 0; }
}

.lda-ic-result-heading {
	font-size: clamp(2.2rem, 5vw, 3.4rem);
	font-weight: 700;
	color: #1a1a1a;
	letter-spacing: -0.02em;
	margin: 0 0 0.55rem;
}

.lda-ic-result-sub {
	color: #333333;
	line-height: 1.65;
	margin: 0 0 2rem;
}

.lda-ic-result-name {
	color: #035F7F;
}

/* CTA button */
.lda-ic-cta-btn {
	display: inline-block;
	padding: 1.05rem 2.6rem;
	border-radius: 50px;
	background-color: #035F7F; /* overridden inline by shortcode accent_color */
	color: #ffffff !important;
	font-weight: 600;
	text-decoration: none !important;
	letter-spacing: 0.01em;
	transition: filter 0.2s ease, transform 0.1s ease;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

.lda-ic-cta-btn:hover {
	filter: brightness(1.1);
	transform: translateY(-2px);
}

.lda-ic-cta-btn:active {
	transform: translateY(0);
}

/* Reset / "check another" link */
.lda-ic-reset-link {
	display: inline-block;
	margin-top: 1.25rem;
	font-size: 1rem;
	color: rgba(30, 55, 5, 0.7);
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
	font-family: inherit;
	transition: color 0.15s;
}

.lda-ic-reset-link:hover {
	color: #1a2d08;
}

/* ── Not-found panel ───────────────────────────────────────────────────────── */
.lda-ic-notfound-panel {
	display: none;
	animation: ldaFadeUp 0.35s ease both;
}

.lda-ic-notfound-icon {
	width: 76px;
	height: 76px;
	border-radius: 50%;
	background: linear-gradient(135deg, #d97706, #f59e0b);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1.6rem;
	box-shadow: 0 4px 22px rgba(245, 158, 11, 0.35);
	animation: ldaScaleIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.lda-ic-notfound-heading {
	font-size: clamp(2.1rem, 5vw, 3.2rem);
	font-weight: 700;
	color: #1a1a1a;
	letter-spacing: -0.02em;
	margin: 0 0 0.55rem;
}

.lda-ic-notfound-sub {
	color: #333333;
	line-height: 1.65;
	margin: 0 0 1.75rem;
}

.lda-ic-call-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 1rem 2.4rem;
	border-radius: 50px;
	background: linear-gradient(135deg, #d97706, #f59e0b);
	color: #ffffff !important;
	font-weight: 600;
	text-decoration: none !important;
	transition: filter 0.2s ease, transform 0.1s ease;
	box-shadow: 0 4px 18px rgba(217, 119, 6, 0.35);
	margin-bottom: 1.25rem;
}

.lda-ic-call-btn:hover {
	filter: brightness(1.08);
	transform: translateY(-2px);
}

/* ── Rejected panel ───────────────────────────────────────────────────────── */
.lda-ic-rejected-panel {
	display: none;
	animation: ldaFadeUp 0.35s ease both;
}

.lda-ic-rejected-icon {
	width: 76px;
	height: 76px;
	border-radius: 50%;
	background: linear-gradient(135deg, #6b7280, #9ca3af);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1.6rem;
	box-shadow: 0 4px 22px rgba(107, 114, 128, 0.3);
	animation: ldaScaleIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.lda-ic-rejected-heading {
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 700;
	color: #1a1a1a;
	letter-spacing: -0.02em;
	margin: 0 0 0.55rem;
}

.lda-ic-rejected-name {
	color: #4b5563;
}

.lda-ic-rejected-sub {
	color: #4a4a4a;
	line-height: 1.65;
	margin: 0 0 1.75rem;
}

/* "Not accepted" badge inside suggestion rows */
.lda-ic-suggestion--rejected {
	color: #6b7280;
}

.lda-ic-suggestion-badge {
	margin-left: auto;
	font-size: 0.75em;
	color: #92400e;
	background: #fef3c7;
	border-radius: 4px;
	padding: 0.15em 0.5em;
	font-weight: 600;
	white-space: nowrap;
	flex-shrink: 0;
}

.lda-ic-suggestion-badge--accepted {
	color: #15803d;
	background: #f0fdf4;
}

/* ── Responsive tweaks ─────────────────────────────────────────────────────── */
@media (max-width: 640px) {
	.lda-ic-icon { width: 84px; height: 84px; border-radius: 20px; }
	.lda-ic-heading { font-size: clamp(2rem, 7vw, 3rem); }
	.lda-ic-cta-btn, .lda-ic-call-btn { display: block; width: 100%; text-align: center; box-sizing: border-box; }
}
