/*
 * RYB Connect — Brand Design Layer
 *
 * Loaded after base plugin CSS. Override CSS custom properties
 * per-brand to customize colors, fonts, and accents.
 *
 * Variables are injected dynamically from Theme admin settings.
 * Sections can be toggled on/off from the Theme admin tab.
 */

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=DM+Serif+Display:ital@0;1&display=swap");

:root {
  --ryb-primary-color: rgb(96, 38, 213);
  --ryb-dark-color: rgba(17, 6, 39, 1);
  --ryb-paragraph-color: rgba(81, 76, 91, 1);
  --ryb-border-color: rgba(212, 209, 219, 1);
  --ryb-placeholder-color: rgba(239, 234, 249, 1);
  --ryb-background-color: rgba(249, 248, 250, 1);
  --ryb-secondary-color: rgb(57, 16, 237);
  --ryb-light-color: rgba(249, 249, 250, 1);
  --ryb-font-family: 'DM Sans', sans-serif;
  --ryb-button-bg-image: none;
  --ryb-select-arrow-image: none;
  --ryb-checkbox-image: none;
}

/* Base */
#ryb-connect, #ryb-connect *, #class-finder, #class-finder * { font-family: var(--ryb-font-family) !important; }
#ryb-connect, #class-finder { font-size: 16px; }

/* Invite-only style */
.ryb-connect-overlay#invite-only .ryb-connect-modal #ryb-wizard {
  height: auto;
  text-decoration: none;
}

#ryb-connect .invite-only-box {
  display: flex;
  align-items: center;
  gap: 11px;
  background-color: rgba(255, 252, 233, 1);
  border: 1px solid rgba(217, 217, 217, 1);
  border-radius: 8px;
  padding: 5px 7px;
  width: fit-content;
}

#ryb-connect .invite-only-box p {
  margin: 0;
  font-size: 13px;
  line-height: 140%;
  color: rgba(30, 30, 30, 1);
}

#ryb-connect .invite-only-box.hide { display: none; }

/* [section:inputs] */

/* Selects */
#ryb-connect .standard-select {
  appearance: none;
  cursor: pointer;
  transition: all .15s ease;
  background-image: var(--ryb-select-arrow-image);
  background-repeat: no-repeat;
  background-position: 97.5% 51%;
}
#ryb-connect .standard-select:hover { border-color: #5426d5; transition: all .15s ease; }

/* Inputs */
#ryb-connect .standard-select, #registration-form .input-wrapper input {
  width: 100%;
  padding: 0 16px !important;
  font-size: 16px;
  height: 50px;
  border-radius: 5px;
  outline: none;
}
#registration-form .checkbox-wrapper input[type='checkbox'] {
  -webkit-appearance: none;
  min-width: 24px; min-height: 24px;
  background: white;
  border-radius: 5px;
  border: 2px solid #ccc;
  outline: none;
}
#registration-form .checkbox-wrapper input[type='checkbox']:checked {
  background-image: var(--ryb-checkbox-image);
  border: none;
}
#ryb-connect .dropdown-wrapper:last-of-type { margin-bottom: 0; }

/* [/section:inputs] */

/* Privacy */
#ryb-connect .wizard-stage .privacy-policy {
  color: rgb(17, 17, 17);
  cursor: default;
  display: block;
  font-size: 14px;
}
#ryb-connect .wizard-stage .privacy-terms { display: none; }

/* Form loader */
#ryb-connect .step-box .form-loader { display: none; text-align: center; }
#ryb-connect .step-box .form-loader.active { display: block; }
#ryb-connect .step-box:has(.form-loader.active) > div:not(.form-loader) { display: none; }
#ryb-connect .step-box.step-box:has(.form-loader.active) + .step-control { display: none; }

/* [section:grid] */

/* Results grid tweaks */
#class-finder .ryb-connect-modal .modal-description { font-size: 16px !important; font-weight: 300 !important; line-height: 1.6 !important; }

#ryb-connect .result-grid-cell .classes-per-week,
#class-finder .result-grid-cell .classes-per-week {
  align-items: center;
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  font-style: italic !important;
  color: #333;
  padding: 5px 16px;
  margin-top: 16px;
  text-align: center;
  background-color: transparent !important;
}

/* [section:cards] — Result grid card design */

/* Card container */
#ryb-connect .result-grid-cell,
#class-finder .result-grid-cell {
  margin-top: 24px;
  margin-bottom: 16px;
  border: 0 !important;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
#ryb-connect .result-grid-cell:hover,
#class-finder .result-grid-cell:hover {
  box-shadow: rgba(0, 0, 0, 0.15) 0px 15px 25px -5px, rgba(0, 0, 0, 0.08) 0px 8px 10px -5px;
  transform: translateY(-2px);
}

/* Time badge — right-aligned, soft green */
#ryb-connect .result-grid-cell .class-start,
#class-finder .result-grid-cell .class-start {
  background: #EBFCF5 !important;
  color: #0C5841 !important;
  right: 15px !important;
  left: auto !important;
}
#ryb-connect .result-grid-cell .class-start .period,
#class-finder .result-grid-cell .class-start .period { font-weight: 700 !important; }

/* Waitlist badge — soft amber */
#ryb-connect .result-grid-cell:has(.waitlist:not(.d-none)) .class-start,
#class-finder .result-grid-cell:has(.waitlist:not(.d-none)) .class-start {
  background: #FFF5E9 !important;
  color: #8B5C1A !important;
}

/* h3 — flex row, proper spacing above for badge */
#ryb-connect .result-grid-cell h3,
#class-finder .result-grid-cell h3 {
  display: flex !important;
  flex-direction: row !important;
  padding: 0 15px !important;
  gap: 8px;
  align-items: flex-start;
  margin-top: 32px;
  margin-bottom: 12px;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 400;
}

/* Class name */
#ryb-connect .grid-results h3 .class-name,
#class-finder .grid-results h3 .class-name {
  font-size: 15px !important;
  font-weight: 600 !important;
  padding: 0 !important;
  line-height: 1.3;
  flex: 1;
}

/* Info icon — minimal circle, no background box */
#ryb-connect .result-grid-cell .info,
#class-finder .result-grid-cell .info {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  height: 24px;
  width: 24px;
  min-width: 24px;
  flex-shrink: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-top: 2px;
  transition: all 0.2s ease;
  cursor: pointer;
}
#ryb-connect .result-grid-cell .info:hover,
#class-finder .result-grid-cell .info:hover {
  background: rgba(110, 38, 213, 0.08);
  transform: scale(1.1);
}
#ryb-connect .result-grid-cell .info svg,
#class-finder .result-grid-cell .info svg { width: 18px !important; height: 18px !important; }
#ryb-connect .result-grid-cell .info svg path.circle,
#class-finder .result-grid-cell .info svg path.circle { fill: #d9d9d9 !important; opacity: 1; }
#ryb-connect .result-grid-cell .info:hover svg path.circle,
#class-finder .result-grid-cell .info:hover svg path.circle { fill: #bbb !important; }
#ryb-connect .result-grid-cell .info svg path.details,
#class-finder .result-grid-cell .info svg path.details { fill: none; stroke: #fff !important; stroke-width: 0.8; opacity: 1; }
#ryb-connect .result-grid-cell .info:hover svg path.details,
#class-finder .result-grid-cell .info:hover svg path.details { stroke: #fff !important; }

