/**
 * AMDC Calculator - Public Styles
 *
 * @package Abu_Musa_Developer_Calculator
 * @since   1.0.0
 */

/* ── CSS Custom Properties (Color Pairs) ────────────────────── */

.amdc-calculator {
	/* Blue-Golden Pair */
	--amdc-blue-golden-pair: #0071AC;
	
	/* Black-Golden Pair */
	--amdc-black-golden-pair: #000000;
	
	/* Black-DullWhite Pair */
	--amdc-black-dullwhite-pair: #000;
	
	/* Black-Meroon Pair */
	--amdc-black-meroon-pair: #000;
	
	/* Blue-Meroon Pair */
	--amdc-blue-meroon-pair: #0071AC;
	
	/* Body BG Pair */
	--amdc-body-bg-pair: #0071AC;
	
	/* Input BG Pair */
	--amdc-input-bg-pair: #fcfbfa;
	
	/* Hover Golden-Red Pair */
	--amdc-hover-golden-red-pair: #e58c17;
	
	/* Border Grey-Golden Pair */
	--amdc-border-grey-golden-pair: #ced4da;
	
	/* Border Grey-Grey Pair */
	--amdc-border-grey-grey-pair: #ced4da;
}

.amdc-calculator[data-theme="dark"] {
	/* Blue-Golden Pair */
	--amdc-blue-golden-pair: #e58c17;
	
	/* Black-Golden Pair */
	--amdc-black-golden-pair: #e58c17;
	
	/* Black-DullWhite Pair */
	--amdc-black-dullwhite-pair: #dfdedb;
	
	/* Black-Meroon Pair */
	--amdc-black-meroon-pair: #c03437;
	
	/* Blue-Meroon Pair */
	--amdc-blue-meroon-pair: #c03437;
	
	/* Body BG Pair */
	--amdc-body-bg-pair: #141414;
	
	/* Input BG Pair */
	--amdc-input-bg-pair: #000;
	
	/* Hover Golden-Red Pair */
	--amdc-hover-golden-red-pair: #c03437;
	
	/* Border Grey-Golden Pair */
	--amdc-border-grey-golden-pair: #e58c17;
	
	/* Border Grey-Grey Pair */
	--amdc-border-grey-grey-pair: #1e1e1e;
}

/* ── WP Dark Mode Plugin Compatibility ───────────────────────── */
/* Auto-apply dark variables when WP Dark Mode plugin is active */

html.wp-dark-mode-active .amdc-calculator,
body.wp-dark-mode-active .amdc-calculator {
	/* Blue-Golden Pair */
	--amdc-blue-golden-pair: #e58c17;
	/* Black-Golden Pair */
	--amdc-black-golden-pair: #e58c17;
	/* Black-DullWhite Pair */
	--amdc-black-dullwhite-pair: #dfdedb;
	/* Black-Meroon Pair */
	--amdc-black-meroon-pair: #c03437;
	/* Blue-Meroon Pair */
	--amdc-blue-meroon-pair: #c03437;
	/* Body BG Pair */
	--amdc-body-bg-pair: #141414;
	/* Input BG Pair */
	--amdc-input-bg-pair: #000;
	/* Hover Golden-Red Pair */
	--amdc-hover-golden-red-pair: #c03437;
	/* Border Grey-Golden Pair */
	--amdc-border-grey-golden-pair: #e58c17;
	/* Border Grey-Grey Pair */
	--amdc-border-grey-grey-pair: #1e1e1e;
}

/* ── Calculator Container ───────────────────────────────────── */

.amdc-calculator {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.6;
	color: inherit;
	position: relative;
	border-radius: 12px;
	overflow: visible;
	background-color: rgba(228, 16, 16, 0.9);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(0, 0, 0, 0.08);
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.amdc-calculator *,
.amdc-calculator *::before,
.amdc-calculator *::after {
	box-sizing: border-box;
}

.amdc-calculator-layout {
	display: flex;
	gap: 30px;
	align-items: flex-start;
}

.amdc-calculator-form {
	flex: 1;
	min-width: 0;
}

.amdc-calculator-results {
	flex: 0 0 280px;
	background: #f8f9fa;
	border: 1px solid #dee2e6;
	border-radius: 8px;
	padding: 20px;
	position: -webkit-sticky;
	position: sticky;
	top: 100px;
	max-height: calc(100vh - 120px);
	overflow-y: auto;
	overflow-x: hidden;
}

/* ── Form Sections ──────────────────────────────────────────── */

.amdc-form-section {
	margin-bottom: 20px;
}

.amdc-form-row {
	margin-bottom: 10px;
}

.amdc-form-columns {
	display: flex;
	gap: 20px;
}

.amdc-form-columns > .amdc-form-field {
	flex: 1;
}

.amdc-form-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	color: var(--amdc-black-golden-pair);
	font-size: 16px;
}

.amdc-form-field label .required,
.amdc-required {
	color: #d63638;
	font-weight: 700;
	margin-left: 2px;
}

