/* ==========================================================================
   Canadian College of Health Science and Technology (CCHST)
   Custom stylesheet for the CampusLogin "Request Information" form
   Target page: form1.campuslogin.com/.../RequestInformation.campuslogin

   Matches the visual style of the "Get the Details!" form on the CCHST
   homepage (canadiancollege-hst.com), which is built with these tokens:
     - Navy:        #003362  (headings, button text, nav)
     - Orange:      #F58238  (banner background, CTA button)
     - Panel grey:  #EFEFEF  (form background)
     - Border grey: #CED4DA  (input borders)
     - Label grey:  #4D4C4C  (field labels)
     - Font stack:  system UI stack used sitewide

   Paste this into the CampusLogin form's custom CSS field.
   ========================================================================== */

:root {
  --cchst-navy: #003362;
  --cchst-orange: #f58238;
  --cchst-orange-dark: #e0722a;
  --cchst-bg: #efefef;
  --cchst-border: #ced4da;
  --cchst-label: #4d4c4c;
  --cchst-input-text: #495057;
  --cchst-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

body {
  font-family: var(--cchst-font);
}

/* Card wrapper around the whole form -------------------------------------- */
.clf-form {
  background-color: var(--cchst-bg);
  font-family: var(--cchst-font);
  max-width: 480px;
  margin: 0 auto;
  height: 100%;
  min-height: 100%;
  overflow: auto;
  border-radius: 0 0 6px 6px;
  padding: 20px 20px 24px;
}

/* Optional section heading / sub-heading, styled as the orange banner ----
   These classes only render if a heading is configured in the form admin,
   but are styled here so the banner appears automatically if you add one. */
.clf-d-section-heading {
  position: relative;
  display: block;
  background-color: var(--cchst-orange);
  color: var(--cchst-navy);
  font-size: 26px;
  font-weight: 600;
  text-align: center;
  padding: 20px 16px 30px;
  margin: -20px -20px 28px;
  border-radius: 0;
}

.clf-d-section-heading::after {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -22px;
  height: 44px;
  background-color: var(--cchst-bg);
  border-radius: 50%;
}

.clf-d-section-sub-heading {
  position: relative;
  z-index: 1;
  display: block;
  text-align: center;
  color: var(--cchst-navy);
  font-size: 14px;
  font-weight: 500;
  margin-top: -14px;
  margin-bottom: 16px;
}

/* Field groups -------------------------------------------------------------- */
.clf-d-fieldset {
  margin-bottom: 16px;
}

.clf-d-label {
  display: block;
  color: var(--cchst-label);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 6px;
}

.clf-d-requiredmark {
  color: var(--cchst-orange-dark);
  margin-left: 2px;
}

/* Inputs, selects, textareas ------------------------------------------------ */
.clf-d-control input[type="text"],
.clf-d-control input[type="email"],
.clf-d-control input[type="tel"],
.clf-d-control input:not([type]),
.clf-d-control select,
.clf-d-control textarea {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--cchst-font);
  font-size: 15px;
  color: var(--cchst-input-text);
  background-color: #ffffff;
  border: 1px solid var(--cchst-border);
  border-radius: 4px;
  padding: 9px 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.clf-d-control input:focus,
.clf-d-control select:focus,
.clf-d-control textarea:focus {
  outline: none;
  border-color: var(--cchst-orange);
  box-shadow: 0 0 0 3px rgba(245, 130, 56, 0.18);
}

/* Three-part fields, e.g. phone number split into parts --------------------- */
.clf-form-input-3parts-30-30-40 {
  display: flex;
  gap: 10px;
}

.clf-form-input-3parts-30-30-40 input {
  width: 100%;
}

/* Checkbox / radio row (e.g. consent, yes/no groups) ------------------------ */
.clf-form-crbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--cchst-label);
}

.clf-form-crbox input[type="checkbox"],
.clf-form-crbox input[type="radio"] {
  accent-color: var(--cchst-orange);
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

/* Consent / disclaimer text -------------------------------------------------- */
.clf-text-italic.clf-padding-small {
  display: block;
  font-style: italic;
  font-size: 12px;
  line-height: 1.5;
  color: #6b6b6b;
  margin: 14px 0 16px;
}

/* Submit button -------------------------------------------------------------- */
#Submit.clf-d-submitbutton,
.clf-d-submitbutton {
  display: block;
  width: 100%;
  background-color: var(--cchst-orange);
  color: var(--cchst-navy);
  font-family: var(--cchst-font);
  font-size: 17px;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  padding: 14px 18px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

#Submit.clf-d-submitbutton:hover,
.clf-d-submitbutton:hover {
  background-color: var(--cchst-orange-dark);
}

#Submit.clf-d-submitbutton:focus,
.clf-d-submitbutton:focus {
  outline: 2px solid var(--cchst-navy);
  outline-offset: 2px;
}

/* Small screens -------------------------------------------------------------- */
@media (max-width: 480px) {
  .clf-form {
    border-radius: 0;
    padding: 16px 14px 20px;
  }

  .clf-form-input-3parts-30-30-40 {
    flex-wrap: wrap;
  }
}
