/* Houzez OTP Login — front end */

.hol-wrap {
	--hol-primary: #ff5b00;
	--hol-ink: #131416;
	--hol-muted: #6b6f76;
	--hol-line: #e3e5e9;
	--hol-surface: #ffffff;
	--hol-tint: #fff3ec;
	--hol-danger: #c0341d;
	--hol-ok: #1f7a4d;

	font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	max-width: 440px;
	margin: 0 auto;
	color: var(--hol-ink);
	-webkit-font-smoothing: antialiased;
}

.hol-wrap *,
.hol-wrap *::before,
.hol-wrap *::after {
	box-sizing: border-box;
}

.hol-card {
	background: var(--hol-surface);
	border: 1px solid var(--hol-line);
	border-radius: 14px;
	padding: 32px 28px 28px;
	position: relative;
}

.hol-card::before {
	content: "";
	position: absolute;
	inset: -1px -1px auto;
	height: 4px;
	border-radius: 14px 14px 0 0;
	background: var(--hol-primary);
}

.hol-step {
	display: none;
}

.hol-step.is-active {
	display: block;
}

.hol-title {
	font-size: 25px;
	line-height: 1.22;
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 0 0 6px;
	color: var(--hol-ink);
}

.hol-sub {
	font-size: 14.5px;
	line-height: 1.5;
	color: var(--hol-muted);
	margin: 0 0 22px;
}

.hol-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin: 0 0 7px;
	color: var(--hol-ink);
}

.hol-input {
	width: 100%;
	height: 52px;
	padding: 0 15px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 500;
	color: var(--hol-ink);
	background: #fff;
	border: 1.5px solid var(--hol-line);
	border-radius: 10px;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	margin-bottom: 16px;
}

.hol-input:focus {
	border-color: var(--hol-primary);
	box-shadow: 0 0 0 3px rgba(255, 91, 0, 0.16);
}

/* Placeholder text stays black, as requested. */
.hol-wrap input::placeholder {
	color: #000;
	opacity: 1;
	font-weight: 500;
}

.hol-wrap input::-webkit-input-placeholder {
	color: #000;
	opacity: 1;
}

.hol-wrap input::-moz-placeholder {
	color: #000;
	opacity: 1;
}

.hol-wrap input:-ms-input-placeholder {
	color: #000;
	opacity: 1;
}

/* Phone field with a fixed +91 so nobody picks the wrong country. */
.hol-phone-field {
	display: flex;
	align-items: stretch;
	border: 1.5px solid var(--hol-line);
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 20px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hol-phone-field:focus-within {
	border-color: var(--hol-primary);
	box-shadow: 0 0 0 3px rgba(255, 91, 0, 0.16);
}

.hol-cc {
	display: flex;
	align-items: center;
	padding: 0 14px;
	font-size: 16px;
	font-weight: 700;
	color: var(--hol-ink);
	background: var(--hol-tint);
	border-right: 1.5px solid var(--hol-line);
	letter-spacing: 0.01em;
}

.hol-input--phone {
	border: 0;
	border-radius: 0;
	margin: 0;
	letter-spacing: 0.06em;
}

.hol-input--phone:focus {
	box-shadow: none;
}

.hol-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 52px;
	padding: 0 24px;
	font-family: inherit;
	font-size: 15.5px;
	font-weight: 700;
	color: #fff;
	background: var(--hol-primary);
	border: 1.5px solid var(--hol-primary);
	border-radius: 10px;
	cursor: pointer;
	text-decoration: none;
	transition: filter 0.15s ease;
}

.hol-btn:hover {
	filter: brightness(0.93);
	color: #fff;
}

.hol-btn:focus-visible {
	outline: 3px solid rgba(255, 91, 0, 0.4);
	outline-offset: 2px;
}

.hol-btn[disabled] {
	opacity: 0.55;
	cursor: not-allowed;
	filter: none;
}

.hol-btn--block {
	width: 100%;
}

