/* DigitalYou Reviews — front-end styles
   Colors are driven by CSS custom properties (--dyhq-*), set inline by the
   plugin from Reviews → Appearance in wp-admin. The hard-coded fallback
   values below match the Perrin Photobooth site palette. */

.dyhq-reviews,
.dyhq-reviews * ,
.dyhq-reviews *::before,
.dyhq-reviews *::after,
.dyhq-modal,
.dyhq-modal *,
.dyhq-modal *::before,
.dyhq-modal *::after {
	box-sizing: border-box;
}

.dyhq-reviews {
	max-width: 1100px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dyhq-reviews-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 1.75rem;
}

.dyhq-reviews-title {
	font-size: 1.6rem;
	margin: 0;
	color: var(--dyhq-text, #2A2019);
}

.dyhq-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--dyhq-accent, #9E3548);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 0.85rem 1.75rem;
	font-weight: 700;
	font-size: 0.98rem;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}
.dyhq-btn:hover {
	background: var(--dyhq-accent-dark, #7C2837);
	transform: translateY(-2px);
	color: #fff;
}

/* ---- Carousel ---- */
.dyhq-carousel-wrap { position: relative; }
.dyhq-carousel { overflow: hidden; }
.dyhq-track {
	display: flex;
	transition: transform 0.45s ease;
}
.dyhq-card {
	flex: 0 0 100%;
	background: var(--dyhq-card-bg, #FFFFFF);
	border: 1px solid var(--dyhq-border, #EFE3D6);
	border-radius: 16px;
	padding: 2rem;
}
.dyhq-stars {
	font-size: 1.15rem;
	letter-spacing: 2px;
	color: var(--dyhq-star-empty, #E3DCD3);
	margin-bottom: 0.75rem;
}
.dyhq-star.is-filled { color: var(--dyhq-accent, #9E3548); }
.dyhq-card-text {
	color: var(--dyhq-text, #2A2019);
	font-size: 1.08rem;
	line-height: 1.6;
	margin: 0 0 1rem;
}
.dyhq-card-name {
	color: var(--dyhq-text-soft, #5B4E44);
	font-size: 0.92rem;
	margin: 0;
	font-weight: 600;
}
.dyhq-card-date {
	font-weight: 400;
	opacity: 0.8;
	margin-left: 0.4rem;
}

.dyhq-carousel-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin-top: 1.25rem;
}
.dyhq-nav {
	background: transparent;
	border: 1.5px solid var(--dyhq-border, #EFE3D6);
	color: var(--dyhq-text, #2A2019);
	width: 38px;
	height: 38px;
	border-radius: 50%;
	font-size: 1.2rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
}
.dyhq-nav:hover { background: var(--dyhq-card-bg, #fff); }
.dyhq-dots { display: flex; gap: 0.5rem; }
.dyhq-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--dyhq-border, #EFE3D6);
	border: 0;
	padding: 0;
	cursor: pointer;
}
.dyhq-dot.is-active { background: var(--dyhq-accent, #9E3548); }

.dyhq-empty {
	text-align: center;
	color: var(--dyhq-text-soft, #5B4E44);
	padding: 2.5rem 1rem;
	border: 1px dashed var(--dyhq-border, #EFE3D6);
	border-radius: 16px;
	margin: 0;
}

/* ---- Modal ---- */
.dyhq-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
}
.dyhq-modal[data-open] { display: flex; }
.dyhq-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(20, 14, 10, 0.6);
}
.dyhq-modal-panel {
	position: relative;
	background: var(--dyhq-card-bg, #fff);
	border-radius: 16px;
	padding: 2rem;
	max-width: 440px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.dyhq-modal-close {
	position: absolute;
	top: 0.6rem;
	right: 0.85rem;
	background: transparent;
	border: 0;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	color: var(--dyhq-text, #2A2019);
}
.dyhq-modal-panel h3 {
	margin: 0 0 1.25rem;
	color: var(--dyhq-text, #2A2019);
}

.dyhq-hp-wrap {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.dyhq-field { display: block; margin-bottom: 1.1rem; }
.dyhq-field span {
	display: block;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--dyhq-text, #2A2019);
	margin-bottom: 0.35rem;
}
.dyhq-field input[type="text"],
.dyhq-field textarea {
	width: 100%;
	border: 1px solid var(--dyhq-border, #EFE3D6);
	border-radius: 8px;
	padding: 0.65rem 0.8rem;
	font-size: 1rem;
	font-family: inherit;
	color: var(--dyhq-text, #2A2019);
}
.dyhq-field textarea { resize: vertical; }

.dyhq-star-input { display: flex; gap: 0.35rem; font-size: 1.6rem; }
.dyhq-star-btn {
	background: none;
	border: 0;
	cursor: pointer;
	color: var(--dyhq-star-empty, #E3DCD3);
	padding: 0;
	line-height: 1;
}
.dyhq-star-btn.is-active { color: var(--dyhq-accent, #9E3548); }

.dyhq-submit-btn { width: 100%; margin-top: 0.5rem; }

.dyhq-form-msg {
	margin-top: 0.9rem;
	font-size: 0.92rem;
	min-height: 1.2em;
}
.dyhq-form-msg.is-error { color: #B3261E; }
.dyhq-form-msg.is-success { color: #2F7D4F; }

@media (max-width: 600px) {
	.dyhq-reviews-header { flex-direction: column; align-items: flex-start; }
}
