/*
Theme Name: Avada Child
Description: Child theme for Avada theme
Author: ThemeFusion
Author URI: https://theme-fusion.com
Template: Avada
Version: 1.0.0
Text Domain:  Avada
*/

/* ==========================================================================
   Existing site rules
   ========================================================================== */

.ls-wp-fullwidth-container, .ls-wp-fullwidth-helper, .ls-container, .ls-container * {
	left: auto !important;
}

.wpml-ls-legacy-list-horizontal {
	padding: 5px;
	width: 105px;
}

.wpml-ls-legacy-list-horizontal .wpml-ls-flag+span {
	font-family: iransans;
	font-size: 14px;
	color: black;
}

.fusion-image-wrapper .fusion-rollover {
	background-image: -webkit-linear-gradient(top, #518bc0 0%, #5aabd62b 100%) !important;
}

.post-content p {
	text-align: justify;
}


/* ==========================================================================
   Online Inquiry Form (Contact Form 7)
   ========================================================================== */

.inq-form {
	background: #e9e9e9;
	padding: 34px 36px 40px;
	border-radius: 3px;
}

/* High specificity: Avada styles headings via .fusion-body h3,
   which outranks a plain .inq-title selector. */
.inq-form h3.inq-title,
.fusion-body .inq-form h3.inq-title {
	color: #1a73e8 !important;
	font-family: inherit;
	font-style: italic !important;
	font-weight: 800 !important;
	font-size: 26px !important;
	line-height: 1.2 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	margin: 0 0 30px !important;
	padding: 0 !important;
	border: 0 !important;
}

.inq-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px 26px;
	margin-bottom: 22px;
}

.inq-span2 {
	grid-column: span 2;
}

.inq-field {
	margin: 0 0 18px;
	position: relative;
}

.inq-grid .inq-field {
	margin-bottom: 0;
}

.inq-form .inq-field label {
	display: block;
	font-weight: 700;
	font-size: 14px;
	line-height: 1.3;
	color: #1a1a1a;
	margin: 0 0 1px;
}

.inq-form .inq-field small {
	display: block;
	font-style: italic;
	font-size: 13px;
	color: #4a4a4a;
	margin: 0 0 8px;
}

.inq-field .req {
	color: #e00000;
	margin-left: 2px;
}

/* ---------- inputs ---------- */

.inq-form input[type="text"],
.inq-form input[type="email"],
.inq-form input[type="tel"],
.inq-form select,
.inq-form textarea {
	width: 100%;
	height: auto;
	padding: 11px 14px;
	border: 1px solid #ccd3da;
	border-radius: 4px;
	background-color: #f5f8fb;
	color: #333;
	font-size: 15px;
	line-height: 1.4;
	box-shadow: none;
	box-sizing: border-box;
}

.inq-form select {
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 18px;
	padding-right: 40px;
	cursor: pointer;
}

.inq-form input:focus,
.inq-form select:focus,
.inq-form textarea:focus {
	outline: none;
	border-color: #4a90e2;
	background-color: #fff;
}

.inq-form textarea {
	min-height: 130px;
	resize: vertical;
}

/* ---------- field icons ---------- */

.inq-field[class*="inq-ico-"] input {
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 18px;
	padding-right: 42px;
}

.inq-ico-globe input {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='1.7'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.6 2.5 15.4 0 18M12 3c-2.5 2.6-2.5 15.4 0 18'/%3E%3C/svg%3E");
}

.inq-ico-user input {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='1.7'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4.4 3.6-7 8-7s8 2.6 8 7'/%3E%3C/svg%3E");
}

.inq-ico-mail input {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='1.7'%3E%3Crect x='2.5' y='5' width='19' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E");
}

.inq-ico-phone input {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23555'%3E%3Cpath d='M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.2.4 2.4.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.6 21 3 13.4 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.4 0 .7-.2 1l-2.3 2.2z'/%3E%3C/svg%3E");
}

.inq-ico-mobile input {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e08a2e' stroke-width='1.7'%3E%3Crect x='7' y='2.5' width='10' height='19' rx='2'/%3E%3Cpath d='M11 18.5h2'/%3E%3C/svg%3E");
}