.hol-btn--ghost {
	background: #fff;
	color: var(--hol-ink);
	border-color: var(--hol-line);
}

.hol-btn--ghost:hover {
	color: var(--hol-ink);
	border-color: var(--hol-ink);
}

.hol-back,
.hol-resend,
.hol-skip {
	background: none;
	border: 0;
	padding: 0;
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--hol-primary);
	cursor: pointer;
}

.hol-back {
	margin-bottom: 14px;
	color: var(--hol-muted);
}

.hol-back:hover {
	color: var(--hol-ink);
}

.hol-resend,
.hol-skip {
	display: block;
	width: 100%;
	text-align: center;
	margin-top: 16px;
}

.hol-resend[disabled] {
	color: var(--hol-muted);
	cursor: default;
}

/* Code boxes */
.hol-otp-boxes {
	display: flex;
	gap: 9px;
	margin: 4px 0 22px;
}

.hol-otp-boxes input {
	flex: 1 1 0;
	min-width: 0;
	height: 58px;
	text-align: center;
	font-family: inherit;
	font-size: 22px;
	font-weight: 700;
	color: var(--hol-ink);
	background: #fff;
	border: 1.5px solid var(--hol-line);
	border-radius: 10px;
	outline: none;
	transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.hol-otp-boxes input:focus {
	border-color: var(--hol-primary);
	box-shadow: 0 0 0 3px rgba(255, 91, 0, 0.16);
}

.hol-otp-boxes input.is-filled {
	border-color: var(--hol-primary);
	background: var(--hol-tint);
}

.hol-sent-to {
	margin-bottom: 10px;
}

.hol-known {
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.45;
	margin: 0 0 18px;
	padding: 11px 13px;
	border-radius: 9px;
	background: var(--hol-tint);
	border-left: 3px solid var(--hol-primary);
	color: var(--hol-ink);
	display: none;
}

.hol-known.is-visible {
	display: block;
}

.hol-msg {
	font-size: 14px;
	line-height: 1.45;
	font-weight: 600;
	margin: 16px 0 0;
	display: none;
}

.hol-msg.is-error {
	display: block;
	color: var(--hol-danger);
}

.hol-msg.is-ok {
	display: block;
	color: var(--hol-ok);
}

.hol-msg.is-info {
	display: block;
	color: var(--hol-muted);
}

.hol-fine {
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--hol-muted);
	margin: 16px 0 0;
}

.hol-fine a {
	color: var(--hol-primary);
}

.hol-signed-label {
	font-size: 13px;
	font-weight: 700;
	color: var(--hol-primary);
	margin: 0 0 4px;
}

.hol-signed-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 8px;
}

.hol-testcode {
	margin: 0 0 16px;
	padding: 11px 13px;
	border: 1px dashed var(--hol-primary);
	border-radius: 9px;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--hol-ink);
	background: var(--hol-tint);
}

.hol-is-busy {
	pointer-events: none;
	opacity: 0.7;
}

@media (max-width: 480px) {
	.hol-card {
		padding: 26px 20px 22px;
	}

	.hol-title {
		font-size: 22px;
	}

	.hol-otp-boxes {
		gap: 7px;
	}

	.hol-otp-boxes input {
		height: 52px;
		font-size: 19px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hol-wrap * {
		transition: none !important;
	}
}

/* ---------------------------------------------------------------------
 * Account icon and avatar menu
 * ------------------------------------------------------------------ */

.hol-account {
	--hol-primary: #ff5b00;
	--hol-avatar: 40px;
	font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	position: relative;
	display: inline-block;
	line-height: 0;
}

.hol-account__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--hol-avatar);
	height: var(--hol-avatar);
	padding: 0;
	border: 1.5px solid #e3e5e9;
	border-radius: 50%;
	background: #fff;
	color: #131416;
	cursor: pointer;
	overflow: hidden;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.hol-account__btn:hover {
	border-color: var(--hol-primary);
	color: var(--hol-primary);
}

