/* ==========================================================================
   Rayan hair consultation form — scoped styles
   Design: light grey card (#d5d5d5) + navy (#121b44) accents.
   Everything is scoped to .rhf so the host theme is never touched.
   ========================================================================== */

@font-face {
	font-family: 'Vazirmatn';
	src: url('fonts/Vazirmatn-Regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Vazirmatn';
	src: url('fonts/Vazirmatn-Medium.woff2') format('woff2');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Vazirmatn';
	src: url('fonts/Vazirmatn-SemiBold.woff2') format('woff2');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Vazirmatn';
	src: url('fonts/Vazirmatn-Bold.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

.rhf {
	/* Client palette (sent 2026-10-29): gold #C69C6D, navy #121B44, charcoal #2B2B2B, white #FFF.
	   Kept here as named values only — the form's look is unchanged. If any surface is
	   ever meant to move to gold/charcoal, it is a one-line swap to these vars. */
	--rhf-gold: #c69c6d;
	--rhf-charcoal: #2b2b2b;
	--rhf-white: #ffffff;
	--rhf-navy: #121b44;
	--rhf-navy-dark: #0f1b42;
	--rhf-navy-hover: #1a2760;
	--rhf-card: #d5d5d5;
	--rhf-ink: #112337;
	--rhf-muted: #5b6472;
	--rhf-line: #b9c0cb;
	--rhf-field: rgba(255, 255, 255, 0.55);
	--rhf-font: 'Pelak', 'Vazirmatn', 'IRANSansX', Tahoma, sans-serif;
	--rhf-display: 'Ray', 'Pelak', 'Vazirmatn', 'IRANSansX', Tahoma, sans-serif;

	box-sizing: border-box;
	direction: rtl;
	padding: 8px 0 16px;
	color: var(--rhf-ink);
	font-family: var(--rhf-font);
	font-size: 14px;
	line-height: 1.6;
	text-align: right;
	container-type: inline-size;
}

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

.rhf p,
.rhf h2,
.rhf h3,
.rhf span,
.rhf label,
.rhf td,
.rhf th,
.rhf a,
.rhf button {
	font-family: var(--rhf-font);
}

.rhf-card {
	position: relative;
	width: 100%;
	max-width: min(100%, 1080px);
	min-height: 560px;
	margin: 0 auto;
	padding: 22px 24px;
	background: var(--rhf-card);
	border-radius: 20px;
	box-shadow: 0 12px 36px rgba(18, 27, 68, 0.10);
	direction: rtl;
	overflow: hidden;
}

.rhf-main {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	gap: 24px;
	min-height: 516px;
}

.rhf-form {
	flex: 0 0 330px;
	width: 330px;
	max-width: 100%;
	display: flex;
	flex-direction: column;
}

/* ------------------------------------------------------------------ heading */

.rhf-title {
	margin: 0;
	color: var(--rhf-ink);
	font-family: var(--rhf-display);
	font-size: 26px;
	font-weight: 600;
	line-height: 1.5;
	text-align: center;
}

.rhf-sub {
	margin: 2px 0 10px;
	color: var(--rhf-muted);
	font-size: 12.5px;
	font-weight: 400;
	text-align: center;
}

/* ----------------------------------------------------------------- progress */

.rhf-progress {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	height: 20px;
	margin: 0 0 16px;
	padding: 0 3px;
}

.rhf-progress[hidden] {
	display: none;
}

.rhf-progress::before {
	content: '';
	position: absolute;
	top: 9px;
	right: 0;
	left: 0;
	height: 2px;
	background: rgba(18, 27, 68, 0.32);
}

.rhf-track {
	position: relative;
	z-index: 1;
	display: block;
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	border: 2px solid var(--rhf-navy);
	border-radius: 50%;
	background: #f2f2f2;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.rhf-track.is-completed {
	background: var(--rhf-navy);
	border-color: var(--rhf-navy);
}

.rhf-track.is-current::after {
	content: '';
	position: absolute;
	top: 2px;
	right: 3px;
	width: 8px;
	height: 4px;
	border-left: 2px solid var(--rhf-navy);
	border-bottom: 2px solid var(--rhf-navy);
	transform: rotate(-45deg);
	transform-origin: center;
}

.rhf-track.is-current {
	background: #f2f2f2;
}

/* --------------------------------------------------------------------- body */

.rhf-body {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	flex: 1 1 auto;
	min-height: 0;
}

.rhf-body--center {
	justify-content: center;
}

.rhf-group {
	margin-bottom: 13px;
}

.rhf-group:last-child {
	margin-bottom: 0;
}

.rhf-label,
.rhf-group > label {
	display: block;
	margin: 0 0 8px;
	color: var(--rhf-ink);
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.6;
}

.rhf-req::after {
	content: '*';
	margin-right: 3px;
	color: #b3261e;
	font-weight: 700;
}

/* ------------------------------------------------------------------ options */

.rhf-options {
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.rhf-options--row {
	flex-direction: row;
	gap: 14px;
}

.rhf-options--row .rhf-opt {
	flex: 1 1 0;
}

.rhf-opt {
	position: relative;
	display: flex;
	align-items: center;
	gap: 9px;
	min-height: 26px;
	color: #2a3242;
	font-size: 13.5px;
	line-height: 1.5;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.rhf-opt input {
	position: absolute;
	top: 0;
	right: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
	pointer-events: none;
}

.rhf-dot {
	position: relative;
	display: block;
	width: 19px;
	height: 19px;
	flex: 0 0 19px;
	border: 1.6px solid #8a93a3;
	border-radius: 50%;
	background: #f5f5f5;
	transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.rhf-opt--rect .rhf-dot {
	border-radius: 5px;
}

.rhf-opt:hover .rhf-dot,
.rhf-opt:focus-within .rhf-dot {
	border-color: var(--rhf-navy);
}

.rhf-opt input:checked + .rhf-dot {
	border-color: var(--rhf-navy);
	background: var(--rhf-navy);
	transform: scale(1.04);
}

.rhf-opt input:focus-visible + .rhf-dot {
	outline: 3px solid rgba(18, 27, 68, 0.22);
	outline-offset: 2px;
}

.rhf-text {
	display: block;
	flex: 1 1 auto;
}

/* ------------------------------------------------------------------ genders */

.rhf-genders {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	gap: 16px;
	margin-top: 4px;
}

.rhf-gender {
	position: relative;
	display: block;
	flex: 1 1 0;
	max-width: 152px;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.rhf-gender input {
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	z-index: 2;
	cursor: pointer;
}

.rhf-gender-box {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 150px;
	padding: 14px;
	border: 2px solid #e2e8f0;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.55);
	transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.rhf-gender-box img {
	display: block;
	width: 112px;
	height: 112px;
	max-width: 100%;
	object-fit: contain;
	opacity: 0.66;
	filter: grayscale(100%);
	transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}

.rhf-gender:hover .rhf-gender-box,
.rhf-gender:focus-within .rhf-gender-box {
	border-color: var(--rhf-navy);
	background: #fff;
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(18, 27, 68, 0.10);
}

.rhf-gender:hover .rhf-gender-box img,
.rhf-gender:focus-within .rhf-gender-box img {
	opacity: 1;
	filter: brightness(0) saturate(100%) invert(8%) sepia(89%) saturate(5000%) hue-rotate(220deg) brightness(90%) contrast(110%);
}

.rhf-gender input:checked + .rhf-gender-box {
	border-color: var(--rhf-navy-dark);
	background: #fff;
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(14, 45, 120, 0.22);
}

.rhf-gender input:checked + .rhf-gender-box img {
	opacity: 1;
	filter: brightness(0) saturate(100%) invert(8%) sepia(89%) saturate(5000%) hue-rotate(220deg) brightness(90%) contrast(110%);
	transform: scale(1.04);
}

.rhf-gender input:focus-visible + .rhf-gender-box {
	outline: 3px solid rgba(18, 27, 68, 0.22);
	outline-offset: 3px;
}

/* -------------------------------------------------------------------- areas */

.rhf-areas {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 9px;
}

.rhf-area {
	position: relative;
	display: block;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.rhf-area input {
	position: absolute;
	top: 0;
	right: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
	pointer-events: none;
}

.rhf-area-box {
	display: block;
	overflow: hidden;
	border: 3px solid transparent;
	border-radius: 12px;
	background: #fff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.rhf-area-box img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.rhf-area:hover .rhf-area-box {
	border-color: #98a1b1;
	transform: translateY(-2px);
}

.rhf-area input:checked + .rhf-area-box {
	border-color: var(--rhf-navy);
	box-shadow: 0 0 0 2px rgba(18, 27, 68, 0.16);
}

.rhf-area input:focus-visible + .rhf-area-box {
	outline: 3px solid rgba(18, 27, 68, 0.22);
	outline-offset: 2px;
}

/* -------------------------------------------------------------------- banks */

.rhf-banks {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.rhf-bank {
	position: relative;
	display: block;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.rhf-bank input {
	position: absolute;
	top: 0;
	right: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
	pointer-events: none;
}

.rhf-bank-box {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 12px;
	border: 2px solid transparent;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.55);
	transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.rhf-bank-box img {
	display: block;
	width: 104px;
	height: 104px;
	flex: 0 0 104px;
	object-fit: cover;
	border-radius: 10px;
	background: #fff;
}

.rhf-bank-text {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: center;
	gap: 1px;
	color: var(--rhf-ink);
	font-size: 13.5px;
	line-height: 1.6;
	text-align: center;
}

.rhf-bank-text small {
	color: var(--rhf-muted);
	font-size: 12px;
}

.rhf-bank:hover .rhf-bank-box {
	border-color: #98a1b1;
	background: #fff;
}

.rhf-bank input:checked + .rhf-bank-box {
	border-color: var(--rhf-navy);
	background: #fff;
	box-shadow: 0 6px 18px rgba(18, 27, 68, 0.12);
}

.rhf-bank input:focus-visible + .rhf-bank-box {
	outline: 3px solid rgba(18, 27, 68, 0.22);
	outline-offset: 2px;
}

/* ------------------------------------------------------------------- inputs */

.rhf-input {
	display: block;
	width: 100%;
	height: 43px;
	margin: 0;
	padding: 0 13px;
	border: 1px solid var(--rhf-line);
	border-radius: 10px;
	background: var(--rhf-field);
	color: var(--rhf-ink);
	font-family: var(--rhf-font);
	font-size: 13.5px;
	line-height: 1.5;
	text-align: right;
	transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.rhf-input::placeholder {
	color: #8b94a3;
}

.rhf-input:focus {
	border-color: var(--rhf-navy);
	background: #fff;
	outline: none;
	box-shadow: 0 0 0 3px rgba(18, 27, 68, 0.10);
}

.rhf-input[dir='ltr'],
.rhf-input--ltr {
	direction: ltr;
	text-align: left;
}

.rhf-otp {
	max-width: 220px;
	margin: 0 auto;
	text-align: center;
	direction: ltr;
	letter-spacing: 8px;
	font-size: 18px;
	font-weight: 700;
}

/* -------------------------------------------------------------------- notes */

.rhf-note {
	margin: 8px 0 0;
	color: var(--rhf-ink);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.9;
	text-align: center;
}

.rhf-note--ok {
	color: var(--rhf-navy);
	font-weight: 500;
}

.rhf-copy {
	margin: 0 0 11px;
	color: #3b4453;
	font-size: 12.5px;
	line-height: 1.9;
	text-align: justify;
}

.rhf-result-title {
	display: block;
	margin: 0 0 8px;
	color: var(--rhf-ink);
	font-family: var(--rhf-display);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.6;
	text-align: center;
}

.rhf-greeting {
	margin: 0 0 10px;
	color: var(--rhf-navy);
	font-family: var(--rhf-display);
	font-size: 15px;
	font-weight: 600;
	text-align: center;
}

/* ------------------------------------------------------------------- tables */

.rhf-table {
	width: 100%;
	margin: 0 0 10px;
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	border-radius: 10px;
	font-size: 12px;
	line-height: 1.6;
}

.rhf-table td {
	padding: 6px 9px;
	background: #e9e9e9;
}

.rhf-table tr:nth-child(even) td {
	background: #dedede;
}

.rhf-table td:first-child {
	width: 52%;
	color: #4a5364;
	text-align: right;
}

.rhf-table td:last-child {
	color: var(--rhf-ink);
	font-weight: 600;
	text-align: center;
}

.rhf-types {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 9px;
	margin-top: 10px;
}

.rhf-type {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	padding: 7px;
	border: 2px dashed rgba(18, 27, 68, 0.55);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.25);
	text-align: center;
}

.rhf-type:only-child {
	grid-column: 1 / -1;
	width: 170px;
	margin: 0 auto;
}

.rhf-type span {
	color: var(--rhf-ink);
	font-size: 11.5px;
	line-height: 1.6;
	white-space: nowrap;
}

.rhf-type img {
	display: block;
	width: 82px;
	height: 82px;
	object-fit: cover;
	border-radius: 8px;
	background: #fff;
}

.rhf-results-table {
	width: 100%;
	margin: 0 0 13px;
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	border-radius: 10px;
	font-size: 11.5px;
	line-height: 1.65;
}

.rhf-results-table th {
	padding: 7px 8px;
	background: var(--rhf-navy);
	color: #fff;
	font-family: var(--rhf-display);
	font-size: 13px;
	font-weight: 600;
	text-align: center;
}

.rhf-results-table td {
	padding: 6px 7px;
	background: #e7e7e7;
	color: #2a3242;
	text-align: center;
	vertical-align: middle;
}

.rhf-results-table tbody tr:first-child td {
	background: #dcdcdc;
	color: #1c2433;
	font-weight: 600;
}

.rhf-results-table tbody tr:last-child td {
	background: #f2f2f2;
	color: var(--rhf-navy);
	font-size: 12.5px;
	font-weight: 700;
}

.rhf-results-table small {
	display: block;
	margin-top: 1px;
	color: #b3261e;
	font-size: 9.5px;
	font-weight: 400;
	line-height: 1.55;
}

.rhf-ltr {
	direction: ltr;
	unicode-bidi: isolate;
}

/* -------------------------------------------------------------------- price */

.rhf-price {
	margin: 0 0 9px;
	padding: 11px 14px;
	border: 2px solid var(--rhf-navy);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.38);
	color: var(--rhf-navy);
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.8;
	text-align: center;
}

.rhf-price--light {
	border-color: rgba(18, 27, 68, 0.32);
	background: transparent;
}

.rhf-contact-note {
	margin: 4px 0 14px;
	color: var(--rhf-navy);
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.9;
	text-align: center;
}

/* ------------------------------------------------------------------ actions */

.rhf-stage {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
}

/* Sparse screens (e.g. the female step-13 greeting) center their block
   instead of pushing the buttons to the bottom of the card. */
.rhf-stage--center {
	justify-content: center;
}

.rhf-stage--center .rhf-body {
	flex: 0 1 auto;
}

.rhf-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 9px;
	margin-top: 16px;
	padding-top: 2px;
}

.rhf-actions--center {
	justify-content: center;
}

.rhf-actions--wide .rhf-btn {
	flex: 1 1 calc(50% - 5px);
	padding: 0 12px;
	font-size: 12.5px;
}

.rhf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 26px;
	border: 0;
	border-radius: 10px;
	background: var(--rhf-navy);
	color: #fff;
	font-family: var(--rhf-display);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(18, 27, 68, 0.30);
	transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
	-webkit-tap-highlight-color: transparent;
}

.rhf-btn:hover,
.rhf-btn:focus-visible {
	background: var(--rhf-navy-hover);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(18, 27, 68, 0.45);
	outline: none;
}

.rhf-btn:active {
	transform: translateY(0);
}

.rhf-btn--ghost {
	background: #f1f5f9;
	color: #475569;
	box-shadow: none;
}

.rhf-btn--ghost:hover,
.rhf-btn--ghost:focus-visible {
	background: #e2e8f0;
	color: var(--rhf-navy);
	transform: translateY(-1px);
	box-shadow: none;
}

.rhf-btn[disabled] {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

/* -------------------------------------------------------------------- alert */

.rhf-alert {
	margin-top: 10px;
	padding: 8px 10px;
	border-radius: 9px;
	background: rgba(179, 38, 30, 0.09);
	color: #8c1d18;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.8;
	text-align: center;
}

.rhf-alert--ok {
	background: rgba(18, 27, 68, 0.08);
	color: var(--rhf-navy);
}

.rhf-alert[hidden] {
	display: none;
}

/* ------------------------------------------------------------------- figure */

.rhf-figure {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
	min-height: 516px;
	overflow: hidden;
	border-radius: 16px;
	background: #c7c7c7;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.rhf-figure img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.rhf-figure picture {
	position: absolute;
	inset: 0;
	display: block;
}

/* ------------------------------------------------------------------ overlay */

.rhf-overlay {
	position: absolute;
	inset: 0;
	z-index: 40;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	border-radius: 20px;
	background: rgba(213, 213, 213, 0.84);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
}

.rhf-overlay[hidden] {
	display: none;
}

.rhf-loading {
	color: var(--rhf-navy);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.9;
	text-align: center;
}

.rhf-loading p {
	margin: 0;
}

.rhf-spinner {
	display: inline-block;
	width: 34px;
	height: 34px;
	margin-bottom: 10px;
	border: 3px solid rgba(18, 27, 68, 0.18);
	border-top-color: var(--rhf-navy);
	border-radius: 50%;
	animation: rhf-spin 0.8s linear infinite;
}

@keyframes rhf-spin {
	to {
		transform: rotate(360deg);
	}
}

/* ------------------------------------------------------------------- modals */

.rhf-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(10, 16, 36, 0.55);
	direction: rtl;
}

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

.rhf-modal-card {
	position: relative;
	width: min(560px, 100%);
	max-height: 88vh;
	padding: 16px;
	overflow: auto;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 24px 60px rgba(10, 16, 36, 0.35);
	font-family: var(--rhf-font);
	text-align: right;
}

.rhf-modal-card h3 {
	margin: 0 34px 12px 0;
	color: var(--rhf-navy);
	font-family: var(--rhf-display);
	font-size: 16px;
	font-weight: 600;
}

.rhf-modal-image {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 10px;
}

.rhf-modal-close {
	position: absolute;
	top: 8px;
	left: 10px;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f1f5f9;
	color: #475569;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.rhf-modal-close:hover {
	background: #e2e8f0;
	color: var(--rhf-navy);
}

.rhf-modal-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 12px;
}

.rhf-modal-foot .rhf-btn {
	min-height: 40px;
	padding: 0 18px;
	font-size: 13px;
}

.rhf-wa-link {
	display: block;
	padding: 13px 16px;
	border-radius: 10px;
	background: #f1f5f9;
	color: var(--rhf-navy);
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	transition: background 0.2s ease;
}

.rhf-wa-link:hover {
	background: #e2e8f0;
	color: var(--rhf-navy);
}

.rhf-noscript {
	margin: 12px auto 0;
	color: #8c1d18;
	font-size: 13px;
	text-align: center;
}

/* ------------------------------------------------------------------ responsive */

@container (max-width: 699px) {
	.rhf-card {
		max-width: 100%;
		min-height: 0;
		padding: 16px;
		border-radius: 16px;
	}

	.rhf-main {
		flex-direction: column;
		gap: 14px;
		min-height: 0;
	}

	.rhf-form {
		flex: 0 0 auto;
		width: 100%;
	}

	.rhf-figure {
		order: 2;
		width: min(100%, 480px);
		aspect-ratio: 3 / 2;
		height: auto;
		min-height: 0;
		margin: 0 auto;
		border-radius: 14px;
	}

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

	.rhf-genders {
		justify-content: center;
	}

	.rhf-gender {
		max-width: 148px;
	}

	.rhf-gender-box {
		height: 128px;
		border-radius: 16px;
	}

	.rhf-gender-box img {
		width: 96px;
		height: 96px;
	}
}

@media (max-width: 480px) {
	.rhf-card {
		padding: 14px 12px;
	}

	.rhf-title {
		font-size: 20px;
	}

	.rhf-sub {
		font-size: 11.5px;
		margin-bottom: 8px;
	}

	.rhf-group {
		margin-bottom: 11px;
	}

	.rhf-label,
	.rhf-group > label {
		font-size: 13px;
	}

	.rhf-opt {
		font-size: 13px;
	}

	.rhf-genders {
		gap: 10px;
	}

	.rhf-gender-box {
		height: 112px;
		padding: 10px;
	}

	.rhf-gender-box img {
		width: 82px;
		height: 82px;
	}

	.rhf-figure {
		aspect-ratio: 4 / 3;
	}

	.rhf-bank-box {
		gap: 9px;
		padding: 5px 8px;
	}

	.rhf-bank-box img {
		width: 66px;
		height: 66px;
		flex-basis: 66px;
	}

	.rhf-type img {
		width: 70px;
		height: 70px;
	}

	.rhf-btn {
		min-height: 42px;
		padding: 0 16px;
		font-size: 13px;
	}

	.rhf-actions--wide .rhf-btn {
		flex: 1 1 100%;
	}

	.rhf-modal-foot {
		flex-direction: column-reverse;
	}

	.rhf-modal-foot .rhf-btn {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rhf *,
	.rhf *::before,
	.rhf *::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

/* When the form is embedded inside a page-builder column, the builder's own
   padding would squeeze it to a narrow strip on phones. Let it breathe by
   breaking out to the viewport (with a small gutter) below the tablet breakpoint. */
@media (max-width: 767px) {
	.rhf {
		margin-left: calc(50% - 50vw + 8px);
		margin-right: calc(50% - 50vw + 8px);
	}
}

/* Fill the page-builder box the form was dropped into (the gray block the
   client painted behind it) instead of sitting inside its padding. The gray
   block is the form's direct Elementor container, so that is what gets its
   padding removed. Phones are excluded: there the shell breaks out to the
   viewport with its own gutter. */
@media (min-width: 768px) {
	.elementor-widget-html:has(> .elementor-widget-container > .rhf),
	.elementor-element:has(> .rhf) {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
}

/* consultation popup */
.rhf-popup {
	position: fixed;
	inset: 0;
	z-index: 100001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(7, 12, 30, 0.68);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	direction: rtl;
	font-family: var(--rhf-font, 'Vazirmatn', Tahoma, sans-serif);
}
.rhf-popup[hidden] { display: none; }
.rhf-popup__card {
	position: relative;
	width: min(94vw, 430px);
	max-height: 92vh;
	overflow-y: auto;
	padding: 26px 24px 20px;
	border-radius: 18px;
	background: #121b44;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 24px 64px rgba(5, 10, 28, 0.55);
	text-align: right;
	box-sizing: border-box;
}
.rhf-popup__card *,
.rhf-popup__card *::before,
.rhf-popup__card *::after {
	box-sizing: border-box;
}
.rhf-popup__close {
	position: absolute;
	top: 12px;
	left: 12px;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.85);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}
.rhf-popup__close:hover {
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
}
.rhf-popup__head {
	text-align: center;
	margin-bottom: 16px;
}
.rhf-popup__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #60a5fa;
	margin-bottom: 8px;
}
.rhf-popup__title {
	margin: 0;
	color: #fff;
	font-family: var(--rhf-display, 'Vazirmatn', Tahoma, sans-serif);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.4;
}
.rhf-popup__accent {
	display: block;
	width: 44px;
	height: 3px;
	margin: 8px auto 10px;
	border-radius: 999px;
	background: #60a5fa;
}
.rhf-popup__sub {
	margin: 0;
	font-size: 12.5px;
	color: rgba(255, 255, 255, 0.78);
	line-height: 1.7;
}
.rhf-popup__alert {
	margin-bottom: 12px;
	padding: 9px 12px;
	border-radius: 10px;
	font-size: 12.5px;
	line-height: 1.6;
	text-align: center;
}
.rhf-popup__alert.is-err {
	background: rgba(239, 68, 68, 0.18);
	border: 1px solid rgba(248, 113, 113, 0.45);
	color: #fecaca;
}
.rhf-popup__alert.is-ok {
	background: rgba(34, 197, 94, 0.18);
	border: 1px solid rgba(74, 222, 128, 0.45);
	color: #bbf7d0;
}
.rhf-popup__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.rhf-popup__label {
	margin-top: 2px;
	font-size: 12.5px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.9);
}
.rhf-popup__input {
	width: 100%;
	min-height: 42px;
	padding: 8px 12px;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	font-family: inherit;
	font-size: 13.5px;
	outline: none;
	transition: border-color 0.2s ease, background 0.2s ease;
}
.rhf-popup__input::placeholder {
	color: rgba(255, 255, 255, 0.45);
}
.rhf-popup__input:focus {
	border-color: #60a5fa;
	background: rgba(255, 255, 255, 0.1);
}
.rhf-popup__input--ltr {
	direction: ltr;
	text-align: left;
}
.rhf-popup__input--code {
	direction: ltr;
	text-align: center;
	letter-spacing: 0.25em;
	font-weight: 600;
}
.rhf-popup__select option {
	background: #1b254f;
	color: #fff;
}
.rhf-popup__row {
	display: flex;
	gap: 8px;
	align-items: stretch;
}
.rhf-popup__row .rhf-popup__input {
	flex: 1 1 auto;
	min-width: 0;
}
.rhf-popup__otp-btn {
	flex: 0 0 auto;
	min-width: 92px;
	min-height: 42px;
	padding: 0 14px;
	border: 1px solid rgba(96, 165, 250, 0.45);
	border-radius: 10px;
	background: rgba(96, 165, 250, 0.14);
	color: #93c5fd;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.2s ease, border-color 0.2s ease;
}
.rhf-popup__otp-btn:hover:not(:disabled) {
	background: rgba(96, 165, 250, 0.24);
	border-color: #60a5fa;
	color: #fff;
}
.rhf-popup__otp-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}
.rhf-popup__code-wrap {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.rhf-popup__submit {
	width: 100%;
	min-height: 46px;
	margin-top: 8px;
	border: 0;
	border-radius: 10px;
	background: #2563eb;
	color: #fff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
	transition: background 0.2s ease, transform 0.2s ease;
}
.rhf-popup__submit:hover:not(:disabled) {
	background: #1d4ed8;
	transform: translateY(-1px);
}
.rhf-popup__submit:disabled {
	opacity: 0.65;
	cursor: not-allowed;
	transform: none;
}
.rhf-popup__note {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 8px 0 0;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.72);
}
@media (max-width: 480px) {
	.rhf-popup__card {
		padding: 20px 16px 16px;
	}
	.rhf-popup__row {
		flex-direction: column;
	}
	.rhf-popup__otp-btn {
		width: 100%;
	}
}
