/* Course-interest styles, isolated from the Stellar main.css theme. */
#course-interest {
  --ci-brown: #755238;
  --ci-brown-dark: #583b29;
  --ci-text: #4b423b;
  --ci-muted: #71675f;
  --ci-border: #dfd3c7;
  --ci-selected: #f5ece0;
  width: 100%;
  max-width: 680px;
  margin: 0 auto 2.5rem;
  padding: 2rem;
  background: #fff;
  color: var(--ci-text);
  border: 1px solid var(--ci-border);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(65,45,30,.06);
  font-family: inherit;
}
#course-interest *, #course-interest *::before, #course-interest *::after { box-sizing: border-box; }
#course-interest .course-heading { text-align: center; margin-bottom: 1.7rem; }
#course-interest .course-eyebrow { display: block; color: var(--ci-brown); font-size: .75rem; font-weight: 700; letter-spacing: .13em; }
#main #course-interest h1 { color: var(--ci-text); font-size: clamp(1.6rem,3vw,2rem); line-height: 1.25; margin: .7rem 0; }
#course-interest .course-heading p, #course-interest .course-success p { color: var(--ci-muted); line-height: 1.65; margin: 0 0 1rem; }
#course-interest .course-form { margin: 0; }
#course-interest .course-fieldset { display: block; min-width: 0; margin: 0 0 1.5rem; padding: 0; border: 0; }
#course-interest .course-fieldset legend { display: block; width: 100%; margin-bottom: .8rem; padding: 0; color: var(--ci-text); font-size: 1rem; font-weight: 600; }
/* main.css makes all checkboxes transparent and floats them. Restore native checkbox appearance. */
#main #course-interest label.course-option {
  display: flex; align-items: center; position: relative; gap: .8rem;
  width: 100%; min-height: 3.5rem; margin: 0 0 .7rem; padding: .85rem 1rem;
  color: var(--ci-text); background: #fff; border: 2px solid var(--ci-border);
  border-radius: 10px; cursor: pointer; font-size: .95rem; line-height: 1.45;
  transition: background-color .15s ease, border-color .15s ease;
}
#main #course-interest label.course-option:hover { background: #faf6f0; border-color: #ad8d73; }
#main #course-interest label.course-option:has(input[type="checkbox"]:checked) {
  background: var(--ci-selected); border-color: var(--ci-brown);
}
#main #course-interest label.course-option:has(input[type="checkbox"]:checked) .course-option-label {
  color: var(--ci-brown-dark); font-weight: 600;
}
#main #course-interest .course-option input[type="checkbox"] {
  -webkit-appearance: checkbox; appearance: checkbox;
  display: inline-block; float: none; position: static; opacity: 1; visibility: visible;
  width: 20px; height: 20px; min-width: 20px; flex: 0 0 20px;
  margin: 0; padding: 0; border: 0; z-index: auto;
  accent-color: var(--ci-brown); cursor: pointer; transform: none;
}
#course-interest .course-option-label { display: block; flex: 1; }
#main #course-interest .course-option:focus-within { outline: 2px solid var(--ci-brown); outline-offset: 2px; }
#course-interest .course-field { margin-bottom: 1rem; }
#main #course-interest .course-field label { display: block; color: var(--ci-text); font-size: .95rem; font-weight: 600; margin-bottom: .5rem; }
#main #course-interest .course-field input[type="email"] {
  display: block; width: 100%; height: auto; min-height: 3rem; margin: 0;
  padding: .7rem .85rem; border: 1px solid var(--ci-border); border-radius: 9px;
  background: #fff; color: var(--ci-text); font: inherit; font-size: 1rem;
}
#main #course-interest .course-field input[type="email"]:focus { outline: 2px solid var(--ci-brown); outline-offset: 1px; box-shadow: none; }
#course-interest .course-privacy { color: var(--ci-muted); font-size: .8rem; line-height: 1.6; margin: 0 0 1.3rem; }
#course-interest .course-privacy a { color: var(--ci-brown); text-decoration: underline; border: 0; }
#main #course-interest button.course-submit, #main #course-interest a.course-back {
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  width: 100%; min-width: 0; height: auto; min-height: 3rem; padding: .75rem 1rem;
  border: 0; border-radius: 9px; background: var(--ci-brown); box-shadow: none;
  color: #fff !important; font: inherit; font-size: 1rem; font-weight: 600;
  line-height: 1.4; text-transform: none; letter-spacing: normal; text-decoration: none;
  white-space: normal; cursor: pointer;
}
#main #course-interest button.course-submit:hover, #main #course-interest a.course-back:hover { background: var(--ci-brown-dark); color: #fff !important; }
#course-interest .course-errors { background: #fff0ed; color: #9c3029; border: 1px solid #f1c9c2; border-radius: 9px; padding: .8rem 1rem; margin-bottom: 1rem; }
#course-interest .course-errors p { margin: .2rem 0; }
#course-interest .course-success { text-align: center; padding: 1rem 0; }
#course-interest .course-success-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 1rem; background: #e6f3e7; color: #287a3c; border-radius: 50%; font-size: 2rem; }
#course-interest .course-back { margin-top: 1rem; }
#course-interest .course-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 600px) { #course-interest { padding: 1.3rem 1rem; } #main #course-interest label.course-option { padding: .8rem; } }
/* Consistent styling for email and school inputs */
#course-interest .course-field input[type="email"],
#course-interest .course-field input[type="text"] {
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

/* Consistent placeholder appearance */
#course-interest .course-field input[type="email"]::placeholder,
#course-interest .course-field input[type="text"]::placeholder {
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    color: #b8b8b8;
    opacity: 1;
}