/* HFHG Navratri Offer — scoped under #hno so theme button/input styles can't leak in. */

#hno {
	--hno-brand: #2e314b;
	--hno-cta: #ff9b00;
	--hno-cta-hover: #f08c00;
	--hno-festive: linear-gradient(90deg, #8a1538 0%, #c2410c 100%);
	--hno-error: #d93025;
	--hno-border: #dedede;
	font-family: inherit;
}

#hno [hidden] { display: none !important; }

html.hno-lock { overflow: hidden; }
html.hno-has-strip body { padding-bottom: var(--hno-strip-h, 0px); }

/* ── Modal ─────────────────────────────────────────── */

#hno .hno-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

#hno .hno-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 22, 36, .65);
	opacity: 0;
	transition: opacity .25s ease;
}

#hno .hno-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 720px;
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	overflow-y: auto;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
	opacity: 0;
	transform: translateY(12px) scale(.98);
	transition: opacity .25s ease, transform .25s ease;
}

#hno .hno-modal--form .hno-modal__dialog { max-width: 440px; }

#hno .hno-modal.is-open .hno-modal__backdrop,
#hno .hno-modal.is-open .hno-modal__dialog { opacity: 1; transform: none; }

#hno .hno-close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	color: var(--hno-brand);
	box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
	cursor: pointer;
}
#hno .hno-close:hover { background: #fff; color: #000; }

/* ── Banner ────────────────────────────────────────── */

#hno .hno-banner {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	line-height: 0;
}
#hno .hno-banner img {
	display: block;
	width: 100%;
	height: auto;
	max-height: calc(100dvh - 32px);
	object-fit: contain;
}
img.td-iconn {
    max-width: 280px;
    position: absolute;
    bottom: 15px;
    right: 20px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}
#hno .hno-banner:focus-visible { outline: 3px solid var(--hno-cta); outline-offset: -3px; }

/* ── Form ──────────────────────────────────────────── */

#hno .hno-form { padding: 32px 24px 24px; display: flex; flex-direction: column; gap: 14px; }

#hno .hno-form__title {
	margin: 0 0 4px;
	padding-right: 32px;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--hno-brand);
}

#hno .hno-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

#hno .hno-field { display: flex; flex-direction: column; gap: 6px; }
#hno .hno-field label { font-size: .875rem; font-weight: 600; line-height: 1.2; color: var(--hno-brand); }
#hno .hno-field label span { color: var(--hno-error); }

#hno .hno-field input {
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 14px;
	border: 1.5px solid var(--hno-border);
	border-radius: 10px;
	background: #fff;
	font: inherit;
	font-size: 1rem;
	color: #1f2133;
	box-shadow: none;
	transition: border-color .2s, box-shadow .2s;
}
#hno .hno-field input::placeholder { color: #9a9cab; }
#hno .hno-field input:focus { border-color: var(--hno-brand); box-shadow: 0 0 0 3px rgba(46, 49, 75, .12); outline: 0; }

#hno .hno-phone { display: flex; }
#hno .hno-phone__code {
	display: flex;
	align-items: center;
	padding: 0 12px;
	border: 1.5px solid var(--hno-border);
	border-right: 0;
	border-radius: 10px 0 0 10px;
	background: #f1f3fa;
	font-weight: 600;
	color: var(--hno-brand);
}
#hno .hno-phone input { border-radius: 0 10px 10px 0; }

#hno .hno-field.has-error input,
#hno .hno-field.has-error .hno-phone__code { border-color: var(--hno-error); }
#hno .hno-field.has-error input:focus { border-color: var(--hno-error); box-shadow: 0 0 0 3px rgba(217, 48, 37, .12); }

#hno .hno-error { font-size: 13px; line-height: 1.3; color: var(--hno-error); }
#hno .hno-error:empty { display: none; }
#hno .hno-error--global { margin: 0; text-align: center; }

#hno .hno-form__note {
	margin: 2px 0 0;
	font-size: .875rem;
	font-weight: 600;
	text-align: center;
	color: #8a1538;
}

#hno .hno-submit {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 52px;
	padding: 0 20px;
	border: 0;
	border-radius: 10px;
	background: var(--hno-cta);
	color: #fff;
	font: inherit;
	font-size: 1.05rem;
	font-weight: 700;
	white-space: normal;
	box-shadow: 0 6px 16px rgba(255, 155, 0, .3);
	cursor: pointer;
	transition: background-color .2s, transform .1s;
}
#hno .hno-submit:hover,
#hno .hno-submit:focus { background: var(--hno-cta-hover); color: #fff; }
#hno .hno-submit:active { transform: translateY(1px); }
#hno .hno-submit:disabled { cursor: default; opacity: .85; box-shadow: none; }
#hno .hno-submit.is-loading .hno-submit__text { visibility: hidden; }
#hno .hno-submit.is-loading::after {
	content: "";
	position: absolute;
	width: 22px;
	height: 22px;
	border: 2.5px solid rgba(255, 255, 255, .45);
	border-top-color: #fff;
	border-radius: 50%;
	animation: hno-spin .7s linear infinite;
}
@keyframes hno-spin { to { transform: rotate(360deg); } }

/* ── Bottom strip ──────────────────────────────────── */

#hno .hno-strip {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9990;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 10px 48px 10px 16px;
	padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
	background: var(--hno-festive);
	color: #fff;
	box-shadow: 0 -4px 16px rgba(0, 0, 0, .15);
}

#hno .hno-strip__text { margin: 0; font-size: .95rem; line-height: 1.35; color: #fff; }
#hno .hno-strip__text strong { color: #ffd23f; font-weight: 700; }

#hno .hno-strip__cta {
	flex: 0 0 auto;
	padding: 9px 18px;
	border: 0;
	border-radius: 999px;
	background: #ffd23f;
	color: #3b0a1a;
	font: inherit;
	font-size: .9rem;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .2s, transform .1s;
}
#hno .hno-strip__cta:hover,
#hno .hno-strip__cta:focus { background: #fff; color: #3b0a1a; }
#hno .hno-strip__cta:active { transform: translateY(1px); }

#hno .hno-strip__close {
	position: absolute;
	top: 50%;
	right: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .15);
	color: #fff;
	transform: translateY(-50%);
	cursor: pointer;
}
#hno .hno-strip__close:hover,
#hno .hno-strip__close:focus { background: rgba(255, 255, 255, .3); color: #fff; }

@media (max-width: 767px) {
	img.td-iconn {
		max-width: 300px;
		bottom: 30px;
		right: 60px;
	}
	#hno .hno-modal__dialog { max-width: 420px; }
	#hno .hno-form { padding: 28px 18px 20px; }
	#hno .hno-form__title { font-size: 1.3rem; }

	#hno .hno-strip { gap: 10px; padding: 8px 44px 8px 12px; padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)); justify-content: space-between; }
	#hno .hno-strip__text { font-size: .78rem; }
	#hno .hno-strip__cta { padding: 8px 12px; font-size: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
	#hno .hno-modal__backdrop,
	#hno .hno-modal__dialog { transition: none; }
}
