/* =========================================================
   Tabassom — Appointment Form Widget
   ========================================================= */

.traf-wrap {
	width: 100%;
}

.traf-wrap.traf-is-rtl {
	direction: rtl;
	text-align: right;
}

.traf-card {
	--traf-panel-width: 38%;
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	overflow: hidden;
	background: #fff;
	border-radius: 26px;
}

/* ---------------------------------------------------- panel */

.traf-panel {
	flex: 0 0 var(--traf-panel-width);
	max-width: var(--traf-panel-width);
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 22px;
	padding: 44px 38px;
	background-color: #22346e;
	color: #fff;
}

.traf-panel-end .traf-panel {
	order: 2;
}

.traf-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	align-self: flex-start;
	padding: 8px 16px;
	border-radius: 999px;
	background: #12a150;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
}

.traf-badge::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.85;
	flex: 0 0 auto;
}

.traf-panel-head {
	display: block;
}

.traf-panel-title {
	margin: 0 0 12px;
	font-size: 30px;
	font-weight: 800;
	line-height: 1.4;
	color: #fff;
}

.traf-panel-desc {
	margin: 0;
	font-size: 14px;
	line-height: 2;
	color: rgba(255, 255, 255, 0.78);
}

.traf-info {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.traf-info-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	text-decoration: none;
	color: inherit;
}

a.traf-info-item:hover .traf-info-title {
	text-decoration: underline;
}

.traf-info-icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.9em;
	height: 1.9em;
	border-radius: 10px;
	font-size: 17px;
	line-height: 1;
	color: #22c55e;
}

.traf-info-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.traf-info-text {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.traf-info-title {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.6;
	color: #fff;
}

.traf-info-sub {
	font-size: 13px;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.62);
}

/* ---------------------------------------------------- form column */

.traf-form-col {
	flex: 1 1 0%;
	min-width: 0;
	padding: 44px;
}

.traf-form-head {
	margin-bottom: 28px;
}

.traf-form-title {
	margin: 0 0 6px;
	font-size: 26px;
	font-weight: 800;
	line-height: 1.5;
	color: #22346e;
}

.traf-form-sub {
	margin: 0;
	font-size: 14px;
	line-height: 1.9;
	color: #8a93a8;
}

/* ---------------------------------------------------- fields */

.traf-fields {
	--traf-gap: 18px;
	display: flex;
	flex-wrap: wrap;
	gap: var(--traf-gap);
}

.traf-field {
	flex: 1 1 100%;
	min-width: 0;
}

.traf-field.traf-col-50 {
	flex: 1 1 calc(50% - (var(--traf-gap) / 2));
	max-width: calc(50% - (var(--traf-gap) / 2));
}

.traf-field.traf-col-33 {
	flex: 1 1 calc(33.333% - (var(--traf-gap) * 2 / 3));
	max-width: calc(33.333% - (var(--traf-gap) * 2 / 3));
}

.traf-label {
	display: block;
	margin-bottom: 9px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.6;
	color: #22346e;
}

.traf-req {
	margin: 0 3px;
	color: #dc2626;
}

.traf-form-col .traf-input {
	width: 100%;
	max-width: 100%;
	display: block;
	box-sizing: border-box;
	padding: 14px 16px;
	border: 1px solid #e6e8df;
	border-radius: 12px;
	background-color: #f7f8f3;
	color: #1f2937;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.8;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.traf-form-col textarea.traf-input {
	min-height: 110px;
	resize: vertical;
}