/* Price & duration row */
#ryb-connect .result-grid-cell .class-data,
#class-finder .result-grid-cell .class-data {
  display: flex !important;
  justify-content: space-between !important;
  align-items: baseline !important;
  gap: 8px;
  padding: 0 15px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #333 !important;
}
#ryb-connect .result-grid-cell .class-data .class-tuition,
#class-finder .result-grid-cell .class-data .class-tuition { flex-shrink: 0; }
#ryb-connect .result-grid-cell .class-data .class-time,
#class-finder .result-grid-cell .class-data .class-time {
  flex-shrink: 0;
  color: #777 !important;
  font-weight: 400 !important;
  font-size: 13px !important;
}

/* Classes per week — separator line */
#ryb-connect .result-grid-cell .classes-per-week,
#class-finder .result-grid-cell .classes-per-week {
  color: #999 !important;
  font-size: 12px !important;
  font-style: italic !important;
  border-top: 1px solid #f0f0f0 !important;
  margin: 8px 15px 0 15px !important;
  padding: 8px 0 0 0 !important;
  font-family: var(--ryb-font-family, 'DM Sans', sans-serif) !important;
}

/* Button section */
#ryb-connect .result-grid-cell .button-section,
#class-finder .result-grid-cell .button-section { margin-top: 12px; }

/* Enroll button — brand blue */
#class-finder button.enroll-class,
#class-finder a.enroll-class {
  font-family: var(--ryb-font-family, 'DM Sans', sans-serif) !important;
  color: #ffffff !important;
  height: auto !important;
  width: 100% !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border-radius: 0 0 5px 5px !important;
  box-shadow: none !important;
  background: #419AF3 !important;
  padding: 11px !important;
  border-top: 0 !important;
  letter-spacing: 0.3px;
  transition: background 0.2s ease;
}
#class-finder button.enroll-class:hover,
#class-finder a.enroll-class:hover { background: #2d88e0 !important; }

/* Waitlist button — amber tint */
#class-finder button.enroll-class.waitlist {
  color: #b06b1b !important;
  background: #FFF5E9 !important;
  font-weight: 500 !important;
}
#class-finder button.enroll-class.waitlist:hover { background: #FFECD2 !important; }

/* Main info (invite-only) */
#class-finder button.enroll-class.main-info {
  color: var(--ryb-primary-color, #6E26D5) !important;
  background: #f3eefb !important;
  font-weight: 500 !important;
}
#class-finder button.enroll-class.main-info:hover { background: #e8ddf7 !important; }

/* Grid container */
#ryb-connect .grid-view .grid-results,
#class-finder .grid-view .grid-results { border: 1px solid #00000020; border-radius: 5px; }
#ryb-connect .grid-view .grid-results > div,
#class-finder .grid-view .grid-results > div { border: none; border-right: 1px solid #00000020; padding: 0; }
#ryb-connect .grid-view .grid-results > div:nth-child(-n+7),
#class-finder .grid-view .grid-results > div:nth-child(-n+7) { background: #00000005; border-bottom: 1px solid #00000020; }
#ryb-connect .grid-view .grid-results > :nth-child(n+8),
#class-finder .grid-view .grid-results > :nth-child(n+8) { padding: 10px; }
#ryb-connect .grid-view .grid-results > div:nth-child(7), #ryb-connect .grid-view .grid-results > div:nth-child(14),
#class-finder .grid-view .grid-results > div:nth-child(7), #class-finder .grid-view .grid-results > div:nth-child(14) { border-right: none; }

/* Day column backgrounds */
#ryb-connect .grid-view .grid-results > div > div,
#class-finder .grid-view .grid-results > div > div { background-color: #f9f9f9; padding: 12px; }

/* Day headings */
#ryb-connect .grid-view .grid-results h4,
#class-finder .grid-view .grid-results h4 { margin: 0 0 15px 0; padding: 15px 0; color: black; font-size: 16px; font-weight: 500; letter-spacing: .5px; background: #fff; }

/* [/section:cards] */

/* [section:filters] — Filter pill redesign */

/* Title + filters row */
#class-finder .filter-top,
#ryb-connect .filter-top {
  margin-bottom: 24px !important;
  align-items: flex-end !important;
  gap: 24px;
}
#class-finder .filter-top .main-title,
#ryb-connect .full-view .filter-top .main-title {
  font-size: 28px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  margin: 0 !important;
}

/* Filter pill group */
#ryb-connect .filter-top .filter-controls,
#class-finder .filter-top .filter-controls { gap: 10px !important; }

/* Individual filter pill */
#ryb-connect .filter-top .edit-option,
#class-finder .filter-top .edit-option {
  border: 1.5px solid #e5e5e5 !important;
  border-radius: 12px !important;
  padding: 8px 14px !important;
  height: auto !important;
  width: auto !important;
  min-width: 150px;
  background: #fff !important;
  transition: all 0.2s ease !important;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
#ryb-connect .filter-top .edit-option:hover,
#class-finder .filter-top .edit-option:hover {
  border-color: #ccc !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}
#ryb-connect .filter-top .edit-option.active,
#class-finder .filter-top .edit-option.active {
  border-color: var(--ryb-primary-color, #6E26D5) !important;
  box-shadow: 0 0 0 3px rgba(110, 38, 213, 0.1), 0 2px 8px rgba(0,0,0,0.08) !important;
}

/* Label text — uppercase micro label */
#ryb-connect .filter-top .edit-option .label,
#class-finder .filter-top .edit-option .label {
  font-size: 11px !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  color: #999 !important;
  margin-bottom: 1px;
}

/* Value text */
#ryb-connect .filter-top .edit-option .value,
#class-finder .filter-top .edit-option .value {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #1a1a1a !important;
}

/* Pencil icon */
#ryb-connect .filter-top .edit-option svg,
#class-finder .filter-top .edit-option svg {
  width: 16px !important;
  height: 16px !important;
  fill: #bbb !important;
  fill-opacity: 1 !important;
  transition: all 0.2s ease !important;
}
#ryb-connect .filter-top .edit-option:hover svg,
#class-finder .filter-top .edit-option:hover svg { fill: #888 !important; }
#ryb-connect .filter-top .edit-option.active svg,
#class-finder .filter-top .edit-option.active svg { fill: var(--ryb-primary-color, #6E26D5) !important; }

/* Dropdown panel */
#ryb-connect .filter-top .dropdown,
#class-finder .filter-top .dropdown {
  border: 1.5px solid #e5e5e5 !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 32px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.04) !important;
  margin-top: 8px !important;
  overflow: hidden !important;
  overflow-y: auto !important;
  z-index: 3;
  min-width: 0;
  left: auto !important;
  right: 0 !important;
  width: max-content !important;
  max-width: min(320px, 90vw) !important;
}

/* Dropdown items */
#ryb-connect .filter-top .dropdown ul li,
#class-finder .filter-top .dropdown ul li {
  box-sizing: border-box;
  padding: 10px 16px !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #333 !important;
  transition: all 0.15s ease !important;
  cursor: pointer;
  border-bottom: 1px solid #f5f5f5;
}
#ryb-connect .filter-top .dropdown ul li:last-child,
#class-finder .filter-top .dropdown ul li:last-child { border-bottom: none; }
#ryb-connect .filter-top .dropdown ul li:hover,
#class-finder .filter-top .dropdown ul li:hover {
  background-color: #f8f5ff !important;
  color: var(--ryb-primary-color, #6E26D5) !important;
}

