/* Free Estimate (page-free-estimate.php + template-parts/estimate-extras.php), 2026-10-26.
   Sadrzaj ispod heroja kao na stranama lokacija/servisa: bele kartice sa zutom gornjom ivicom, iste visine,
   mreze bez praznih mesta (6-kolonski trik), krem/bela smena sekcija, prave Spyder fotografije, bez tankih linija.
   Hero i forma (id 6) se ne diraju. Sve je pod .md-est-page. */

.md-est-page { --lx-sun: #FFF8DB; --lx-tint: #FFF4C2; --lx-sun-line: #F3E3A1; }
.md-est-page :is(.ex-lists, .ex-next, .ex-reviews) { clear: both; }

/* zaglavlje sekcije */
.md-est-page .ex-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-bottom: 32px; }
.md-est-page .ex-head-main { max-width: 720px; }
.md-est-page .ex-head-main p { font-size: 17px; color: var(--bp-muted); }
.md-est-page .ex-head .bp-btn { flex: none; }

/* zajednicka kartica */
.md-est-page :is(.ex-card, .ex-step, .ex-rv, .ex-offices) { background: #fff; border-top: 4px solid var(--bp-yellow); border-radius: 14px; box-shadow: 0 4px 16px rgba(29, 29, 29, .07); }

/* ---------- 1. Sta pise u proceni (bela) ---------- */
.md-est-page section.ex-lists { background: #fff; padding: 72px 0; }
.md-est-page .ex-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.md-est-page .ex-grid > li { grid-column: span 2; margin: 0; }
.md-est-page .ex-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; }
.md-est-page .ex-ico { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--lx-tint); color: var(--bp-ink); margin-bottom: 4px; }
.md-est-page section .ex-card h3 { font-size: 19px !important; line-height: 1.25 !important; font-weight: 900; }
.md-est-page .ex-card p { font-size: 16px; color: var(--bp-text); }
.md-est-page .ex-photo { position: relative; min-height: 200px; border-radius: 14px; overflow: hidden; }
.md-est-page .ex-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.md-est-page .ex-note { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding: 14px 20px; border-radius: 14px; background: var(--lx-sun); font-size: 16px; color: var(--bp-ink); }
.md-est-page .ex-note-ico { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bp-yellow); }
.md-est-page .ex-note .ex-note-t { font-size: 16px !important; line-height: 1.5; } /* inner.css: span 15px !important */
.md-est-page .ex-note a { font-weight: 800; text-decoration: underline; text-decoration-color: var(--bp-yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ---------- 2. Sta se desava posle (krem) ---------- */
.md-est-page section.ex-next { background: var(--lx-sun); padding: 72px 0; }
.md-est-page .ex-steps { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.md-est-page .ex-step { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 24px; }
.md-est-page .ex-num { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--bp-yellow); color: var(--bp-ink); font-size: 18px !important; font-weight: 900; margin-bottom: 6px; }
.md-est-page section .ex-step h3 { font-size: 19px !important; line-height: 1.25 !important; font-weight: 900; }
.md-est-page .ex-step p { font-size: 16px; }
.md-est-page .ex-talk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.md-est-page .ex-talk-photo { position: relative; margin: 0; min-height: 260px; border-radius: 14px; overflow: hidden; }
.md-est-page .ex-talk-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; border-radius: 14px; }
.md-est-page .ex-offices { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 24px; }
.md-est-page .ex-offices-lead { font-size: 17px; color: var(--bp-ink); }
.md-est-page .ex-offices ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.md-est-page .ex-offices li { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; padding: 8px 8px 8px 16px; border-radius: 10px; background: var(--lx-sun); min-width: 0; }
.md-est-page .ex-off-free { background: var(--lx-tint) !important; }
.md-est-page .ex-off-place { min-width: 0; font-size: 16px !important; line-height: 1.25; }
.md-est-page .ex-off-place strong { font-weight: 900; color: var(--bp-ink); }
.md-est-page a.ex-off-call { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--bp-yellow); color: var(--bp-ink); font-size: 15px; font-weight: 800; white-space: nowrap; text-decoration: none; font-variant-numeric: tabular-nums; }
.md-est-page a.ex-off-call:hover { background: var(--bp-ink); color: #fff; }

/* ---------- 3. Recenzije (bela) ---------- */
.md-est-page section.ex-reviews { background: #fff; padding: 72px 0; }
.md-est-page .ex-rv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.md-est-page .ex-rv { display: flex; flex-direction: column; gap: 10px; padding: 24px; min-width: 0; }
.md-est-page .ex-rv-stars { color: var(--bp-yellow); font-size: 22px; letter-spacing: 2px; line-height: 1; }
.md-est-page section .ex-rv-title { font-size: 19px !important; line-height: 1.3 !important; font-weight: 900; }
.md-est-page .ex-rv-text { font-size: 16px; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.md-est-page .ex-rv-foot { margin-top: auto; padding-top: 8px; display: flex; flex-direction: column; gap: 12px; }
.md-est-page .ex-rv-by { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--lx-sun); }
.md-est-page .ex-rv-av { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bp-yellow); color: var(--bp-ink); font-size: 17px !important; font-weight: 900; }
.md-est-page .ex-rv-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.md-est-page .ex-rv-who strong { font-size: 16px; color: var(--bp-ink); }
.md-est-page .ex-rv-who span { font-size: 14px !important; color: var(--bp-muted); }
.md-est-page a.ex-rv-gbp { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--bp-ink); color: var(--bp-ink); font-size: 15px; font-weight: 800; text-decoration: none; }
.md-est-page a.ex-rv-gbp span { font-size: inherit !important; }
.md-est-page a.ex-rv-gbp:hover { background: var(--bp-ink); color: #fff; }

/* ---------- tablet ---------- */
@media (max-width: 1099px) {
	.md-est-page .ex-grid > li { grid-column: span 3; }
}
@media (max-width: 991px) {
	.md-est-page .ex-steps, .md-est-page .ex-rv-grid { grid-template-columns: minmax(0, 1fr); }
	.md-est-page .ex-talk { grid-template-columns: minmax(0, 1fr); }
	.md-est-page .ex-talk-photo { min-height: 0; aspect-ratio: 3 / 2; }
	.md-est-page .ex-offices ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.md-est-page .ex-step { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; row-gap: 4px; }
	.md-est-page .ex-num { grid-row: span 2; margin: 0; }
}
/* inner.css: "section h2/h3 { font-size: 30px !important; line-height: 42px !important }" do 768 px */
@media (max-width: 768px) {
	.md-est-page :is(section.ex-lists, section.ex-next, section.ex-reviews) h2 { font-size: 28px !important; line-height: 1.15 !important; }
	.md-est-page section .ex-card h3, .md-est-page section .ex-step h3, .md-est-page section .ex-rv-title { font-size: 18px !important; line-height: 1.3 !important; }
}
/* ---------- telefon ---------- */
@media (max-width: 767px) {
	.md-est-page :is(section.ex-lists, section.ex-next, section.ex-reviews) { padding: 48px 0; }
	.md-est-page .ex-head { margin-bottom: 24px; }
	.md-est-page .ex-head .bp-btn { flex: 1 1 100%; }
	.md-est-page .ex-head-main p { font-size: 16px; }
	.md-est-page .ex-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.md-est-page .ex-grid > li { grid-column: auto; }
	.md-est-page .ex-card { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; padding: 18px; }
	.md-est-page .ex-ico { grid-row: span 2; margin: 0; }
	.md-est-page .ex-photo { min-height: 0; aspect-ratio: 3 / 2; }
	.md-est-page .ex-note { align-items: flex-start; padding: 14px 16px; }
	.md-est-page .ex-step { padding: 18px; }
	.md-est-page .ex-offices { padding: 18px 14px; }
	.md-est-page .ex-offices ul { grid-template-columns: minmax(0, 1fr); gap: 8px; }
	.md-est-page .ex-offices li { padding: 8px 8px 8px 14px; }
	.md-est-page .ex-rv { padding: 20px; }
}
@media (max-width: 360px) {
	.md-est-page .ex-offices li { flex-wrap: wrap; }
}

/* 26.10: veca forma u heroju (korisnica: "hocu da forma bude veca na toj strani") */
@media (min-width: 900px) {
	.md-est-page .est-hero .bp-row { flex-wrap: nowrap; align-items: center; gap: 56px; }
	.md-est-page .est-hero .bp-hero-main { flex: 1 1 0; }
	.md-est-page .est-hero .bp-quote { flex: 0 0 560px; max-width: 560px; padding: 38px 40px 32px; border-radius: 20px; gap: 16px; }
}
.md-est-page .est-hero .bp-quote { border-top: 6px solid var(--bp-yellow); }
.md-est-page .est-hero .bp-quote-title { font-size: 28px !important; line-height: 1.2 !important; font-weight: 900; }
.md-est-page .est-hero .bp-quote .gfield_label, .md-est-page .est-hero .bp-quote label { font-size: 16px !important; font-weight: 800 !important; }
.md-est-page .est-hero .bp-quote input[type="text"], .md-est-page .est-hero .bp-quote input[type="email"], .md-est-page .est-hero .bp-quote input[type="tel"], .md-est-page .est-hero .bp-quote select { height: 58px !important; font-size: 17px !important; padding: 0 18px !important; border-radius: 10px !important; }
.md-est-page .est-hero .bp-quote .gform_footer input[type="submit"], .md-est-page .est-hero .bp-quote .gform_footer button, .md-est-page .est-hero .bp-quote .gform_page_footer .gform_next_button { min-height: 52px !important; height: 52px !important; font-size: 17px !important; border-radius: 8px !important; width: 100% !important; margin: 4px 0 0 !important; } /* 29.10: ista velicina kao ostale forme (bilo 62 px / 19 px / r10) */
.md-est-page .est-hero .bp-quote .bp-small { font-size: 15px !important; }
@media (max-width: 899px) {
	.md-est-page .est-hero .bp-quote { padding: 26px 22px !important; }
	.md-est-page .est-hero .bp-quote-title { font-size: 24px !important; }
}