.traf-form-col select.traf-input {
	cursor: pointer;
	background-image: linear-gradient(45deg, transparent 50%, #9aa2b4 50%), linear-gradient(135deg, #9aa2b4 50%, transparent 50%);
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
	background-position: left 18px center, left 12px center;
}

.traf-wrap:not(.traf-is-rtl) .traf-form-col select.traf-input {
	background-position: right 18px center, right 12px center;
}

.traf-form-col .traf-input:focus {
	outline: none;
	border-color: #22346e;
	box-shadow: 0 0 0 3px rgba(34, 52, 110, 0.1);
}

.traf-field.traf-has-error .traf-input {
	border-color: #dc2626;
}

/* ---------------------------------------------------- button */

.traf-actions {
	margin-top: 24px;
}

.traf-submit {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border: 0;
	padding: 17px 26px;
	border-radius: 14px;
	background-color: #22346e;
	color: #fff;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	cursor: pointer;
	transition: background-color 0.25s ease, transform 0.2s ease, opacity 0.2s ease;
}

.traf-btn-full-yes .traf-submit {
	width: 100%;
}

.traf-lift-yes .traf-submit:hover {
	transform: translateY(-2px);
}

.traf-submit:hover {
	background-color: #1a2957;
}

.traf-submit:focus-visible {
	outline: 3px solid rgba(34, 52, 110, 0.35);
	outline-offset: 2px;
}

.traf-submit[disabled],
.traf-submit.is-loading {
	opacity: 0.72;
	cursor: not-allowed;
	transform: none;
}

.traf-submit-icon {
	display: inline-flex;
	align-items: center;
	line-height: 1;
}

.traf-submit-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.traf-spinner {
	display: none;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 2px solid currentColor;
	border-top-color: transparent;
	animation: traf-spin 0.7s linear infinite;
}

.traf-submit.is-loading .traf-spinner {
	display: inline-block;
}

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

.traf-note {
	margin: 12px 0 0;
	font-size: 12px;
	line-height: 1.8;
	color: #9aa2b4;
}

/* ---------------------------------------------------- messages */

.traf-msg {
	display: none;
	margin-top: 16px;
	padding: 13px 16px;
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.8;
}

.traf-msg.is-visible {
	display: block;
}

.traf-msg--ok {
	background-color: #e9f7ef;
	color: #0f7a3d;
}

.traf-msg--err {
	background-color: #fdecec;
	color: #b02424;
}

/* ---------------------------------------------------- honeypot */

.traf-hp {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
	border: 0;
	padding: 0;
	margin: -1px;
}

/* ---------------------------------------------------- third-party forms */

.traf-shortcode input[type="text"],
.traf-shortcode input[type="tel"],
.traf-shortcode input[type="email"],
.traf-shortcode input[type="number"],
.traf-shortcode input[type="date"],
.traf-shortcode input[type="url"],
.traf-shortcode select,
.traf-shortcode textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 14px 16px;
	border: 1px solid #e6e8df;
	border-radius: 12px;
	background-color: #f7f8f3;
	color: #1f2937;
	font-family: inherit;
	font-size: 14px;
}

.traf-shortcode label {
	display: block;
	margin-bottom: 9px;
	font-size: 14px;
	font-weight: 600;
	color: #22346e;
}

.traf-shortcode input[type="submit"],
.traf-shortcode button[type="submit"] {
	width: 100%;
	border: 0;
	padding: 17px 26px;
	border-radius: 14px;
	background-color: #22346e;
	color: #fff;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
}

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

@media (max-width: 1024px) {
	.traf-stack-tablet .traf-panel,
	.traf-stack-tablet .traf-form-col {
		flex: 1 1 100%;
		max-width: 100%;
	}

	.traf-stack-tablet.traf-mfirst-form .traf-panel {
		order: 2;
	}

	.traf-stack-tablet.traf-mfirst-form .traf-form-col {
		order: 1;
	}

	.traf-stack-tablet.traf-mfirst-panel .traf-panel {
		order: 1;
	}

	.traf-stack-tablet.traf-mfirst-panel .traf-form-col {
		order: 2;
	}
}

@media (max-width: 767px) {
	.traf-panel,
	.traf-form-col {
		flex: 1 1 100%;
		max-width: 100%;
	}

	.traf-stack-never .traf-panel {
		flex-basis: var(--traf-panel-width);
		max-width: var(--traf-panel-width);
	}

	.traf-stack-never .traf-form-col {
		flex: 1 1 0%;
	}

	.traf-mfirst-form:not(.traf-stack-never) .traf-panel {
		order: 2;
	}

	.traf-mfirst-form:not(.traf-stack-never) .traf-form-col {
		order: 1;
	}

	.traf-mfirst-panel:not(.traf-stack-never) .traf-panel {
		order: 1;
	}

	.traf-mfirst-panel:not(.traf-stack-never) .traf-form-col {
		order: 2;
	}

	.traf-field.traf-col-50,
	.traf-field.traf-col-33 {
		flex-basis: 100%;
		max-width: 100%;
	}

	.traf-panel-title {
		font-size: 24px;
	}

	.traf-form-title {
		font-size: 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.traf-submit,
	.traf-input {
		transition: none;
	}

	.traf-lift-yes .traf-submit:hover {
		transform: none;
	}

	.traf-spinner {
		animation-duration: 2s;
	}
}