.amdc-form-field input[type="text"],
.amdc-form-field input[type="number"],
.amdc-form-field input[type="email"],
.amdc-form-field input[type="tel"] {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid var(--amdc-border-grey-grey-pair);
	border-radius: 6px;
	font-size: 14px;
	background: var(--amdc-input-bg-pair);
	color: var(--amdc-black-dullwhite-pair);
	transition: border-color 0.2s;
}

.amdc-form-field input:focus {
	border-color: var(--amdc-blue-golden-pair);
	outline: none;
	box-shadow: 0 0 0 3px rgba(0, 113, 172, 0.1);
}

/* ── Field Header ───────────────────────────────────────────── */

.amdc-field-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
}

.amdc-field-header label {
	font-weight: 600;
	margin-bottom: 0;
	font-size: 16px;
	color: var(--amdc-black-golden-pair);
}

.amdc-details-link {
	font-size: 12px;
	color: var(--amdc-blue-golden-pair);
	text-decoration: none;
	cursor: pointer;
}

.amdc-details-link:hover {
	text-decoration: none;
	color: var(--amdc-hover-golden-red-pair);
}

/* ── Number Input with +/- ──────────────────────────────────── */

.amdc-number-input {
	display: flex;
	align-items: stretch;
	gap: 0;
	width: 100%;
}

.amdc-number-input input[type="number"] {
	flex: 1;
	min-width: 0;
	text-align: center;
	border-radius: 0;
	border-left: none;
	border-right: none;
	-moz-appearance: textfield;
}

.amdc-number-input input[type="number"]::-webkit-inner-spin-button,
.amdc-number-input input[type="number"]::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.amdc-btn-minus,
.amdc-btn-plus {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	flex-shrink: 0;
	border: 1px solid var(--amdc-border-grey-grey-pair);
	background: var(--amdc-input-bg-pair);
	cursor: pointer;
	color: var(--amdc-black-dullwhite-pair);
	transition: background 0.2s, color 0.2s;
}

.amdc-btn-minus {
	border-radius: 6px 0 0 6px;
}

.amdc-btn-plus {
	border-radius: 0 6px 6px 0;
}

.amdc-btn-minus:hover,
.amdc-btn-plus:hover {
	background: var(--amdc-blue-golden-pair);
	color: #fff;
	border-color: var(--amdc-blue-golden-pair);
}

/* ── Copy Presets ───────────────────────────────────────────── */

.amdc-copy-presets {
	display: flex;
	gap: clamp(1px, 0.4vw, 6px);
	margin-top: 8px;
	flex-wrap: nowrap;
	container-type: inline-size;
}

.amdc-preset-btn {
	padding: clamp(2px, 1.8cqi, 8px) clamp(1px, 1cqi, 10px);
	border: 1px solid var(--amdc-border-grey-grey-pair);
	border-radius: clamp(3px, 1.5cqi, 6px);
	background: var(--amdc-input-bg-pair);
	color: var(--amdc-black-dullwhite-pair);
	font-size: clamp(6px, 3.2cqi, 12px);
	cursor: pointer;
	transition: all 0.2s;
	flex: 1 1 0;
	min-width: 0;
	text-align: center;
	white-space: nowrap;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

.amdc-preset-btn:hover {
	background: #f0f0f1;
}

.amdc-preset-btn.active {
	background: var(--amdc-blue-golden-pair);
	color: #fff;
	border-color: var(--amdc-blue-golden-pair);
}

.amdc-volume-hint {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	color: #6c757d;
}

/* ── Option Buttons (Radio Groups) ──────────────────────────── */

.amdc-option-group {
	display: flex;
	flex-wrap: nowrap;
	gap: clamp(4px, 0.6vw, 10px);
	width: 100%;
	align-items: stretch;
	container-type: inline-size;
}

.amdc-option-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: clamp(4px, 1.2cqi, 8px) clamp(3px, 1cqi, 10px);
	border: 1px solid var(--amdc-border-grey-grey-pair);
	border-radius: 6px;
	background: var(--amdc-input-bg-pair);
	color: var(--amdc-black-dullwhite-pair);
	cursor: pointer;
	transition: all 0.2s;
	text-align: center;
	font-size: clamp(12px, 2.2cqi, 13px);
	font-weight: bold;
	min-width: 0px;
	min-height: clamp(40px, 8cqi, 58px);
	position: relative;
	flex: 1 1 0;
	box-sizing: border-box;
	word-break: break-word;
	overflow: hidden;
}

.amdc-option-btn input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.amdc-option-btn span {
	display: block;
	line-height: 1.3;
}

.amdc-option-btn span small {
	font-size: clamp(7px, 1.6cqi, 11px);
	opacity: 0.8;
}

.amdc-option-btn:hover {
	background: #f0f0f1;
}

.amdc-option-btn:has(input:checked) {
	background: var(--amdc-blue-golden-pair);
	color: #fff;
	border-color: var(--amdc-blue-golden-pair);
}

.amdc-option-btn.amdc-disabled {
	opacity: 0.45;
	cursor: not-allowed;
	border-color: #adb5bd;
	color: #adb5bd;
}

.amdc-option-btn.amdc-disabled:hover {
	background: transparent;
}

