/* ============================================================
   Dealfin Quiz — Stylesheet
   Design reference: quiz-design.png, quiz-last.png
   ============================================================ */

/* ── Custom properties ──────────────────────────────────────── */
:root {
	--dq-navy:        #0d1c3d;
	--dq-blue: 	#0A1389;
	--dq-blue-hover:   #0000CD;
	--dq-black: #1C1C1C;
	--dq-navy-mid:    #1a2f5a;
	--dq-accent:      #c9a84c;   /* gold accent */
	--dq-white:       #ffffff;
	--dq-bg:          #ffffff;
	--dq-text:        #1a1a2e;
	--dq-text-muted:  #6b7280;
	--dq-border:      #e5e7eb;
	--dq-input-bg:    #EFEFEF;
	--dq-radius:      10px;
	--dq-radius-lg:   12px;
	--dq-shadow:      0 2px 12px rgba(13, 28, 61, .10);
	--dq-shadow-hover:0 6px 24px rgba(13, 28, 61, .18);
	--dq-transition:  .2s ease;
	--dq-max-width:   1520px;
}

/* ── Reset / Base ───────────────────────────────────────────── */
.dq-quiz *,
.dq-quiz *::before,
.dq-quiz *::after {
	box-sizing: border-box;
}

.dq-quiz {
	font-family: inherit;
	color: var(--dq-text);
	padding-top: 30px;
	position: relative;

}


.dq-header__title {
	font-size: 48px;
	font-weight: 600;
	line-height: 56px;
	color: var(--dq-blue);
	margin: 0 0 20px;
	text-transform: uppercase;
	letter-spacing: -0.5px;
	
}

.dq-header__title p { margin: 0; }

/* Per-step subtitles in header */
.dq-subtitles {
	margin-bottom: 20px;
}

.dq-subtitle {
	display: none;
	font-size: 18px;
	line-height: 26px;
	color: var(--dq-black);
	
}

.dq-subtitle.is-active {
	display: block;
}

.dq-subtitle p { margin: 0; }

.single-dealfin_quiz .bottom-mobile-menu {
	display: none;
}
/* ── Breadcrumb ─────────────────────────────────────────────── */
.dq-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	margin-bottom: 36px;
	border-radius: var(--dq-radius);
	overflow: hidden;
	border: none;
	position: relative;

}
.dq-breadcrumb__step {
	flex: 1 1 0;
	min-width: 80px;
	padding: 10px 20px 10px 0;
	background: transparent;
	border: none;
	border-right: 1px solid var(--dq-blue);
	font-size: 18px;
	font-weight: 500;
	color: #767676;
	cursor: default;
	transition: background var(--dq-transition), color var(--dq-transition);
	position: relative;
	text-align: center;
	border-radius: 0 50px 50px 0;
}
.dq-breadcrumb__step:not(:first-child) {
	margin-left: -20px;
}
.dq-breadcrumb__step.step-index-0 {
	z-index: 6;
} 
.dq-breadcrumb__step.step-index-1 {
	z-index: 5;
}
.dq-breadcrumb__step.step-index-2 {
	z-index: 4;
} 
.dq-breadcrumb__step.step-index-3 {
	z-index: 3;
} 
.dq-breadcrumb__step.step-index-4 {
	z-index: 2;
}
.dq-breadcrumb__step.step-index-5 {
	z-index: 1;
} 

/* Visited steps are clickable */
.dq-breadcrumb__step.is-visited {
	cursor: pointer;
	color: #767676;
	background-image: url(../../images/exclude.svg);
	background-repeat: no-repeat;
	background-position: left center;
	background-size: cover;
	position: relative;
}


/* Active step */
.dq-breadcrumb__step.is-active {
	/* background: var(--dq-navy); */
	color: var(--dq-blue);
	font-weight: 400;
	cursor: default;
	position: relative;
	

}
.dq-breadcrumb__step.is-visited:before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	background-image: url(../../images/exclude.svg);
	background-repeat: no-repeat;
	background-position: left center;
	background-size: cover;
	border-radius: 0 50px 50px 0;
	display: block;
	
} 
.dq-breadcrumb__step.is-active:before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: var(--dq-before-w, 0%);
	background-image: url(../../images/exclude.svg);
	background-repeat: no-repeat;
	background-position: left center;
	background-size: cover;
	transition: width var(--dq-before-dur, 0s);
	display: block;
    height: 100%;
    z-index: -1;
	border-radius: 0 50px 50px 0;
} 
.dq-breadcrumb__step.is-active {
	text-shadow: 0px 0px 2px #0000001f;
}