/* ---------- Type: checkboxes styled as radios ---------- */

.inq-choices .wpcf7-list-item {
	display: inline-block;
	margin: 6px 26px 0 0;
}

.inq-choices .wpcf7-list-item label {
	display: inline-flex !important;
	align-items: center;
	font-weight: 400 !important;
	font-size: 14px;
	color: #333;
	cursor: pointer;
	margin: 0 !important;
}

.inq-choices input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	width: 15px;
	height: 15px;
	margin: 0 8px 0 0;
	border: 1px solid #8a8a8a;
	border-radius: 50%;
	background: #fff;
	position: relative;
	flex: 0 0 auto;
	cursor: pointer;
}

.inq-choices input[type="checkbox"]:checked::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	right: 3px;
	bottom: 3px;
	border-radius: 50%;
	background: #4a90e2;
}

.inq-choices .wpcf7-list-item-label {
	line-height: 1;
}

/* ---------- file upload ---------- */

.inq-file input[type="file"] {
	font-size: 14px;
	color: #444;
}

.inq-file input[type="file"]::file-selector-button {
	background: #4a90e2;
	color: #fff;
	border: 0;
	border-radius: 4px;
	padding: 11px 26px;
	margin-right: 14px;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
}

.inq-file input[type="file"]::file-selector-button:hover {
	background: #3a7bc8;
}

/* ---------- submit (overrides Avada button styling) ---------- */

.inq-submit {
	text-align: right;
	margin-top: 26px;
}

.inq-form .inq-submit input[type="submit"],
.inq-form input.wpcf7-submit {
	background: #4a90e2 !important;
	background-image: none !important;
	border: 0 !important;
	color: #fff !important;
	padding: 13px 30px !important;
	border-radius: 4px !important;
	font-weight: 700;
	font-size: 15px;
	line-height: 1;
	text-transform: none;
	width: auto;
	cursor: pointer;
}

.inq-form .inq-submit input[type="submit"]:hover,
.inq-form input.wpcf7-submit:hover {
	background: #3a7bc8 !important;
}

/* ---------- validation ---------- */

.inq-form .wpcf7-not-valid {
	border-color: #e00000 !important;
}

.inq-form .wpcf7-not-valid-tip {
	font-size: 12px;
	color: #e00000;
	margin-top: 4px;
}

/* reCAPTCHA v3 badge. If you hide it, Google requires a visible
   attribution line near the submit button instead. */
.grecaptcha-badge {
	visibility: visible;
}

@media (max-width: 782px) {
	.inq-grid {
		grid-template-columns: 1fr;
	}
	.inq-span2 {
		grid-column: auto;
	}
	.inq-form {
		padding: 22px 20px 26px;
	}
	.inq-submit {
		text-align: left;
	}
}


/* ==========================================================================
   RTL / Persian variant  -  wrapper is <div class="inq-form inq-rtl" dir="rtl">
   Layers on top of the rules above; only the direction-dependent bits flip.
   ========================================================================== */

.inq-rtl {
	direction: rtl;
	text-align: right;
	font-family: iransans, Tahoma, sans-serif;
}

.fusion-body .inq-form.inq-rtl h3.inq-title {
	font-family: iransans, Tahoma, sans-serif !important;
	font-style: normal !important;   /* Persian faces have no true italic */
	font-size: 24px !important;
	text-align: right !important;
}

.inq-rtl .inq-field label,
.inq-rtl .inq-field small {
	text-align: right;
}

.inq-rtl .inq-field small {
	font-style: normal;
	opacity: .85;
}

.inq-rtl .req {
	margin-left: 0;
	margin-right: 2px;
}

/* chevron and field icons move to the left edge */
.inq-rtl select {
	background-position: left 12px center;
	padding-right: 14px;
	padding-left: 40px;
}

.inq-rtl .inq-field[class*="inq-ico-"] input {
	background-position: left 12px center;
	padding-right: 14px;
	padding-left: 42px;
}

