/*RegForm.css*/
/* @media (max-width: 420px)  begins on or about line 243 */

/* Import a script font similar to Brush Script MT */
@import url('https://fonts.googleapis.com/css2?family=Kalam:wght@400;700&family=Dancing+Script:wght@400;700&family=Libre+Franklin:wght@400;700&display=swap');

/* Alex Brush font embedding */
@font-face {
  font-family: 'Alex Brush';
  src: url('../Fonts/AlexBrush-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Alternative: If you have Brush Script MT font file */
/*
@font-face {
  font-family: 'Brush Script MT';
  src: url('../Fonts/BrushScriptMT.woff2') format('woff2'),
       url('../Fonts/BrushScriptMT.woff') format('woff'),
       url('../Fonts/BrushScriptMT.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
*/

html {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 15px;
  height: 100%;
  min-height: 100vh;
}

body {
  min-height: 100vh;
  margin: 0;
  background-image: url('../Images/CCB2025PageBG.png');
  background-size: 100% auto;
  background-repeat: repeat-y;
  background-position: top center;
  background-attachment: scroll;
  color: white;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

@media (max-width: 420px) {
  body {
    background-image: url('../Images/CCB2025PageBG.png');
    background-size: 100% auto;
    background-repeat: repeat-y;
    background-position: top center;
    background-attachment: scroll;
    min-height: 100vh;
    background-color: black;
  }
}

#divContents {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0 2vw;
}

h1,
h2,
h3 {
  color: white;
  width: 100%;
  max-width: 95vw;
  margin: 1em 0;
  text-align: center;
  box-sizing: border-box;
}

ul {
  width: 100%;
  max-width: 95vw;
  margin: 0 0 1.5em 0;
  padding: 0;
  list-style-type: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

li {
  width: 100%;
  max-width: 95vw;
  margin-bottom: 1.2em;
  display: flex;
  flex-direction: column;
  align-items: center;
}

input,
select {
  width: 90vw;
  max-width: 400px;
  box-sizing: border-box;
  margin: 0.5em 0;
}

.aBtn {
  font-size: 0.75rem;
  padding: 2px 4px;
  background-color: black;
  color: white;
  border: 3px solid rgb(6, 6, 60);
  border-radius: 8px;
  cursor: pointer;
}

.aBtn:hover {
  border: 3px dotted yellow;
}

.aBtn:visited {
  color: white;
}

h1 {
  border-bottom: 2px solid rgb(6, 6, 255);
  background: transparent;
  color: white;
  font-family: 'Alex Brush', cursive;
}

div {
  text-align: center;
  margin: 0 auto 0 auto;
}

#divResults {
  font-size: clamp(14px, 16px, 20px);
  font-weight: 800;
  padding: 16px;
}

h3 {
  text-align: center;
  margin: auto;
  border: 5px outset rgb(6, 6, 60);
  color: black;
  background-color: whitesmoke;
  border-radius: 8px;
  padding: 16px;
  width: fit-content;
  max-width: 500px;
}

ul {
  text-align: left;
  list-style-type: none;
  padding: 0;
  margin: 0 auto;
  display: table;
  width: 100%;
}

select {
  min-width: 2.5rem;
  width: fit-content;
  border: 2px solid black;
  border-radius: 6px;
  text-align: left;
  padding: 5px;
  margin: 0 12px;
}

label {
  font-weight: bold;
  margin-right: 8px;
}

input {
  padding: 2px 4px 2px 6px;
  width: fit-content;
  border: 2px solid black;
  border-radius: 4px;
}

.msg {
  background-color: black;
  color: yellow;
  padding: 1em;
  text-align: center;
  margin: auto;
  border: 3px solid black;
  border-radius: 8px;
}

input:focus {
  border: 2px solid chartreuse;
}

#liSpanBtns {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
  overflow: visible;
  padding-top: 2px;
  padding-bottom: 2px;
}

.spanBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgb(8, 8, 8);
  color: white;
  padding: 3px 8px;
  text-align: center;
  margin: 0;
  line-height: 1.2;
  border: 3px outset darkgray;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.9rem;
}

.spanBtn:hover {
  background-color: white;
  color: rgb(6, 6, 60);
}

.msg {
  padding: 6px 12px 6px 12px;
  border: 4px outset black;
  border-radius: 8px;
  margin-bottom: 16px;
}

.linkButton {
  background-color: rgb(6, 6, 60);
  color: white;
  padding: 4px 8px;
  text-decoration: none;
  border: 4px outset gray;
  border-radius: 8px;
  font-size: 0.8rem;
}

.linkButton:hover {
  cursor: pointer;
  color: rgb(6, 6, 60);
  background-color: white;
}

#RegFormBanner {
  display: block;
  max-width: 600px;
  width: 100%;
  height: auto;
  margin: 0.25em auto;
  object-fit: contain;
}

#AbsFormBanner {
  display: block;
  max-width: 600px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

