@charset "utf-8";
/**
 * FRONTEND-B03 — Tables / buttons / public forms presentation polish
 * Load AFTER fa.polish.css + fa.b02.css (FA only).
 * No backend/form-field semantic changes. No layout-table restyle.
 */

/* ------------------------------------------------------------------ */
/* DATA / CONTENT tables (CMS Word tables + pricing grids)            */
/* Avoid bare `table` — many layout tables exist.                     */
/* ------------------------------------------------------------------ */

.contentbox > .content table.MsoNormalTable,
.contentbox > .content table.MsoTableGrid,
.contentbox > .content .contentdata table,
.contentbox > .content .Description table {
	border-collapse: collapse;
	width: 100%;
	max-width: 100%;
	font-family: "Vazirmatn", Tahoma, Geneva, sans-serif;
	font-size: 13px;
	line-height: 1.5;
}

.contentbox > .content table.MsoNormalTable td,
.contentbox > .content table.MsoNormalTable th,
.contentbox > .content table.MsoTableGrid td,
.contentbox > .content table.MsoTableGrid th,
.contentbox > .content .contentdata table td,
.contentbox > .content .contentdata table th,
.contentbox > .content .Description table td,
.contentbox > .content .Description table th {
	padding: 8px 10px !important;
	border: 1px solid #c5d0da !important;
	vertical-align: middle;
	text-align: center;
}

.contentbox > .content table.MsoNormalTable tr:first-child td,
.contentbox > .content table.MsoTableGrid tr:first-child td,
.contentbox > .content .contentdata table tr:first-child td,
.contentbox > .content .Description table tr:first-child td {
	font-weight: 700;
	background-color: #e8f1f8;
	color: #036;
}

/* Official pricing table: blue header cells → white text (contrast) */
.contentbox > .content .contentdata td[style*="84, 141, 212"],
.contentbox > .content .contentdata td[style*="84,141,212"],
.contentbox > .content .contentdata td[style*="548DD4"],
.contentbox > .content .Description td[style*="84, 141, 212"] {
	color: #fff !important;
}

.contentbox > .content .contentdata td[style*="84, 141, 212"] a,
.contentbox > .content .contentdata td[style*="84, 141, 212"] span,
.contentbox > .content .contentdata td[style*="84, 141, 212"] strong,
.contentbox > .content .contentdata td[style*="84, 141, 212"] b,
.contentbox > .content .contentdata td[style*="84, 141, 212"] font {
	color: #fff !important;
}

.contentbox > .content table.MsoNormalTable tr:nth-child(even) td,
.contentbox > .content table.MsoTableGrid tr:nth-child(even) td,
.contentbox > .content .contentdata table tr:nth-child(even) td,
.contentbox > .content .Description table tr:nth-child(even) td {
	background-color: #f7fafc;
}

.contentbox > .content table.MsoNormalTable tr:hover td,
.contentbox > .content table.MsoTableGrid tr:hover td,
.contentbox > .content .contentdata table tr:hover td,
.contentbox > .content .Description table tr:hover td {
	background-color: #eef5fb;
}

.contentbox > .content table.MsoNormalTable a,
.contentbox > .content table.MsoTableGrid a,
.contentbox > .content .contentdata table a {
	color: #1a5f96;
	text-decoration: underline;
}

/* Safe horizontal scroll on small screens — keep table semantics.
   Do NOT put overflow-x:auto on .contentdata (CSS pairs it to overflow-y:auto
   and creates a vertical inner scrollbar). Scroll only via .table-scroll-container. */
@media only screen and (max-width: 767px) {
	.contentbox > .content .contentdata,
	.contentbox > .content .Description {
		overflow-x: visible;
		overflow-y: visible;
	}

	.contentbox > .content table.MsoNormalTable,
	.contentbox > .content table.MsoTableGrid,
	.contentbox > .content .contentdata table,
	.contentbox > .content .Description table {
		min-width: 520px;
	}

	/* Undo legacy mobile rule that forces every td to block (destroys grids) */
	.contentbox > .content table.MsoTableGrid td,
	.contentbox > .content table.MsoNormalTable td {
		display: table-cell !important;
		width: auto !important;
	}
}

/* ------------------------------------------------------------------ */
/* Public buttons                                                     */
/* ------------------------------------------------------------------ */

.SubmitBtn,
.ResetBtn,
#contactus-form .SubmitBtn,
#contactus-form .ResetBtn {
	font-family: "Vazirmatn", Tahoma, Geneva, sans-serif !important;
	font-size: 13px !important;
	line-height: 1.3 !important;
	min-height: 34px;
	padding: 7px 16px !important;
	margin: 4px 6px 4px 0;
	border: 1px solid #036 !important;
	border-radius: 4px;
	background: #036 !important;
	color: #fff !important;
	cursor: pointer;
	transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
	box-sizing: border-box;
}