/* Selected item in dropdown — brand purple */
#ryb-connect .filter-top li.select,
#class-finder .filter-top li.select {
  background-color: var(--ryb-primary-color, #6E26D5) !important;
  color: #fff !important;
  font-weight: 600 !important;
}
#ryb-connect .filter-top li.select:hover,
#class-finder .filter-top li.select:hover {
  background-color: var(--ryb-secondary-color, #5a1ebf) !important;
  color: #fff !important;
}

/* Group headers in Class Types dropdown — non-interactive dividers */
#ryb-connect .filter-top .dropdown-group-header,
#class-finder .filter-top .dropdown-group-header {
  font-size: 10px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 1.2px !important;
  color: #b0b0b0 !important;
  padding: 14px 16px 4px !important;
  cursor: default !important;
  pointer-events: none;
  border-bottom: none !important;
  background: transparent !important;
  margin-top: 4px;
  border-top: 1px solid #f0f0f0 !important;
}
#ryb-connect .filter-top .dropdown-group-header:first-child,
#class-finder .filter-top .dropdown-group-header:first-child {
  border-top: none !important;
  margin-top: 0;
}
#ryb-connect .filter-top .dropdown-group-header:hover,
#class-finder .filter-top .dropdown-group-header:hover {
  background: transparent !important;
  color: #b0b0b0 !important;
}
#ryb-connect .filter-top li.filterable-category,
#class-finder .filter-top li.filterable-category {
  padding-left: 28px !important;
}

/* Selected value color in pill */
#ryb-connect .filter-top .select,
#class-finder .filter-top .select { color: var(--ryb-primary-color, #6E26D5) !important; }

/* [/section:filters] */

#ryb-connect .wizard-stage .stage-text p { font-size: 32px; margin: 50px 0; line-height: 1.4; width: 480px; font-style: italic; }
#ryb-connect .selected { left: calc(50% - 20px); }

#ryb-connect #ryb-openings-result .step-view .box { padding: 40px; }
#ryb-connect .ryb-nav ul li { gap: 10px; }
#ryb-connect #ryb-openings-result .step-view .line { display: none; }
#ryb-connect .ryb-nav .step span.step-title { font-size: 16px; letter-spacing: .5px; }
#ryb-connect .ryb-nav span.step-nr, #ryb-connect .ryb-nav span.step-check { line-height: 1; font-size: 16px; height: 36px; width: 36px; }
#ryb-connect .ryb-nav ul { gap: 24px; }
#ryb-connect #ryb-openings-result .step-view .box p { font-weight: 300; letter-spacing: .5px; margin-bottom: 32px; }

/* Step view text */
#ryb-connect #ryb-openings-result .step-view h3.step-subtitle { font-style: italic; letter-spacing: 1px; font-weight: 300; text-transform: none; }

/* [/section:grid] */

/* Category visibility */
#available-categories > div:not(:has(.wizard-card)) { display: none; }

/* [section:modal] */

#class-finder .ryb-connect-overlay .ryb-connect-modal { padding: 32px; }
#class-finder .ryb-connect-modal .top-controls { margin-bottom: 16px; }
#class-finder .ryb-connect-modal .top-modal-data { align-items: flex-start; }
#class-finder .ryb-connect-modal .modal-title { font-size: 20px; font-weight: 500; margin-bottom: 4px; }
#class-finder .ryb-connect-modal .modal-address { font-size: 16px !important; font-weight: 300 !important; }
#class-finder .ryb-connect-modal .modal-total-price, #class-finder .ryb-connect-modal .modal-price { font-size: 20px !important; }
#class-finder .main-modal-data > div { align-items: center; }
#class-finder .ryb-connect-modal .main-modal-data .text, #class-finder .ryb-connect-modal .main-modal-data .icon { line-height: 1; }
#class-finder .ryb-connect-modal .main-modal-data .calendar .text { margin-top: 0; }
#class-finder .ryb-connect-modal .main-modal-data {
  padding: 19px 0 16px 0;
  line-height: 1;
  border-top: 1px solid #00000010;
  border-bottom: 1px solid #00000010;
}
#class-finder .ryb-connect-modal .modal-actions .register-now {
  font-size: 16px !important;
  border-radius: 30px !important;
  height: 48px !important;
  transition: all .3s ease;
  background-size: contain;
}
#class-finder .ryb-connect-modal .modal-actions .register-now:hover { filter: hue-rotate(15deg); transition: all .3s ease; border: none !important; }

/* Funnel modal button */
#class-finder .ryb-connect-modal .modal-actions .register-now {
  padding: 5px 15px;
  background-image: var(--ryb-button-bg-image);
  border-radius: 5px;
  border: 1px solid transparent;
  color: #fff;
  width: 160px;
  height: 40px;
  cursor: pointer;
}
#class-finder #invite-only .ryb-connect-modal .modal-actions .register-now { display: flex; justify-content: space-around; align-items: center; text-decoration: none; }

/* Enrollment modal — standalone pages (camps, clinics, etc.) */

/* Fix: labels were right-aligned due to form text-align:right in filter.css */
.ryb-connect-modal form {
  text-align: left !important;
}

/* Fix: input labels styling */
.ryb-connect-modal #registration-form .input-wrapper label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.55);
  margin-bottom: 6px;
}

