/* ==========================================================
   Gohar Home Finance Calculator
   Brand: Montserrat (headings), Open Sans (body), Red-Black-White.
   font-family left WITHOUT !important (breaks Elementor rendering).
   All other properties use !important (Elementor Global Kit override rule).
   ========================================================== */

body .gfc-wrapper {
	width: 100% !important;
	max-width: 720px !important;
	margin: 0 auto !important;
	padding: 60px 24px !important;
	box-sizing: border-box !important;
}

@media (max-width: 640px) {
	body .gfc-wrapper {
		padding: 32px 16px !important;
	}
}

body .gfc-heading {
	font-family: 'Montserrat', sans-serif;
	font-weight: 700 !important;
	font-size: 30px !important;
	line-height: 1.3 !important;
	color: #000000 !important;
	text-align: center !important;
	margin: 0 0 32px 0 !important;
}

@media (max-width: 640px) {
	body .gfc-heading {
		font-size: 22px !important;
		margin-bottom: 20px !important;
	}
}

/* ---------- Card ---------- */

body .gfc-card {
	background-color: #ffffff !important;
	border: 1px solid #000000 !important;
	border-radius: 6px !important;
	padding: 32px !important;
	box-sizing: border-box !important;
}

@media (max-width: 640px) {
	body .gfc-card {
		padding: 20px !important;
	}
}

body .gfc-card__title {
	font-family: 'Montserrat', sans-serif;
	font-weight: 700 !important;
	font-size: 20px !important;
	color: #000000 !important;
	text-align: center !important;
	margin: 0 0 24px 0 !important;
	padding-bottom: 16px !important;
	border-bottom: 2px solid #E11B22 !important;
}

@media (max-width: 640px) {
	body .gfc-card__title {
		font-size: 17px !important;
	}
}

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

body .gfc-form {
	display: flex !important;
	flex-direction: column !important;
	gap: 16px !important;
}

body .gfc-field {
	display: flex !important;
	flex-direction: column !important;
	gap: 6px !important;
	width: 100% !important;
}

body .gfc-field-row {
	display: flex !important;
	gap: 16px !important;
	width: 100% !important;
}

body .gfc-field-row .gfc-field {
	flex: 1 !important;
	min-width: 0 !important;
}

@media (max-width: 560px) {
	body .gfc-field-row {
		flex-direction: column !important;
	}
}

body .gfc-select,
body .gfc-input {
	width: 100% !important;
	box-sizing: border-box !important;
	font-family: 'Open Sans', sans-serif;
	font-weight: 400 !important;
	font-size: 15px !important;
	color: #000000 !important;
	background-color: #ffffff !important;
	border: 1px solid #999999 !important;
	border-radius: 4px !important;
	padding: 14px 16px !important;
	transition: border-color 0.2s ease !important;
}

@media (max-width: 640px) {
	body .gfc-select,
	body .gfc-input {
		font-size: 16px !important;
	}
}

body .gfc-select {
	appearance: none !important;
	-webkit-appearance: none !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 14px center !important;
	background-size: 18px !important;
	padding-right: 40px !important;
	cursor: pointer !important;
}

body .gfc-select:focus,
body .gfc-input:focus {
	outline: none !important;
	border-color: #E11B22 !important;
}

body .gfc-input::placeholder {
	color: #808080 !important;
}

body .gfc-hint {
	font-family: 'Open Sans', sans-serif;
	font-weight: 400 !important;
	font-size: 12px !important;
	color: #666666 !important;
	margin: 0 !important;
	line-height: 1.5 !important;
}

body .gfc-footnote {
	font-family: 'Open Sans', sans-serif;
	font-weight: 400 !important;
	font-size: 12px !important;
	color: #808080 !important;
	margin: 0 !important;
	line-height: 1.5 !important;
}

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

body .gfc-submit {
	width: 100% !important;
	background-color: #000000 !important;
	color: #ffffff !important;
	font-family: 'Montserrat', sans-serif;
	font-weight: 700 !important;
	font-size: 16px !important;
	text-transform: uppercase !important;
	letter-spacing: 0.5px !important;
	border: none !important;
	border-radius: 4px !important;
	padding: 16px !important;
	cursor: pointer !important;
	margin-top: 8px !important;
	transition: background-color 0.25s ease !important;
}