.amdc-option-btn.amdc-disabled::after {
	content: attr(data-error);
	position: absolute;
	bottom: -18px;
	left: 50%;
	transform: translateX(-50%);
	font-size: 10px;
	color: #dc3545;
	white-space: nowrap;
}

/* ── Services Container ─────────────────────────────────────── */

.amdc-services-container {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.amdc-service-check {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border: 1px solid #dee2e6;
	border-radius: 6px;
	background: #fff;
	transition: border-color 0.2s;
	flex: 1 1 calc(50% - 10px);
	min-width: 140px;
	box-sizing: border-box;
}

.amdc-service-check:hover {
	border-color: var(--amdc-blue-golden-pair);
}

.amdc-service-check input[type="checkbox"] {
	margin: 0;
	cursor: pointer;
}

.amdc-service-check label {
	margin: 0;
	font-weight: normal;
	cursor: pointer;
	font-size: 13px;
}

/* ── Discount Options ───────────────────────────────────────── */

.amdc-no-discounts {
	padding: 10px 14px;
	background: #f8f9fa;
	border: 1px dashed #dee2e6;
	border-radius: 6px;
	color: #6c757d;
	font-size: 13px;
	text-align: center;
}

/* Task 12: Greyed-out offer (conditions not met) */
.amdc-option-btn.amdc-offer-greyed {
	opacity: 0.5;
	cursor: default;
	pointer-events: auto; /* allow tooltip on hover */
}

.amdc-option-btn.amdc-offer-greyed input[type="radio"] {
	cursor: not-allowed;
}

/* Task 12: Auto-apply badge */
.amdc-badge-auto {
	display: inline-block;
	padding: 1px 6px;
	background: #0073aa;
	color: #fff;
	font-size: 10px;
	font-weight: 600;
	border-radius: 3px;
	vertical-align: middle;
	margin-left: 4px;
	letter-spacing: 0.03em;
}

/* Task 12: "Better savings" banner */
.amdc-better-savings-banner {
	margin-top: 8px;
	padding: 8px 12px;
	background: #fff3cd;
	border: 1px solid #ffc107;
	border-radius: 6px;
	color: #856404;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
}

/* ── Submit Button ──────────────────────────────────────────── */

.amdc-submit-section {
	margin-top: 24px;
}

/* ── Orientation Toggle ─────────────────────────────────────── */

.amdc-orientation-toggle {
	display: flex;
	gap: 0;
	border: 1px solid var(--amdc-border-grey-grey-pair);
	border-radius: 6px;
	overflow: hidden;
}

.amdc-orientation-btn {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 8px 14px;
	border: none;
	background: var(--amdc-input-bg-pair);
	cursor: pointer;
	font-size: 13px;
	color: var(--amdc-black-dullwhite-pair);
	transition: all 0.2s;
}

.amdc-orientation-btn + .amdc-orientation-btn {
	border-left: 1px solid var(--amdc-border-grey-grey-pair);
}

.amdc-orientation-btn.amdc-orientation-active {
	background: var(--amdc-blue-golden-pair);
	color: #fff;
}

.amdc-orientation-btn:hover:not(.amdc-orientation-active) {
	background: #f0f0f1;
}

.amdc-orientation-btn .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

/* ── Results Panel Transition ───────────────────────────────── */

.amdc-calculator-results {
	transition: opacity 0.3s;
}

.amdc-calculator-results.amdc-results-active {
	opacity: 1;
}

.amdc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 20px;
	border: 2px solid transparent;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
	text-decoration: none;
}

.amdc-btn-primary {
	background: var(--amdc-blue-golden-pair);
	color: #fff;
	border-color: var(--amdc-blue-golden-pair);
}

.amdc-btn-primary:hover {
	background: var(--amdc-blue-golden-pair);
	border-color: var(--amdc-blue-golden-pair);
	opacity: 0.9;
}

.amdc-btn-outline {
	background: transparent;
	color: inherit;
	border-color: currentColor;
}

.amdc-btn-outline:hover {
	background: currentColor;
	color: #fff;
}

.amdc-btn-success {
	background: #198754;
	color: #fff;
	border-color: #198754;
}

.amdc-btn-block {
	display: flex;
	width: 100%;
}

.amdc-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* ── Results Panel ──────────────────────────────────────────── */

.amdc-results-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.amdc-results-header h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: var(--amdc-blue-golden-pair);
}

.amdc-quote-section h4,
.amdc-save-quote-section h4 {
	margin: 0 0 12px;
	font-size: 15px;
	font-weight: 600;
	color: #555;
}

.amdc-breakdown-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 6px 0;
	border-bottom: 1px solid #eee;
	font-size: 13px;
}

.amdc-breakdown-item:last-child {
	border-bottom: none;
}

.amdc-breakdown-bold span {
	font-weight: 600;
}

.amdc-breakdown-total {
	margin-top: 8px;
	padding-top: 10px;
	border-top: 2px solid var(--amdc-blue-golden-pair);
	font-size: 16px;
	font-weight: 700;
	color: var(--amdc-blue-golden-pair);
}

.amdc-breakdown-services-header {
	margin-top: 6px;
	border-bottom: none;
	padding-bottom: 0;
}