/* Fix: Continue button — not inside #ryb-connect so wizard-stage scoped styles don't apply */
.ryb-connect-modal button.form-submit {
  background: linear-gradient(to bottom, var(--ryb-primary-color, #6026d5), var(--ryb-secondary-color, #3910ed)) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  height: 48px !important;
  width: 100% !important;
  padding: 0 40px !important;
  border-radius: 9px !important;
  border: 0 !important;
  box-shadow: rgba(67, 38, 212, 0.5) 0px 10px 20px 0px !important;
  color: #fff !important;
  cursor: pointer;
  transition: 0.3s !important;
  font-family: var(--ryb-font-family, 'DM Sans', sans-serif) !important;
}
.ryb-connect-modal button.form-submit:hover {
  filter: hue-rotate(15deg) !important;
  transition: 0.3s !important;
}

/* Fix: Close button — make it a proper styled X */
.ryb-connect-modal .top-controls .close-modal {
  font-size: 0 !important;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.ryb-connect-modal .top-controls .close-modal::after {
  content: "\00D7";
  font-size: 20px;
  color: rgba(0, 0, 0, 0.5);
  line-height: 1;
}
.ryb-connect-modal .top-controls .close-modal:hover {
  background: rgba(0, 0, 0, 0.12);
}

/* Fix: modal action buttons — use brand purple */
.ryb-connect-modal .modal-actions .register-button {
  background-color: var(--ryb-primary-color, #6026d5) !important;
  box-shadow: 0px 10px 20px 0px rgba(96, 38, 213, 0.35) !important;
}
.ryb-connect-modal .modal-actions .already-registered-button {
  background-color: var(--ryb-primary-color, #6026d5) !important;
  box-shadow: 0px 10px 20px 0px rgba(96, 38, 213, 0.35) !important;
  opacity: 0.75;
}
.ryb-connect-modal .modal-actions .already-registered-button:hover {
  opacity: 1;
}

/* Fix: modal should scroll when form makes it taller than viewport */
.ryb-connect-overlay .ryb-connect-modal {
  max-height: 90vh !important;
  overflow-y: auto !important;
}

/* [/section:modal] */

/* [section:wizard] */

/* Funnel / wizard tweaks */
#ryb-connect .wizard-stage .bg-white .container-wrapper { min-height: 100%; display: flex; flex-direction: column; }
#ryb-connect .wizard-stage .bg-white .container-wrapper:has(> .box.show > .user-type) { justify-content: center; }
#ryb-connect .result-grid-cell .control-button button.enroll-class.enroll:hover,
#class-finder .result-grid-cell .control-button button.enroll-class.enroll:hover { background: #5426d5 !important; color: #fff !important; }
#ryb-connect .result-grid-cell .control-button button.enroll-class,
#class-finder .result-grid-cell .control-button button.enroll-class { border-bottom-left-radius: 5px !important; border-bottom-right-radius: 5px !important; }
#ryb-connect .wizard-card.active { background-color: var(--ryb-secondary-color) !important; }
#ryb-connect .wizard-card.active p { color: #fff !important; }
#ryb-connect .wizard-card { padding: 16px 32px 16px 16px; border-radius: 10px; }
#ryb-connect .wizard-card:hover { border-color: var(--ryb-secondary-color); }
#ryb-connect .wizard-stage img { min-height: 100%; }
#ryb-connect .wizard-card .card .bg-image {
  aspect-ratio: 1/1;
  min-width: 120px; min-height: 120px;
  max-width: 120px; max-height: 120px;
  border-radius: 5px;
  overflow: hidden;
  background: linear-gradient(135deg, #f0ecf8 0%, #e8f2f0 50%, #ededed 100%);
}
#ryb-connect .wizard-card .card .name { margin-top: 0; font-weight: 600; color: #000; font-size: 16px; }
#ryb-connect .wizard-card .card .location { font-weight: 300; font-size: 14px; letter-spacing: .25px; margin-bottom: 0; }
#ryb-connect .wizard-stage .bg-white { align-items: flex-start; }
#ryb-connect .wizard-stage .box, #ryb-connect .wizard-stage .box.show { position: initial; }
#ryb-connect .wizard-stage .box { height: 0; display: none; }
#ryb-connect .wizard-stage .box.show { height: auto; display: block; padding: 0; }
#ryb-connect .box.classes.show #available-categories { height: auto; width: 100%; }

/* Layout containers */
#ryb-connect .bg-white { max-height: 100% !important; position: relative; overflow-y: auto; }
#ryb-connect .box.classes h1 + p { margin: 0; }
#ryb-connect .wizard-results { flex-grow: 1; }
#ryb-connect .box.classes.show .controls { position: sticky; bottom: 0; background: #fff; border-top: 1px solid #00000010; box-shadow: 0 -5px 0 #00000005; justify-content: center; width: 100%; }
#ryb-connect .box.classes.show .controls button { margin-left: 16px; }
#ryb-connect .box.child .step-box { padding-bottom: 48px; }
#ryb-connect .box.child .step-box h2 { margin-top: 0; }
#ryb-connect .box.child .step-box #registration-form { padding: 0; }
#ryb-connect .box.child .step-control {
  position: sticky;
  bottom: -20px !important;
  background: #fff;
  padding: 32px 0;
  border-top: 1px solid #00000010;
}

/* User type grid */
#ryb-connect .wizard-stage.user-type {
  list-style-type: none;
  padding-inline-start: 0;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
}
#ryb-connect .user-type li { padding: 16px 24px; font-size: 18px; border: 3px solid #00000010; gap: 16px; transition: all .15s ease; }
#ryb-connect .user-type li .point { width: 16px; height: 16px; background: #00000020; transition: all .15s ease; }
#ryb-connect .user-type li:hover .point { background: #fff; transition: all .15s ease; }
#ryb-connect .user-type li:hover { border: 3px solid #53d89a; background: #53d89a; color: #fff; transition: all .15s ease; }

/* Toggle */
#ryb-connect .layout-toggle { display: none; }

/* Overall layout */
body.admin-bar #ryb-connect { height: calc(100vh - 36px); }
#ryb-connect { display: flex; flex-direction: column; height: 100vh; }
#available-categories { padding-bottom: 50px; }
#ryb-connect .bottom-controls {
  padding: 20px;
  position: sticky;
  bottom: 0;
  align-items: center;
  background: white;
  box-shadow: 0 -10px 20px rgba(0, 0, 0, .15);
}
.admin-bar #ryb-connect .ryb-connect-content { height: auto !important; }
#ryb-connect .ryb-connect-content { height: auto !important; flex: 1; overflow-y: auto; }
#ryb-connect #ryb-openings-result .ryb-connect-content { overflow: hidden; }
#ryb-openings-result:not(.show) { display: none; height: 0; }

/* Stage text / Results alignment */
#ryb-connect .wizard-stage .stage-text { left: 10%; }
#ryb-connect .wizard-results { justify-content: center; flex-direction: column; }

/* [/section:wizard] */

/* [section:header] */

#ryb-connect header {
  background: #fff !important;
  padding: 0 24px !important;
  height: 64px !important;
  display: flex !important;
  align-items: center !important;
  border-bottom: 1px solid rgba(0,0,0,.06) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,.04) !important;
  position: relative !important;
  z-index: 10 !important;
}

#ryb-connect header .ryb-connect-default-wrapper {
  height: 100%;
}

/* Logo — clean fallback when no image is configured */
#ryb-connect header img[src=""],
#ryb-connect header img:not([src]) {
  display: none !important;
}
#ryb-connect header a:has(img[src=""]),
#ryb-connect header a:has(img:not([src])) {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  text-decoration: none !important;
}
#ryb-connect header a:has(img[src=""])::before,
#ryb-connect header a:has(img:not([src]))::before {
  content: "";
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--ryb-primary-color, #4326d5), var(--ryb-secondary-color, #6e26d5));
  flex-shrink: 0;
}
#ryb-connect header a:has(img[src=""])::after,
#ryb-connect header a:has(img:not([src]))::after {
  content: "Home";
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #334155 !important;
  letter-spacing: -.2px !important;
}

/* Right-side contacts area */
#ryb-connect .top-right-contacts {
  font-size: 14px;
  color: #64748b;
  gap: 16px !important;
}
#ryb-connect .top-right-contacts a {
  color: #334155;
  font-weight: 500;
  transition: color .2s ease;
  text-decoration: none !important;
}
#ryb-connect .top-right-contacts a:hover {
  color: var(--ryb-primary-color, #4326d5);
  text-decoration: none !important;
}

/* Phone number link — subtle emphasis */
#ryb-connect .top-right-contacts span a[href^="tel"] {
  font-weight: 600 !important;
  color: #0f172a !important;
  font-variant-numeric: tabular-nums !important;
}
#ryb-connect .top-right-contacts span a[href^="tel"]:hover {
  color: var(--ryb-primary-color, #4326d5) !important;
}