body .gfc-submit:hover {
	background-color: #E11B22 !important;
}

/* ---------- Invalid field state ---------- */

body .gfc-select.gfc-field--invalid,
body .gfc-input.gfc-field--invalid {
	background-color: #fdecec !important;
	border-color: #E11B22 !important;
}

/* ---------- Detailed payment schedule button ---------- */

body .gfc-schedule-btn {
	display: block !important;
	width: 100% !important;
	margin-top: 16px !important;
	padding: 12px 16px !important;
	background-color: transparent !important;
	color: #ffffff !important;
	border: 2px solid #E11B22 !important;
	border-radius: 4px !important;
	font-family: 'Montserrat', sans-serif;
	font-weight: 600 !important;
	font-size: 14px !important;
	text-align: center !important;
	cursor: pointer !important;
	transition: background-color 0.25s ease !important;
}

body .gfc-schedule-btn:hover {
	background-color: #E11B22 !important;
}

/* ---------- Error state ---------- */

body .gfc-error {
	margin-top: 20px !important;
	background-color: #fdecec !important;
	border: 1px solid #E11B22 !important;
	color: #a3151b !important;
	font-family: 'Open Sans', sans-serif;
	font-weight: 600 !important;
	font-size: 14px !important;
	line-height: 1.5 !important;
	padding: 14px 16px !important;
	border-radius: 4px !important;
}

/* ---------- Results ---------- */

body .gfc-results {
	margin-top: 28px !important;
	background-color: #000000 !important;
	border-radius: 6px !important;
	padding: 24px !important;
}

body .gfc-results__header h4 {
	font-family: 'Montserrat', sans-serif;
	font-weight: 700 !important;
	font-size: 17px !important;
	color: #ffffff !important;
	margin: 0 0 16px 0 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.4px !important;
}

body .gfc-results__grid {
	display: flex !important;
	flex-direction: column !important;
	gap: 12px !important;
}

body .gfc-result-item {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 12px !important;
	padding: 12px 0 !important;
	border-bottom: 1px solid #262626 !important;
}

@media (max-width: 480px) {
	body .gfc-result-item {
		flex-direction: column !important;
		align-items: flex-start !important;
		gap: 4px !important;
	}

	body .gfc-result-item__value {
		text-align: left !important;
	}
}

body .gfc-result-item__label {
	font-family: 'Open Sans', sans-serif;
	font-weight: 400 !important;
	font-size: 13px !important;
	color: #b3b3b3 !important;
}

body .gfc-result-item__value {
	font-family: 'Montserrat', sans-serif;
	font-weight: 600 !important;
	font-size: 15px !important;
	color: #ffffff !important;
	text-align: right !important;
}

body .gfc-result-item--highlight {
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	border-bottom: none !important;
	padding-top: 20px !important;
	gap: 10px !important;
}

body .gfc-result-item--highlight .gfc-result-item__label {
	color: #ffffff !important;
	font-weight: 600 !important;
	text-align: left !important;
}

body .gfc-result-item__value--highlight {
	display: flex !important;
	align-items: baseline !important;
	justify-content: center !important;
	gap: 6px !important;
	width: 100% !important;
	box-sizing: border-box !important;
	font-size: 24px !important;
	line-height: 1.2 !important;
	color: #E11B22 !important;
	background-color: #ffffff !important;
	padding: 16px 18px !important;
	border-radius: 6px !important;
	text-align: center !important;
	white-space: nowrap !important;
}

@media (max-width: 480px) {
	body .gfc-result-item__value--highlight {
		font-size: 19px !important;
		padding: 14px 10px !important;
	}
}

body .gfc-results__note {
	font-family: 'Open Sans', sans-serif;
	font-weight: 400 !important;
	font-size: 12px !important;
	color: #808080 !important;
	line-height: 1.6 !important;
	margin: 20px 0 0 0 !important;
	padding-top: 16px !important;
	border-top: 1px solid #262626 !important;
}

/* ---------- Product features table ---------- */

body .gfc-features {
	margin-top: 48px !important;
}

