/* Mobilecar Depoimentos - front-end
 * Paleta: azul primario #0083EE, preto/branco, cinzas suaves.
 * Fontes do tema: Lexend Deca (titulos) e Hind (corpo), com fallback seguro.
 * Cantos arredondados, sombras suaves, foco visivel e alvos de toque >= 44px.
 */

.mc-dep {
	--mc-blue: #0083EE;
	--mc-blue-dark: #006fce;
	--mc-ink: #0b1b33;
	--mc-body: #39557e;
	--mc-white: #ffffff;
	--mc-gray: #f4f7fb;
	--mc-gray-2: #e7effc;
	--mc-radius: 18px;
	--mc-radius-sm: 12px;
	--mc-shadow: 0 18px 40px rgba(0, 70, 130, 0.12);
	--mc-shadow-sm: 0 6px 18px rgba(0, 70, 130, 0.10);
	--mc-title-font: 'Lexend Deca', 'Poppins', sans-serif;
	--mc-body-font: 'Hind', 'Lato', sans-serif;

	box-sizing: border-box;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 8px 0;
	font-family: var(--mc-body-font);
	color: var(--mc-body);
}

.mc-dep *,
.mc-dep *::before,
.mc-dep *::after {
	box-sizing: border-box;
}

/* Cabecalho: titulo a esquerda, botao a direita */
.mc-dep__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 22px;
	padding: 0 12px;
}

.mc-dep__title {
	font-family: var(--mc-title-font);
	font-weight: 700;
	color: #ffffff;
	font-size: clamp(1.5rem, 1rem + 1.6vw, 2.2rem);
	line-height: 1.2;
	margin: 0;
}

.mc-dep__add-btn {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	min-height: 48px;
	padding: 11px 26px 11px 18px;
	background: #ffffff;
	color: var(--mc-blue);
	font-family: var(--mc-body-font);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.2px;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	box-shadow: 0 12px 26px rgba(0, 25, 70, 0.22);
	transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.mc-dep__add-btn:hover {
	background: #eef6ff;
	transform: translateY(-2px);
	box-shadow: 0 16px 32px rgba(0, 25, 70, 0.28);
}

.mc-dep__add-btn:active {
	transform: translateY(0);
}

.mc-dep__add-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--mc-blue);
	color: #ffffff;
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1;
}

/* Carrossel */
.mc-dep__carousel {
	position: relative;
	padding: 8px 0;
	overflow: hidden;
}

/* Crossfade controlado por nos mesmos.
   O Swiper define a opacidade dos slides via estilo inline quadro a quadro, o
   que, junto com loop/autoHeight e CSS do tema, deixava o slide seguinte
   "vazando" por tras do ativo. Aqui assumimos o controle: apenas o slide ativo
   fica visivel (opacidade 1, no topo e clicavel); todos os outros ficam
   totalmente transparentes e fora do fluxo de interacao. A transicao suave
   com easing torna a passagem mais fluida. */
.mc-dep__carousel.swiper-fade .swiper-slide {
	opacity: 0 !important;
	pointer-events: none;
	transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1) !important;
	z-index: 1;
}

.mc-dep__carousel.swiper-fade .swiper-slide-active {
	opacity: 1 !important;
	pointer-events: auto;
	z-index: 2;
}

/* Card sem box de fundo: o azul vem da secao. Foto grande a esquerda,
   depoimento a direita, tudo em texto branco (igual a referencia). */
.mc-dep-card {
	height: auto;
	display: flex;
	flex-direction: row;
	align-items: center;
	text-align: left;
	gap: clamp(28px, 4vw, 60px);
	padding: 16px 8px 8px;
	max-width: 1000px;
	margin: 0 auto;
	background: transparent;
	border: 0;
	box-shadow: none;
}

.mc-dep-card__photo {
	flex: 0 0 auto;
}

.mc-dep-card__img {
	width: 320px;
	max-width: 36vw;
	aspect-ratio: 4 / 5;
	height: auto;
	object-fit: cover;
	border-radius: 22px;
	box-shadow: 0 26px 55px rgba(0, 25, 65, 0.30);
	display: block;
}

.mc-dep-card__body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

/* Reset contra o estilo global de blockquote do tema (box, borda, aspas). */
.mc-dep-card__quote {
	margin: 0 0 24px;
	padding: 0;
	border: 0;
	background: none;
	font-family: var(--mc-body-font);
	font-weight: 300;
	font-style: italic;
	font-size: clamp(1.1rem, 0.95rem + 0.6vw, 1.45rem);
	line-height: 1.7;
	color: #ffffff;
	quotes: none;
}

.mc-dep-card__quote::before,
.mc-dep-card__quote::after {
	content: none;
	display: none;
}

.mc-dep-card__name {
	margin: 0;
	font-family: var(--mc-title-font);
	font-weight: 700;
	font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
	color: #ffffff;
}

.mc-dep-card__grad {
	margin: 2px 0 0;
	font-size: 0.98rem;
	font-style: italic;
	color: rgba(255, 255, 255, 0.85);
	font-weight: 600;
}

.mc-dep__empty {
	text-align: center;
	padding: 30px 16px;
	color: rgba(255, 255, 255, 0.9);
}

/* Paginacao (bolinhas) centralizada abaixo do card */
.mc-dep__pagination {
	position: static;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 9px;
	margin-top: 30px;
}

.mc-dep__pagination .swiper-pagination-bullet {
	width: 10px;
	height: 10px;
	background: rgba(255, 255, 255, 0.45);
	opacity: 1;
	border-radius: 50%;
	transition: background 0.18s ease, width 0.18s ease;
}