/* ── Questions above breadcrumb ─────────────────────────────── */
.dq-questions {
	margin-bottom: 20px;
}

.dq-question {
	display: none;
	font-size: 36px;
	font-weight: 700;
	color: var(--dq-blue);
	text-align: center;
	margin: 0;
	line-height: 44px;
	letter-spacing: -0.3px;
}

.dq-question.is-active {
	display: block;
}

.dq-question--form {
	font-size: clamp(1.125rem, 3vw, 1.375rem);
}

/* ── Steps ──────────────────────────────────────────────────── */
.dq-step {
	display: none;
}

.dq-step.is-active {
	display: block;
}

/* ── Answer cards grid ──────────────────────────────────────── */
.dq-answers {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin-bottom: 20px;
}



/* ── Single answer card ─────────────────────────────────────── */
.dq-answer {
	display: flex;
	flex-direction: column;
	border: 1px solid #0A1389;
	border-radius: 10px;
	overflow: hidden;
	cursor: pointer;
	text-align: left;
	padding: 0;
	position: relative;
	background: transparent;
}


.dq-answer:hover .dq-answer__img-wrap::after {
	background: linear-gradient(180deg, rgba(10, 19, 137, 0) 0%, #0A1389 100%);
}
/* .dq-answer:hover::after {
	background: linear-gradient(180deg, rgba(10, 19, 137, 0) 0%, #0A1389 100%);
} */
.dq-answer.is-selected {
	border-color: var(--dq-accent);
	/* box-shadow: 0 0 0 3px rgba(201,168,76,.35); */
}

/* Card image */
.dq-answer__img-wrap {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	/* overflow: hidden; */
	position: relative;
}
.dq-answer__img-wrap::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #FFFFFF 100%);
	width: 100%;
	height: 100%;
}

.dq-answer__img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .35s ease;
}



/* Card text area */
.dq-answer__content {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 0 15px 10px;
	text-align: center;
	position: relative;
	z-index: 1;
	background: rgba(255,255,255,0.8);
	width: 100%;
	height: 55px;

}
.dq-answer:hover .dq-answer__content {
	background: #0A1389;
}

.dq-answer__text {
	font-size: 18px;
	font-weight: 700;
	color: var(--dq-blue);
	line-height: 26px;
	position: absolute;
	top: 89%;
	left: 0;
	z-index: 2;
	width: 100%;
	text-align: center;
}

.no-subtext .dq-answer__text {
	top: 104%;
}
.dq-answer:hover .dq-answer__text {
	color: #fff;
}
.dq-answer__subtext {
	font-size: 14px;
	color: var(--dq-blue);
	line-height: 22px;
	font-weight: 400;
	padding: 0 4%;

}
.dq-answer:hover .dq-answer__subtext {
	color: #fff;
}
/* ── Fade-in animation ──────────────────────────────────────── */
@keyframes dqFadeIn {
	from { opacity: 0; transform: translateY(10px); }
	to   { opacity: 1; transform: translateY(0); }
}

.dq-fade-in {
	animation: dqFadeIn .3s ease forwards;
}


.dq-nav {
	/* margin-top: 8px; */
}

.dq-nav__back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: none;
	border: none;
	padding: 8px 0;
	font-size: .9375rem;
	font-weight: 500;
	color: var(--dq-text-muted);
	cursor: pointer;
	transition: color var(--dq-transition);
}

.dq-nav__back:hover {
	color: var(--dq-navy);
}


.dq-form__subtitle {
	text-align: center;
	color: var(--dq-text-muted);
	margin: -16px 0 28px;
	font-size: .9375rem;
}

.dq-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0 auto;
}
.wrapper-visible-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}
.dq-form  .row-input {
	width: 100%;
	max-width: 430px;
	position: relative;
}
.dq-form__row {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
}

.dq-form__label {
	font-size: 18px;
	font-weight: 400;
	color: #1C1C1C;
}

.dq-required {
	color: #e53e3e;
	margin-left: 2px;
}

.dq-form__input {
	width: 100%;
	
	padding: 10px 20px;
	border: 1px solid #0A1389;
	border-radius: 10px;
	background: #EFEFEF;
	font-size: 16px;
	color: #1C1C1C;
	transition: border-color var(--dq-transition), box-shadow var(--dq-transition);
	outline: none;
	appearance: none;
}

/* .dq-form__input:focus {
	border-color: var(--dq-navy);
	box-shadow: 0 0 0 3px rgba(13, 28, 61, .12);
} */