/* Back home button — refined pill with brand accent */
#ryb-connect .top-right-contacts .go-back-link {
  border: 1.5px solid #e2e8f0 !important;
  background: #f8fafc !important;
  font-weight: 500 !important;
  font-size: 13px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  padding: 8px 18px !important;
  border-radius: 8px !important;
  color: #334155 !important;
  transition: all .2s ease !important;
  text-decoration: none !important;
}
#ryb-connect .top-right-contacts .go-back-link:hover {
  border-color: var(--ryb-primary-color, #4326d5) !important;
  color: var(--ryb-primary-color, #4326d5) !important;
  background: rgba(67, 38, 213, .04) !important;
  text-decoration: none !important;
}

/* [/section:header] */

/* [section:typography] */

#ryb-connect .wizard-stage h1 {
  font-family: var(--ryb-font-family);
  font-size: clamp(32px, 2.8vw, 44px) !important;
  font-weight: 500;
  line-height: 1.15 !important;
  color: #0f172a;
  margin-top: 0;
  margin-bottom: 12px;
  text-align: left;
}
#ryb-connect .wizard-stage h1 span {
  font-style: italic;
  font-weight: 900;
  color: #6126D5;
  font-family: 'DM Serif Display' !important;
  background: -webkit-linear-gradient(#4326D5, #6E26D5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
#ryb-connect .wizard-stage h1 + p {
  font-size: 17px;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0;
  color: #64748b;
  margin-bottom: 0;
}
#ryb-connect .wizard-stage .line {
  height: 1px;
  background: linear-gradient(90deg, var(--ryb-primary-color, #4326d5) 0%, rgba(67,38,213,.1) 100%);
  margin: 28px 0;
  width: 80px;
}
#ryb-connect .wizard-stage h2,
#ryb-connect .wizard-stage .box.child h2 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 16px;
  color: #1e293b;
}

/* Main title override */
#ryb-connect .full-view .filter-top .main-title,
#class-finder .filter-top .main-title { font-size: 32px; font-weight: 700 !important; line-height: 1.2; }

/* [/section:typography] */

/* [section:buttons] */

#ryb-connect .bottom-controls .next-step-button,
#ryb-connect .bottom-controls .results-button,
#ryb-connect .event-card .button.enroll,
#ryb-connect .wizard-stage button.registered, #ryb-connect .wizard-stage button.existing-member,
#ryb-connect .wizard-stage button {
  background-color: var(--ryb-primary-color, #6026d5);
  background-size: 130%;
  width: auto;
  background-image: var(--ryb-button-bg-image);
  text-decoration: none;
  display: inline-flex;
  height: 48px;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 10px 20px 0px rgba(67, 38, 212, 0.50) !important;
  padding: 0 40px;
  border-radius: 25px;
  color: #fff !important;
  font-weight: 500;
  transition: all .3s ease;
  border: none !important;
  cursor: pointer;
}
#ryb-connect .event-card .button.waitlist {
  background-size: 130%;
  width: auto;
  background: rgba(0, 0, 0, 0.7);
  text-decoration: none;
  display: inline-flex;
  height: 48px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1) !important;
  padding: 0 40px;
  border-radius: 25px;
  color: #fff !important;
  font-weight: 500;
  transition: all .3s ease;
  border: none !important;
  cursor: pointer;
  margin-left: 20px;
}
#ryb-connect .event-card .button.waitlist:hover { transition: all .3s ease; background: rgba(0, 0, 0, 0.6); box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05) !important; }
#ryb-connect .bottom-controls .next-step-button:hover,
#ryb-connect .bottom-controls .results-button:hover,
#ryb-connect .event-card .button.enroll:hover,
#ryb-connect .wizard-stage button.registered:hover, #ryb-connect .wizard-stage button.existing-member:hover,
#ryb-connect .wizard-stage button:hover { filter: hue-rotate(15deg); transition: all .3s ease; border: none !important; }
#ryb-connect .wizard-stage button.new-user {
  border: 2px solid #5426d5;
  color: #5426d5;
  background: transparent;
  height: 48px;
  line-height: 1;
  box-shadow: none;
}
#ryb-connect .wizard-stage button.new-user:hover { filter: hue-rotate(15deg) !important; color: #5426d5 !important; transition: all .3s ease !important; background: transparent !important; }
#ryb-connect .bottom-controls .right-controls { align-items: center; }

/* [/section:buttons] */

/* [section:events] */

#ryb-connect .event-card {
  border: 2px solid rgba(0, 0, 0, .1);
  padding: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 10px;
}
#ryb-connect .event-card:last-of-type { margin-bottom: 0; }
#ryb-connect .event-card .date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 2px solid rgba(0, 0, 0, .1);
  padding-right: 20px;
  margin-right: 20px;
  min-width: 76px;
}
#ryb-connect .event-card .date span:first-of-type { color: rgba(0, 0, 0, .5); font-size: 18px; font-weight: 300; letter-spacing: 1px; line-height: 1; }
#ryb-connect .event-card .date span:last-of-type { font-size: 50px; letter-spacing: -3px; font-weight: 900; color: #000; line-height: 1; }
#ryb-connect .event-card .name { flex: 1; }
#ryb-connect .event-card .name h3 { font-weight: bold; color: #000; font-size: 20px; margin: 0; }
#ryb-connect .event-card .name p { margin: 0; color: rgba(0, 0, 0, .5); font-size: 16px; font-weight: 300; }
#ryb-connect .event-card > div:last-of-type { display: flex; align-items: center; }
#ryb-connect .event-card .price { font-size: 20px; font-weight: 300; color: rgba(0, 0, 0, .5); }
#ryb-connect .event-card .price span { color: black; font-weight: bold; margin-left: 5px; }
#ryb-connect .event-card .button.enroll { margin: 0 10px 0 20px; }

/* Clinics */
#ryb-connect-clinic-list .no-content p { font-style: italic; font-size: 16px; color: rgba(31, 35, 35, 0.5); font-weight: 300; text-align: center; }
#ryb-connect-clinic-list .no-content p a { color: #53d89a; }
#ryb-connect-clinic-list .no-content { text-align: center; }

