/**
 * August Summer Meals Sign-Up (Gravity Form 38) — brand styling.
 * Y brand: purple #5C2E91, magenta #92278F, pink #C6168D.
 * Loaded by the ymca-meal-capacity mu-plugin; all selectors scoped to form 38.
 */

/* GF prints an inline `#gform_wrapper_38[data-form-index].gform-theme { … }` block
   (specificity 1,2,0) after this sheet, so stack 3 classes (1,3,0) to win. */
#gform_wrapper_38.gform-theme.gform-theme--foundation.gform-theme--orbital,
#gform_confirmation_wrapper_38.gform-theme.gform-theme--foundation.gform-theme--orbital {
	--gf-color-primary: #5c2e91;
	--gf-color-primary-rgb: 92, 46, 145;
	--gf-color-primary-darker: #4a2575;
	--gf-color-primary-lighter: #92278f;
	--gf-ctrl-border-color: #c9cfd6;
	--gf-ctrl-radius: 8px;
	--gf-radius: 8px;
}

/* ---------- Section headings: numbered steps ---------- */
#gform_wrapper_38 .gsection {
	border-bottom: none;
	border-top: 2px solid #e4e6ea;
	margin-top: 1.75rem;
	padding-top: 1.5rem;
}
#gform_wrapper_38 .gfield.gsection:first-child {
	border-top: none;
	margin-top: 0;
	padding-top: 0;
}
#gform_wrapper_38 .gsection .gsection_title {
	color: #5c2e91;
	font-size: 1.3rem;
	font-weight: 700;
	letter-spacing: 0.01em;
}

/* ---------- Labels ---------- */
#gform_wrapper_38 .gfield_label {
	font-size: 1rem;
	font-weight: 600;
	color: #112337;
}

/* ---------- Day checkboxes as tap-friendly pills ---------- */
#field_38_15 .gfield_checkbox,
#field_38_19 .gfield_checkbox {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}
#field_38_15 .gchoice,
#field_38_19 .gchoice {
	margin: 0;
}
#field_38_15 .gchoice label,
#field_38_19 .gchoice label {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	padding: 0.7em 1.4em;
	border: 2px solid #5c2e91;
	border-radius: 999px;
	font-weight: 600;
	color: #5c2e91;
	cursor: pointer;
	max-width: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}
#field_38_15 .gchoice input[type="checkbox"],
#field_38_19 .gchoice input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
#field_38_15 .gchoice label::before,
#field_38_19 .gchoice label::before {
	content: "";
	display: inline-block;
	width: 1em;
	height: 1em;
	border: 2px solid currentColor;
	border-radius: 4px;
	flex: none;
}
#field_38_15 .gchoice:has(input:checked) label,
#field_38_19 .gchoice:has(input:checked) label {
	background: #5c2e91;
	color: #fff;
}
#field_38_15 .gchoice:has(input:checked) label::before,
#field_38_19 .gchoice:has(input:checked) label::before {
	content: "\2713";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.8em;
	line-height: 1;
	border-color: #fff;
}
#field_38_15 .gchoice:has(input:focus-visible) label,
#field_38_19 .gchoice:has(input:focus-visible) label {
	outline: 3px solid #c6168d;
	outline-offset: 2px;
}

/* ---------- Children list field ---------- */
#field_38_4 .gfield_list_group {
	background: #f7f5fa;
	border: 1px solid #e4dff0;
	border-radius: 8px;
	padding: 0.9rem;
	margin-bottom: 0.75rem;
}
#field_38_4 .gfield_list_group:nth-child(even) {
	background: #f0ecf7;
}
#field_38_4 .gfield_list_icons button,
#field_38_4 .add_list_item,
#field_38_4 .delete_list_item {
	color: #5c2e91;
}
#field_38_4 .gfield_header_item {
	font-weight: 600;
	color: #112337;
}

/* ---------- Submit button: real CTA ---------- */
#gform_wrapper_38 .gform_footer {
	display: block;
}
#gform_wrapper_38 .gform_footer button[type="submit"],
#gform_wrapper_38 .gform_footer input[type="submit"] {
	display: block;
	width: 100%;
	background: #5c2e91;
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 1.05em 1.5em;
	font-size: 1.1rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	cursor: pointer;
	transition: background-color 0.15s ease;
}
#gform_wrapper_38 .gform_footer button[type="submit"]:hover,
#gform_wrapper_38 .gform_footer button[type="submit"]:focus,
#gform_wrapper_38 .gform_footer input[type="submit"]:hover,
#gform_wrapper_38 .gform_footer input[type="submit"]:focus {
	background: #92278f;
}

