/* =============================================================================
   Form Money Transfer — form.css
   ============================================================================= */

/* ── Wrapper ─────────────────────────────────────────────────────────────────── */
.fmt-form-wrap {
	width: 100%;
	max-width: 600px;
}

/* ── Form ────────────────────────────────────────────────────────────────────── */
.fmt-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* ── Form group ──────────────────────────────────────────────────────────────── */
.fmt-form-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
	position: relative;
}

/* Two-column row (currencies) */
.fmt-form-row {
	display: flex;
	gap: 16px;
}
.fmt-form-row .fmt-form-group {
	flex: 1 1 0;
	min-width: 0;
}

/* ── Labels ──────────────────────────────────────────────────────────────────── */
.fmt-form label {
	font-size: 16px;
	font-weight: 600;
	color: #1a1a1a;
	line-height: 1.4;
}

.required-star {
	color: #e53e3e;
	margin-left: 2px;
}

/* ── Inputs & Select ─────────────────────────────────────────────────────────── */
.fmt-form input[type="text"],
.fmt-form input[type="email"],
.fmt-form input[type="tel"],
.fmt-form select {
	width: 100%;
	padding: 10px 14px;
	border: 1.5px solid #d1d5db;
	border-radius: 20px;
	font-size: 18px;
	color: #1a1a1a;
	background: #fff;
	transition: border-color 0.2s, box-shadow 0.2s;
	box-sizing: border-box;
	appearance: none;
	-webkit-appearance: none;
}
.fmt-form select {
	font-size: 18px;
}

.fmt-form input:focus,
.fmt-form select:focus {
	outline: none;
	border-color: none;
	box-shadow: none;
}

/* Select arrow */
.fmt-form select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 36px;
}

/* ── Validation states ───────────────────────────────────────────────────────── */
.fmt-form-group.is-invalid input,
.fmt-form-group.is-invalid select,
.fmt-form-group.is-invalid .fmt-form .fmt-dropdown__trigger {
	border-color: #e53e3e;
	box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.fmt-form-group.is-valid input,
.fmt-form-group.is-valid select,
.fmt-form-group.is-valid .fmt-form .fmt-dropdown__trigger {
	border-color: #38a169;
}

.field-error {
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	margin-top: 2px;
	font-size: 12px;
	color: #e53e3e;
	line-height: 1.3;
}

/* ── intl-tel-input overrides ────────────────────────────────────────────────── */
.fmt-form .fmt-form-group[data-field="phone"] .iti {
	width: 100%;
}
.fmt-form .fmt-form-group[data-field="phone"] .iti input {
	width: 100%;
	padding-right: 105px;
}
.fmt-form  .iti .iti__selected-dial-code {
    font-size: 20px;
    line-height: 25px;
}
/* ── Custom Currency Dropdown ────────────────────────────────────────────────── */
.fmt-form .fmt-dropdown {
	position: relative;
}

.fmt-form .fmt-dropdown__trigger {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 6px 14px 6px 8px;
	border: 1.5px solid #d1d5db;
	border-radius: 30px;
	font-size: 15px;
	color: #1a1a1a;
	background: #fff;
	cursor: pointer;
	text-align: left;
	transition: border-color 0.2s, box-shadow 0.2s;
	box-sizing: border-box;
}

.fmt-form .fmt-dropdown__trigger:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.fmt-form .fmt-dropdown__trigger[aria-expanded="true"] {
	border-color: #2563eb;
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}

/* ── Round flag wrap (trigger) ────────────────────────────────────────────── */
.fmt-dropdown__flag-wrap {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
	background: #e5e7eb;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* placeholder circle (no selection yet) */
.fmt-dropdown__flag-placeholder {
	width: 100%;
	height: 100%;
	display: block;
	background: #e5e7eb;
}

/* circle-flags img inside the trigger circle */
.fmt-dropdown__flag-wrap img,
.fmt-dropdown__flag-wrap .fmt-dropdown__flag {
	width: 44px;
	height: 44px;
	display: block;
}

/* ── Flags in the dropdown list ───────────────────────────────────────────── */
.fmt-dropdown__option .fmt-dropdown__flag {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: block;
	flex-shrink: 0;
}

/* ── Two-line info block ──────────────────────────────────────────────────── */
.fmt-dropdown__info {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
	gap: 2px;
}

.fmt-dropdown__label {
	font-size: 11px;
	font-weight: 500;
	color: #6b7280;
	line-height: 1.2;
	white-space: nowrap;
}

.fmt-dropdown__value {
	font-size: 15px;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.2;
}

/* ── Arrow between currency dropdowns ────────────────────────────────────── */
.fmt-form-row--currency {
	align-items: center;
}

.fmt-currency-arrow {
	font-size: 20px;
	color: #9ca3af;
	flex-shrink: 0;
	line-height: 1;
	margin-top: 2px;
}

.fmt-dropdown__arrow {
	font-size: 10px;
	color: #6b7280;
	transition: transform 0.2s;
	flex-shrink: 0;
}
.fmt-form .fmt-dropdown__trigger[aria-expanded="true"] .fmt-dropdown__arrow {
	transform: rotate(180deg);
}

.fmt-dropdown__list {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 100;
	margin: 0;
	padding: 4px 0;
	list-style: none;
	background: #fff;
	border: 1.5px solid #2563eb;
	border-top: none;
	border-bottom-left-radius: 8px;
	border-bottom-right-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	display: none;
	max-height: 220px;
	overflow-y: auto;
}

.fmt-dropdown__list.is-open {
	display: block;
}

.fmt-dropdown__option {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 14px;
	cursor: pointer;
	font-size: 15px;
	transition: background 0.15s;
}

.fmt-dropdown__option:hover {
	background: #eff6ff;
}

.fmt-dropdown__option[aria-selected="true"] {
	background: #dbeafe;
	font-weight: 600;
}

.fmt-dropdown__option[aria-selected="true"]::after {
	content: '✓';
	margin-left: auto;
	color: #2563eb;
	font-size: 14px;
}

.fmt-dropdown__flag {
	display: block;
	border-radius: 50%;
}

.fmt-dropdown__code {
	font-weight: 500;
}

/* ── Checkbox ────────────────────────────────────────────────────────────────── */
.fmt-form-group--checkbox {
	gap: 4px;
}

.fmt-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	font-weight: 400 !important;
	cursor: pointer;
	line-height: 1.5;
}

.fmt-checkbox-label input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin-top: 2px;
	flex-shrink: 0;
	accent-color: #2563eb;
	cursor: pointer;
}