.amdc-breakdown-service-item {
	font-size: 12px;
	color: #555;
	padding: 3px 0 3px 12px;
}

.amdc-text-success {
	color: #198754 !important;
}

.amdc-text-danger {
	color: #dc3545 !important;
}

.amdc-text-muted {
	color: #6c757d;
}

.amdc-fw-bold {
	font-weight: 700;
}

/* ── Quote Message ──────────────────────────────────────────── */

.amdc-quote-section {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid #dee2e6;
}

.amdc-quote-header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}

.amdc-quote-header h4 {
	margin: 0;
	flex: 1;
	font-size: 15px;
	font-weight: 600;
	color: #555;
}

.amdc-copy-inline {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	border: 1px solid var(--amdc-blue-golden-pair);
	border-radius: 4px;
	padding: 4px 10px;
	background: transparent;
	color: var(--amdc-blue-golden-pair);
	font-size: 12px;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
	line-height: 1;
}

.amdc-copy-inline:hover {
	background: var(--amdc-blue-golden-pair);
	color: #fff;
}

.amdc-copy-inline .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
	line-height: 14px;
}

.amdc-copy-inline.amdc-copy-success {
	border-color: #00a32a;
	color: #00a32a;
}

.amdc-copy-inline.amdc-copy-success:hover {
	background: #00a32a;
	color: #fff;
}

.amdc-copy-feedback {
	display: none;
	font-size: 12px;
	color: #00a32a;
	font-weight: 600;
	animation: amdc-fade-in 0.3s ease;
}

@keyframes amdc-fade-in {
	from { opacity: 0; transform: translateY(-2px); }
	to   { opacity: 1; transform: translateY(0); }
}

.amdc-quote-message {
	background: #fff;
	border: 1px solid #dee2e6;
	border-radius: 6px;
	padding: 14px;
	font-size: 13px;
	line-height: 1.7;
	color: #333;
	max-height: 300px;
	overflow-y: auto;
}

/* ── Rate Annotations ───────────────────────────────────────── */

.amdc-rate-annotation {
	font-size: 11px;
	color: #646970;
	font-weight: 400;
	margin-left: 4px;
}

/* ── Breakdown Separator ────────────────────────────────────── */

.amdc-breakdown-separator {
	height: 1px;
	background: #e0e0e0;
	margin: 12px 0;
}

/* ── Rate List Link ──────────────────────────────────────────── */

.amdc-rate-list-link {
	font-size: 12px;
	color: var(--amdc-blue-golden-pair);
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
}

.amdc-rate-list-link:hover {
	text-decoration: none;
	color: var(--amdc-hover-golden-red-pair);
}

/* ── Rate List Gallery Modal ─────────────────────────────────── */

.amdc-rate-list-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.amdc-rate-list-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
}

.amdc-rate-list-content {
	position: relative;
	background: #fff;
	border-radius: 8px;
	max-width: 800px;
	width: 90%;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	z-index: 1;
}

.amdc-rate-list-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	border-bottom: 1px solid #e0e0e0;
}

.amdc-rate-list-header h3 {
	margin: 0;
	font-size: 16px;
}

.amdc-rate-list-close {
	background: none;
	border: none;
	cursor: pointer;
	color: #646970;
	padding: 4px;
	line-height: 1;
}

.amdc-rate-list-close:hover {
	color: #d63638;
}

.amdc-rate-list-viewer {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	flex: 1;
	min-height: 300px;
	position: relative;
}

.amdc-rate-list-image-container {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.amdc-rate-list-image-container img {
	max-width: 100%;
	max-height: 65vh;
	object-fit: contain;
	border-radius: 4px;
}

.amdc-rate-list-nav {
	background: none;
	border: 1px solid #c3c4c7;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #1d2327;
	flex-shrink: 0;
	transition: all 0.2s;
}

.amdc-rate-list-nav:hover {
	background: #f0f0f1;
	border-color: currentColor;
	color: inherit;
}

.amdc-rate-list-nav:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

.amdc-rate-list-nav .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
	line-height: 20px;
}

.amdc-rate-list-counter {
	text-align: center;
	padding: 8px;
	font-size: 12px;
	color: #646970;
	border-top: 1px solid #e0e0e0;
}

/* ── Info Modal ─────────────────────────────────────────────── */

.amdc-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999999;
	background: rgba(0, 0, 0, 0.5);
	justify-content: center;
	align-items: center;
	padding: 20px;
}

.amdc-modal.amdc-modal-open {
	display: flex;
}

.amdc-modal-content {
	background: #fff;
	border-radius: 12px;
	max-width: 560px;
	width: 100%;
	max-height: 80vh;
	overflow-y: auto;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.amdc-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 16px;
	border-bottom: 1px solid #dee2e6;
}

.amdc-modal-title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
}

.amdc-modal-close {
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: #6c757d;
	line-height: 1;
	padding: 0;
}

.amdc-modal-close:hover {
	color: #333;
}

.amdc-modal-body {
	padding: 12px 16px 16px;
}

.amdc-info-image {
	text-align: center;
	margin-bottom: 10px;
}