/* Standalone event list widgets (camps, clinics, parents night out, etc.) */
[id$="-list-container"] {
  font-family: var(--ryb-font-family, 'DM Sans', sans-serif) !important;
}
[id$="-list-container"] *  {
  font-family: inherit !important;
  box-sizing: border-box;
}
[id$="-list-container"] h4 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(0, 0, 0, .4);
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}
[id$="-list-container"] h4:first-child { margin-top: 0; }
[id$="-list-container"] .event-card {
  border: 2px solid rgba(0, 0, 0, .08);
  padding: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 10px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
[id$="-list-container"] .event-card:hover {
  border-color: rgba(0, 0, 0, .15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}
[id$="-list-container"] .event-card:last-of-type { margin-bottom: 0; }
[id$="-list-container"] .event-card .date,
[id$="-list-container"] .event-card .multi-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 2px solid rgba(0, 0, 0, .08);
  padding-right: 20px;
  margin-right: 20px;
  min-width: 76px;
}
[id$="-list-container"] .event-card .date span:first-of-type,
[id$="-list-container"] .event-card .multi-date .weekdays {
  color: rgba(0, 0, 0, .45);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  line-height: 1;
  text-transform: uppercase;
}
[id$="-list-container"] .event-card .multi-date .weekdays .and { margin: 0 1px; }
[id$="-list-container"] .event-card .date span:last-of-type,
[id$="-list-container"] .event-card .multi-date .day {
  font-size: 32px;
  font-weight: 900;
  color: #000;
  line-height: 1.1;
  letter-spacing: -1px;
}
[id$="-list-container"] .event-card .multi-date .day .and { font-size: 20px; margin: 0 2px; font-weight: 400; color: rgba(0, 0, 0, .3); }
[id$="-list-container"] .event-card .name { flex: 1; min-width: 0; }
[id$="-list-container"] .event-card .name h3 { font-weight: 700; color: #000; font-size: 18px; margin: 0; line-height: 1.3; }
[id$="-list-container"] .event-card .name h5 { font-weight: 600; color: rgba(0, 0, 0, .7); font-size: 14px; margin: 4px 0; }
[id$="-list-container"] .event-card .name p { margin: 0; color: rgba(0, 0, 0, .4); font-size: 14px; font-weight: 400; }
[id$="-list-container"] .event-card > div:last-of-type { display: flex; align-items: center; flex-shrink: 0; margin-left: 16px; }
[id$="-list-container"] .event-card .price { font-size: 18px; font-weight: 400; color: rgba(0, 0, 0, .45); white-space: nowrap; }
[id$="-list-container"] .event-card .price span { color: #000; font-weight: 700; }
[id$="-list-container"] .event-card .button.enroll {
  background-color: var(--ryb-primary-color, #6026d5);
  background-size: 130%;
  background-image: var(--ryb-button-bg-image);
  text-decoration: none;
  display: inline-flex;
  height: 44px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(67, 38, 212, 0.35);
  padding: 0 28px;
  border-radius: 25px;
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  transition: all .3s ease;
  border: none !important;
  cursor: pointer;
  margin-left: 16px;
  white-space: nowrap;
}
[id$="-list-container"] .event-card .button.enroll:hover {
  filter: hue-rotate(15deg);
  box-shadow: 0 6px 16px rgba(67, 38, 212, 0.45);
  transform: translateY(-1px);
}
[id$="-list-container"] .event-card .button.waitlist {
  background: rgba(0, 0, 0, 0.65);
  text-decoration: none;
  display: inline-flex;
  height: 44px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 0 28px;
  border-radius: 25px;
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  transition: all .3s ease;
  border: none !important;
  cursor: pointer;
  margin-left: 16px;
  white-space: nowrap;
}
[id$="-list-container"] .event-card .button.waitlist:hover { background: rgba(0, 0, 0, 0.55); }
[id$="-list-container"] .no-content { text-align: center; }
[id$="-list-container"] .no-content p { font-style: italic; font-size: 16px; color: rgba(31, 35, 35, 0.5); font-weight: 300; }
[id$="-list-container"] .no-content p a { color: var(--ryb-primary-color, #6026d5); }
[id$="-list-container"] .loader {
  display: flex;
  justify-content: center;
  padding: 60px 0;
}

@media only screen and (max-width: 600px) {
  [id$="-list-container"] .event-card {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px;
  }
  [id$="-list-container"] .event-card .date,
  [id$="-list-container"] .event-card .multi-date {
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    padding: 0 0 10px;
    margin: 0 0 12px;
    min-width: unset;
    gap: 6px;
  }
  [id$="-list-container"] .event-card .multi-date .day { font-size: 22px; }
  [id$="-list-container"] .event-card .multi-date .weekdays { font-size: 13px; }
  [id$="-list-container"] .event-card .date span:last-of-type { font-size: 22px; letter-spacing: 0; }
  [id$="-list-container"] .event-card .date span:first-of-type { font-size: 13px; }
  [id$="-list-container"] .event-card .name { margin-bottom: 12px; }
  [id$="-list-container"] .event-card .name h3 { font-size: 16px; }
  [id$="-list-container"] .event-card > div:last-of-type {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
    border-top: 1px solid rgba(0, 0, 0, .06);
    padding-top: 12px;
  }
  [id$="-list-container"] .event-card .button.enroll,
  [id$="-list-container"] .event-card .button.waitlist {
    margin-left: 0;
  }
}

/* [/section:events] */

/* ========================================
   Responsive
   ======================================== */

@media only screen and (max-width: 1199px) {
  #ryb-connect .grid-view .grid-results h4,
  #class-finder .grid-view .grid-results h4 { text-align: left; padding-left: 20px; font-size: 18px; background: #00000010; margin-bottom: 0; }
  #ryb-connect .grid-view .grid-results > div,
  #class-finder .grid-view .grid-results > div { border-right: none; }
}

@media only screen and (max-width: 991px) {
  #ryb-connect .wizard-stage h1 + p { font-size: 15px; }
  #ryb-connect .wizard-stage .bg-white + div { display: none; }
  #ryb-connect .user-type li { font-size: 15px !important; }
  #ryb-connect .wizard-stage.active { display: flex !important; flex-direction: column; }
  #ryb-connect .wizard-stage .stage-text { padding: 0 40px; width: 100%; left: 0; align-items: center; position: relative; box-sizing: border-box; }
  #ryb-connect .wizard-stage .bg-white { width: 100%; height: 100vh; background: #ffffff; align-items: flex-start !important; padding-top: 8%; }
  #ryb-connect .wizard-stage .bg-white .container-wrapper { max-width: 560px; }
  #ryb-connect .wizard-stage h1 { text-align: center !important; }
  #ryb-connect .wizard-stage h1 + p { text-align: center; }
  #ryb-connect .wizard-stage .line { margin-left: auto; margin-right: auto; }
  #ryb-connect .wizard-stage h1 { font-size: 5vw; line-height: 1.3; }
  #ryb-connect .wizard-stage .stage-text p { text-align: center; }
  #ryb-connect .wizard-stage .button-section { justify-content: center; }
}

@media only screen and (max-width: 768px) {
  #ryb-connect .top-right-contacts { gap: 12px !important; font-size: 13px; }
  #ryb-connect header img { height: 28px; width: auto; }
  #ryb-connect header { padding: 0 16px !important; }
  #ryb-connect .wizard-stage h1 { font-size: clamp(30px, 7vw, 44px) !important; }

  /* Overall layout */
  body.admin-bar #ryb-connect { height: calc(100vh - 46px); }
  #ryb-connect .ryb-connect-content { height: auto !important; }

  .filter-top .filter-controls .edit-option { box-sizing: border-box; height: auto; }
  .step-view.step-two:has(.wizard-card) .full-view { padding-top: 75px !important; }
  #ryb-connect #ryb-openings-result .step-view h3.step-subtitle { font-size: 14px; }
  #ryb-connect #ryb-openings-result .step-view h2.step-title,
  #ryb-connect .full-view .filter-top .main-title { font-size: 32px; }
  #ryb-connect #ryb-openings-result .step-view .box { padding: 0; }
  #ryb-connect .wizard-stage .stage-text p { width: auto; }
  #ryb-connect .wizard-stage .button-section { width: 100%; }
  #ryb-connect .wizard-stage .button-section button { width: calc(50% - 10px); }
  #ryb-connect .wizard-stage .dropdown-wrapper select { color: #111 !important; background: #fff !important; }
  #ryb-connect .box.child .step-control { position: relative !important; }
}

@media only screen and (max-width: 500px) {
  #ryb-connect a:has(img) { display: flex; align-items: center; }
  #ryb-connect .wizard-card .card .name { margin-bottom: 8px; }
  #ryb-connect .wizard-card .card .location { font-size: 14px; margin-top: 0; }
  #ryb-connect .wizard-card { padding: 16px; }
  #ryb-connect .wizard-stage button:not(.form-submit) { padding: 0 16px; margin-left: 16px; font-size: 14px; }
  #ryb-connect .box.classes.show .controls { font-size: 14px; }
  #ryb-connect .box.classes.show .controls div { width: 100%; display: flex; align-items: center; justify-content: center; }
  #ryb-connect .top-right-contacts .go-back-link { font-size: 12px !important; padding: 6px 12px !important; flex-shrink: 0; }
  #ryb-connect .top-right-contacts span { flex: 1; text-align: right; font-size: 0; min-width: 0; }
  #ryb-connect .top-right-contacts span a { font-size: 13px; white-space: nowrap; }
  #ryb-connect .wizard-stage .bg-white { padding-top: 5%; }
  #ryb-connect .wizard-stage .bg-white .container-wrapper { width: 90%; }
  #ryb-connect .wizard-card .card { gap: 16px; }
  #ryb-connect .wizard-card .card .bg-image { min-width: 70px; min-height: 70px; max-width: 70px; max-height: 70px; }
}

@media only screen and (min-width: 1200px) {
  #ryb-connect .grid-view .grid-results,
  #class-finder .grid-view .grid-results {
    border: 1px solid #00000020;
    border-radius: 5px;
    height: calc(100vh - 300px);
    overflow: auto;
    position: relative;
  }
  #ryb-connect .grid-view .grid-results h4,
  #class-finder .grid-view .grid-results h4 {
    margin: 0 0 15px 0;
    padding: 15px 0;
    color: black;
    font-weight: 500;
    letter-spacing: .5px;
    background: #fff;
    position: sticky;
    z-index: 2;
    top: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  }
}

/* ========================================
   Mobile Improvements
   ======================================== */

@media only screen and (max-width: 1199px) {
  /* M2: Compact filter dropdowns */
  #class-finder .filter-controls .edit-option,
  #ryb-connect .filter-controls .edit-option {
    padding: 8px 12px;
    font-size: 14px;
  }

  /* M3: Compact notice bar — row instead of column */
  #class-finder .enroll-disabled-banner .enroll-disabled-banner-inner,
  #ryb-connect .enroll-disabled-banner .enroll-disabled-banner-inner {
    flex-direction: row;
    padding: 8px 12px;
    gap: 8px;
    align-items: center;
  }
  #class-finder .enroll-disabled-banner p,
  #ryb-connect .enroll-disabled-banner p {
    font-size: 13px;
    margin: 0;
  }

  /* M4: Smaller title on mobile */
  #class-finder .filter-top .main-title,
  #ryb-connect .full-view .filter-top .main-title {
    font-size: 24px !important;
    margin-bottom: 8px;
  }

  /* M5: Tighter filter section spacing */
  #class-finder .filter-top,
  #ryb-connect .filter-top {
    padding: 12px 0;
    margin-bottom: 8px;
  }
  #class-finder .filter-controls,
  #ryb-connect .filter-controls {
    gap: 8px;
  }

  /* M6: Smaller card margin */
  #class-finder .result-grid-cell,
  #ryb-connect .result-grid-cell {
    margin-top: 12px;
  }

  /* M7: Sticky day headers on mobile */
  #class-finder .grid-view .grid-results h4,
  #ryb-connect .grid-view .grid-results h4 {
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--ryb-background-color, #ffffff);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    cursor: pointer;
  }

  /* Fix: accordion icon must be above sticky h4 to receive clicks */
  #class-finder .grid-view .grid-results .accordion,
  #ryb-connect .grid-view .grid-results .accordion {
    z-index: 10;
  }
}