.fmt-checkbox-label a {
	color: #2563eb;
	text-decoration: underline;
}

/* ── Submit button ───────────────────────────────────────────────────────────── */
.fmt-form-group--submit {
	margin-top: 4px;
}

.fmt-form .fmt-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 15px 32px;
	background: #0095FF;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	border: none;
	border-radius: 60px;
	cursor: pointer;
	transition: background 0.2s, opacity 0.2s, transform 0.1s;
	min-width: 200px;
}

.fmt-form .fmt-submit:hover:not(:disabled) {
	background: #1d4ed8;
	transform: translateY(-1px);
}

.fmt-form .fmt-submit:active:not(:disabled) {
	transform: translateY(0);
}

.fmt-form .fmt-submit:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.fmt-form .fmt-submit.is-loading {
	pointer-events: none;
	opacity: 0.7;
}

/* ── Modals ──────────────────────────────────────────────────────────────────── */
.fmt-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
}

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

.fmt-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
}

.fmt-modal__box {
	position: relative;
	z-index: 1;
	background: #fff;
	border-radius: 16px;
	padding: 40px 32px;
	max-width: 400px;
	width: 90%;
	text-align: center;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.fmt-modal .fmt-modal__close {
	position: absolute;
	top: 14px;
	right: 16px;
	background: none;
	border: none;
	font-size: 20px;
	cursor: pointer;
	color: #6b7280;
	line-height: 1;
	padding: 4px;
}

.fmt-modal .fmt-modal__close:hover {
	color: #1a1a1a;
}

.fmt-modal__icon {
	font-size: 48px;
	margin: 0 0 12px;
	line-height: 1;
}

.fmt-modal__box h3 {
	margin: 0 0 8px;
	font-size: 22px;
	font-weight: 700;
	color: #1a1a1a;
}

.fmt-modal__box p {
	margin: 0;
	font-size: 15px;
	color: #4b5563;
}

/* Success: green icon */
.fmt-modal:not(.fmt-modal--error) .fmt-modal__icon {
	color: #38a169;
}

/* Error: amber icon */
.fmt-modal--error .fmt-modal__icon {
	color: #d97706;
}

/* ── Elementor resistance ────────────────────────────────────────────────────
   Specificity: .fmt-form-wrap .fmt-form .selector:hover = (0,4,0) = 40
   vs Elementor: [type=button]:hover = (0,2,0) = 20  ✓
   ─────────────────────────────────────────────────────────────────────────── */

/* Currency dropdown trigger */
.fmt-form-wrap .fmt-form .fmt-dropdown__trigger,
.fmt-form-wrap .fmt-form .fmt-dropdown__trigger:hover,
.fmt-form-wrap .fmt-form .fmt-dropdown__trigger:focus,
.fmt-form-wrap .fmt-form .fmt-dropdown__trigger:active {
	background-color: #fff;
	color: #1a1a1a;
	text-decoration: none;
}

.fmt-form-wrap .fmt-form .fmt-dropdown__trigger[aria-expanded="true"],
.fmt-form-wrap .fmt-form .fmt-dropdown__trigger[aria-expanded="true"]:hover,
.fmt-form-wrap .fmt-form .fmt-dropdown__trigger[aria-expanded="true"]:focus {
	border-color: #2563eb;
	background-color: #fff;
	color: #1a1a1a;
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}

.fmt-form-wrap .fmt-form .fmt-dropdown__trigger:focus,
.fmt-form-wrap .fmt-form .fmt-dropdown__trigger:focus-visible {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* intl-tel-input — flag button & search */
.fmt-form-wrap .fmt-form .fmt-form-group[data-field="phone"] .iti__flag-button,
.fmt-form-wrap .fmt-form .fmt-form-group[data-field="phone"] .iti__flag-button:hover,
.fmt-form-wrap .fmt-form .fmt-form-group[data-field="phone"] .iti__flag-button:focus,
.fmt-form-wrap .fmt-form .fmt-form-group[data-field="phone"] .iti__flag-button:active {
	background-color: transparent;
	color: inherit;
	text-decoration: none;
}

.fmt-form-wrap .fmt-form .fmt-form-group[data-field="phone"] .iti__search-input,
.fmt-form-wrap .fmt-form .fmt-form-group[data-field="phone"] .iti__search-input:hover,
.fmt-form-wrap .fmt-form .fmt-form-group[data-field="phone"] .iti__search-input:focus {
	background-color: #fff;
	color: #1a1a1a;
	border-color: #d1d5db;
	text-decoration: none;
}

/* Text / email / tel inputs */
.fmt-form-wrap .fmt-form input[type="text"],
.fmt-form-wrap .fmt-form input[type="email"],
.fmt-form-wrap .fmt-form input[type="tel"] {
	background-color: #fff;
	color: #1a1a1a;
}

.fmt-form-wrap .fmt-form input[type="text"]:hover,
.fmt-form-wrap .fmt-form input[type="text"]:focus,
.fmt-form-wrap .fmt-form input[type="email"]:hover,
.fmt-form-wrap .fmt-form input[type="email"]:focus,
.fmt-form-wrap .fmt-form input[type="tel"]:hover,
.fmt-form-wrap .fmt-form input[type="tel"]:focus {
	background-color: #fff;
	color: #1a1a1a;
	text-decoration: none;
}

/* Submit button */
.fmt-form-wrap .fmt-form .fmt-submit,
.fmt-form-wrap .fmt-form .fmt-submit:focus {
	background-color: #2563eb;
	color: #fff;
	text-decoration: none;
}

.fmt-form-wrap .fmt-form .fmt-submit:hover {
	background-color: #1d4ed8;
	color: #fff;
	text-decoration: none;
}

.fmt-form-wrap .fmt-form .fmt-submit:disabled,
.fmt-form-wrap .fmt-form .fmt-submit:disabled:hover {
	background-color: #2563eb;
	color: #fff;
	opacity: 0.45;
}

/* Modal close button */
.fmt-modal .fmt-modal__box .fmt-modal__close,
.fmt-modal .fmt-modal__box .fmt-modal__close:hover,
.fmt-modal .fmt-modal__box .fmt-modal__close:focus,
.fmt-modal .fmt-modal__box .fmt-modal__close:active {
	background-color: transparent;
	color: #6b7280;
	text-decoration: none;
}

.fmt-modal .fmt-modal__box .fmt-modal__close:hover {
	color: #1a1a1a;
	background-color: transparent;
}

/* ── intl-tel-input overrides ────────────────────────────────────────────────── */
.fmt-form-group .iti__selected-country {
	z-index: 1;
	position: relative;
	display: flex;
	align-items: center;
	height: 100%;
	background: 0 0;
	border: 0;
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-size: inherit;
	color: inherit;
	border-radius: 0;
	font-weight: inherit;
	line-height: inherit;
	text-decoration: none;
}

.fmt-form-group .iti__selected-country-primary {
	display: flex;
	align-items: center;
	height: 100%;
	padding: 0 var(--iti-arrow-padding) 0 var(--iti-spacer-horizontal);
}
.fmt-form-group .iti .iti__selected-dial-code {
	font-size: 20px;
}
/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
	.fmt-dropdown__flag-wrap {
		width: 32px;
		height: 32px;
	}
	.fmt-dropdown__flag-wrap img, .fmt-dropdown__flag-wrap .fmt-dropdown__flag {
		width: 32px;
		height: 32px;
	}
}

@media (max-width: 560px) {
	.fmt-form-row--currency {
		flex-direction: column;
	}
	.fmt-form .fmt-form-group[data-field="phone"] .iti input {
		padding-right: 20px;
	}
	.fmt-form input[type="text"], .fmt-form input[type="email"], .fmt-form input[type="tel"], .fmt-form select {
		font-size: 16px;
		line-height: 20px;
	}
	.fmt-form-group .iti .iti__selected-dial-code {
		font-size: 17px;
	}
	.fmt-currency-arrow {
		transform: rotate(90deg);
	}
}
@media (max-width: 370px) {
	.fmt-form label {
		font-size: 13px;
	}
	.hero-banner-new .form-slide{
		padding: 20px;
	}
	.fmt-form-row .fmt-form-group {
		width: 100%;
	}
}
@media (max-width: 480px) {
	.fmt-form-row {
		flex-direction: column;
	}
	.fmt-form .fmt-submit {
		width: 100%;
	}
}