.dq-form__input::placeholder {
	color: #9ca3af;
}
.dq-form [placeholder]:focus::-webkit-input-placeholder {
	color: #9ca3af !important;
}
/* Field error states */
.dq-field--error .dq-form__input,
.dq-field--error .dq-form__select {
	border-color: #dc2626;
	box-shadow: 0 0 0 3px rgba(220, 38, 38, .12);
}

.dq-field__error {
	display: block;
	font-size: .8125rem;
	color: #dc2626;
	min-height: 1.2em;
	position: absolute;
	bottom: -15px;
	left: 20px;
}

/* intl-tel-input wrapper */
.iti {
	width: 100%;
}

.dq-form__input--phone {
	padding-left: 90px;
}
.dq-form__row  .iti__tel-input {
	font-family: 'Montserrat';
}

.dq-form__row .iti__country-container button {
	background: var(--dq-input-bg);
	border-radius: 10px 0 0 10px;
	border-right: 1px solid #0A1389;
	padding-right: 5px;
}
.dq-form__row .iti__flag {
	border-radius: 4px;
}
.dq-form__row .iti--allow-dropdown input.iti__tel-input {
	padding: 10px 20px 10px 105px !important;
	border: 1px solid #0A1389;
}
.dq-form__row .iti .iti__selected-dial-code {
	font-size: 16px;
	color: #1c1c1c;
}

/* Submit button */
.dq-form__submit {
	width: 100%;
	max-width: 564px;
	padding: 15px 24px;
	background: #0A1389;
	color: var(--dq-white);
	border: none;
	border-radius: var(--dq-radius);
	font-size: 23px;
	font-weight: 500;
	letter-spacing: -0.1px;
	cursor: pointer;
	transition: background var(--dq-transition), transform var(--dq-transition);
	margin: 20px auto 0;
}

.dq-form__submit:hover {
	background-color: var(--dq-blue-hover)

}

.dq-form__submit:active {
	transform: translateY(0);
}

.dq-form__submit:disabled {
	opacity: .6;
	cursor: not-allowed;
	transform: none;
}

/* Form message */
.dq-form__message {
	font-size: .9375rem;
	text-align: center;
	min-height: 1.4em;
}

.dq-form__message.is-success {
	color: #16a34a;
	font-weight: 600;
}

.dq-form__message.is-error {
	color: #dc2626;
}

/* ── Footer stats ───────────────────────────────────────────── */
.dq-footer {
	padding: 30px 0;
}


.dq-footer__title {
	font-weight: 700;
	font-size: 20px;
	color: #1C1C1C;
	text-transform: uppercase;
	margin: 0 0 20px;
	text-align: center;
}

.dq-footer__stats {
	display: flex;
	justify-content: space-between;
	gap: 24px;
}





.dq-footer__stat {
	display: flex;
	align-items: center;
	gap: 17px;
}

.dq-footer__stat-icon {
	width: 20px;
	height: 20px;
	object-fit: contain;
	
}

.dq-footer__stat-value {
	font-weight: 600;
}

.dq-footer__stat-label {
	font-size: 18px;
	color: #1C1C1C;
	line-height: 1.4;
	margin: 0;
}


body.dq-single-page {
	margin: 0;
	padding: 0;
	background: var(--dq-bg);
}

.dq-single-main {
	background-image: url(../../images/background-quiz-1.webp);
	background-size: cover;
	background-position: right top;
	background-repeat: no-repeat;

}
.modal-thank-you {
	display: none;
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
}
.modal-thank-you.show-modal {
	display: flex;
	align-items: flex-start;
    justify-content: flex-end;
	background: rgba(0,0,0,0.3);
	z-index: 1000;

}