#imgSearchEmail,
#imgSearchLegend {
  height: 20px;
  cursor: pointer;
}

#imgSearchEmail:hover {
  border: 3px dotted yellow;
}

#divAttPolicy {
  box-sizing: border-box;
  width: 100%;
  max-width: 600px;
  padding-left: 8px;
  padding-right: 8px;
  margin: 0 auto;
  text-align: justify;
  overflow-wrap: break-word;
  word-break: break-word;
}

#ulMajorPerformances {
  text-align: left;
  margin-left: 0;
  padding-left: 1.5em; /* default browser indent, adjust as needed */
}

#ulMajorPerformances li {
  margin: 0 0 1.5em 0;
  padding: 0;
}

.performance-item {
  text-align: left;
  margin: 0 0 0.5em 0;
  padding: 0.2em 0;
  font-size: 1em;
  line-height: 1.4;
}

@media (max-width: 420px) {
  #divContents,
  #RegFormBanner {
    display: block;
    max-width: 600px;
    width: 100%;
    height: auto;
    margin: 1em auto;
    object-fit: contain;
  }

  h1,
  h2,
  h3 {
    width: 100%;
    max-width: 95vw;
    min-width: 0;
    margin: 1em 0;
    text-align: center;
    box-sizing: border-box;
    padding: 8px 0;
    font-size: 1.1em;
  }

  ul {
    width: 100%;
    max-width: 95vw;
    margin: 0 0 1.5em 0;
    padding: 0;
    list-style-type: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
    /* merged from other ul rules */
  }

  li {
    width: 100%;
    max-width: 95vw;
    margin-bottom: 1.2em;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    white-space: nowrap;
  }

  input,
  select {
    width: 90vw;
    max-width: 350px;
    min-width: 0;
    box-sizing: border-box;
    margin: 0.5em 0;
    font-size: 1em;
  }

  label {
    font-size: 1em;
    margin-bottom: 0.2em;
    text-align: left;
    width: 100%;
    max-width: 95vw;
    box-sizing: border-box;
  }

  .aBtn,
  .linkButton,
  .spanBtn {
    display: inline-block;
    width: fit-content;
    margin: 0.5em 0.5em 0.5em 0;
    font-size: 1em;
    box-sizing: border-box;
    vertical-align: middle;
  }

  .msg {
    width: 95vw;
    max-width: 95vw;
    margin: 1em auto;
    font-size: 1em;
    box-sizing: border-box;
    padding: 6px 12px 6px 12px;
    border: 4px outset black;
    border-radius: 8px;
  }

  #ulMajorPerformaces {
    align-items: left;
    width: 90%;
    max-width: 95vw;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0;
    list-style-type: none;
  }

  #ulProfile {
    width: 100%;
    max-width: 95vw;
    margin: 0 auto;
    box-sizing: border-box;
  }

  #ulProfile li {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    max-width: 95vw;
    margin-bottom: 1.2em;
    box-sizing: border-box;
    overflow: hidden;
  }

  #ulProfile label {
    display: inline-block;
    text-align: right;
    min-width: 6em;
    max-width: 30vw;
    margin-right: 0.5rem;
    vertical-align: middle;
    flex: 0 0 auto;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #ulProfile .inp {
    display: inline-block;
    margin-left: 0.5rem;
    min-width: 4em;
    max-width: 60vw;
    width: 100%;
    vertical-align: middle;
    flex: 1 1 auto;
    box-sizing: border-box;
  }

  #ulMajorPerformances li {
    text-align: left;
    margin-left: 0;
    padding-left: 0;
  }
}

#selRegNames {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0 0 1em 0;
  box-sizing: border-box;
  font-size: 1em;
  display: none; /* keep hidden until ready */
}

#selRegNames option {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  font-size: 1em;
}

/* Choices.js font size for mobile */
#selRegNames + .choices .choices__inner,
#selRegNames + .choices .choices__list--dropdown,
#selRegNames + .choices .choices__list--dropdown .choices__item,
#selRegNames + .choices .choices__list[aria-expanded] .choices__item,
#selRegNames + .choices .choices__item--selectable {
  font-size: 0.95em !important;
}

#pQMark {
  display: inline;
  font-weight: bold;
  font-size: 15px;
  color: rgb(60, 60, 60);
  background-color: lightgray;
  margin: auto auto auto 6px;
  border: 2px solid rgb(60, 60, 60);
  border-radius: 100%;
  padding: 4px;
  cursor: pointer;
}
#pQMark:hover {
  background-color: black;
  color: white;
}

#imgHouseIcon,
#imgInfoIcon {
  cursor: pointer;
  height: 2.5em;
  margin: 0 12px -6px 8px;
  border: 2px solid silver;
  border-radius: 4px;
}

#imgHouseIcon:hover {
  border: 4px solid orange;
}

#aMailAdmin {
  cursor: pointer;
  width: fit-content;
  background-color: rgb(6,6,120);
  color: white;
  text-decoration: none;
  padding: 4px;
  border: 3px outset rgb(6,6,120);
  border-radius: 8px;
  margin: 16px auto 12px auto;
}