.mc-dep__pagination .swiper-pagination-bullet-active {
	background: #ffffff;
	width: 26px;
	border-radius: 999px;
}

/* Foco visivel global do widget */
.mc-dep :focus-visible,
.mc-dep-modal :focus-visible {
	outline: 3px solid var(--mc-blue);
	outline-offset: 2px;
	border-radius: 6px;
}

/* ---------------- Lightbox / modal ---------------- */
.mc-dep-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	font-family: var(--mc-body-font, 'Hind', sans-serif);
}

.mc-dep-modal[hidden] {
	display: none;
}

.mc-dep-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(6, 23, 51, 0.55);
	backdrop-filter: blur(2px);
}

.mc-dep-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 480px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 30px 70px rgba(0, 40, 90, 0.35);
	padding: 30px 28px 26px;
	animation: mc-dep-pop 0.22s ease;
}

@keyframes mc-dep-pop {
	from { transform: translateY(12px) scale(0.98); opacity: 0; }
	to { transform: translateY(0) scale(1); opacity: 1; }
}

.mc-dep-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 44px;
	height: 44px;
	border: 0;
	background: transparent;
	font-size: 1.8rem;
	line-height: 1;
	color: #0b1b33;
	cursor: pointer;
	border-radius: 50%;
}

.mc-dep-modal__close:hover {
	background: #f4f7fb;
}

.mc-dep-modal__title {
	font-family: 'Lexend Deca', 'Poppins', sans-serif;
	font-weight: 700;
	color: #0b1b33;
	font-size: 1.35rem;
	margin: 0 0 20px;
	padding-right: 30px;
}

.mc-dep-field {
	margin-bottom: 16px;
}

.mc-dep-label {
	display: block;
	font-weight: 600;
	color: #0b1b33;
	font-size: 0.95rem;
	margin-bottom: 6px;
}

.mc-dep-req {
	color: #0083EE;
}

.mc-dep-field input[type="text"],
.mc-dep-field textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid #e7effc;
	border-radius: 12px;
	font-family: inherit;
	font-size: 1rem;
	color: #0b1b33;
	background: #fbfdff;
	transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.mc-dep-field input[type="text"]:focus,
.mc-dep-field textarea:focus {
	outline: none;
	border-color: #0083EE;
	box-shadow: 0 0 0 3px rgba(0, 131, 238, 0.18);
}

.mc-dep-field textarea {
	resize: vertical;
	min-height: 96px;
}

.mc-dep-hint {
	margin: 6px 0 0;
	font-size: 0.82rem;
	color: #7c8aa3;
}

/* Seletor de foto + preview */
.mc-dep-photo-picker {
	display: flex;
	align-items: center;
	gap: 14px;
}

.mc-dep-photo-preview {
	width: 72px;
	height: 72px;
	flex: 0 0 auto;
	border-radius: 50%;
	background: #f4f7fb;
	border: 2px dashed #cdd9ec;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mc-dep-photo-preview img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mc-dep-photo-placeholder {
	font-size: 0.62rem;
	color: #9fb0c9;
	text-align: center;
	padding: 4px;
}

.mc-dep-photo-btn {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 10px 18px;
	background: #eaf4ff;
	color: #0083EE;
	font-weight: 600;
	border-radius: 999px;
	cursor: pointer;
	border: 1.5px solid #cfe6ff;
	transition: background 0.16s ease;
}

.mc-dep-photo-btn:hover {
	background: #d9ecff;
}

input[data-mc-dep-file] {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

/* Honeypot: fora da tela, sem display:none para nao alertar bots */
.mc-dep-hp {
	position: absolute;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.mc-dep-feedback {
	margin: 4px 0 0;
	font-size: 0.92rem;
	min-height: 1.2em;
}

.mc-dep-feedback.is-error {
	color: #b3261e;
}

.mc-dep-feedback.is-success {
	color: #0a7a3d;
}

.mc-dep-actions {
	display: flex;
	gap: 12px;
	margin-top: 22px;
}

.mc-dep-btn {
	flex: 1;
	min-height: 48px;
	padding: 12px 18px;
	border-radius: 999px;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	border: 0;
	transition: background 0.16s ease, transform 0.16s ease, opacity 0.16s ease;
}

.mc-dep-btn--primary {
	background: #0083EE;
	color: #fff;
}

.mc-dep-btn--primary:hover {
	background: #006fce;
}

.mc-dep-btn--primary[disabled] {
	opacity: 0.6;
	cursor: progress;
}

.mc-dep-btn--ghost {
	background: #f4f7fb;
	color: #0b1b33;
}

.mc-dep-btn--ghost:hover {
	background: #e7effc;
}

/* Bloqueia o scroll do body quando o modal esta aberto */
body.mc-dep-modal-open {
	overflow: hidden;
}

/* ---------------- Responsivo ---------------- */
/* Tablet e telas medias: empilha foto em cima, texto embaixo, centralizado. */
@media (max-width: 880px) {
	.mc-dep-card {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 24px;
	}

	.mc-dep-card__img {
		width: 240px;
		max-width: 70vw;
	}

	.mc-dep-card__quote {
		margin-bottom: 18px;
	}
}

@media (max-width: 600px) {
	.mc-dep__head {
		flex-direction: column;
		align-items: stretch;
	}

	.mc-dep__add-btn {
		justify-content: center;
		width: 100%;
	}

	.mc-dep-card {
		padding: 10px 14px;
	}

	.mc-dep-card__img {
		width: 200px;
	}

	.mc-dep-modal__dialog {
		padding: 26px 20px 22px;
	}

	.mc-dep-actions {
		flex-direction: column;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mc-dep-modal__dialog,
	.mc-dep__add-btn {
		animation: none;
		transition: none;
	}
}