.ResetBtn,
#contactus-form .ResetBtn {
	background: #f5f7fa !important;
	color: #036 !important;
	border-color: #8aa4bc !important;
}

.SubmitBtn:hover,
#contactus-form .SubmitBtn:hover {
	background: #024a7a !important;
	border-color: #024a7a !important;
}

.ResetBtn:hover,
#contactus-form .ResetBtn:hover {
	background: #e8eef4 !important;
}

.SubmitBtn:focus-visible,
.ResetBtn:focus-visible,
#contactus-form .SubmitBtn:focus-visible,
#contactus-form .ResetBtn:focus-visible {
	outline: 2px solid #036;
	outline-offset: 2px;
}

/* Text CTAs like «کلیک کنید» inside content */
.contentbox > .content a.cta-click,
.contentbox > .content a[href].cta-click {
	display: inline-block;
	padding: 4px 2px;
	font-weight: 700;
}

/* ------------------------------------------------------------------ */
/* Contact / public form presentation                                 */
/* ------------------------------------------------------------------ */

#contactus-form input[type="text"],
#contactus-form input[type="email"],
#contactus-form input[type="tel"],
#contactus-form input:not([type]),
#contactus-form textarea,
#contactus-form select {
	font-family: "Vazirmatn", Tahoma, Geneva, sans-serif !important;
	font-size: 13.5px !important;
	line-height: 1.45 !important;
	min-height: 36px;
	padding: 7px 10px !important;
	border: 1px solid #9eb2c4 !important;
	border-radius: 4px;
	box-sizing: border-box;
	background: #fff;
	color: #222;
	transition: border-color 150ms ease, box-shadow 150ms ease;
}

#contactus-form textarea {
	min-height: 110px;
	resize: vertical;
}

#contactus-form input:focus,
#contactus-form textarea:focus,
#contactus-form select:focus {
	border-color: #036 !important;
	box-shadow: 0 0 0 2px rgba(0, 51, 102, 0.15);
	outline: none;
}

#contactus-form .SpanDescription,
#contactus-form .DivDescription,
#contactus-form label {
	font-family: "Vazirmatn", Tahoma, Geneva, sans-serif;
	font-size: 13px;
	line-height: 1.5;
	color: #333;
}

/* Contact form: sit slightly toward the RIGHT of the content region */
@media only screen and (min-width: 768px) {
	#contactus-form {
		display: block;
		width: 100%;
		box-sizing: border-box;
		padding-left: 4%;
		padding-right: 0;
	}

	#contactus-form > table.contentbox {
		width: 94%;
		max-width: 100%;
		margin-left: auto;
		margin-right: 0;
	}
}

/* Training level headings (CMS «سطح اول» …)
   Compact gray row: ~5px pad above/below title; restrained font lift.
   Do NOT style nested spans as blocks — that stacked padding to ~146px. */
.contentbox > .content .contentdata p.training-level-heading {
	font-family: "Vazirmatn", Tahoma, Geneva, sans-serif !important;
	font-size: 13pt !important; /* ~1.08× CMS 12pt title; body text untouched */
	font-weight: 700 !important;
	line-height: 1.35 !important;
	display: block;
	padding: 5px 0.35em !important;
	margin: 0.4em 0 0.25em !important;
	min-height: 0 !important;
	height: auto !important;
	box-sizing: border-box;
}

/* Undo prior span-as-block inflation; keep title glyphs inline in the row */
.contentbox > .content .contentdata p.training-level-heading span,
.contentbox > .content .contentdata p.training-level-heading b {
	display: inline !important;
	padding: 0 !important;
	margin: 0 !important;
	min-height: 0 !important;
	height: auto !important;
	font-size: inherit !important;
	line-height: inherit !important;
	font-family: inherit !important;
	font-weight: inherit !important;
	vertical-align: baseline;
}

/* Word empty o:p / trailing empty wrappers must not add a second line */
.contentbox > .content .contentdata p.training-level-heading > b:last-child:not(:first-child) {
	display: none !important;
}

/* Captcha — hide speaker only; keep reload + image + input */
.captcha a[href*="securimage_play"],
.captcha a[title*="Audible"],
.captcha a[title*="Audio"] {
	display: none !important;
}

.captcha {
	width: auto !important;
	max-width: 100%;
	border-collapse: separate;
	border-spacing: 6px;
}

.captcha .captcha-label-cell {
	font-family: "Vazirmatn", Tahoma, Geneva, sans-serif !important;
	font-size: 13px !important;
	color: #333 !important;
	text-align: right;
	white-space: nowrap;
	direction: rtl;
}

