/* AYCEE Builder: shared form and component styles */
.ayc-form, .ayc-calc, .ayc-calc-hub, .ayc-trades, .ayc-profile {
	--ayc-aqua: #19C3B1;
	--ayc-teal: #087F7A;
	--ayc-teal-dark: #066662;
	--ayc-light: #F2F4F4;
	--ayc-dark: #1F2933;
	--ayc-muted: #5B6770;
	--ayc-border: #D9DEDF;
	--ayc-error: #B42318;
	--ayc-star: #F5A524;
	color: var(--ayc-dark);
	font-size: 16px;
	line-height: 1.5;
}
.ayc-form { max-width: 860px; margin: 0 auto; }
.ayc-form form { margin: 0; }
.ayc-form fieldset {
	border: 1px solid var(--ayc-border);
	border-radius: 12px;
	padding: 20px 24px 8px;
	margin: 0 0 20px;
	background: #fff;
	min-width: 0;
}
.ayc-form legend {
	padding: 0 8px;
	margin-left: -8px;
	font-weight: 700;
	font-size: 17px;
	color: var(--ayc-teal);
}
.ayc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.ayc-field { margin: 0 0 16px; }
.ayc-field--full { grid-column: 1 / -1; }
.ayc-form label, .ayc-calc label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--ayc-dark); }
.ayc-form label span, .ayc-consent span { color: var(--ayc-error); }
.ayc-form label small { font-weight: 400; color: var(--ayc-muted); }

.ayc-form input[type="text"], .ayc-form input[type="email"], .ayc-form input[type="tel"],
.ayc-form input[type="date"], .ayc-form input[type="number"], .ayc-form select, .ayc-form textarea,
.ayc-calc input, .ayc-calc select {
	width: 100%;
	box-sizing: border-box;
	min-height: 46px;
	padding: 10px 14px;
	border: 1px solid var(--ayc-border);
	border-radius: 8px;
	background: #fff;
	color: var(--ayc-dark);
	font: inherit;
}
.ayc-form textarea { min-height: 0; resize: vertical; }
.ayc-form input:focus, .ayc-form select:focus, .ayc-form textarea:focus,
.ayc-calc input:focus, .ayc-calc select:focus {
	outline: none;
	border-color: var(--ayc-aqua);
	box-shadow: 0 0 0 3px rgba(25, 195, 177, .2);
}
.ayc-form input[type="file"] {
	width: 100%;
	padding: 12px;
	border: 1px dashed var(--ayc-border);
	border-radius: 8px;
	background: var(--ayc-light);
	box-sizing: border-box;
}
.ayc-hint { display: block; margin-top: 6px; font-size: 13px; color: var(--ayc-muted); }

.ayc-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px 16px; margin: 0; padding: 0; list-style: none; }
.ayc-form .ayc-checks label { display: flex; gap: 8px; align-items: center; font-weight: 400; margin: 0; }
.ayc-checks input { width: 18px; height: 18px; accent-color: var(--ayc-teal); flex-shrink: 0; }

.ayc-consent label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; }
.ayc-consent input { margin-top: 4px; flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--ayc-teal); }
.ayc-consent a { color: var(--ayc-teal); }

.ayc-btn, a.ayc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 28px;
	border: 2px solid var(--ayc-teal, #087F7A);
	border-radius: 8px;
	background: var(--ayc-teal, #087F7A);
	color: #fff;
	font-weight: 700;
	font-size: 16px;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.ayc-btn:hover, .ayc-btn:focus-visible, a.ayc-btn:hover { background: var(--ayc-teal-dark, #066662); border-color: var(--ayc-teal-dark, #066662); color: #fff; }
.ayc-btn--ghost, a.ayc-btn--ghost { background: transparent; color: var(--ayc-teal, #087F7A); }
.ayc-btn--ghost:hover, a.ayc-btn--ghost:hover { background: var(--ayc-teal, #087F7A); color: #fff; }

.ayc-form__errors {
	border: 1px solid var(--ayc-error);
	border-left-width: 4px;
	border-radius: 8px;
	background: #FEF3F2;
	padding: 14px 18px;
	margin-bottom: 20px;
	color: var(--ayc-error);
}
.ayc-form__errors p { margin: 0 0 6px; }
.ayc-form__errors ul { margin: 0; padding-left: 20px; }
.ayc-form--done {
	border: 1px solid var(--ayc-aqua);
	border-left-width: 4px;
	border-radius: 12px;
	background: #fff;
	padding: 28px;
}
.ayc-form--done h3 { margin-top: 0; color: var(--ayc-teal); }
.ayc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Star rating (display) */
.ayc-stars {
	position: relative;
	display: inline-block;
	width: 5.5em;
	height: 1.1em;
	vertical-align: middle;
	background: linear-gradient(transparent, transparent);
	font-size: 16px;
}
.ayc-stars::before, .ayc-stars__fill::before {
	content: "★★★★★";
	position: absolute;
	inset: 0;
	letter-spacing: .1em;
	line-height: 1.1;
	white-space: nowrap;
}
.ayc-stars::before { color: #D5DADB; }
.ayc-stars__fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; }
.ayc-stars__fill::before { color: var(--ayc-star, #F5A524); }

/* Star rating (input) */
.ayc-rate { display: inline-flex; flex-direction: row-reverse; gap: 4px; border: 0; padding: 0; margin: 0; }
.ayc-rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ayc-form .ayc-rate label { font-size: 32px; line-height: 1; color: #D5DADB; cursor: pointer; margin: 0; font-weight: 400; }
.ayc-rate label:hover, .ayc-rate label:hover ~ label,
.ayc-rate input:checked ~ label { color: var(--ayc-star); }
.ayc-rate input:focus-visible + label { outline: 2px solid var(--ayc-aqua); outline-offset: 2px; border-radius: 4px; }

/* Order problem reports (My Account) */
.ayc-checks--list { grid-template-columns: 1fr; }
.ayc-order-issues {
	margin: 24px 0;
	padding: 18px 20px;
	border: 1px solid #DCE1E2;
	border-left: 4px solid #087F7A;
	border-radius: 12px;
	background: #F2F4F4;
	font-size: 15px;
}
.ayc-order-issues h2 { font-size: 18px; margin: 0 0 10px; }
.ayc-order-issues ul { margin: 0 0 12px; padding-left: 18px; }
.ayc-order-issues__status { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #FFFFFF; font-size: 13px; color: #087F7A; }
.ayc-order-issues p { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

@media (max-width: 640px) {
	.ayc-grid { grid-template-columns: 1fr; }
	.ayc-form fieldset { padding: 16px 16px 4px; }
	.ayc-form .ayc-btn { width: 100%; }
}

/* Compact contact form */
.ayc-form--compact { max-width: 760px; }
.ayc-form--compact fieldset { padding-top: 22px; }