.amdc-info-image img {
	max-width: 200px;
	max-height: 150px;
	border-radius: 6px;
	object-fit: cover;
}

.amdc-info-tabs {
	display: flex;
	gap: 0;
	margin-top: 4px;
	margin-bottom: 8px;
	border-bottom: 2px solid #dee2e6;
}

.amdc-info-tab {
	padding: 6px 16px;
	border: none;
	background: transparent;
	cursor: pointer;
	font-size: 13px;
	font-weight: 500;
	color: #6c757d;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	transition: color 0.2s, border-color 0.2s;
}

.amdc-info-tab:hover {
	color: var(--amdc-blue-golden-pair);
}

.amdc-info-tab.amdc-info-tab-active {
	color: var(--amdc-blue-golden-pair);
	border-bottom-color: var(--amdc-blue-golden-pair);
}

.amdc-info-pane {
	display: none;
}

.amdc-info-pane.amdc-info-pane-active {
	display: block;
}

.amdc-info-pane p {
	margin: 0;
	line-height: 1.7;
	font-size: 14px;
	color: #555;
}

#amdc-info-urdu p {
	font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif;
	font-size: 16px;
	line-height: 2.2;
}

/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 991px) {
	.amdc-calculator-layout {
		flex-direction: column;
	}

	.amdc-calculator-results {
		flex: none;
		width: 100%;
		position: static;
	}
}

@media (max-width: 768px) {
	.amdc-form-columns {
		flex-direction: column;
		gap: 10px;
	}

	.amdc-option-group {
		gap: clamp(3px, 0.5vw, 6px);
	}

	.amdc-calculator {
		padding: 12px;
	}
}

@media (max-width: 480px) {
	.amdc-number-input input[type="number"] {
		width: 60px;
	}

	.amdc-breakdown-total {
		font-size: 14px;
	}
}

@media (max-width: 600px) {
	.amdc-rate-list-content {
		width: 95%;
		max-height: 85vh;
	}

	.amdc-rate-list-nav {
		width: 32px;
		height: 32px;
	}

	.amdc-rate-list-nav .dashicons {
		font-size: 16px;
		width: 16px;
		height: 16px;
		line-height: 16px;
	}
}

/* ── Two Column Layout ──────────────────────────────────────── */

.amdc-calculator.amdc-calculator-two-column .amdc-calculator-layout {
	flex-direction: row;
}

/* ── Single Column Layout ───────────────────────────────────── */

.amdc-calculator.amdc-calculator-single-column .amdc-calculator-layout {
	flex-direction: column;
}

.amdc-calculator.amdc-calculator-single-column .amdc-calculator-results {
	flex: none;
	width: 100%;
	position: static;
}

/* ── Theme: Dark ────────────────────────────────────────────── */

.amdc-calculator[data-theme="dark"] {
	background-color: rgba(30, 30, 30, 0.9);
	border-color: rgba(255, 255, 255, 0.08);
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
	color: var(--amdc-black-dullwhite-pair);
}

.amdc-calculator[data-theme="dark"] .amdc-form-field label {
	color: var(--amdc-black-golden-pair);
}

.amdc-calculator[data-theme="dark"] .amdc-form-field input {
	background: var(--amdc-input-bg-pair);
	color: var(--amdc-black-dullwhite-pair);
	border-color: var(--amdc-border-grey-grey-pair);
}

.amdc-calculator[data-theme="dark"] .amdc-form-field input:focus {
	border-color: var(--amdc-blue-golden-pair);
	box-shadow: 0 0 0 3px rgba(229, 140, 23, 0.2);
}

.amdc-calculator[data-theme="dark"] .amdc-calculator-form,
.amdc-calculator[data-theme="dark"] .amdc-calculator-results {
	background: transparent;
}

.amdc-calculator[data-theme="dark"] .amdc-calculator-results {
	background: #2a2a3d;
	border-color: #444;
}

.amdc-calculator[data-theme="dark"] .amdc-results-header h3 {
	color: var(--amdc-blue-golden-pair);
}

.amdc-calculator[data-theme="dark"] .amdc-option-btn {
	border-color: var(--amdc-border-grey-grey-pair);
	color: var(--amdc-black-dullwhite-pair);
	background: var(--amdc-input-bg-pair);
}

.amdc-calculator[data-theme="dark"] .amdc-option-btn:has(input:checked) {
	background: var(--amdc-blue-golden-pair);
	color: #fff;
	border-color: var(--amdc-blue-golden-pair);
}

.amdc-calculator[data-theme="dark"] .amdc-btn-minus,
.amdc-calculator[data-theme="dark"] .amdc-btn-plus {
	background: var(--amdc-input-bg-pair);
	border-color: var(--amdc-border-grey-grey-pair);
	color: var(--amdc-black-dullwhite-pair);
}

.amdc-calculator[data-theme="dark"] .amdc-btn-minus:hover,
.amdc-calculator[data-theme="dark"] .amdc-btn-plus:hover {
	background: var(--amdc-blue-golden-pair);
	border-color: var(--amdc-blue-golden-pair);
	color: #fff;
}