/* --- Mobile: filter layout fixes --- */

@media only screen and (max-width: 768px) {
  /* Filters: full-width on mobile (fix right-alignment) */
  #class-finder .filter-top,
  #ryb-connect .filter-top {
    align-items: stretch !important;
  }
  #class-finder .filter-top .filter-controls,
  #ryb-connect .filter-top .filter-controls {
    flex-direction: column !important;
    width: 100% !important;
  }
  #class-finder .filter-top .edit-option,
  #ryb-connect .filter-top .edit-option {
    width: 100% !important;
    min-width: unset !important;
  }

  /* Dropdown: must be above sticky day headers (z-index: 5) */
  #class-finder .filter-top .edit-option.active,
  #ryb-connect .filter-top .edit-option.active {
    z-index: 20 !important;
  }

  /* Dropdown: full-width on mobile, prevent overflow */
  #class-finder .filter-top .dropdown,
  #ryb-connect .filter-top .dropdown {
    min-width: unset !important;
    width: auto !important;
    left: 0 !important;
    right: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Title: reduce margin/padding */
  #class-finder .filter-top .main-title,
  #ryb-connect .full-view .filter-top .main-title {
    text-align: left !important;
    margin-bottom: 12px !important;
  }

  /* Day headers: refined with left accent */
  #class-finder .grid-view .grid-results h4,
  #ryb-connect .grid-view .grid-results h4 {
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 14px 20px !important;
    padding-right: 48px !important;
    border-left: 3px solid var(--ryb-primary-color, #6E26D5) !important;
    background: #fafafa !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    margin: 0 !important;
    color: #1a1a1a !important;
    letter-spacing: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  /* Accordion: replace plus-circle SVG with CSS chevron */
  #class-finder .grid-view .grid-results .accordion svg,
  #ryb-connect .grid-view .grid-results .accordion svg {
    display: none !important;
  }
  #class-finder .grid-view .grid-results .accordion,
  #ryb-connect .grid-view .grid-results .accordion {
    width: 28px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    right: 12px !important;
  }
  #class-finder .grid-view .grid-results .accordion::after,
  #ryb-connect .grid-view .grid-results .accordion::after {
    content: "" !important;
    display: block !important;
    width: 10px !important;
    height: 10px !important;
    border-right: 2.5px solid var(--ryb-primary-color, #6E26D5) !important;
    border-bottom: 2.5px solid var(--ryb-primary-color, #6E26D5) !important;
    transform: rotate(-45deg) translateY(-2px) !important;
    transition: transform 0.3s ease !important;
  }
  #class-finder .grid-view .grid-results .accordion.open::after,
  #ryb-connect .grid-view .grid-results .accordion.open::after {
    transform: rotate(45deg) translateY(0) !important;
  }

  /* Class count pill below day heading */
  #class-finder .grid-view .grid-results .day-count,
  #ryb-connect .grid-view .grid-results .day-count {
    display: inline-block !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: var(--ryb-primary-color, #6E26D5) !important;
    background: rgba(110, 38, 213, 0.08) !important;
    padding: 3px 10px !important;
    border-radius: 12px !important;
    margin: 0 0 0 16px !important;
    white-space: nowrap !important;
    letter-spacing: 0.02em !important;
  }

  /* No-classes day: muted appearance */
  #class-finder .grid-view .grid-results > div.no-classes-day > h4,
  #ryb-connect .grid-view .grid-results > div.no-classes-day > h4 {
    border-left-color: #ddd !important;
    color: #aaa !important;
    background: #f5f5f5 !important;
  }
  #class-finder .grid-view .grid-results > div.no-classes-day .day-count,
  #ryb-connect .grid-view .grid-results > div.no-classes-day .day-count {
    color: #aaa !important;
    background: #f0f0f0 !important;
    font-style: italic !important;
  }
  #class-finder .grid-view .grid-results > div.no-classes-day .accordion::after,
  #ryb-connect .grid-view .grid-results > div.no-classes-day .accordion::after {
    border-color: #ccc !important;
  }
}