body .gfc-features__title {
	font-family: 'Montserrat', sans-serif;
	font-weight: 700 !important;
	font-size: 20px !important;
	color: #000000 !important;
	margin: 0 0 16px 0 !important;
	text-align: center !important;
}

body .gfc-features__table {
	width: 100% !important;
	border-collapse: collapse !important;
	border: 1px solid #000000 !important;
}

body .gfc-features__table td {
	font-family: 'Open Sans', sans-serif;
	font-size: 14px !important;
	line-height: 1.6 !important;
	color: #000000 !important;
	padding: 14px 16px !important;
	border: 1px solid #d9d9d9 !important;
	vertical-align: top !important;
}

body .gfc-features__table tr td:first-child {
	background-color: #000000 !important;
	color: #ffffff !important;
	font-weight: 600 !important;
	width: 40% !important;
}

@media (max-width: 560px) {
	body .gfc-features__table,
	body .gfc-features__table tbody,
	body .gfc-features__table tr,
	body .gfc-features__table td {
		display: block !important;
		width: 100% !important;
	}

	body .gfc-features__table tr {
		margin-bottom: 8px !important;
	}

	body .gfc-features__table tr td:first-child {
		width: 100% !important;
	}
}

/* ==========================================================
   Popup trigger button
   ========================================================== */

body .gfc-trigger-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	background-color: #E11B22 !important;
	color: #ffffff !important;
	font-family: 'Montserrat', sans-serif;
	font-weight: 700 !important;
	font-size: 15px !important;
	text-transform: uppercase !important;
	letter-spacing: 0.5px !important;
	border: none !important;
	border-radius: 4px !important;
	padding: 16px 32px !important;
	cursor: pointer !important;
	transition: background-color 0.25s ease, transform 0.2s ease !important;
	max-width: 100% !important;
	text-align: center !important;
	white-space: normal !important;
}

@media (max-width: 480px) {
	body .gfc-trigger-btn:not(.gfc-trigger-btn--floating) {
		width: 100% !important;
		padding: 14px 20px !important;
		font-size: 13px !important;
	}
}

body .gfc-trigger-btn:hover {
	background-color: #000000 !important;
	transform: translateY(-2px) !important;
}

body .gfc-trigger-btn__icon {
	width: 18px !important;
	height: 18px !important;
	flex-shrink: 0 !important;
}

/* ---------- Floating variant (fixed, bottom-left, pill FAB) ---------- */

body .gfc-trigger-btn--floating {
	position: fixed !important;
	left: 24px !important;
	bottom: 24px !important;
	z-index: 999997 !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	padding: 14px 22px !important;
	border-radius: 50px !important;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
	font-size: 14px !important;
}

body .gfc-trigger-btn--floating:hover {
	transform: translateY(-3px) !important;
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32) !important;
}

/* Docked state — set via JS when the footer approaches. Switches from
   fixed-to-viewport to absolute-in-document, so it scrolls away with the
   page and never overlaps the footer. The 'top' value itself is set
   inline (with !important) by JS since it's calculated dynamically. */
body .gfc-trigger-btn--floating.is-docked {
	position: absolute !important;
	bottom: auto !important;
}

body .gfc-trigger-btn--floating.is-docked:hover {
	transform: translateY(-3px) !important;
}

@media (max-width: 640px) {
	body .gfc-trigger-btn--floating {
		left: 16px !important;
		bottom: 16px !important;
		padding: 12px !important;
		border-radius: 50% !important;
	}

	body .gfc-trigger-btn--floating .gfc-trigger-btn__text {
		display: none !important;
	}

	body .gfc-trigger-btn--floating .gfc-trigger-btn__icon {
		width: 22px !important;
		height: 22px !important;
	}
}

/* ==========================================================
   Modal
   ========================================================== */

body .gfc-modal-overlay {
	position: fixed !important;
	inset: 0 !important;
	z-index: 999999 !important;
	background-color: rgba(0, 0, 0, 0.7) !important;
	display: flex !important;
	align-items: flex-start !important;
	justify-content: center !important;
	padding: 40px 20px !important;
	overflow-y: auto !important;
	opacity: 0 !important;
	transition: opacity 0.25s ease !important;
	box-sizing: border-box !important;
}