/* Type choices */
.inq-rtl .inq-choices .wpcf7-list-item {
	margin: 6px 0 0 26px;
}

.inq-rtl .inq-choices input[type="checkbox"] {
	margin: 0 0 0 8px;
}

/* upload button sits on the right, filename to its left */
.inq-rtl .inq-file input[type="file"]::file-selector-button {
	margin-right: 0;
	margin-left: 14px;
}

.inq-rtl .inq-submit {
	text-align: left;
}

/* numbers stay left-to-right inside RTL fields */
.inq-rtl input[type="tel"],
.inq-rtl input[type="email"] {
	direction: ltr;
	text-align: right;
}

@media (max-width: 782px) {
	.inq-rtl .inq-submit {
		text-align: right;
	}
}


/* ==========================================================================
   Custom upload button
   The native "Choose File" / "No file chosen" text is browser UI and cannot
   be translated from the page. So the real input is made invisible and
   stretched over our own button; a small script writes the filename.
   Markup: <div class="inq-upload"><span class="inq-upload-btn">..</span>
           <span class="inq-upload-name">..</span>[file ...]</div>
   ========================================================================== */

.inq-upload {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 14px;
	max-width: 100%;
}

/* CF7 wraps every field in a positioned <span class="wpcf7-form-control-wrap">.
   Without this rule the absolutely positioned input anchors to that span,
   which collapses to zero width - and the button becomes unclickable. */
.inq-upload .wpcf7-form-control-wrap {
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	z-index: 3;
}

.inq-upload input[type="file"] {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	opacity: 0;
	cursor: pointer;
	z-index: 3;
}

/* The validation tip lives inside that wrap, so pull it back below the button
   where it is actually readable. */
.inq-upload .wpcf7-not-valid-tip {
	position: absolute;
	top: 100%;
	left: 0;
	width: max-content;
	max-width: 100%;
	margin-top: 8px;
	z-index: 4;
}

.inq-rtl .inq-upload .wpcf7-not-valid-tip {
	left: auto;
	right: 0;
}

.inq-upload input[type="file"]::file-selector-button {
	display: none;
}

.inq-upload-btn {
	display: inline-block;
	background: #4a90e2;
	color: #fff;
	border-radius: 4px;
	padding: 11px 26px;
	font-weight: 700;
	font-size: 14px;
	line-height: 1.2;
	white-space: nowrap;
	flex: 0 0 auto;
}

.inq-upload:hover .inq-upload-btn {
	background: #3a7bc8;
}

.inq-upload-name {
	color: #555;
	font-size: 14px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.inq-upload-name.has-file {
	color: #1a1a1a;
	font-weight: 600;
}


/* ==========================================================================
   Section headings, extra field icons, reCAPTCHA note
   ========================================================================== */

.fusion-body .inq-form h4.inq-section,
.inq-form h4.inq-section {
	color: #2a7fd4 !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	letter-spacing: .4px !important;
	text-transform: uppercase !important;
	margin: 0 0 20px !important;
	padding: 0 !important;
	border: 0 !important;
}

.inq-form .inq-grid + .inq-section {
	margin-top: 30px !important;
}

.inq-ico-pencil input {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23333'%3E%3Cpath d='M3 17.2V21h3.8L17.9 9.9l-3.8-3.8L3 17.2zM20.7 7.1c.4-.4.4-1 0-1.4l-2.4-2.4c-.4-.4-1-.4-1.4 0l-1.8 1.8 3.8 3.8 1.8-1.8z'/%3E%3C/svg%3E");
}

.inq-ico-date input {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='1.7'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E");
}

/* Chrome draws its own calendar glyph on date inputs - hide it but keep it
   clickable, so only our icon shows. */
.inq-ico-date input::-webkit-calendar-picker-indicator {
	opacity: 0;
	cursor: pointer;
}

.inq-form .inq-recaptcha-note {
	margin: 22px 0 0;
	font-size: 12px;
	color: #666;
	line-height: 1.6;
}

.inq-form .inq-recaptcha-note a {
	color: #2a7fd4;
	text-decoration: underline;
}