/* APJ Get a Quote v2 — modal */

.apj-quote-overlay[hidden] { display: none; }

.apj-quote-overlay {
	--apj-accent: #1F6F6B;
	--apj-ink: #16232B;
	--apj-muted: #5C6A72;
	--apj-line: #E1E5E8;
	position: fixed;
	inset: 0;
	z-index: 999999;
	background: rgba(12, 22, 28, .55);
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 24px 16px;
	overflow-y: auto;
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
}

html.apj-lock { overflow: hidden; }

.apj-quote-card {
	position: relative;
	width: 100%;
	max-width: 540px;
	margin: auto;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 24px 60px rgba(10, 20, 26, .28);
	animation: apj-in .18s ease-out;
}

@keyframes apj-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .apj-quote-card { animation: none; } }

.apj-quote-body { padding: 26px 26px 24px; }

.apj-quote-close {
	position: absolute;
	top: 8px; right: 10px;
	width: 34px; height: 34px;
	border: 0; background: transparent;
	font-size: 26px; line-height: 1;
	color: #7A8790; cursor: pointer; border-radius: 50%;
	z-index: 2;
}
.apj-quote-close:hover { background: #F1F3F4; color: var(--apj-ink); }

.apj-quote-body .apj-eyebrow {
	margin: 0 0 6px;
	font-size: 11px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--apj-accent);
	font-weight: 700;
}
.apj-quote-body .apj-eyebrow:empty { display: none; }

.apj-quote-body h2 {
	margin: 0 0 6px;
	font-size: 24px;
	line-height: 1.25;
	color: var(--apj-ink);
}

.apj-quote-body .apj-sub {
	margin: 0 0 18px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--apj-muted);
}

.apj-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.apj-grid .apj-field { margin: 0; }
.apj-field.apj-full { grid-column: 1 / -1; }

.apj-field label {
	display: block;
	margin-bottom: 5px;
	font-size: 12px;
	font-weight: 600;
	color: var(--apj-ink);
	line-height: 1.3;
}

.apj-req { color: #C0392B; }

.apj-quote-card input[type="text"],
.apj-quote-card input[type="tel"],
.apj-quote-card input[type="email"],
.apj-quote-card input[type="date"],
.apj-quote-card input[type="number"],
.apj-quote-card select,
.apj-quote-card textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 11px 12px;
	border: 1px solid var(--apj-line);
	border-radius: 8px;
	font-size: 15px;
	font-family: inherit;
	color: var(--apj-ink);
	background: #fff;
	box-shadow: none;
	height: auto;
	line-height: 1.35;
}

.apj-quote-card select {
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235C6A72' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 16px;
	padding-right: 34px;
}

.apj-quote-card input:focus,
.apj-quote-card select:focus,
.apj-quote-card textarea:focus {
	outline: 2px solid var(--apj-accent);
	outline-offset: 1px;
	border-color: var(--apj-accent);
}

.apj-quote-card textarea { resize: vertical; }

.apj-radios { display: flex; gap: 10px; flex-wrap: wrap; }
.apj-radio {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	padding: 9px 14px;
	border: 1px solid var(--apj-line);
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
}
.apj-radio input { margin: 0; accent-color: var(--apj-accent); }
.apj-radio:hover { border-color: var(--apj-accent); }

.apj-submit {
	display: block;
	width: 100%;
	margin-top: 18px;
	padding: 13px 18px;
	border: 0;
	border-radius: 8px;
	background: var(--apj-accent);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
}
.apj-submit:hover { filter: brightness(.93); color: #fff; }
.apj-submit[disabled] { opacity: .6; cursor: wait; }

.apj-wa-link { background: #25D366; }

.apj-error {
	margin: 12px 0 0;
	padding: 9px 12px;
	border-radius: 8px;
	background: #FDECEC;
	color: #A32020;
	font-size: 13px;
}

.apj-hp { position: absolute; left: -9999px; }

.apj-quote-success { text-align: center; padding: 10px 0 4px; }
.apj-quote-success h2 { margin-bottom: 8px; }
.apj-quote-success p { color: var(--apj-muted); font-size: 14px; }

@media (max-width: 520px) {
	.apj-grid { grid-template-columns: 1fr; }
	.apj-field.apj-half { grid-column: 1 / -1; }
	.apj-quote-body { padding: 24px 18px 20px; }
	.apj-quote-body h2 { font-size: 20px; }
}

/* Settings me "booking widget chhupa dein" tick karne par */
html.apj-hide-booking #wte-booking-datetime,
html.apj-hide-booking #wte-booking-packages,
html.apj-hide-booking .wte-booking-tabs,
html.apj-hide-booking .wte-booking-steps,
html.apj-hide-booking .wte-show-prices,
html.apj-hide-booking .wte-booking-nav { display: none !important; }

/* Admin settings page */
.apj-settings .apj-fields textarea { font-size: 12px; }
.apj-settings .apj-fields td { vertical-align: top; }
