/**
 * BullionOutlet Gold Rate Inquiry - Frontend
 *
 * @author Al-Rafeh Web Developers https://arwd.org/
 * @copyright Al-Rafeh Web Developers
 */

.bogri-trigger-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 28px;
	border: 0;
	border-radius: 4px;
	background: #d4a04c;
	color: #fff;
	font-family: Poppins, sans-serif;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
}

.bogri-trigger-button:hover,
.bogri-trigger-button:focus {
	background: #c08e3d;
	color: #fff;
}

.bogri-modal[hidden] {
	display: none;
}

.bogri-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.bogri-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(17, 24, 39, 0.45);
}

.bogri-modal__dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 640px;
	padding: 44px 48px 40px;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
	font-family: Poppins, sans-serif;
}

.bogri-modal__close {
	position: absolute;
	top: 14px;
	right: 16px;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #111;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.bogri-modal__title {
	margin: 0 0 32px;
	color: #111827;
	font-family: Poppins, sans-serif;
	font-size: 30px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.bogri-honeypot {
	position: absolute;
	left: -9999px;
	height: 0;
	overflow: hidden;
}

.bogri-form {
	width: 100%;
}

.bogri-field {
	display: block;
	width: 100%;
	margin: 0 0 16px;
}

.bogri-modal .bogri-field input,
.bogri-modal .bogri-field input[type="text"],
.bogri-modal .bogri-field input[type="tel"],
.bogri-modal .bogri-field input[type="number"],
.bogri-modal .bogri-field select {
	display: block;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0;
	height: 52px;
	padding: 0 16px;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	background: #fff;
	color: #111827;
	font-family: Poppins, sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 52px;
	appearance: none;
	-webkit-appearance: none;
	box-sizing: border-box;
}

.bogri-field 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='%23111827' d='M1.41 0 6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	padding-right: 40px;
}

.bogri-modal .bogri-field input[type="number"] {
	-moz-appearance: textfield;
}

.bogri-modal .bogri-field input[type="number"]::-webkit-outer-spin-button,
.bogri-modal .bogri-field input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.bogri-field input::placeholder {
	color: #9ca3af;
}

.bogri-field input:focus,
.bogri-field select:focus {
	outline: 0;
	border-color: #d4a04c;
	box-shadow: 0 0 0 3px rgba(212, 160, 76, 0.2);
}

.bogri-field.is-invalid input,
.bogri-field.is-invalid select {
	border-color: #d63638;
}

.bogri-form__error {
	margin: 0 0 12px;
	color: #d63638;
	font-size: 13px;
}

.bogri-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 52px;
	margin-top: 8px;
	padding: 0 16px;
	border: 0;
	border-radius: 4px;
	background: #d4a04c;
	color: #fff;
	font-family: Poppins, sans-serif;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
}

.bogri-submit:hover,
.bogri-submit:focus {
	background: #c08e3d;
	color: #fff;
}

.bogri-submit:disabled {
	opacity: 0.7;
	cursor: wait;
}

.bogri-submit--ghost {
	margin-top: 16px;
	background: transparent;
	border: 1px solid #d4a04c;
	color: #d4a04c;
	text-transform: none;
	letter-spacing: 0;
	font-weight: 600;
}

.bogri-submit--ghost:hover,
.bogri-submit--ghost:focus {
	background: #d4a04c;
	color: #fff;
}

.bogri-results[hidden],
.bogri-form[hidden] {
	display: none;
}

.gold-total-box {
	margin-top: 8px;
	padding: 20px 18px;
	background: #f3f4f6;
	border-radius: 4px;
	color: #111827;
	font-size: 18px;
	font-weight: 600;
	text-align: center;
}

#submittedGoldTotal {
	display: inline-block;
	margin-left: 6px;
	color: #d4a04c;
	font-size: 22px;
	font-weight: 800;
}

.bogri-results__meta {
	margin: 12px 0 0;
	color: #6b7280;
	font-size: 13px;
	text-align: center;
}

body.bogri-modal-open {
	overflow: hidden;
}

@media (max-width: 600px) {
	.bogri-modal {
		padding: 12px;
		align-items: flex-end;
	}

	.bogri-modal__dialog {
		padding: 28px 20px 24px;
		border-radius: 12px 12px 0 0;
	}

	.bogri-modal__title {
		font-size: 22px;
		padding-right: 28px;
	}
}