#aMailAdmin:hover {
  background-color: white;
  color: rgb(6,6,120);
  border: 3px dotted yellow;
}

#AbsFormBanner {
  width: 98vw;
  max-width: 98vw;
  height: auto;
  margin: 1em auto;
  display: block;
  object-fit: contain;
}

#liInstPart {
  font-size: 16px;
  font-weight: bold;
  padding: 6px;
}

#liSpanBtns {
  text-align: center;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
  overflow: visible;
  padding-top: 2px;
  padding-bottom: 2px;
}

#ulProfile,
#ulEmail {
  text-align: center;
  margin: auto;
}

#selRegNames {
  text-align: center;
  margin: auto;
  font-size: 0.8rem;
  display: none;
}

#selRegNames option {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

#divPlsWait {
  /* Assuming these are the styles for divPlsWait */
  position: absolute;
  top: 50px;
  left: 50px;
  width: 300px;
  display: none;
}
#divRegStatus {
  position: absolute;
  top: 50px; /* Aligns with the top of divPlsWait */
  left: 50px; /* Aligns with the left of divPlsWait */
  width: 300px; /* Same width as divPlsWait */
  background-color: white;
  color: rgb(6, 6, 255);
  display: none; /* Initially hidden */
}

#liRegStatus {
  font-size: 16px;
  font-weight: bold;
  padding: 6px;
  background-color: white;
  color: rgb(6, 6, 120);
  border: 4px outset cyan;
  border-radius: 8px;
}

#aUpdateReg {
  cursor: pointer;
  width: fit-content;
  background-color: rgb(6, 6, 60);
  color: white;
  text-decoration: none;
  padding: 4px;
  border: 3px outset rgb(6, 6, 60);
  border-radius: 8px;
  margin: 16px auto 12px auto;
}

#aUpdateReg:hover {
  background-color: white;
  color: rgb(6, 6, 60);
  border: 3px dotted yellow;
}

#aUpdateReg:visited {
  color: white;
}

#divAttPolicy {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding-left: 8px;
  padding-right: 8px;
  margin: 0 auto;
  text-align: justify;
  overflow-wrap: break-word;
  word-break: break-word;
}

h3 {
  max-width: 95vw;
  width: 100%;
  box-sizing: border-box;
  padding: 8px;
  font-size: 1.1em;
}
#selRegNames {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0 0 1em 0;
  box-sizing: border-box;
  font-size: 1em;
}
#selRegNames option {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  font-size: 1em;
}

#ulProfile {
  width: 100%;
  max-width: 95vw;
  margin: 0 auto;
  box-sizing: border-box;
}

#ulProfile li {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  max-width: 95vw;
  margin-bottom: 1.2em;
  box-sizing: border-box;
  overflow: hidden;
}

#ulProfile .inp {
  display: inline-block;
  margin-left: 0.5rem;
  min-width: 4em;
  max-width: 60vw;
  width: 100%;
  vertical-align: middle;
  flex: 1 1 auto;
  box-sizing: border-box;
}

#ulProfile label {
  display: inline-block;
  text-align: right;
  min-width: 6em;
  max-width: 30vw;
  margin-right: 0.5rem;
  vertical-align: middle;
  flex: 0 0 auto;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#ulProfile {
  width: 100%;
  max-width: 95vw;
  margin: 0 auto;
  box-sizing: border-box;
}
#ulProfile li {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  max-width: 95vw;
  margin-bottom: 1.2em;
  box-sizing: border-box;
  overflow: hidden;
}
#ulProfile label {
  display: inline-block;
  text-align: right;
  min-width: 6em;
  max-width: 30vw;
  margin-right: 0.5rem;
  vertical-align: middle;
  flex: 0 0 auto;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#ulProfile .inp {
  display: inline-block;
  margin-left: 0.5rem;
  min-width: 4em;
  max-width: 60vw;
  width: 100%;
  vertical-align: middle;
  flex: 1 1 auto;
  box-sizing: border-box;
}

#liRegDate {
  display: block !important;
  background-color: whitesmoke !important;
  color: navy;
  text-align: center !important;
  font-size: 1.2em !important;
  font-weight: bold !important;
  padding: 6px;
}

#selRegNames + .choices .choices__inner,
#selRegNames + .choices .choices__list--dropdown,
#selRegNames + .choices .choices__list--dropdown .choices__item,
#selRegNames + .choices .choices__list[aria-expanded] .choices__item,
#selRegNames + .choices .choices__item--selectable {
  font-size: 12px !important; /* or your preferred size */
}

#pStringRegInfo {
  font-family: 'Oregon LDO', 'Lucida Handwriting', 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 1em;
  background: transparent;
  color: white;
  padding: 1em;
  text-align: center;
  margin: auto;
  border: 3px solid black;
  border-radius: 8px;
}