body .gfc-modal-overlay[hidden] {
	display: none !important;
}

body .gfc-modal-overlay.is-open {
	opacity: 1 !important;
}

body .gfc-modal {
	position: relative !important;
	background-color: #ffffff !important;
	border-radius: 8px !important;
	width: 100% !important;
	max-width: 560px !important;
	margin: auto !important;
	transform: translateY(24px) scale(0.98) !important;
	transition: transform 0.25s ease !important;
	box-sizing: border-box !important;
}

body .gfc-modal-overlay.is-open .gfc-modal {
	transform: translateY(0) scale(1) !important;
}

body .gfc-modal__body.gfc-wrapper {
	padding: 32px 20px 20px 20px !important;
	max-width: 100% !important;
}

@media (max-width: 560px) {
	body .gfc-modal__body.gfc-wrapper {
		padding: 40px 16px 16px 16px !important;
	}
}

body .gfc-modal-close {
	position: absolute !important;
	top: 16px !important;
	right: 16px !important;
	width: 36px !important;
	height: 36px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	background-color: #000000 !important;
	border: none !important;
	border-radius: 50% !important;
	color: #ffffff !important;
	cursor: pointer !important;
	z-index: 10 !important;
	transition: background-color 0.2s ease !important;
	font-family: Arial, sans-serif;
	font-size: 22px !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	padding: 0 !important;
}

body .gfc-modal-close:hover {
	background-color: #E11B22 !important;
}

/* ---------- Compact popup layout ----------
   The modal reuses the same markup as the full inline calculator, so we
   scope tighter spacing/typography to .gfc-modal only — the standalone
   page keeps its normal roomier layout. */

body .gfc-modal-overlay {
	align-items: center !important;
	padding: 20px !important;
}

body .gfc-modal .gfc-card {
	padding: 22px !important;
}

body .gfc-modal .gfc-card__title {
	font-size: 16px !important;
	margin-bottom: 14px !important;
	padding-bottom: 10px !important;
}

body .gfc-modal .gfc-form {
	gap: 10px !important;
}

body .gfc-modal .gfc-field {
	gap: 3px !important;
}

body .gfc-modal .gfc-field-row {
	gap: 10px !important;
}

body .gfc-modal .gfc-select,
body .gfc-modal .gfc-input {
	padding: 10px 14px !important;
	font-size: 14px !important;
}

body .gfc-modal .gfc-select {
	background-size: 16px !important;
	padding-right: 36px !important;
}

body .gfc-modal .gfc-hint {
	font-size: 11px !important;
	line-height: 1.35 !important;
}

body .gfc-modal .gfc-footnote {
	font-size: 11px !important;
	line-height: 1.35 !important;
}

body .gfc-modal .gfc-submit {
	padding: 12px !important;
	font-size: 14px !important;
	margin-top: 2px !important;
}

body .gfc-modal .gfc-schedule-btn {
	margin-top: 10px !important;
	padding: 10px 14px !important;
	font-size: 13px !important;
}

body .gfc-modal .gfc-error {
	margin-top: 12px !important;
	padding: 10px 12px !important;
	font-size: 13px !important;
}

body .gfc-modal .gfc-results {
	margin-top: 18px !important;
	padding: 16px !important;
}

body .gfc-modal .gfc-results__header h4 {
	font-size: 14px !important;
	margin-bottom: 10px !important;
}

body .gfc-modal .gfc-results__grid {
	gap: 6px !important;
}

body .gfc-modal .gfc-result-item {
	padding: 8px 0 !important;
}

body .gfc-modal .gfc-result-item--highlight {
	padding-top: 12px !important;
	gap: 6px !important;
}

body .gfc-modal .gfc-result-item__value--highlight {
	font-size: 19px !important;
	padding: 12px 14px !important;
}

body .gfc-modal .gfc-results__note {
	margin-top: 12px !important;
	padding-top: 10px !important;
	font-size: 11px !important;
}

/* The full "Product Features & Benefits" table is meant for the standalone
   page — inside the compact popup it's dropped to keep the modal short. */
body .gfc-modal .gfc-features {
	display: none !important;
}
