/*
 * Lucy Chang Feedback – frontend.
 * Every visual value is a CSS variable set from Design & Appearance
 * (inline, on .lcf) or from the Elementor widget (on {{WRAPPER}} .lcf).
 * The fallbacks below only apply if the inline design CSS is missing.
 */

.lcf {
	--lcf-primary: #DDC8A2;
	--lcf-bg: #013837;
	--lcf-form-bg: transparent;
	--lcf-heading: #fff;
	--lcf-text: #fff;
	--lcf-label: #fff;
	--lcf-star-off: #fff;
	--lcf-star-border: #D0823D;
	--lcf-star-hover: #D0823D;
	--lcf-star-on: #D0823D;
	--lcf-btn-bg: #D0823D;
	--lcf-btn-hover: #B86F2F;
	--lcf-btn-text: #fff;
	--lcf-input-border: #D9D9D9;
	--lcf-input-bg: #fff;
	--lcf-input-text: #1D252E;
	--lcf-error: #FF9A8F;
	--lcf-success: #fff;
	--lcf-heading-font: inherit;
	--lcf-body-font: inherit;
	--lcf-ui-font: inherit;
	--lcf-heading-size: 28px;
	--lcf-subheading-size: 18px;
	--lcf-body-size: 18px;
	--lcf-label-size: 16px;
	--lcf-input-size: 15px;
	--lcf-button-size: 15px;
	--lcf-star-label-size: 15px;
	--lcf-heading-weight: 400;
	--lcf-body-weight: 400;
	--lcf-label-weight: 600;
	--lcf-button-weight: 600;
	--lcf-heading-spacing: 1.5px;
	--lcf-transform: uppercase;
	--lcf-star-size: 46px;
	--lcf-form-star-size: 34px;
	--lcf-star-gap: 8px;
	--lcf-form-width: 570px;
	--lcf-padding: 48px;
	--lcf-input-height: 40px;
	--lcf-textarea-height: 200px;
	--lcf-button-width: 100%;
	--lcf-button-height: 40px;
	--lcf-radius: 0px;
	--lcf-input-radius: 0px;
	--lcf-button-radius: 3px;
	--lcf-spacing: 30px;
	--lcf-shadow: none;
	--lcf-align: left;
	--lcf-justify: flex-start;
	--lcf-ml: 0;
	--lcf-mr: auto;

	container-type: inline-size;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: var(--lcf-padding);
	background: var(--lcf-bg);
	border-radius: var(--lcf-radius);
	box-shadow: var(--lcf-shadow);
	color: var(--lcf-text);
	font-family: var(--lcf-body-font);
	font-size: var(--lcf-body-size);
	font-weight: var(--lcf-body-weight);
	line-height: 1.45;
	text-align: var(--lcf-align);
	overflow-wrap: anywhere;
	-webkit-tap-highlight-color: transparent;
}

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

.lcf [hidden] {
	display: none !important;
}

.lcf__inner {
	width: 100%;
	max-width: var(--lcf-form-width);
	margin-left: var(--lcf-ml);
	margin-right: var(--lcf-mr);
}

/* ---------- Intro ---------- */

.lcf .lcf__heading {
	display: flex;
	align-items: center;
	justify-content: var(--lcf-justify);
	gap: 14px;
	margin: 0 0 12px;
	padding: 0;
	color: var(--lcf-heading);
	font-family: var(--lcf-heading-font);
	font-size: var(--lcf-heading-size);
	font-weight: var(--lcf-heading-weight);
	letter-spacing: var(--lcf-heading-spacing);
	line-height: 1.1;
	text-transform: var(--lcf-transform);
}

/* The short accent line after "FEEDBACK" */
.lcf .lcf__heading::after {
	content: "";
	flex: 0 0 35px;
	height: 2.75px;
	background: var(--lcf-primary);
}

.lcf .lcf__desc {
	margin: 0 0 calc(var(--lcf-spacing) * .66);
	color: var(--lcf-text);
	font-family: var(--lcf-body-font);
	font-size: var(--lcf-body-size);
}

.lcf .lcf__question {
	margin: 0 0 10px;
	color: var(--lcf-heading);
	font-family: var(--lcf-ui-font);
	font-size: var(--lcf-subheading-size);
	font-weight: var(--lcf-heading-weight);
	letter-spacing: .3px;
	line-height: 1.3;
	text-transform: var(--lcf-transform);
}

/* ---------- Top star rating ---------- */