.hol-account__btn:focus-visible {
	outline: 3px solid rgba(255, 91, 0, 0.4);
	outline-offset: 2px;
}

.hol-account__btn--avatar {
	border-color: transparent;
	padding: 0;
}

.hol-account__btn--avatar:hover {
	border-color: var(--hol-primary);
}

.hol-avatar-svg,
.hol-avatar-svg svg,
.hol-avatar-img {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
}

/* The menu. Hover on pointer devices, tap elsewhere. */
.hol-account__menu {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	z-index: 9999;
	width: 248px;
	padding: 8px;
	background: #fff;
	border: 1px solid #e3e5e9;
	border-radius: 12px;
	box-shadow: 0 14px 34px rgba(19, 20, 22, 0.14);
	line-height: 1.4;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s;
}

/* Keeps the menu reachable while the pointer crosses the gap. */
.hol-account__menu::before {
	content: "";
	position: absolute;
	top: -12px;
	right: 0;
	left: 0;
	height: 12px;
}

.hol-account--in.is-open .hol-account__menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

@media (hover: hover) {
	.hol-account--in:hover .hol-account__menu,
	.hol-account--in:focus-within .hol-account__menu {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}
}

.hol-account__head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 10px 12px;
	border-bottom: 1px solid #eef0f3;
	margin-bottom: 6px;
}

.hol-account__avatar {
	flex: 0 0 38px;
	width: 38px;
	height: 38px;
	line-height: 0;
}

.hol-account__id {
	display: block;
	min-width: 0;
}

.hol-account__id strong {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: #131416;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hol-account__id small {
	display: block;
	font-size: 12.5px;
	color: #6b6f76;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hol-account__link {
	display: block;
	padding: 9px 10px;
	font-size: 14px;
	font-weight: 600;
	color: #131416;
	text-decoration: none;
	border-radius: 8px;
	transition: background 0.12s ease, color 0.12s ease;
}

.hol-account__link:hover,
.hol-account__link:focus {
	background: #fff3ec;
	color: var(--hol-primary);
}

.hol-account__link--out {
	margin-top: 4px;
	border-top: 1px solid #eef0f3;
	border-radius: 0 0 8px 8px;
	color: #6b6f76;
}

/* ---------------------------------------------------------------------
 * Popup
 * ------------------------------------------------------------------ */

body.hol-modal-open {
	overflow: hidden;
}

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

.hol-modal[hidden] {
	display: none;
}

.hol-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(19, 20, 22, 0.55);
	opacity: 0;
	transition: opacity 0.18s ease;
}

.hol-modal.is-open .hol-modal__backdrop {
	opacity: 1;
}

.hol-modal__panel {
	position: relative;
	width: 100%;
	max-width: 440px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 24px 60px rgba(19, 20, 22, 0.28);
	opacity: 0;
	transform: translateY(10px) scale(0.985);
	transition: opacity 0.18s ease, transform 0.18s ease;
}

.hol-modal.is-open .hol-modal__panel {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.hol-modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f4f5f7;
	color: #6b6f76;
	cursor: pointer;
	transition: background 0.12s ease, color 0.12s ease;
}

.hol-modal__close:hover {
	background: #fff3ec;
	color: var(--hol-primary);
}

.hol-wrap--modal {
	max-width: none;
}

.hol-wrap--modal .hol-card {
	border: 0;
	border-radius: 14px;
	padding-right: 52px;
}

.hol-wrap--modal .hol-card::before {
	inset: 0 0 auto;
}

@media (max-width: 480px) {
	.hol-modal {
		padding: 0;
		align-items: flex-end;
	}

	.hol-modal__panel {
		max-width: none;
		max-height: 92vh;
		border-radius: 16px 16px 0 0;
		transform: translateY(24px);
	}

	.hol-account__menu {
		width: 230px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hol-modal__panel,
	.hol-modal__backdrop,
	.hol-account__menu {
		transition: none;
	}
}