/* --- Wizard Step 1: tighter mobile spacing --- */

@media only screen and (max-width: 768px) {
  #ryb-connect .wizard-stage .line { margin: 16px 0; }
  #ryb-connect .box.child .step-box { padding-bottom: 24px; }
}

@media only screen and (max-width: 500px) {
  #ryb-connect .wizard-stage h2,
  #ryb-connect .wizard-stage .box.child h2 { font-size: 18px; margin-bottom: 12px; }
}

/* --- Wizard Step 1: refined form elements --- */

/* Selects */
#ryb-connect .standard-select {
  border: 2px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 10px !important;
  height: 52px !important;
  background-color: var(--ryb-background-color, #f9f8fa) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: calc(100% - 16px) center !important;
  background-size: 16px !important;
  padding-right: 44px !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
}
#ryb-connect .standard-select:hover {
  border-color: rgba(0, 0, 0, 0.18) !important;
  background-color: #fff !important;
}
#ryb-connect .standard-select:focus {
  border-color: var(--ryb-primary-color) !important;
  box-shadow: 0 0 0 3px rgba(96, 38, 213, 0.08) !important;
  background-color: #fff !important;
  outline: none !important;
}

/* Text inputs */
#registration-form .input-wrapper input {
  border: 2px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 10px !important;
  height: 52px !important;
  background-color: var(--ryb-background-color, #f9f8fa) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
}
#registration-form .input-wrapper input:hover {
  border-color: rgba(0, 0, 0, 0.18) !important;
}
#registration-form .input-wrapper input:focus {
  border-color: var(--ryb-primary-color) !important;
  box-shadow: 0 0 0 3px rgba(96, 38, 213, 0.08) !important;
  background-color: #fff !important;
  outline: none !important;
}
#registration-form .input-wrapper input::placeholder {
  color: rgba(0, 0, 0, 0.32);
  font-weight: 300;
}

/* Checkbox */
#registration-form .checkbox-wrapper {
  align-items: flex-start !important;
  gap: 12px !important;
  margin-top: 8px !important;
}
#registration-form .checkbox-wrapper input[type='checkbox'] {
  border: 2px solid rgba(0, 0, 0, 0.15) !important;
  border-radius: 6px !important;
  transition: all 0.15s ease !important;
  cursor: pointer !important;
}
#registration-form .checkbox-wrapper input[type='checkbox']:hover {
  border-color: var(--ryb-primary-color) !important;
}
#registration-form .checkbox-wrapper input[type='checkbox']:checked {
  background-color: var(--ryb-primary-color) !important;
  border-color: var(--ryb-primary-color) !important;
}
#registration-form .checkbox-wrapper label {
  font-size: 13px !important;
  line-height: 1.5 !important;
  color: rgba(0, 0, 0, 0.5) !important;
}

/* CTA Button — matches production style */
#ryb-connect .wizard-stage button.form-submit {
  background: linear-gradient(to bottom, var(--ryb-primary-color), var(--ryb-secondary-color)) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  height: 48px !important;
  width: 100% !important;
  padding: 0 40px !important;
  border-radius: 9px !important;
  border: 0 !important;
  box-shadow: rgba(67, 38, 212, 0.5) 0px 10px 20px 0px !important;
  color: #fff !important;
  transition: 0.3s !important;
}
#ryb-connect .wizard-stage button.form-submit:hover {
  filter: hue-rotate(15deg) !important;
  transition: 0.3s !important;
}

/* Privacy text */
#ryb-connect .wizard-stage .privacy-policy p {
  font-size: 12px !important;
  color: rgba(0, 0, 0, 0.4) !important;
  margin-top: 12px !important;
}
#ryb-connect .wizard-stage .privacy-policy a {
  color: var(--ryb-primary-color) !important;
  text-decoration-color: rgba(96, 38, 213, 0.3) !important;
}

/* Step-control separator */
#ryb-connect .box.child .step-control {
  border-top-color: rgba(0, 0, 0, 0.05) !important;
  padding-top: 24px !important;
}

/* --- Step 0: card-style user-type options --- */

.wizard-stage .user-type {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
}

.user-type li {
  display: flex !important;
  flex-direction: column !important;
  gap: 28px !important;
  align-items: flex-start !important;
  border-radius: 12px !important;
  border: 1.5px solid #e2e8f0 !important;
  padding: 20px !important;
  background-color: #fff !important;
  font-size: 16px !important;
  line-height: 1.4 !important;
  color: #334155 !important;
  position: relative !important;
  transition: all .25s ease !important;
  cursor: pointer !important;
  box-shadow: 0 1px 3px rgba(0,0,0,.04) !important;
}

.user-type li:hover {
  border-color: var(--ryb-primary-color, rgb(67, 38, 213)) !important;
  background-color: #fff !important;
  color: #1e293b !important;
  box-shadow: 0 4px 12px rgba(67,38,213,.1) !important;
  transform: translateY(-1px) !important;
}

.user-type li .point {
  width: 18px !important;
  height: 18px !important;
  background-color: #fff !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 50% !important;
  align-self: end !important;
  transition: all .25s ease !important;
}

.user-type li:hover .point {
  background-color: var(--ryb-primary-color, rgb(67, 38, 213)) !important;
  border-color: var(--ryb-primary-color, rgb(67, 38, 213)) !important;
  box-shadow: 0 0 0 3px rgba(67,38,213,.15) !important;
}

li.new-user::before {
  content: "" !important;
  position: absolute !important;
  left: 16px !important;
  width: 24px !important;
  height: 24px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M18.667 19.003v2.786c-0.834-0.295-1.732-0.455-2.667-0.455-4.418 0-8 3.582-8 8h-2.667c0-5.891 4.776-10.667 10.667-10.667 0.921 0 1.814 0.117 2.667 0.336zM16 17.333c-4.42 0-8-3.58-8-8s3.58-8 8-8c4.42 0 8 3.58 8 8s-3.58 8-8 8zM16 14.667c2.947 0 5.333-2.387 5.333-5.333s-2.387-5.333-5.333-5.333c-2.947 0-5.333 2.387-5.333 5.333s2.387 5.333 5.333 5.333zM24 22.667v-4h2.667v4h4v2.667h-4v4h-2.667v-4h-4v-2.667h4z'/%3E%3C/svg%3E") !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}

li.registered::before,
li.existing-member::before {
  content: "" !important;
  position: absolute !important;
  left: 16px !important;
  width: 24px !important;
  height: 24px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M26.667 29.333h-2.667v-2.667c0-2.209-1.791-4-4-4h-8c-2.209 0-4 1.791-4 4v2.667h-2.667v-2.667c0-3.682 2.985-6.667 6.667-6.667h8c3.682 0 6.667 2.985 6.667 6.667v2.667zM16 17.333c-4.418 0-8-3.582-8-8s3.582-8 8-8c4.418 0 8 3.582 8 8s-3.582 8-8 8zM16 14.667c2.945 0 5.333-2.388 5.333-5.333s-2.388-5.333-5.333-5.333c-2.946 0-5.333 2.388-5.333 5.333s2.388 5.333 5.333 5.333z'/%3E%3C/svg%3E") !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}