.lcf-rating__wrap {
	display: inline-block;
	max-width: 100%;
	text-align: left;
}

.lcf-stars {
	display: inline-flex;
	flex-wrap: nowrap;
	margin-left: calc(var(--lcf-star-gap) / -2);
}

.lcf .lcf-star,
.lcf .lcf-star:hover,
.lcf .lcf-star:focus,
.lcf .lcf-star:active {
	appearance: none;
	-webkit-appearance: none;
	display: block;
	margin: 0;
	padding: calc(var(--lcf-star-gap) / 2);
	min-width: 0;
	min-height: 0;
	width: auto;
	height: auto;
	border: 0;
	border-radius: 6px;
	background: none;
	box-shadow: none;
	line-height: 0;
	cursor: pointer;
	touch-action: manipulation;
}

.lcf .lcf-star:focus-visible {
	outline: 2px solid var(--lcf-star-on);
	outline-offset: 2px;
}

.lcf-star__svg,
.lcf-mini-star__svg {
	display: block;
	overflow: visible;
	transition: transform .15s ease;
}

/* Capped by the container width (cqi) so five stars always fit on one line. */
.lcf-star__svg {
	width: min(var(--lcf-star-size), calc((100cqi - var(--lcf-star-gap) * 5) / 5));
	height: min(var(--lcf-star-size), calc((100cqi - var(--lcf-star-gap) * 5) / 5));
}

.lcf-star__svg path,
.lcf-mini-star__svg path {
	fill: var(--lcf-star-off);
	stroke: var(--lcf-star-border);
	stroke-width: 1.5;
	stroke-linejoin: round;
	transition: fill .15s ease, stroke .15s ease;
}

.lcf-star.is-on .lcf-star__svg path {
	fill: var(--lcf-star-on);
	stroke: var(--lcf-star-on);
}

/* While previewing (hover or keyboard focus), the preview wins over the selection. */
.lcf-stars.is-previewing .lcf-star .lcf-star__svg path {
	fill: var(--lcf-star-off);
	stroke: var(--lcf-star-border);
}

.lcf-stars.is-previewing .lcf-star.is-preview .lcf-star__svg path {
	fill: var(--lcf-star-hover);
	stroke: var(--lcf-star-hover);
}

@media (hover: hover) {
	.lcf-star:hover .lcf-star__svg {
		transform: scale(1.08);
	}
}

.lcf-caption {
	display: grid;
	min-height: 1.5em;
	margin: 8px 0 0;
	font-family: var(--lcf-ui-font);
	font-size: var(--lcf-star-label-size);
}

.lcf-scale,
.lcf .lcf-label {
	grid-area: 1 / 1;
	transition: opacity .15s ease;
}

.lcf-scale {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding-right: calc(var(--lcf-star-gap) / 2);
	color: var(--lcf-text);
	font-size: .9em;
	white-space: nowrap;
}

.lcf .lcf-label {
	margin: 0;
	color: var(--lcf-text);
	font-weight: 700;
	opacity: 0;
}

.lcf-rating.is-active .lcf-scale {
	opacity: 0;
}

.lcf-rating.is-active .lcf-label {
	opacity: 1;
}

.lcf .lcf-msg {
	max-width: 34em;
	margin: 16px 0 0;
	color: var(--lcf-success);
	font-size: calc(var(--lcf-body-size) * .95);
}

.lcf .lcf-msg a,
.lcf .lcf-msg a:hover,
.lcf .lcf-msg a:visited {
	color: inherit;
	text-decoration: underline;
}

/* ---------- Form ---------- */

.lcf-form {
	margin: calc(var(--lcf-spacing) * .66) 0 0;
	padding: 0;
	background: var(--lcf-form-bg);
	text-align: left;
}

.lcf-form.is-revealing {
	animation: lcfReveal .35s both;
}

@keyframes lcfReveal {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.lcf-step.is-entering {
	animation: lcfReveal .25s both;
}

.lcf .lcf-step__intro {
	margin: 0 0 calc(var(--lcf-spacing) * .5);
	color: var(--lcf-label);
	font-family: var(--lcf-ui-font);
	font-size: calc(var(--lcf-label-size) * 1.15);
	font-weight: 700;
	line-height: 1.3;
}

.lcf-field {
	margin: 0 0 var(--lcf-spacing);
	min-width: 0;
}

.lcf .lcf-field__label {
	display: block;
	margin: 0 0 6px;
	color: var(--lcf-label);
	font-family: var(--lcf-ui-font);
	font-size: var(--lcf-label-size);
	font-weight: var(--lcf-label-weight);
	line-height: 1.2;
	text-transform: var(--lcf-transform);
}

.lcf-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	column-gap: 10px;
}

