/* Rodolfo Gari Reviews — matches the site carousel (navy / teal, Plus Jakarta Sans) */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Jost:wght@600;700;800&display=swap');

.rg-scene {
	--rg-navy: #0a3d6b;
	--rg-teal: #14907f;
	--rg-sky: #42a6b8;
	--rg-mist: #eef6fb;
	--rg-ink: #24374a;
	--rg-muted: #5b6b7b;
	padding: clamp(24px, 5vw, 64px) 16px;
	background: #dff2f7;
	position: relative;
}

.rg-scene,
.rg-scene * ,
.rg-card,
.rg-card * {
	font-family: 'Plus Jakarta Sans', sans-serif;
	box-sizing: border-box;
}

.rg-form-wrap {
	max-width: 620px;
	margin: 0 auto;
	padding: clamp(24px, 4vw, 44px);
	background: rgba(255, 255, 255, .88);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	border: 1px solid rgba(20, 144, 127, .35);
	border-radius: 18px;
	box-shadow: 0 20px 50px rgba(10, 61, 107, .18);
	color: var(--rg-ink);
}

.rg-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}

.rg-field { margin-bottom: 20px; }

.rg-field label {
	display: block;
	margin-bottom: 8px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--rg-navy);
}

.rg-field input[type="text"],
.rg-field textarea {
	width: 100%;
	padding: 13px 15px;
	background: #fff;
	border: 1px solid rgba(10, 61, 107, .22);
	border-radius: 10px;
	color: var(--rg-ink);
	font-size: 14px;
	line-height: 1.4;
	transition: border-color .2s, box-shadow .2s;
}

.rg-field textarea { min-height: 130px; resize: vertical; }