/* ---------- Confirmation panel ---------- */
#gform_confirmation_wrapper_38 .gform_confirmation_message {
	background: #f4f0fa;
	border: 1px solid #d9cdeb;
	border-left: 6px solid #5c2e91;
	border-radius: 8px;
	padding: 1.5rem 1.75rem;
	font-size: 1.05rem;
	color: #112337;
}
#gform_confirmation_wrapper_38 .gform_confirmation_message h3 {
	color: #5c2e91;
	margin-top: 0;
}

/* ============================================================
   Claude Design implementation — page components (.ysm-*)
   and form-card styling. Design: "Summer Meals Signup.dc.html"
   ============================================================ */

/* The design caps content at 920px; applied per-block since the page pieces
   (hero / GF form / footer) are sibling Fusion Builder elements. */
.ysm-hero,
.ysm-cards,
.ysm-notes,
.ysm-questions,
#gform_wrapper_38,
#gform_confirmation_wrapper_38 {
	max-width: 920px;
	margin-left: auto;
	margin-right: auto;
}

.ysm-hero h1 {
	margin: 0 0 10px;
	font-size: clamp(28px, 4.5vw, 38px);
	line-height: 1.15;
	font-weight: 800;
	color: #5c2e91;
}
.ysm-intro {
	margin: 0 0 16px;
	font-size: 17px;
	line-height: 1.55;
	color: #42506a;
	max-width: 56ch;
}
.ysm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.ysm-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: #fff;
	border: 1.5px solid #e2ddef;
	border-radius: 999px;
	padding: 6px 14px;
	font-size: 13.5px;
	font-weight: 700;
	color: #5c2e91;
}