@container (min-width: 480px) {
	.lcf-row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Step 1 mini star radios */
.lcf-mini-stars {
	display: flex;
	flex-wrap: nowrap;
	gap: 0;
	margin-left: calc(var(--lcf-star-gap) * -.35);
}

.lcf .lcf-mini-star {
	position: relative;
	display: block;
	margin: 0;
	padding: calc(var(--lcf-star-gap) * .35);
	cursor: pointer;
	line-height: 0;
	touch-action: manipulation;
}

.lcf-mini-star__svg {
	width: min(var(--lcf-form-star-size), calc((100cqi - var(--lcf-star-gap) * 3.5) / 5));
	height: min(var(--lcf-form-star-size), calc((100cqi - var(--lcf-star-gap) * 3.5) / 5));
}

.lcf-mini-star.is-on .lcf-mini-star__svg path {
	fill: var(--lcf-star-on);
	stroke: var(--lcf-star-on);
}

.lcf-mini-star:focus-within {
	outline: 2px solid var(--lcf-star-on);
	outline-offset: -2px;
	border-radius: 4px;
}

.lcf-mini-star:focus-within:not(:has(:focus-visible)) {
	outline: none;
}

@media (hover: hover) {
	.lcf-mini-stars:hover .lcf-mini-star .lcf-mini-star__svg path {
		fill: var(--lcf-star-hover);
		stroke: var(--lcf-star-hover);
	}

	.lcf-mini-stars .lcf-mini-star:hover ~ .lcf-mini-star .lcf-mini-star__svg path {
		fill: var(--lcf-star-off);
		stroke: var(--lcf-star-border);
	}

	.lcf-mini-star:hover .lcf-mini-star__svg {
		transform: scale(1.08);
	}
}

/* Inputs */
.lcf .lcf-input {
	display: block;
	width: 100%;
	max-width: 100%;
	height: var(--lcf-input-height);
	min-height: var(--lcf-input-height);
	margin: 0;
	padding: 5px 14px;
	border: 1px solid var(--lcf-input-border);
	border-radius: var(--lcf-input-radius);
	background: var(--lcf-input-bg);
	box-shadow: none;
	color: var(--lcf-input-text);
	font-family: var(--lcf-ui-font);
	font-size: var(--lcf-input-size);
	font-weight: 400;
	line-height: 1.4;
	text-transform: none;
	appearance: none;
	-webkit-appearance: none;
}

.lcf .lcf-input::placeholder {
	color: #7a7f87;
	opacity: 1;
}

.lcf .lcf-textarea {
	height: var(--lcf-textarea-height);
	min-height: 90px;
	padding: 10px 14px;
	resize: vertical;
}

.lcf .lcf-input:focus {
	border-color: var(--lcf-primary);
	outline: 2px solid var(--lcf-primary);
	outline-offset: 0;
}

.lcf .lcf-field.has-error .lcf-input {
	border-color: var(--lcf-error);
	outline: 2px solid var(--lcf-error);
	outline-offset: 0;
}

.lcf .lcf-error {
	margin: 6px 0 0;
	color: var(--lcf-error);
	font-family: var(--lcf-ui-font);
	font-size: .85em;
	font-weight: 600;
	line-height: 1.3;
	text-transform: none;
}

.lcf .lcf-hint {
	display: block;
	margin: 6px 0 0;
	color: var(--lcf-text);
	font-family: var(--lcf-ui-font);
	font-size: .85em;
}

/* Native date input fallback (no flatpickr) */
.lcf input[type="date"].lcf-input {
	line-height: calc(var(--lcf-input-height) - 12px);
}

.lcf input[type="date"].lcf-input::-webkit-date-and-time-value {
	text-align: left;
}

/* Privacy checkbox */
.lcf .lcf-check {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
	color: var(--lcf-text);
	font-family: var(--lcf-ui-font);
	font-size: calc(var(--lcf-label-size) * 1.1);
	font-weight: 400;
	line-height: 1.4;
	text-transform: none;
	cursor: pointer;
}

.lcf .lcf-check input {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: .15em 0 0;
	accent-color: var(--lcf-primary);
	cursor: pointer;
}

.lcf .lcf-check a {
	color: inherit;
	text-decoration: underline;
}

/* Buttons */
.lcf-actions {
	display: flex;
	gap: 10px;
	width: var(--lcf-button-width);
	max-width: 100%;
	margin: 0;
}

.lcf .lcf-btn,
.lcf .lcf-btn:visited {
	appearance: none;
	-webkit-appearance: none;
	flex: 1 1 0;
	min-width: 0;
	height: var(--lcf-button-height);
	min-height: var(--lcf-button-height);
	margin: 0;
	padding: 0 14px;
	border: 0;
	border-radius: var(--lcf-button-radius);
	background: var(--lcf-btn-bg);
	box-shadow: none;
	color: var(--lcf-btn-text);
	font-family: var(--lcf-ui-font);
	font-size: var(--lcf-button-size);
	font-weight: var(--lcf-button-weight);
	letter-spacing: 0;
	line-height: 1.1;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
	touch-action: manipulation;
	transition: background-color .2s ease, opacity .2s ease;
}

.lcf .lcf-btn:hover,
.lcf .lcf-btn:focus {
	background: var(--lcf-btn-hover);
	color: var(--lcf-btn-text);
}

.lcf .lcf-btn:focus-visible {
	outline: 2px solid var(--lcf-text);
	outline-offset: 2px;
}

.lcf .lcf-btn[disabled] {
	opacity: .7;
	cursor: progress;
}

.lcf .lcf-form-msg {
	margin: 16px 0 0;
	color: var(--lcf-error);
	font-family: var(--lcf-ui-font);
	font-size: .9em;
	font-weight: 600;
}

.lcf .lcf-success {
	margin: calc(var(--lcf-spacing) * .66) 0 0;
	color: var(--lcf-success);
	font-family: var(--lcf-body-font);
	font-size: calc(var(--lcf-body-size) * 1.05);
	animation: lcfReveal .35s both;
}

/* Helpers */
.lcf .lcf-sr {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
	opacity: 0;
}

.lcf .lcf-hp {
	position: absolute !important;
	left: -10000px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.lcf-admin-notice {
	padding: 14px 16px;
	border: 2px dashed #D0823D;
	background: #fff8ef;
	color: #3b2a1a;
	font: 14px/1.4 -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Widget style presets (Elementor "Design style") ---------- */

.lcf.lcf--style-transparent {
	--lcf-bg: transparent;
	--lcf-padding: 0px;
	--lcf-shadow: none;
}

.lcf.lcf--style-dark {
	--lcf-bg: #013837;
	--lcf-heading: #fff;
	--lcf-text: #fff;
	--lcf-label: #fff;
	--lcf-star-off: #fff;
	--lcf-error: #FF9A8F;
	--lcf-success: #fff;
}

.lcf.lcf--style-light {
	--lcf-bg: #fff;
	--lcf-heading: #1D252E;
	--lcf-text: #1D252E;
	--lcf-label: #1D252E;
	--lcf-star-off: #fff;
	--lcf-input-border: #c4c8ce;
	--lcf-error: #C62828;
	--lcf-success: #1D252E;
}

/* ---------- Narrow screens / containers ---------- */

@container (max-width: 359px) {
	.lcf-scale {
		font-size: .82em;
	}

	.lcf .lcf-btn {
		padding: 0 8px;
	}
}

/* ---------- flatpickr calendar (rendered outside .lcf) ---------- */

.flatpickr-calendar.lcf-cal .flatpickr-day.selected,
.flatpickr-calendar.lcf-cal .flatpickr-day.selected:hover,
.flatpickr-calendar.lcf-cal .flatpickr-day.selected:focus {
	background: var(--lcf-primary, #D0823D);
	border-color: var(--lcf-primary, #D0823D);
	color: #fff;
}

.flatpickr-calendar.lcf-cal .flatpickr-day.today {
	border-color: var(--lcf-primary, #D0823D);
}

.flatpickr-calendar.lcf-cal .flatpickr-day.flatpickr-disabled,
.flatpickr-calendar.lcf-cal .flatpickr-day.flatpickr-disabled:hover {
	color: rgba(57, 57, 57, .25);
}

@media (max-width: 480px) {
	.flatpickr-calendar.lcf-cal {
		max-width: calc(100vw - 16px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.lcf *,
	.lcf *::before,
	.lcf *::after {
		animation: none !important;
		transition: none !important;
	}
}
