/**
 * Public change-request form ([cbyos_change_request]). Neutral, self-contained
 * styling that sits comfortably inside the front-end theme's content column.
 * Mobile-first; matches the registration form's visual language.
 */
/* Hide the theme's top menu bar AND footer on the change-request page — parents
   shouldn't be browsing the not-yet-launched front-end site from this link. This
   stylesheet only loads on this page (and its post-submit state), so the rest of
   the site is unaffected. */
header.wp-block-template-part,
.site-header,
footer.wp-block-template-part,
.site-footer { display: none !important; }

.cbyos-cr { max-width: 720px; margin: 0 auto; padding: 1.25rem 1rem 2rem; box-sizing: border-box; }

/* The [hidden] attribute must win over the display rules below (author display
   rules otherwise override the browser's [hidden]{display:none}). This is what
   keeps each lesson's options collapsed until "I need to change this" is ticked. */
.cbyos-cr [hidden] { display: none !important; }
.cbyos-cr__title { font-size: 1.6rem; margin: 0 0 .25rem; text-align: center; }
.cbyos-cr__hello { color: #555; margin: 0 0 1.25rem; text-align: center; }

.cbyos-cr__error {
	background: #fdecea; border: 1px solid #e6a6a1; color: #8a2018;
	padding: .75rem 1rem; border-radius: 8px; margin: 0 0 1rem;
}

/* The policy banner — deliberately prominent. */
.cbyos-cr__policy {
	border: 2px solid #d8b24a; background: #fdf7e6; border-radius: 12px;
	padding: 1rem 1.25rem; margin: 0 0 1.5rem;
}
.cbyos-cr__policy h2 {
	margin: 0 0 .5rem; font-size: 1rem; text-transform: uppercase; letter-spacing: .04em;
	color: #8a6d1a;
}
.cbyos-cr__policy p { margin: 0 0 .6rem; line-height: 1.5; }
.cbyos-cr__policy p:last-child { margin-bottom: 0; }

/* Its own red box, mirroring the "please read first" policy box and lining up
   directly under it. */
.cbyos-cr__withdraw {
	border: 2px solid #e0a19d; background: #fdecea; border-radius: 12px;
	padding: 1rem 1.25rem; margin: 0 0 1.5rem;
	color: #b32d2e; font-weight: 600; line-height: 1.6;
}
.cbyos-cr__withdraw a { color: #b32d2e; text-decoration: underline; }
.cbyos-cr__soon {
	display: inline-block; margin-left: .5rem; vertical-align: middle;
	background: #e6f4ea; color: #1e5631; border: 1px solid #a7d7b8; border-radius: 999px;
	padding: .18rem .75rem; font-size: .78rem; font-weight: 700; white-space: nowrap;
}
/* On mobile, drop the pill onto its own line, dead-centre in the red box. */
@media (max-width: 619px) {
	.cbyos-cr__soon { display: block; width: fit-content; margin: .7rem auto 0; }
}

.cbyos-cr__prior {
	border: 1px solid #b7d3ea; background: #eef5fb; border-radius: 10px;
	padding: .85rem 1.1rem; margin: 0 0 1.5rem;
}
.cbyos-cr__prior ul { margin: .4rem 0 0; padding-left: 1.2rem; }

.cbyos-cr__student {
	border: 1px solid #e2e2e6; border-radius: 12px; padding: 1rem 1.25rem 1.25rem;
	margin: 0 0 1rem; background: #fff;
}
.cbyos-cr__sname { font-size: 1.15rem; margin: 0 0 .75rem; }
.cbyos-cr__muted { color: #8c8f94; margin: 0; }

.cbyos-cr__lesson {
	border-top: 1px solid #eee; padding: .85rem 0 .25rem;
}
.cbyos-cr__lesson:first-of-type { border-top: none; padding-top: 0; }
.cbyos-cr__current { display: flex; flex-direction: column; gap: .1rem; margin-bottom: .4rem; }
.cbyos-cr__prog { font-weight: 700; }
.cbyos-cr__meta { color: #555; font-size: .92rem; }

.cbyos-cr__toggle {
	display: flex; align-items: center; gap: .5rem; font-weight: 600; cursor: pointer;
	padding: .35rem 0; font-size: .88rem;
}
.cbyos-cr__toggle input { width: 18px; height: 18px; }

.cbyos-cr__opts {
	margin: .5rem 0 .25rem; padding: .75rem 0 .25rem .75rem;
	border-left: 3px solid #e6e0cc;
	display: flex; flex-direction: column; gap: .8rem;
}
.cbyos-cr__opt { display: flex; flex-direction: column; gap: .45rem; font-size: .95rem; }
.cbyos-cr__optlabel { display: flex; align-items: center; gap: .5rem; font-weight: 600; cursor: pointer; }
.cbyos-cr__optlabel > input[type="checkbox"] { width: 17px; height: 17px; }
.cbyos-cr__opt--stacked { font-weight: 600; }
.cbyos-cr__daytime { display: flex; flex-wrap: wrap; gap: .5rem; }
.cbyos-cr__daytime .cbyos-cr__target { flex: 1 1 10rem; }
.cbyos-cr__addwhen { display: flex; flex-direction: column; gap: .8rem; }
.cbyos-cr__target { max-width: 22rem; }

.cbyos-cr input[type="text"],
.cbyos-cr select,
.cbyos-cr textarea {
	font: inherit; padding: .55rem .6rem; border: 1px solid #c7c7cc; border-radius: 8px;
	background: #fff; width: 100%; box-sizing: border-box;
}
.cbyos-cr input:focus,
.cbyos-cr select:focus,
.cbyos-cr textarea:focus { outline: 2px solid #2271b1; outline-offset: 1px; }
.cbyos-cr select:disabled { background: #f2f2f4; color: #555; cursor: not-allowed; opacity: 1; }

.cbyos-cr__add .cbyos-cr__opts { border-left-color: #cfe0d3; }

/* A lesson that the promotions module is moving up — reassuring, not editable. */
.cbyos-cr__lesson--promo { border-top: 1px solid #eee; padding: .85rem 0 .25rem; }
.cbyos-cr__lesson--promo:first-of-type { border-top: none; padding-top: 0; }
.cbyos-cr__promobadge {
	margin: .5rem 0 0; padding: .6rem .85rem; border-radius: 8px;
	background: #e6f4ea; border: 1px solid #a7d7b8; color: #1e5631; font-weight: 600;
}
.cbyos-cr__flex {
	margin: .6rem 0 .25rem; padding: .7rem 0 .25rem .75rem; border-left: 3px solid #e6e0cc;
}
.cbyos-cr__flexnote { margin: 0 0 .5rem; font-size: .92rem; color: #555; line-height: 1.45; }
.cbyos-cr__promonote { margin: .5rem 0 0; font-size: .88rem; color: #555; font-style: italic; }

.cbyos-cr__reasonbox {
	border: 1px solid #e2e2e6; border-radius: 12px; padding: 1rem 1.25rem 1.25rem;
	margin: 0 0 1.25rem; background: #fff;
}
.cbyos-cr__reasonlabel { font-weight: 700; font-size: 1.05rem; }
.cbyos-cr__req { color: #b32d2e; }
.cbyos-cr__hint { color: #555; font-size: .9rem; margin: .35rem 0 .6rem; line-height: 1.45; }

.cbyos-cr__empty { color: #555; }
.cbyos-cr__foot { text-align: center; margin-top: .5rem; }
.cbyos-cr__submit {
	display: inline-block; background: #2271b1; color: #fff; border: none; cursor: pointer;
	padding: .8rem 1.6rem; border-radius: 10px; font: inherit; font-weight: 700; font-size: 1.05rem;
}
.cbyos-cr__submit:hover { background: #185a92; }
.cbyos-cr__deadline { font-size: .85rem; color: #787c82; margin: .7rem 0 0; }
.cbyos-cr__editlink { color: #2271b1; }

@media (min-width: 620px) {
	.cbyos-cr__current { flex-direction: row; align-items: baseline; gap: .5rem; }
}