.amdc-calculator[data-theme="dark"] .amdc-preset-btn {
	background: var(--amdc-input-bg-pair);
	border-color: var(--amdc-border-grey-grey-pair);
	color: var(--amdc-black-dullwhite-pair);
}

.amdc-calculator[data-theme="dark"] .amdc-preset-btn.active {
	background: var(--amdc-blue-golden-pair);
	color: #fff;
	border-color: var(--amdc-blue-golden-pair);
}

.amdc-calculator[data-theme="dark"] .amdc-breakdown-item {
	border-bottom-color: #3a3a4d;
}

.amdc-calculator[data-theme="dark"] .amdc-breakdown-total {
	border-top-color: var(--amdc-blue-golden-pair);
	color: var(--amdc-blue-golden-pair);
}

.amdc-calculator[data-theme="dark"] .amdc-quote-message {
	background: #333350;
	border-color: #444;
	color: #e0e0e0;
}

.amdc-calculator[data-theme="dark"] .amdc-quote-header h4 {
	color: #bbb;
}

.amdc-calculator[data-theme="dark"] .amdc-copy-inline {
	border-color: var(--amdc-blue-golden-pair);
	color: var(--amdc-blue-golden-pair);
}

.amdc-calculator[data-theme="dark"] .amdc-copy-inline:hover {
	background: var(--amdc-blue-golden-pair);
	color: #fff;
}

.amdc-calculator[data-theme="dark"] .amdc-copy-inline.amdc-copy-success {
	border-color: #4caf50;
	color: #4caf50;
}

.amdc-calculator[data-theme="dark"] .amdc-copy-feedback {
	color: #4caf50;
}

.amdc-calculator[data-theme="dark"] .amdc-rate-annotation {
	color: #888;
}

.amdc-calculator[data-theme="dark"] .amdc-breakdown-separator {
	background: #444;
}

.amdc-calculator[data-theme="dark"] .amdc-rate-list-link {
	color: var(--amdc-blue-golden-pair);
}

.amdc-calculator[data-theme="dark"] .amdc-rate-list-link:hover {
	color: var(--amdc-hover-golden-red-pair);
}

.amdc-calculator[data-theme="dark"] .amdc-rate-list-content {
	background: #2d2d2d;
	color: #e0e0e0;
}

.amdc-calculator[data-theme="dark"] .amdc-rate-list-header {
	border-color: #444;
}

.amdc-calculator[data-theme="dark"] .amdc-rate-list-nav {
	border-color: #555;
	color: #e0e0e0;
}

.amdc-calculator[data-theme="dark"] .amdc-rate-list-nav:hover {
	background: #3a3a3a;
	border-color: var(--amdc-blue-golden-pair);
	color: var(--amdc-blue-golden-pair);
}

.amdc-calculator[data-theme="dark"] .amdc-rate-list-counter {
	color: #999;
	border-color: var(--amdc-border-grey-grey-pair);
}

.amdc-calculator[data-theme="dark"] .amdc-service-check {
	background: var(--amdc-input-bg-pair);
	border-color: var(--amdc-border-grey-grey-pair);
}

.amdc-calculator[data-theme="dark"] .amdc-service-check:hover {
	border-color: var(--amdc-blue-golden-pair);
}

.amdc-calculator[data-theme="dark"] .amdc-no-discounts {
	background: var(--amdc-input-bg-pair);
	border-color: var(--amdc-border-grey-grey-pair);
	color: #888;
}

.amdc-calculator[data-theme="dark"] .amdc-modal-content {
	background: #2a2a3d;
	color: #e0e0e0;
}

.amdc-calculator[data-theme="dark"] .amdc-modal-header {
	border-bottom-color: #444;
}

.amdc-calculator[data-theme="dark"] .amdc-info-tabs {
	border-bottom-color: #444;
}

.amdc-calculator[data-theme="dark"] .amdc-info-pane p {
	color: #ccc;
}

.amdc-calculator[data-theme="dark"] .amdc-details-link {
	color: var(--amdc-blue-golden-pair);
}

.amdc-calculator[data-theme="dark"] .amdc-details-link:hover {
	color: var(--amdc-hover-golden-red-pair);
}

.amdc-calculator[data-theme="dark"] .amdc-btn-primary {
	background-color: var(--amdc-blue-golden-pair);
	border-color: var(--amdc-blue-golden-pair);
}

.amdc-calculator[data-theme="dark"] .amdc-form-section label {
	color: var(--amdc-black-golden-pair);
}

.amdc-calculator[data-theme="dark"] .amdc-save-quote-section input {
	background: var(--amdc-input-bg-pair);
	color: var(--amdc-black-dullwhite-pair);
	border-color: var(--amdc-border-grey-grey-pair);
}

.amdc-calculator[data-theme="dark"] .amdc-orientation-toggle {
	border-color: var(--amdc-border-grey-grey-pair);
}

.amdc-calculator[data-theme="dark"] .amdc-orientation-btn {
	background: var(--amdc-input-bg-pair);
	color: var(--amdc-black-dullwhite-pair);
}

.amdc-calculator[data-theme="dark"] .amdc-orientation-btn + .amdc-orientation-btn {
	border-left-color: var(--amdc-border-grey-grey-pair);
}