.captcha .captcha-label-cell .captcha-required,
#contactus-form .captcha-label-td > span[style*="FF0000"],
#contactus-form .captcha-form-row .captcha-label-td > span:first-child {
	color: #f00 !important;
	margin-left: 4px;
}

/* Contact form: captcha label sits in same column as other field labels */
#contactus-form tr.captcha-form-row td.captcha-label-td {
	vertical-align: middle;
	white-space: nowrap;
	text-align: right !important;
	direction: rtl;
}

/* Shared RTL label column — beat UA/CSS that forces text-align:left on some TDs */
#contactus-form table table td[align="right"],
#contactus-form table table td.captcha-label-td {
	text-align: right !important;
	direction: rtl;
}

#contactus-form tr.captcha-form-row td.captcha-controls-td {
	vertical-align: middle;
	text-align: right !important;
}

#contactus-form .captcha-embed {
	display: block;
	width: auto;
	max-width: 100%;
}

.captcha .captcha-row-controls {
	vertical-align: middle;
}

.captcha-media {
	display: inline-flex;
	flex-direction: row; /* RTL page: first child (img) starts on the right */
	align-items: center;
	gap: 8px;
	vertical-align: middle;
	direction: rtl;
}

.captcha-media #siimage,
.captcha #siimage {
	display: inline-block;
	vertical-align: middle;
	padding: 0 !important;
	border: 1px solid #c5d0da;
	max-width: 180px;
	height: auto;
}

.captcha a.captcha-reload,
.captcha .captcha-reload {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	min-height: 32px;
	padding: 4px;
	vertical-align: middle;
	border: 1px solid #9eb2c4;
	border-radius: 4px;
	background: #f5f7fa;
}

.captcha a.captcha-reload:hover,
.captcha .captcha-reload:hover {
	background: #e8eef4;
}

.captcha #securityCode {
	font-family: "Vazirmatn", Tahoma, Geneva, sans-serif !important;
	min-height: 36px;
	padding: 6px 8px !important;
	margin: 0 6px;
	vertical-align: middle;
	border-radius: 4px;
	box-sizing: border-box;
}

.captcha-desktop-row {
	direction: rtl;
}

/* Desktop: image/reload + input on one row */
@media only screen and (min-width: 600px) {
	.captcha tr.captcha-inputs td.captcha-row-controls {
		white-space: nowrap;
	}

	.captcha-desktop-row {
		display: inline-flex;
		flex-direction: row; /* RTL: media first → right side */
		align-items: center;
		flex-wrap: nowrap;
		gap: 10px;
		justify-content: flex-start;
	}
}

/* Mobile: keep image + compact reload + input on one row when width allows */
@media only screen and (max-width: 599px) {
	.captcha-desktop-row {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		align-items: center !important;
		justify-content: flex-start !important;
		gap: 6px;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		box-sizing: border-box !important;
	}

	.captcha .captcha-media {
		display: inline-flex !important;
		flex: 0 0 auto !important;
		flex-direction: row !important;
		align-items: center !important;
		gap: 4px;
		width: auto !important;
		max-width: none !important;
		min-width: 0 !important;
	}

	.captcha .captcha-media #siimage,
	.captcha #siimage {
		max-width: 140px !important;
		width: auto !important;
		height: auto !important;
		flex: 0 0 auto !important;
	}

	/* Beat legacy `.contentbox *:not(img){width:100% !important}` — compact visual, usable hit area */
	.captcha a.captcha-reload,
	.captcha .captcha-reload {
		display: inline-flex !important;
		flex: 0 0 auto !important;
		width: 36px !important;
		max-width: 36px !important;
		min-width: 36px !important;
		height: 36px !important;
		min-height: 36px !important;
		padding: 6px !important;
		box-sizing: border-box !important;
	}

	.captcha a.captcha-reload img,
	.captcha .captcha-reload img {
		display: block !important;
		width: 18px !important;
		height: 18px !important;
		max-width: 18px !important;
		padding: 0 !important;
	}

	.captcha #securityCode {
		flex: 1 1 0% !important;
		min-width: 4.5em !important;
		width: auto !important;
		max-width: none !important;
		margin: 0 !important;
		box-sizing: border-box !important;
	}
}

/* Only wrap at extremely narrow widths if the row cannot fit */
@media only screen and (max-width: 340px) {
	.captcha-desktop-row {
		flex-wrap: wrap !important;
	}

	.captcha #securityCode {
		flex: 1 1 100% !important;
		min-width: 0 !important;
		max-width: 100% !important;
	}
}

/* Linked phones / emails in contact copy */
.contentbox a.portal-tel-link,
.contentbox a.portal-mail-link,
#contactus-form a.portal-tel-link,
#contactus-form a.portal-mail-link {
	color: #1a5f96;
	text-decoration: underline;
}

a.portal-call-cta {
	color: #06F;
	font-weight: 700;
	text-decoration: underline;
}