.rg-field input::placeholder,
.rg-field textarea::placeholder { color: #8a99a8; }

.rg-field input:focus,
.rg-field textarea:focus {
	outline: none;
	border-color: var(--rg-teal);
	box-shadow: 0 0 0 3px rgba(20, 144, 127, .18);
}

.rg-field.has-error input,
.rg-field.has-error textarea { border-color: #d63638; }

.rg-counter {
	margin-top: 6px;
	text-align: right;
	font-size: 12px;
	font-weight: 600;
	color: var(--rg-muted);
}

.rg-counter.is-near { color: #c0392b; }

/* Stars */
.rg-stars { display: flex; gap: 6px; }

.rg-star {
	width: 30px;
	height: 30px;
	padding: 0;
	background: none;
	border: 0;
	cursor: pointer;
	color: rgba(20, 144, 127, .18);
	transition: transform .15s, color .15s;
}

.rg-star svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
	stroke: var(--rg-teal);
	stroke-width: 1.2;
	stroke-linejoin: round;
}

.rg-star.is-hover,
.rg-star.is-on { color: #f5b301; }
.rg-star.is-hover svg,
.rg-star.is-on svg { stroke: #d99a00; }

.rg-star:hover { transform: scale(1.18); }
.rg-star:focus-visible { outline: 3px solid var(--rg-sky); outline-offset: 3px; border-radius: 6px; }

.rg-hint {
	margin: 8px 0 0;
	font-size: 12px;
	font-weight: 500;
	color: var(--rg-muted);
}

/* Submit — same gradient button as the carousel CTA */
.rg-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin-top: 6px;
	padding: 16px;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .04em;
	color: #fff;
	background: linear-gradient(120deg, #42a6b8 0%, #2f8ea6 45%, #0a3d6b 100%);
	background-size: 220% 220%;
	background-position: 0% 50%;
	box-shadow: 0 6px 16px rgba(66, 166, 184, .42);
	transition: background-position .6s ease, transform .25s ease, box-shadow .25s ease;
}

.rg-submit:hover {
	background-position: 100% 50%;
	transform: translateY(-3px);
	box-shadow: 0 12px 24px rgba(66, 166, 184, .55);
}

.rg-submit:active { transform: scale(.98); }
.rg-submit:disabled { opacity: .65; cursor: wait; transform: none; }
.rg-submit:focus-visible { outline: 3px solid var(--rg-sky); outline-offset: 3px; }

.rg-note {
	margin-top: 16px;
	padding: 12px 14px;
	text-align: center;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.5;
	color: var(--rg-navy);
	background: #fff;
	border: 1px solid rgba(20, 144, 127, .35);
	border-radius: 10px;
}

.rg-anchor { color: var(--rg-teal); }

.rg-message {
	margin-bottom: 14px;
	padding: 11px 14px;
	font-size: 13px;
	color: #8a1f1f;
	background: #fdecec;
	border: 1px solid #f1b5b5;
	border-radius: 10px;
}

.rg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.rg-success { text-align: center; padding: 40px 10px; }
.rg-success[hidden], .rg-message[hidden], .rg-form[hidden] { display: none; }
.rg-success-icon { font-size: 44px; color: var(--rg-teal); margin-bottom: 12px; }
.rg-success h3 { margin: 0 0 8px; font-size: 24px; font-weight: 800; color: var(--rg-navy); }
.rg-success p { margin: 0; color: var(--rg-muted); font-size: 15px; }

.rg-empty { text-align: center; color: #5b6b7b; }

@media (max-width: 560px) {
	.rg-row { grid-template-columns: 1fr; gap: 0; }
	.rg-star { width: 34px; height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
	.rg-star, .rg-submit { transition: none; }
}

/* Heading (matches blog header) */
.rg-scene .rg-head { text-align: center !important; max-width: 900px; margin: 0 auto clamp(24px, 4vw, 44px); }

.rg-scene .rg-eyebrow {
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-bottom: 10px;
}

.rg-scene .rg-line { display: block; flex: 0 1 68px; height: 1px; background: #14907f; }

.rg-scene .rg-eyebrow-text {
	font-family: 'Jost', 'Plus Jakarta Sans', sans-serif !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	letter-spacing: .22em !important;
	text-transform: uppercase !important;
	color: #14907f !important;
	white-space: nowrap;
}

.rg-scene .rg-title {
	margin: 0 !important;
	text-align: center !important;
	font-family: 'Jost', 'Plus Jakarta Sans', sans-serif !important;
	font-size: clamp(32px, 5vw, 60px) !important;
	line-height: 1.1 !important;
	font-weight: 700 !important;
	letter-spacing: -0.02em !important;
	color: #0a3d6b !important;
}

.rg-scene .rg-title em {
	font-style: normal !important;
	font-family: inherit !important;
	font-weight: 700 !important;
	color: #14907f !important;
}

@media (max-width: 560px) {
	.rg-scene .rg-eyebrow-text { font-size: 11px !important; white-space: normal; }
	.rg-scene .rg-line { flex-basis: 28px; }
}

/* Reviews under the form */
.rg-scene .rg-reviews-block { max-width: 1160px; margin: clamp(48px, 7vw, 88px) auto 0; }

.rg-scene .rg-subtitle {
	margin: 0 0 32px !important;
	text-align: center !important;
	font-family: 'Jost', 'Plus Jakarta Sans', sans-serif !important;
	font-size: clamp(24px, 3.2vw, 36px) !important;
	font-weight: 700 !important;
	color: #0a3d6b !important;
}


/* =========================================================
   PATIENT REVIEWS — elegant testimonial section  [rg_reviews]
========================================================= */

.rg-rv,
.rg-rv * { box-sizing: border-box; font-family: 'Plus Jakarta Sans', sans-serif; }

.rg-rv {
	--rv-navy: #0a3d6b;
	--rv-teal: #14907f;
	--rv-sky: #42a6b8;
	--rv-ink: #3b4d5f;
	position: relative;
	overflow: hidden;
	padding: clamp(16px, 2vw, 28px) 20px clamp(32px, 4vw, 56px);
	background: #dff2f7;
	color: var(--rv-ink);
}

.rg-rv > * { position: relative; z-index: 1; }

/* ---------- Heading ---------- */
.rg-rv-head { max-width: 860px; margin: 0 auto clamp(36px, 5vw, 52px); text-align: center; }

.rg-rv-eyebrow { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 12px; }
.rg-rv-line { display: block; flex: 0 1 68px; height: 1px; background: var(--rv-teal); }

.rg-rv .rg-rv-eyebrow-text {
	font-family: 'Jost', 'Plus Jakarta Sans', sans-serif !important;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--rv-teal);
	white-space: nowrap;
}

.rg-rv .rg-rv-heading {
	margin: 0 !important;
	text-align: center !important;
	font-family: 'Jost', 'Plus Jakarta Sans', sans-serif !important;
	font-size: clamp(32px, 5vw, 56px) !important;
	line-height: 1.1 !important;
	font-weight: 700 !important;
	letter-spacing: -0.02em !important;
	color: var(--rv-navy) !important;
}
.rg-rv .rg-rv-heading em { font-style: normal !important; font-family: inherit !important; color: var(--rv-teal) !important; }

/* rating summary pill */
.rg-rv-summary {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 12px;
	margin-top: 20px;
	padding: 10px 22px;
	background: rgba(255, 255, 255, .75);
	border: 1px solid rgba(20, 144, 127, .28);
	border-radius: 30px;
	box-shadow: 0 8px 22px rgba(10, 61, 107, .08);
}
.rg-rv-avg { font-size: 22px; font-weight: 800; line-height: 1; color: var(--rv-navy); }

/* ---------- Stars ---------- */
.rg-rv-stars { display: inline-flex; gap: 3px; }
.rg-rv-star { width: 18px; height: 18px; color: rgba(20, 144, 127, .2); }
.rg-rv-star svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.rg-rv-star.is-on { color: #f5b301; filter: drop-shadow(0 1px 2px rgba(245, 179, 1, .35)); }

/* ---------- Slider: 3 reviews per row ---------- */
.rg-rv-slider {
	--rv-gap: 28px;
	position: relative;
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 56px;
}

.rg-rv-track {
	display: flex;
	gap: var(--rv-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	/* room for the quote badge above and the card shadow below */
	padding: 40px 4px 48px;
	margin: -14px -4px -20px;
	outline: none;
}
.rg-rv-track::-webkit-scrollbar { display: none; }

.rg-rv-card {
	flex: 0 0 calc((100% - 2 * var(--rv-gap)) / 3);
	scroll-snap-align: start;
}

/* arrows */
.rg-rv-nav {
	position: absolute;
	top: 50%;
	z-index: 3;
	width: 44px;
	height: 44px;
	margin-top: -34px;
	display: grid;
	place-items: center;
	padding: 0;
	border: 1px solid rgba(20, 144, 127, .35);
	border-radius: 50%;
	background: #fff;
	color: var(--rv-navy);
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(10, 61, 107, .15);
	transition: background .2s, color .2s, transform .2s, opacity .2s;
}
.rg-rv-nav svg { width: 20px; height: 20px; fill: currentColor; }
.rg-rv-nav:hover { background: linear-gradient(135deg, var(--rv-navy), var(--rv-teal)); color: #fff; transform: scale(1.08); }
.rg-rv-nav:disabled { opacity: .35; cursor: default; transform: none; background: #fff; color: var(--rv-navy); }
.rg-rv-prev { left: 0; }
.rg-rv-next { right: 0; }

/* dots */
.rg-rv-dots { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.rg-rv-dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: rgba(10, 61, 107, .22);
	cursor: pointer;
	transition: width .3s ease, background .3s ease;
}
.rg-rv-dot.is-active { width: 30px; background: linear-gradient(90deg, var(--rv-navy), var(--rv-teal)); }

/* 3 reviews or fewer: no controls needed */
.rg-rv-slider.is-static .rg-rv-nav,
.rg-rv-slider.is-static .rg-rv-dots { display: none; }
.rg-rv-slider.is-static { padding: 0 4px; }
.rg-rv-slider.is-static .rg-rv-track { justify-content: center; overflow: visible; }

/* ---------- Card ---------- */
.rg-rv-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 50px 30px 26px;
	background: #fff;
	border: 1px solid rgba(10, 61, 107, .07);
	border-radius: 22px;
	box-shadow: 0 2px 4px rgba(10, 61, 107, .04), 0 18px 40px rgba(10, 61, 107, .11);
	transition: transform .3s ease, box-shadow .3s ease;
}

.rg-rv-card::before {                       /* fine gradient edge on top */
	content: "";
	position: absolute;
	top: 0;
	left: 28px;
	right: 28px;
	height: 3px;
	border-radius: 0 0 6px 6px;
	background: linear-gradient(90deg, var(--rv-navy), var(--rv-teal), var(--rv-sky));
}

.rg-rv-card:hover { transform: translateY(-6px); box-shadow: 0 4px 8px rgba(10, 61, 107, .05), 0 28px 54px rgba(10, 61, 107, .18); }

/* quote badge straddling the top edge */
.rg-rv-badge {
	position: absolute;
	top: -26px;
	left: 50%;
	width: 54px;
	height: 54px;
	display: grid;
	place-items: center;
	transform: translateX(-50%);
	border: 5px solid #dff2f7;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--rv-navy), var(--rv-teal));
	box-shadow: 0 8px 18px rgba(10, 61, 107, .28);
}
.rg-rv-badge svg { width: 20px; height: 20px; fill: #fff; }

.rg-rv-card .rg-rv-stars { margin-bottom: 14px; }

.rg-rv .rg-rv-title {
	margin: 0 0 12px !important;
	font-family: 'Jost', 'Plus Jakarta Sans', sans-serif !important;
	font-size: 21px !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	letter-spacing: -0.01em;
	color: var(--rv-navy) !important;
}

.rg-rv-body { flex: 1 1 auto; width: 100%; }
.rg-rv .rg-rv-body p {
	margin: 0 0 10px !important;
	font-size: 15px !important;
	line-height: 1.75 !important;
	color: var(--rv-ink) !important;
	max-width: none !important;
	animation: none !important;
}
.rg-rv .rg-rv-body p:last-child { margin-bottom: 0 !important; }

/* footer: hairline + avatar + name */
.rg-rv-foot {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	margin-top: 22px;
	padding-top: 22px;
	text-align: left;
}
.rg-rv-foot::before {
	content: "";
	position: absolute;
	top: 0;
	left: 10%;
	right: 10%;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(20, 144, 127, .5), transparent);
}

.rg-rv-avatar {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	font-size: 17px;
	font-weight: 800;
	color: #fff;
	background: linear-gradient(135deg, var(--rv-sky), var(--rv-navy));
	box-shadow: 0 0 0 3px #fff, 0 0 0 4px rgba(20, 144, 127, .45);
}

.rg-rv-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.rg-rv-who strong { font-size: 15px; font-weight: 700; color: var(--rv-navy); }
.rg-rv-loc { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: #5b6b7b; }
.rg-rv-loc svg { width: 12px; height: 12px; flex: 0 0 auto; fill: var(--rv-teal); }

.rg-rv-date { margin-top: 14px; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: #8a99a8; }

@media (max-width: 980px) {
	.rg-rv-card { flex-basis: calc((100% - var(--rv-gap)) / 2); }
	.rg-rv-slider.is-static .rg-rv-track { flex-wrap: wrap; }
}

@media (max-width: 640px) {
	.rg-rv-slider { --rv-gap: 16px; padding: 0 4px; }
	.rg-rv-card { flex-basis: 86%; padding: 48px 22px 22px; }
	.rg-rv-nav { display: none; }          /* swipe on phones */
	.rg-rv .rg-rv-eyebrow-text { font-size: 11px; white-space: normal; }
	.rg-rv-line { flex-basis: 28px; }
	.rg-rv-slider.is-static .rg-rv-card { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.rg-rv-card, .rg-rv-nav, .rg-rv-dot { transition: none; }
	.rg-rv-track { scroll-behavior: auto; }
}