.amdc-calculator[data-theme="dark"] .amdc-orientation-btn.amdc-orientation-active {
	background: var(--amdc-blue-golden-pair);
	color: #fff;
}

.amdc-calculator[data-theme="dark"] .amdc-orientation-btn:hover:not(.amdc-orientation-active) {
	background: #3a3a3a;
}

/* ── WP Dark Mode Override Protection ───────────────────────── */
/* Shield calculator elements from WP Dark Mode generic overrides */

html.wp-dark-mode-active .amdc-calculator {
	background-color: rgba(30, 30, 30, 0.9) !important;
	border-color: rgba(255, 255, 255, 0.08) !important;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3) !important;
	color: var(--amdc-black-dullwhite-pair) !important;
}

html.wp-dark-mode-active .amdc-calculator .amdc-calculator-form {
	background: transparent !important;
}

html.wp-dark-mode-active .amdc-calculator .amdc-calculator-results {
	background: #2a2a3d !important;
	border-color: #444 !important;
	color: var(--amdc-black-dullwhite-pair) !important;
}

html.wp-dark-mode-active .amdc-calculator .amdc-results-header h3 {
	color: var(--amdc-blue-golden-pair) !important;
}

html.wp-dark-mode-active .amdc-calculator .amdc-form-field label,
html.wp-dark-mode-active .amdc-calculator .amdc-form-section label,
html.wp-dark-mode-active .amdc-calculator .amdc-field-header label {
	color: var(--amdc-black-golden-pair) !important;
}

html.wp-dark-mode-active .amdc-calculator .amdc-form-field input,
html.wp-dark-mode-active .amdc-calculator .amdc-save-quote-section input {
	background: var(--amdc-input-bg-pair) !important;
	color: var(--amdc-black-dullwhite-pair) !important;
	border-color: var(--amdc-border-grey-grey-pair) !important;
}

html.wp-dark-mode-active .amdc-calculator .amdc-form-field input:focus {
	border-color: var(--amdc-blue-golden-pair) !important;
	box-shadow: 0 0 0 3px rgba(229, 140, 23, 0.2) !important;
}

html.wp-dark-mode-active .amdc-calculator .amdc-option-btn {
	background: var(--amdc-input-bg-pair) !important;
	color: var(--amdc-black-dullwhite-pair) !important;
	border-color: var(--amdc-border-grey-grey-pair) !important;
}

html.wp-dark-mode-active .amdc-calculator .amdc-option-btn:has(input:checked) {
	background: var(--amdc-blue-golden-pair) !important;
	color: #fff !important;
	border-color: var(--amdc-blue-golden-pair) !important;
}

html.wp-dark-mode-active .amdc-calculator .amdc-option-btn:hover:not(:has(input:checked)) {
	background: #3a3a3a !important;
}

html.wp-dark-mode-active .amdc-calculator .amdc-btn-minus,
html.wp-dark-mode-active .amdc-calculator .amdc-btn-plus {
	background: var(--amdc-input-bg-pair) !important;
	color: var(--amdc-black-dullwhite-pair) !important;
	border-color: var(--amdc-border-grey-grey-pair) !important;
}

html.wp-dark-mode-active .amdc-calculator .amdc-btn-minus:hover,
html.wp-dark-mode-active .amdc-calculator .amdc-btn-plus:hover {
	background: var(--amdc-blue-golden-pair) !important;
	color: #fff !important;
	border-color: var(--amdc-blue-golden-pair) !important;
}

html.wp-dark-mode-active .amdc-calculator .amdc-preset-btn {
	background: var(--amdc-input-bg-pair) !important;
	color: var(--amdc-black-dullwhite-pair) !important;
	border-color: var(--amdc-border-grey-grey-pair) !important;
}

html.wp-dark-mode-active .amdc-calculator .amdc-preset-btn.active {
	background: var(--amdc-blue-golden-pair) !important;
	color: #fff !important;
	border-color: var(--amdc-blue-golden-pair) !important;
}

html.wp-dark-mode-active .amdc-calculator .amdc-orientation-toggle {
	border-color: var(--amdc-border-grey-grey-pair) !important;
}

html.wp-dark-mode-active .amdc-calculator .amdc-orientation-btn {
	background: var(--amdc-input-bg-pair) !important;
	color: var(--amdc-black-dullwhite-pair) !important;
}

html.wp-dark-mode-active .amdc-calculator .amdc-orientation-btn + .amdc-orientation-btn {
	border-left-color: var(--amdc-border-grey-grey-pair) !important;
}

html.wp-dark-mode-active .amdc-calculator .amdc-orientation-btn.amdc-orientation-active {
	background: var(--amdc-blue-golden-pair) !important;
	color: #fff !important;
}

html.wp-dark-mode-active .amdc-calculator .amdc-orientation-btn:hover:not(.amdc-orientation-active) {
	background: #3a3a3a !important;
}

html.wp-dark-mode-active .amdc-calculator .amdc-breakdown-item {
	border-bottom-color: #3a3a4d !important;
	color: var(--amdc-black-dullwhite-pair) !important;
}

