.rtm-smart-form-wrap {
	--rtm-smart-navy: #07162f;
	--rtm-smart-navy-soft: rgba(8, 24, 51, 0.76);
	--rtm-smart-gold: #d7b56d;
	--rtm-smart-gold-strong: #f0cc76;
	--rtm-smart-cream: #f7f2e8;
	--rtm-smart-muted: rgba(247, 242, 232, 0.74);
	--rtm-smart-border: rgba(215, 181, 109, 0.24);
	color: var(--rtm-smart-cream);
	direction: rtl;
	font-family: "Noto Sans Hebrew", Assistant, Heebo, Arial, sans-serif;
	margin-inline: auto;
	max-width: 920px;
	text-align: right;
	width: 100%;
}

.rtm-smart-form-wrap *,
.rtm-smart-form-wrap *::before,
.rtm-smart-form-wrap *::after {
	box-sizing: border-box;
}

.rtm-smart-form-wrap .rtm-smart-form {
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
	border: 1px solid var(--rtm-smart-border);
	border-radius: 18px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 38px rgba(0, 0, 0, 0.12);
	display: grid;
	gap: 20px;
	padding: clamp(18px, 3.2vw, 30px);
	width: 100%;
}

.rtm-smart-form-wrap .rtm-smart-field {
	display: grid;
	gap: 8px;
	min-width: 0;
}

.rtm-smart-form-wrap label,
.rtm-smart-form-wrap legend {
	color: var(--rtm-smart-cream);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.45;
	margin: 0;
	text-align: right;
}

.rtm-smart-form-wrap label span[aria-hidden="true"],
.rtm-smart-form-wrap label strong,
.rtm-smart-form-wrap label + span {
	color: var(--rtm-smart-gold-strong);
	font-weight: 700;
	margin-inline-start: 2px;
}

.rtm-smart-form-wrap input[type="text"],
.rtm-smart-form-wrap input[type="tel"],
.rtm-smart-form-wrap input[type="email"],
.rtm-smart-form-wrap select,
.rtm-smart-form-wrap textarea {
	appearance: none;
	background: rgba(7, 22, 47, 0.34);
	border: 1px solid rgba(247, 242, 232, 0.22);
	border-radius: 13px;
	color: var(--rtm-smart-cream);
	font: inherit;
	line-height: 1.5;
	min-height: 52px;
	outline: none;
	padding: 13px 15px;
	text-align: right;
	transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
	width: 100%;
}

.rtm-smart-form-wrap select {
	background-image: linear-gradient(45deg, transparent 50%, var(--rtm-smart-gold) 50%), linear-gradient(135deg, var(--rtm-smart-gold) 50%, transparent 50%);
	background-position: left 18px center, left 11px center;
	background-repeat: no-repeat;
	background-size: 7px 7px, 7px 7px;
	padding-left: 40px;
	padding-right: 15px;
}

.rtm-smart-form-wrap select option {
	background: var(--rtm-smart-navy);
	color: var(--rtm-smart-cream);
}

.rtm-smart-form-wrap textarea {
	resize: vertical;
}

.rtm-smart-form-wrap input:focus,
.rtm-smart-form-wrap select:focus,
.rtm-smart-form-wrap textarea:focus {
	background: rgba(7, 22, 47, 0.5);
	border-color: var(--rtm-smart-gold);
	box-shadow: 0 0 0 3px rgba(215, 181, 109, 0.2);
}

.rtm-smart-form-wrap .rtm-smart-radio-group {
	border: 0;
	margin: 0;
	padding: 0;
}

.rtm-smart-form-wrap .rtm-smart-radio-group label,
.rtm-smart-form-wrap .rtm-smart-checkbox label {
	align-items: center;
	color: var(--rtm-smart-muted);
	display: flex;
	flex-direction: row;
	gap: 10px;
	font-weight: 600;
	justify-content: flex-start;
	text-align: right;
}

.rtm-smart-form-wrap .rtm-smart-radio-group {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 22px;
}

.rtm-smart-form-wrap .rtm-smart-radio-group legend {
	flex: 0 0 100%;
}

.rtm-smart-form-wrap input[type="radio"],
.rtm-smart-form-wrap input[type="checkbox"] {
	accent-color: var(--rtm-smart-gold);
	block-size: 18px;
	flex: 0 0 auto;
	inline-size: 18px;
	margin: 0;
}

.rtm-smart-form-wrap .rtm-smart-conditional.is-hidden {
	display: none;
}

.rtm-smart-form-wrap .rtm-smart-submit {
	background: linear-gradient(180deg, #f4d98f, var(--rtm-smart-gold));
	border: 0;
	border-radius: 999px;
	box-shadow: 0 12px 28px rgba(215, 181, 109, 0.22);
	color: #09152b;
	cursor: pointer;
	font: inherit;
	font-weight: 800;
	line-height: 1.2;
	margin-top: 6px;
	min-height: 54px;
	padding: 15px 26px;
	transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
	width: 100%;
}

.rtm-smart-form-wrap .rtm-smart-submit:hover,
.rtm-smart-form-wrap .rtm-smart-submit:focus {
	box-shadow: 0 16px 34px rgba(215, 181, 109, 0.28);
	filter: brightness(1.03);
	transform: translateY(-1px);
}

.rtm-smart-form-wrap .rtm-smart-submit:focus-visible {
	outline: 3px solid rgba(247, 242, 232, 0.72);
	outline-offset: 3px;
}

.rtm-smart-form-wrap .rtm-smart-notice {
	border-radius: 16px;
	font-weight: 700;
	line-height: 1.6;
	margin: 0 0 16px;
	padding: 14px 16px;
}

.rtm-smart-form-wrap .rtm-smart-notice--success {
	background: rgba(38, 120, 83, 0.18);
	border: 1px solid rgba(123, 214, 166, 0.38);
	color: #dff8e9;
}

.rtm-smart-form-wrap .rtm-smart-notice--error {
	background: rgba(153, 43, 43, 0.2);
	border: 1px solid rgba(255, 145, 145, 0.42);
	color: #ffe5e5;
}

@media (max-width: 640px) {
	.rtm-smart-form-wrap {
		max-width: none;
	}

	.rtm-smart-form-wrap .rtm-smart-form {
		border-radius: 16px;
		gap: 17px;
		padding: 16px;
	}

	.rtm-smart-form-wrap .rtm-smart-radio-group {
		display: grid;
	}
}
