/* Realtydwar Cost Calculator — सभी स्टाइल .rdc-wrap के अंदर सीमित हैं (Houzez/किसी भी थीम के साथ टकराव नहीं) */
.rdc-wrap {
	--rdc-accent: #0b6e4f;
	--rdc-accent-dark: #084f39;
	--rdc-bg: #ffffff;
	--rdc-soft: #f3f7f5;
	--rdc-line: #d9e2de;
	--rdc-text: #1c2b26;
	--rdc-muted: #5b6b65;
	--rdc-err: #b42318;
	box-sizing: border-box;
	max-width: 860px;
	margin: 24px auto;
	padding: 20px;
	background: var(--rdc-bg);
	color: var(--rdc-text);
	border: 1px solid var(--rdc-line);
	border-radius: 14px;
	font-size: 16px;
	line-height: 1.5;
}
.rdc-wrap *, .rdc-wrap *::before, .rdc-wrap *::after { box-sizing: border-box; }
.rdc-wrap [hidden] { display: none !important; }

.rdc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.rdc-title { margin: 0 0 4px; font-size: 22px; line-height: 1.3; color: var(--rdc-text); }
.rdc-sub { margin: 0; color: var(--rdc-muted); }

.rdc-lang { display: inline-flex; border: 1px solid var(--rdc-line); border-radius: 999px; overflow: hidden; }
.rdc-lang button { border: 0; background: transparent; padding: 6px 14px; cursor: pointer; font-size: 14px; color: var(--rdc-text); }
.rdc-lang button.on { background: var(--rdc-accent); color: #fff; }

.rdc-seg { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.rdc-seg label { flex: 1 1 220px; cursor: pointer; }
.rdc-seg input { position: absolute; opacity: 0; pointer-events: none; }
.rdc-seg span { display: block; padding: 10px 12px; border: 1px solid var(--rdc-line); border-radius: 10px; text-align: center; background: var(--rdc-soft); }
.rdc-seg input:checked + span { background: var(--rdc-accent); border-color: var(--rdc-accent); color: #fff; }
.rdc-seg input:focus-visible + span, .rdc-chip input:focus-visible + span { outline: 2px solid var(--rdc-accent); outline-offset: 2px; }

.rdc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.rdc-f label { display: block; margin-bottom: 4px; font-weight: 600; font-size: 14px; }
.rdc-f small { display: block; margin-top: 3px; color: var(--rdc-muted); font-size: 12.5px; }
.rdc-wrap input[type="number"], .rdc-wrap input[type="text"], .rdc-wrap input[type="tel"],
.rdc-wrap input[type="email"], .rdc-wrap select {
	width: 100%; min-height: 44px; padding: 8px 10px; font-size: 16px; color: var(--rdc-text);
	background: #fff; border: 1px solid var(--rdc-line); border-radius: 8px; box-shadow: none;
}
.rdc-wrap input:focus, .rdc-wrap select:focus { outline: 2px solid var(--rdc-accent); outline-offset: 1px; border-color: var(--rdc-accent); }

.rdc-fs { margin: 16px 0 0; padding: 0; border: 0; }
.rdc-fs legend { padding: 0; margin-bottom: 8px; font-weight: 600; font-size: 14px; }
.rdc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rdc-chip { cursor: pointer; }
.rdc-chip input { position: absolute; opacity: 0; pointer-events: none; }
.rdc-chip span { display: inline-block; padding: 8px 14px; border: 1px solid var(--rdc-line); border-radius: 999px; background: var(--rdc-soft); }
.rdc-chip input:checked + span { background: var(--rdc-accent); border-color: var(--rdc-accent); color: #fff; }

.rdc-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
.rdc-check { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; font-size: 15px; }
.rdc-check input { margin-top: 5px; flex: none; width: 18px; height: 18px; accent-color: var(--rdc-accent); }

.rdc-err { min-height: 20px; margin: 12px 0 0; color: var(--rdc-err); font-size: 14px; }
.rdc-btn {
	display: inline-block; width: 100%; padding: 13px 18px; font-size: 17px; font-weight: 600; text-align: center; text-decoration: none;
	color: #fff; background: var(--rdc-accent); border: 0; border-radius: 10px; cursor: pointer;
}
.rdc-btn:hover { background: var(--rdc-accent-dark); color: #fff; }
.rdc-btn:disabled { opacity: .6; cursor: wait; }
.rdc-ghost { background: var(--rdc-soft); color: var(--rdc-text); border: 1px solid var(--rdc-line); }
.rdc-ghost:hover { background: #e7efeb; color: var(--rdc-text); }
.rdc-wa { background: #1fa855; }
.rdc-wa:hover { background: #178a45; }

.rdc-result { margin-top: 18px; }
.rdc-card { padding: 18px; background: var(--rdc-soft); border: 1px solid var(--rdc-line); border-radius: 12px; }
.rdc-k { color: var(--rdc-muted); font-size: 14px; }
.rdc-big { font-size: 34px; font-weight: 700; line-height: 1.2; color: var(--rdc-accent-dark); }
.rdc-big small { font-size: 14px; font-weight: 400; color: var(--rdc-muted); }
.rdc-sm { margin-top: 2px; color: var(--rdc-muted); }
.rdc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.rdc-stats span { display: block; font-size: 12.5px; color: var(--rdc-muted); }
.rdc-stats b { font-size: 16px; }

.rdc-lead { margin-top: 16px; padding: 16px; border: 1px dashed var(--rdc-accent); border-radius: 12px; }
.rdc-lead h4, .rdc-detail h4 { margin: 0 0 10px; font-size: 17px; color: var(--rdc-text); }
.rdc-consent { margin-top: 12px; font-size: 13.5px; color: var(--rdc-muted); }
.rdc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.rdc-detail { margin-top: 16px; }
.rdc-detail h4:not(:first-child) { margin-top: 18px; }
.rdc-row { position: relative; display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--rdc-line); }
.rdc-row em { font-style: normal; color: var(--rdc-muted); font-size: 13px; }
.rdc-base { font-weight: 600; }
.rdc-bar { position: absolute; left: 0; bottom: -1px; height: 3px; background: var(--rdc-accent); opacity: .55; border-radius: 2px; }
.rdc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.rdc-actions .rdc-btn { flex: 1 1 200px; width: auto; }
.rdc-disc { margin: 16px 0 0; color: var(--rdc-muted); font-size: 12.5px; }

@media (max-width: 600px) {
	.rdc-wrap { padding: 14px; margin: 14px 0; border-radius: 10px; }
	.rdc-grid, .rdc-checks { grid-template-columns: 1fr; }
	.rdc-stats { grid-template-columns: 1fr; }
	.rdc-big { font-size: 28px; }
}


/* ---------- v1.1: विस्तृत अनुमान ---------- */
.rdc-cmode { margin-bottom: 10px; }
.rdc-cmode span { font-weight: 600; }
.rdc-help { margin: 10px 0 0; color: var(--rdc-muted); font-size: 13px; }
.rdc-note { margin: 0 0 8px; padding: 8px 10px; background: var(--rdc-soft); border-radius: 8px; color: var(--rdc-muted); font-size: 13px; }

.rdc-sec { margin: 0 0 14px; border: 1px solid var(--rdc-line); border-radius: 10px; overflow: hidden; }
.rdc-sec-h { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; background: var(--rdc-soft); font-weight: 600; font-size: 15px; }
.rdc-sec-h b { white-space: nowrap; color: var(--rdc-accent-dark); }
.rdc-line { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; padding: 9px 12px; border-top: 1px solid var(--rdc-line); }
.rdc-li-n { grid-column: 1; }
.rdc-li-q { grid-column: 1; grid-row: 2; color: var(--rdc-muted); font-size: 13px; }
.rdc-li-a { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-weight: 600; white-space: nowrap; }
.rdc-pdf-msg { margin-top: 8px; }

/* ---------- PDF रिपोर्ट (स्क्रीन से बाहर बनती है, A4 की चौड़ाई पर) ---------- */
.rdc-pdf {
	position: absolute; left: -10000px; top: 0; width: 794px; padding: 0 24px; box-sizing: border-box;
	background: #fff; color: #1c2b26; font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans Devanagari", "Mangal", sans-serif;
	font-size: 14px; line-height: 1.5;
}
.rdc-pdf *, .rdc-pdf *::before, .rdc-pdf *::after { box-sizing: border-box; }
.rdc-pdf .rdc-pb { background: #fff; padding: 6px 0 10px; }
.rdc-pdf h1 { margin: 2px 0 6px; font-size: 26px; line-height: 1.3; color: #084f39; }
.rdc-pdf .rdc-ph { border-bottom: 3px solid #0b6e4f; padding-bottom: 12px; }
.rdc-pdf .rdc-ph-site { font-size: 15px; font-weight: 700; color: #0b6e4f; letter-spacing: .3px; }
.rdc-pdf .rdc-ph-meta { color: #5b6b65; font-size: 13px; }
.rdc-pdf .rdc-pt { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 6px; padding: 7px 10px; background: #f3f7f5; border-left: 4px solid #0b6e4f; font-weight: 700; font-size: 15px; }
.rdc-pdf .rdc-pt span { color: #084f39; white-space: nowrap; }
.rdc-pdf .rdc-ptable { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13.5px; }
.rdc-pdf .rdc-p4 th:nth-child(1) { width: 44%; }
.rdc-pdf .rdc-p4 th:nth-child(2) { width: 22%; }
.rdc-pdf .rdc-p4 th:nth-child(3) { width: 14%; }
.rdc-pdf .rdc-p4 th:nth-child(4) { width: 20%; }
.rdc-pdf .rdc-p3 th:nth-child(1) { width: 58%; }
.rdc-pdf .rdc-p3 th:nth-child(2) { width: 14%; }
.rdc-pdf .rdc-p3 th:nth-child(3) { width: 28%; }
.rdc-pdf .rdc-pkv td:first-child { overflow-wrap: anywhere; }
.rdc-pdf .rdc-ptable th { text-align: left; padding: 6px 8px; border-bottom: 2px solid #d9e2de; color: #5b6b65; font-weight: 600; font-size: 12.5px; }
.rdc-pdf .rdc-ptable td { padding: 6px 8px; border-bottom: 1px solid #e5ece9; vertical-align: top; }
.rdc-pdf .rdc-ptable .n { text-align: right; white-space: nowrap; }
.rdc-pdf .rdc-pkv td:first-child { width: 36%; color: #5b6b65; }
.rdc-pdf .rdc-pkv td:last-child { font-weight: 600; }
.rdc-pdf .rdc-pkv .n { font-weight: 600; }
.rdc-pdf .rdc-pkv td.n:first-child { width: auto; }
.rdc-pdf .tot td { border-top: 2px solid #0b6e4f; border-bottom: 0; font-size: 15px; font-weight: 700; color: #084f39; }
.rdc-pdf .rdc-pcard { padding: 16px 18px; background: #f3f7f5; border: 1px solid #d9e2de; border-radius: 10px; }
.rdc-pdf .rdc-pk { color: #5b6b65; font-size: 13.5px; }
.rdc-pdf .rdc-pbig { font-size: 34px; font-weight: 700; line-height: 1.25; color: #084f39; }
.rdc-pdf .rdc-pbig small { font-size: 14px; font-weight: 400; color: #5b6b65; }
.rdc-pdf .rdc-pstats { display: flex; gap: 24px; margin-top: 12px; }
.rdc-pdf .rdc-pstats span { display: block; font-size: 12.5px; color: #5b6b65; }
.rdc-pdf .rdc-pstats b { font-size: 15px; }
.rdc-pdf .rdc-pdisc { padding-top: 8px; color: #5b6b65; font-size: 12px; border-top: 1px solid #d9e2de; }

@media print {
	.rdc-wrap { border: 0; padding: 0; max-width: none; }
	.rdc-form, .rdc-lang, .rdc-actions, .rdc-lead, .rdc-pdf { display: none !important; }
}

/* Property (Houzez) से जुड़ाव */
.rdc-wrap .rdc-prop { display: flex; flex-direction: column; gap: 2px; margin: 0 0 14px; padding: 10px 12px; border-left: 4px solid #0f766e; background: #f0fdfa; border-radius: 6px; font-size: 14px; line-height: 1.4; color: #134e4a; }
.rdc-wrap .rdc-prop span { font-size: 13px; color: #115e59; }
a.rdc-prop-btn, .rdc-prop-btn-wrap a.rdc-prop-btn { display: inline-block; padding: 12px 20px; background: #0f766e; color: #fff !important; border-radius: 8px; font-weight: 600; text-decoration: none !important; line-height: 1.3; }
a.rdc-prop-btn:hover, a.rdc-prop-btn:focus { background: #115e59; }
.rdc-prop-btn-wrap { margin: 16px 0; }