.ysm-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 14px;
	margin-bottom: 18px;
}
.ysm-card {
	background: #fff;
	border: 1.5px solid #e2ddef;
	border-radius: 12px;
	padding: 18px;
	box-shadow: 0 1px 3px rgba(17, 35, 55, 0.05);
}
.ysm-card-tag {
	display: inline-block;
	background: #f0ebf8;
	color: #5c2e91;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	border-radius: 999px;
	padding: 4px 10px;
	margin-bottom: 10px;
}
.ysm-card-tag--dinner { background: #fbeef7; color: #92278f; }
.ysm-card-name { font-size: 17px; font-weight: 800; margin-bottom: 4px; color: #112337; }
.ysm-card-time { font-size: 14.5px; font-weight: 700; color: #5c2e91; margin-bottom: 6px; }
.ysm-card-addr { font-size: 13.5px; color: #5c6470; line-height: 1.45; }

.ysm-notes {
	background: #fff;
	border: 1.5px solid #e2ddef;
	border-radius: 12px;
	padding: 18px 20px;
	margin-bottom: 26px;
	display: flex;
	flex-wrap: wrap;
	gap: 16px 28px;
}
.ysm-note { flex: 1 1 220px; display: flex; gap: 10px; align-items: flex-start; }
.ysm-note::before {
	content: "";
	flex: none;
	width: 8px;
	height: 8px;
	background: #c6168d;
	transform: rotate(45deg);
	margin-top: 7px;
}
.ysm-note p { margin: 0; font-size: 14.5px; line-height: 1.5; color: #42506a; }
.ysm-note strong { color: #112337; }

.ysm-questions { margin: 26px 0 0; text-align: center; font-size: 14.5px; color: #42506a; }
.ysm-questions a { color: #5c2e91; font-weight: 700; }
.ysm-questions a:hover { color: #92278f; }

/* ---------- Form as a white card ---------- */
#gform_wrapper_38 {
	background: #fff;
	border: 1.5px solid #e2ddef;
	border-radius: 14px;
	box-shadow: 0 1px 3px rgba(17, 35, 55, 0.06);
	padding: clamp(20px, 4.5vw, 36px);
}

/* Required-fields note + capacity note (GF HTML fields) */
.ymca-required-note { margin: 0; font-size: 13px; color: #5c6470; }
.ymca-required-note b, .gfield_required { color: #c6168d; }
.ymca-capacity-note {
	background: #fff7e5;
	color: #6e4a00;
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 14px;
	line-height: 1.5;
}

/* Numbered step circles on section headings */
#gform_wrapper_38 .gsection { counter-increment: ysm-step; }
#gform_wrapper_38 .gsection .gsection_title { display: inline-flex; align-items: center; gap: 12px; font-size: 19px; }
#gform_wrapper_38 .gsection .gsection_title::before {
	content: counter(ysm-step);
	flex: none;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #f0ebf8;
	color: #5c2e91;
	font-size: 15px;
	font-weight: 800;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Selects with brand chevron */
#gform_wrapper_38 select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 38px;
	background-color: #fff;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%235c2e91' stroke-width='2' stroke-linecap='round'/></svg>");
	background-repeat: no-repeat;
	background-position: right 13px center;
	cursor: pointer;
}
.ymca-loc-info { font-size: 12.5px; color: #5c6470; margin-top: 5px; }

/* Full day pills (set by JS from live availability) */
#field_38_15 .gchoice.ymca-full label,
#field_38_19 .gchoice.ymca-full label {
	border: 1.5px solid #d4d8de;
	background: #f1f2f4;
	color: #8a93a0;
	cursor: not-allowed;
}
#field_38_15 .gchoice.ymca-full label::after,
#field_38_19 .gchoice.ymca-full label::after {
	content: "Full";
	background: #e4e7eb;
	color: #5c6470;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	border-radius: 999px;
	padding: 2px 8px;
}
.ymca-full-note { font-size: 12.5px; color: #5c6470; margin-top: 8px; }

/* First-time radios as selectable cards */
#field_38_6 .gfield_radio { display: flex; flex-direction: column; gap: 8px; max-width: 480px; }
#field_38_6 .gchoice label {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 11px 14px;
	border: 1.5px solid #c9cfd6;
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
	font-size: 15px;
	font-weight: 600;
	max-width: none;
	width: 100%;
}
#field_38_6 .gchoice input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
#field_38_6 .gchoice label::before {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid #98a2ae;
	background: #fff;
	box-sizing: border-box;
}
#field_38_6 .gchoice:has(input:checked) label { border-color: #5c2e91; background: #f7f4fb; }
#field_38_6 .gchoice:has(input:checked) label::before { border: 6px solid #5c2e91; }
#field_38_6 .gchoice:has(input:focus-visible) label { outline: 3px solid #c6168d; outline-offset: 2px; }

/* Children list as "Child N" cards */
#field_38_4 { counter-reset: ysm-child; }
#field_38_4 .gfield_list_group { counter-increment: ysm-child; position: relative; padding-top: 2.6rem; }
#field_38_4 .gfield_list_group::before {
	content: "Child " counter(ysm-child);
	position: absolute;
	top: 0.9rem;
	left: 0.9rem;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #5c2e91;
}
#field_38_4 .gfield_list_icons { position: absolute; top: 0.55rem; right: 0.6rem; }
#field_38_4 .add_list_item { display: none; } /* replaced by the dashed proxy button */
.ymca-add-child {
	display: block;
	width: 100%;
	background: #fff;
	border: 2px dashed #b9a7d6;
	border-radius: 10px;
	padding: 13px;
	font-size: 15px;
	font-weight: 800;
	color: #5c2e91;
	cursor: pointer;
	margin-top: 4px;
	text-align: center;
}
.ymca-add-child:hover { background: #f7f4fb; border-color: #5c2e91; }

/* Reassurance line under the submit button */
.ymca-after-submit { margin: 14px 0 0; text-align: center; font-size: 14px; color: #5c6470; }

/* Confirmation panel (message content set in form settings) */
#gform_confirmation_wrapper_38 .gform_confirmation_message {
	background: #fff;
	border: 1.5px solid #e2ddef;
	border-left: 1.5px solid #e2ddef;
	border-radius: 14px;
	box-shadow: 0 1px 3px rgba(17, 35, 55, 0.06);
	padding: clamp(28px, 6vw, 56px);
	text-align: center;
}
.ymca-confirm-check {
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: #5c2e91;
	color: #fff;
	font-size: 26px;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 18px;
}
#gform_confirmation_wrapper_38 h2 { margin: 0 0 10px; font-size: 25px; font-weight: 800; color: #112337; }
#gform_confirmation_wrapper_38 .gform_confirmation_message p { margin: 0 auto 22px; max-width: 46ch; font-size: 15.5px; line-height: 1.6; color: #42506a; }
.ymca-confirm-again {
	display: inline-block;
	background: #fff;
	color: #5c2e91 !important;
	border: 2px solid #5c2e91;
	border-radius: 8px;
	padding: 11px 22px;
	font-size: 15px;
	font-weight: 800;
	text-decoration: none;
}
.ymca-confirm-again:hover { background: #f7f4fb; }

/* ============================================================
   Fine-tooth-comb pass: global Avada CSS overrides these
   pieces of the design, so they need !important.
   ============================================================ */

/* Design: hero headline is Y purple (Avada global h1 color is blue). */
.ysm-hero h1 { color: #5c2e91 !important; }

/* Design: select text is dark, single purple chevron.
   Avada paints select text link-blue and injects its own .select-arrow box. */
#gform_wrapper_38 select { color: #112337 !important; }
#gform_wrapper_38 .select-arrow { display: none !important; }

/* Design: visible #c9cfd6 borders, 8px radius (Avada washes borders to #e6e6e6). */
#gform_wrapper_38 input[type="text"],
#gform_wrapper_38 input[type="email"],
#gform_wrapper_38 input[type="tel"],
#gform_wrapper_38 select {
	border-color: #c9cfd6 !important;
	border-radius: 8px !important;
}

/* Design rhythm: ~18-20px between fields (Orbital default is 40px). */
#gform_38 .gform_fields { row-gap: 20px !important; }
#gform_wrapper_38 .gsection { margin-top: 14px; }

/* Design: first-time radio cards span the full column (labels were shrink-wrapping). */
#field_38_6 .gchoice label { width: 100% !important; max-width: none !important; }

/* Design: helper/description text is small + gray (Avada resets it to 16px dark). */
.ymca-loc-info,
#gform_wrapper_38 .gfield_description {
	font-size: 12.5px !important;
	color: #5c6470 !important;
	line-height: 1.45 !important;
}

/* Design: dashed outline add-child button (Avada button styles crush it to a solid pill). */
.ymca-add-child,
#gform_wrapper_38 button.ymca-add-child {
	display: block !important;
	width: 100% !important;
	background: #fff !important;
	border: 2px dashed #b9a7d6 !important;
	border-radius: 10px !important;
	padding: 13px !important;
	font-size: 15px !important;
	font-weight: 800 !important;
	color: #5c2e91 !important;
	text-transform: none !important;
	letter-spacing: normal !important;
}
.ymca-add-child:hover,
#gform_wrapper_38 button.ymca-add-child:hover {
	background: #f7f4fb !important;
	border-color: #5c2e91 !important;
	color: #5c2e91 !important;
}

/* Design: children inputs carry their own sub-labels inside each card —
   hide GF's floating column-header row and print data-labels under inputs. */
#field_38_4 .gfield_list_header { display: none !important; }
#field_38_4 .gfield_list_group_item[data-label]::after {
	content: attr(data-label);
	display: block;
	font-size: 12.5px;
	color: #5c6470;
	margin-top: 5px;
}

/* Design: pink required asterisks (GF paints them danger-red). */
#gform_wrapper_38 .gfield_required { color: #c6168d !important; }

/* GF auto-prints its own asterisk legend when requiredIndicator=asterisk —
   the design's note (HTML field 24) already says it. */
#gform_wrapper_38 .gform_required_legend { display: none !important; }

/* Orbital lays each radio choice out as a 2-col grid; the label only fills its
   max-content track. Block layout lets the card labels span the full column. */
#field_38_6 .gchoice { display: block !important; }

/* Avada resets paragraph alignment inside the form footer. */
.ymca-after-submit { text-align: center !important; }

/* ---------- Fruit character art (client request 2026-07-23) ---------- */
.ysm-hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	margin-bottom: 26px;
}
.ysm-hero-text { flex: 1 1 380px; }
.ysm-hero-text .ysm-chips { margin-bottom: 0; }
.ysm-hero-img { flex: 0 1 280px; }
.ysm-hero-img img { max-width: 100%; height: auto; display: block; }
.ysm-fruit-footer { text-align: center; margin-top: 30px; }
.ysm-fruit-footer img { width: min(320px, 70%); height: auto; }