.modal-container {
	width: 100%;
	max-width: 516px;
	padding: 44px 0;
	background: #28A745;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 10px;
	border-radius: 10px;
	gap: 10px;
	position: relative;
	padding: 34px 0;
	margin: 3% 3% 0 0;

}
.modal-thank-you.modal-error .modal-container{
	background: #DC3545;
}
.modal-container .modal-title {
	margin:0 0 10px;
	font-size: 20px;
	line-height: 28px;
	color: #fff;
	text-align: center;
	text-transform: uppercase;

}
.modal-container .modal-message {
	font-size: 14px;
	line-height: 20px;
	color: #fff;
	text-align: center;
	margin: 0 0 10px;
}
.modal-container  .modal-close {
	width: 14px;
	height: 14px;
	display: block;
	position: absolute;
	right: 10px;
	top: 10px;
	background: transparent;
    border: none;
	cursor: pointer;
	padding: 0;
}
.modal-container  .icon-row {
	text-align: center;
	font-size: 36px;
	margin-bottom: 10px;
}
@media (max-width: 1800px) {
	.dq-form .row-input {
		max-width: 340px;
	}
}
@media (max-width: 1500px) {
	.dq-form .row-input {
		max-width: 300px;
	}
	 .item-header-quiz .text .row-1 {
		font-weight: 600;
	}
	
}
@media (max-width: 1439px) {
	.dq-single-main {
		min-height: calc(100vh - 265px);
	}
	.dq-header__title {
		font-size: 32px;
		line-height: 38px;
		letter-spacing: -0.5px;
	}
	.dq-subtitle {
		font-size: 15px;
		line-height: 20px;
	}
	.dq-question {
		font-size: 28px;
		line-height: 34px;
		letter-spacing: -0.3px;
	}
	.dq-answer__text {
		font-size: 15px;
		line-height: 20px;
		top: 88%;
	}
	.dq-answer__subtext {
		font-size: 12px;
		line-height: 14px;
	}
	.dq-footer__title {
		font-size: 18px;
		line-height: 22px;
	}
	.dq-footer__stat-label {
		font-size: 15px;
		line-height: 20px;
	}
	.dq-footer__stats {
		gap: 20px;
		flex-wrap: wrap;
	}
	.no-subtext .dq-answer__text {
 	   top: 104%;
	}
	.dq-answer__content {
		height: 45px;
	}
	
}
@media (max-width: 1200px) {
	.dq-form .row-input {
		max-width: 50%;
	}
	.wrapper-visible-fields {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 1100px) {
	.dq-footer__stat {
		width: calc(50% - 12px);
	}
}
@media (max-width: 1024px) {
	.dq-form .row-input {
		max-width: 65%;
	}
	.dq-breadcrumb__step {
		font-size: 15px;
	}
	.dq-form__submit {
		font-size: 20px;
	}
	.dq-single-main {
        min-height: calc(100vh - 265px);
    }	
}


@media (max-width: 992px) {
	.dq-subtitles,
	.dq-header__title {
		display: none;
	}
	.dq-answer__subtext {
		padding: 0;
		top:87%;
	}
}
@media (max-width: 900px) {
	.dq-answer__text {
		top: 80%;
		width: 100%;
		text-align: center;
		left: 0;
		transform: none;
	}
	.dq-answer__subtext {
		padding: 0;
	}
}


@media (max-width: 768px) {
	.dq-answers {
		grid-template-columns: repeat(2, 1fr);
	}
	.dq-answer__text {
		top: 90%;
	}
	.dq-form__row {
		flex-direction: column;
		align-items: flex-start;
		gap: 5px;
	}
	.dq-form .row-input {
		max-width: 100%;
	}
	.dq-single-main {
        min-height: calc(100vh - 489px);
    }	
	.single-dealfin_quiz .footer-quiz {
        padding-bottom: 40px;
    }
	.no-subtext .dq-answer__text {
 	   top: 102%;
	}
}

@media (max-width: 600px) {
	.no-subtext .dq-answer__text {
 	   top: 105%;
	}
}
@media (max-width: 575px) {
	.dq-answer__text {
		top: 87%;
	}
	.dq-footer__stat {
		width: 100%;
	}
	.dq-header__title {
        font-size: 28px;
        line-height: 32px; 
	}
}
@media (max-width: 540px) {
	.dq-breadcrumb {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.dq-breadcrumb__step {
		min-width: 72px;
		padding: 10px 12px;
	}

	.dq-breadcrumb__step::after {
		display: none;
	}
}
@media (max-width: 480px) {
	.dq-answers {
		grid-template-columns: 1fr;
	}
	.dq-answer__text {
		top: 90%;
	}
	.dq-answer__content {
		background: rgba(255, 255, 255, 1);
	}
	.dq-answer__img-wrap {
		height: calc(100% - 44px);
		margin-bottom: -1px;
	}
	.no-subtext .dq-answer__text {
 	   top: 102%;
	}
}
@media (max-width: 400px) {
	.dq-footer__stats {
		grid-template-columns: 1fr;
	}
	.no-subtext .dq-answer__text {
 	   top: 104%;
	}
	.dq-question {
		font-size: 25px;
		line-height: 30px;
	}
	.dq-breadcrumb {
		margin-bottom: 20px;
	}
	.wrapper-visible-fields {
		gap: 14px;
	}
}
@media (max-width: 340px) {
	.dq-breadcrumb__step {
		font-size: 12px;
	}
}