html.wp-dark-mode-active .amdc-calculator .amdc-breakdown-item span {
	color: var(--amdc-black-dullwhite-pair) !important;
}

html.wp-dark-mode-active .amdc-calculator .amdc-breakdown-total {
	border-top-color: var(--amdc-blue-golden-pair) !important;
	color: var(--amdc-blue-golden-pair) !important;
}

html.wp-dark-mode-active .amdc-calculator .amdc-breakdown-total span {
	color: var(--amdc-blue-golden-pair) !important;
}

html.wp-dark-mode-active .amdc-calculator .amdc-service-check {
	background: var(--amdc-input-bg-pair) !important;
	border-color: var(--amdc-border-grey-grey-pair) !important;
}

html.wp-dark-mode-active .amdc-calculator .amdc-service-check:hover {
	border-color: var(--amdc-blue-golden-pair) !important;
}

html.wp-dark-mode-active .amdc-calculator .amdc-service-check label {
	color: var(--amdc-black-dullwhite-pair) !important;
}

html.wp-dark-mode-active .amdc-calculator .amdc-no-discounts {
	background: var(--amdc-input-bg-pair) !important;
	border-color: var(--amdc-border-grey-grey-pair) !important;
	color: #888 !important;
}

html.wp-dark-mode-active .amdc-calculator .amdc-btn-primary {
	background: var(--amdc-blue-golden-pair) !important;
	border-color: var(--amdc-blue-golden-pair) !important;
	color: #fff !important;
}

html.wp-dark-mode-active .amdc-calculator .amdc-quote-message {
	background: #333350 !important;
	border-color: #444 !important;
	color: #e0e0e0 !important;
}

html.wp-dark-mode-active .amdc-calculator .amdc-quote-header h4,
html.wp-dark-mode-active .amdc-calculator .amdc-quote-section h4,
html.wp-dark-mode-active .amdc-calculator .amdc-save-quote-section h4 {
	color: #bbb !important;
}

html.wp-dark-mode-active .amdc-calculator .amdc-copy-inline {
	border-color: var(--amdc-blue-golden-pair) !important;
	color: var(--amdc-blue-golden-pair) !important;
}

html.wp-dark-mode-active .amdc-calculator .amdc-copy-inline:hover {
	background: var(--amdc-blue-golden-pair) !important;
	color: #fff !important;
}

html.wp-dark-mode-active .amdc-calculator .amdc-details-link {
	color: var(--amdc-blue-golden-pair) !important;
}

html.wp-dark-mode-active .amdc-calculator .amdc-details-link:hover {
	color: var(--amdc-hover-golden-red-pair) !important;
	text-decoration: none !important;
}

html.wp-dark-mode-active .amdc-calculator .amdc-rate-list-link {
	color: var(--amdc-blue-golden-pair) !important;
}

html.wp-dark-mode-active .amdc-calculator .amdc-rate-list-link:hover {
	color: var(--amdc-hover-golden-red-pair) !important;
	text-decoration: none !important;
}

html.wp-dark-mode-active .amdc-calculator .amdc-rate-annotation {
	color: #888 !important;
}

html.wp-dark-mode-active .amdc-calculator .amdc-breakdown-separator {
	background: #444 !important;
}

html.wp-dark-mode-active .amdc-calculator .amdc-volume-hint {
	color: #888 !important;
}

html.wp-dark-mode-active .amdc-calculator .amdc-modal-content {
	background: #2a2a3d !important;
	color: #e0e0e0 !important;
}

html.wp-dark-mode-active .amdc-calculator .amdc-modal-header {
	border-bottom-color: #444 !important;
}

html.wp-dark-mode-active .amdc-calculator .amdc-info-tabs {
	border-bottom-color: #444 !important;
}

html.wp-dark-mode-active .amdc-calculator .amdc-info-tab:hover,
html.wp-dark-mode-active .amdc-calculator .amdc-info-tab.amdc-info-tab-active {
	color: var(--amdc-blue-golden-pair) !important;
}

html.wp-dark-mode-active .amdc-calculator .amdc-info-tab.amdc-info-tab-active {
	border-bottom-color: var(--amdc-blue-golden-pair) !important;
}

html.wp-dark-mode-active .amdc-calculator .amdc-info-pane p {
	color: #ccc !important;
}

html.wp-dark-mode-active .amdc-calculator .amdc-rate-list-content {
	background: #2d2d2d !important;
	color: #e0e0e0 !important;
}

html.wp-dark-mode-active .amdc-calculator .amdc-rate-list-header {
	border-color: #444 !important;
}

html.wp-dark-mode-active .amdc-calculator .amdc-rate-list-nav {
	border-color: #555 !important;
	color: #e0e0e0 !important;
}

html.wp-dark-mode-active .amdc-calculator .amdc-rate-list-nav:hover {
	background: #3a3a3a !important;
	border-color: var(--amdc-blue-golden-pair) !important;
	color: var(--amdc-blue-golden-pair) !important;
}

html.wp-dark-mode-active .amdc-calculator .amdc-rate-list-counter {
	color: #999 !important;
	border-color: var(--amdc-border-grey-grey-pair) !important;
}
