/* Form styles for cprep_reg / forms_v2 (moved from form.css) */

.form_title {
  text-align: center;
}

.full_form_input_title {
  width: 1014px;
  height: 50px;
  background-color: #424141;
  font-family: oswald_reg, Oswald, Arial, Helvetica, sans-serif;
  font-size: 32px;
  color: #fff;
}

.full_form_input {
  width: 1014px;
  height: 60px;
  font-size: 22px;
}

.half_form_input_title {
  width: 502px;
  height: 50px;
  background-color: #424141;
  font-family: oswald_reg, Oswald, Arial, Helvetica, sans-serif;
  font-size: 32px;
  color: #fff;
}

.half_form_input {
  width: 502px;
  height: 60px;
  font-size: 22px;
}

.threeforths_form_input_title {
  width: 702px;
  height: 50px;
  background-color: #424141;
  font-family: oswald_reg, Oswald, Arial, Helvetica, sans-serif;
  font-size: 32px;
  color: #fff;
}

.threeforths_form_input {
  width: 702px;
  height: 60px;
  font-size: 22px;
}

.third_form_input_title {
  width: 302px;
  height: 50px;
  background-color: #424141;
  font-family: oswald_reg, Oswald, Arial, Helvetica, sans-serif;
  font-size: 32px;
  color: #fff;
}

.third_form_input {
  width: 302px;
  height: 60px;
  font-size: 22px;
}

.guardian_input .form_title {
  background-color: #1a4176;
}

.full_form_container_inputs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Paid-program fee blurb — box width follows text */
.full_form_container_inputs.payment_summary_box {
  flex-direction: column;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.payment_summary_box .payment_summary_text {
  margin: 0;
  font-size: 1.1rem;
  width: fit-content;
  max-width: 100%;
  color: #000;
}

.payment_summary_box .form_title {
  color: #000;
}

/* Submit / Continue to Payment — button width follows label */
.form_reg_submit_btn {
  background-color: #1a4176;
  margin: 5%;
  width: fit-content;
  min-width: 200px;
  height: 50px;
  padding: 0 1.5rem;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 30px;
  font-family: oswald_bold, oswald_reg, sans-serif;
  cursor: pointer;
  box-sizing: border-box;
  white-space: nowrap;
}

.form_reg_submit_btn:hover {
  background-color: #000d15;
}

.form_reg_submit_btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

/* Organization / adult registration form layout */
.reg_form_page {
  padding: 32px 0 48px;
  background: #fff;
}

.reg_form_wrap {
  width: min(920px, 92%);
  margin: 0 auto;
  box-sizing: border-box;
}

.reg_form_heading {
  margin: 0 0 8px;
  font-family: oswald_reg, Oswald, Arial, Helvetica, sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  color: #1a4176;
  font-weight: 600;
}

.reg_form_lede {
  margin: 0 0 28px;
  color: #333;
  line-height: 1.45;
  max-width: 42em;
}

.reg_form_lede a {
  color: #1a4176;
  text-decoration: underline;
}

.reg_form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.reg_field_row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.reg_field {
  flex: 1 1 240px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}

.reg_field_full {
  flex: 1 1 100%;
}

.reg_field_wide {
  flex: 2 1 320px;
}

.reg_field_narrow {
  flex: 1 1 180px;
}

.reg_label {
  font-family: oswald_reg, Oswald, Arial, Helvetica, sans-serif;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: #424141;
  padding: 10px 12px;
  margin: 0;
  box-sizing: border-box;
}

.reg_control {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  height: 48px;
  min-height: 48px;
  margin: 0;
  padding: 10px 12px;
  font-size: 18px;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.2;
  border: 1px solid #c9c9c9;
  background: #fff;
  color: #000;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
}

select.reg_control {
  appearance: auto;
  -webkit-appearance: menulist;
}

textarea.reg_control,
.reg_control_textarea {
  height: auto;
  min-height: 140px;
  resize: vertical;
  line-height: 1.4;
}

.reg_optional {
  font-size: 0.75em;
  font-weight: normal;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0.85;
}

.reg_honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.reg_control:focus {
  outline: 2px solid #1a4176;
  outline-offset: 1px;
}

.reg_eula_label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 16px;
  line-height: 1.4;
  color: #000;
  background: transparent;
  text-transform: none;
  letter-spacing: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
}

.reg_eula_label input {
  margin-top: 4px;
  flex-shrink: 0;
}

.reg_actions {
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.reg_actions .form_reg_submit_btn {
  margin: 0;
}

.reg_form .payment_summary_box {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 16px;
  border: 1px solid #c9c9c9;
  background: #f7f7f7;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.reg_form .payment_summary_box .form_title {
  font-family: oswald_reg, Oswald, Arial, Helvetica, sans-serif;
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
  color: #1a4176;
}

.reg_guardian {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 8px;
  border-top: 1px solid #c9c9c9;
  margin-bottom: 0;
}

.reg_guardian_heading {
  margin: 0;
  font-family: oswald_reg, Oswald, Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
  color: #1a4176;
}

.reg_form_meta {
  margin: 0 0 1.25rem;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.4;
}

.reg_section_heading {
  margin: 8px 0 0;
  font-family: oswald_reg, Oswald, Arial, Helvetica, sans-serif;
  font-size: clamp(22px, 3vw, 28px);
  color: #1a4176;
  font-weight: 600;
}

.reg_legal {
  color: #222;
  line-height: 1.55;
}

.reg_legal h2 {
  margin: 1.5rem 0 0.5rem;
  font-family: oswald_reg, Oswald, Arial, Helvetica, sans-serif;
  font-size: 1.15rem;
  color: #1a4176;
  font-weight: 600;
}

.reg_legal p {
  margin: 0 0 0.85rem;
}

.reg_legal a,
.reg_legal_nav a {
  color: #1a4176;
  text-decoration: underline;
}

.reg_legal_nav {
  margin: 1.5rem 0 0;
}

html.reg_legal_in_frame {
  background: #fff;
}

html.reg_legal_in_frame .reg_form_page {
  padding: 12px 0 20px;
}

html.reg_legal_in_frame .reg_legal_nav_standalone {
  display: none;
}

.agreement-terms-frame {
  display: block;
  width: 100%;
  min-height: 420px;
  height: 50vh;
  max-height: 640px;
  margin: 0 0 28px;
  border: 1px solid #c9c9c9;
  background: #fff;
  box-sizing: border-box;
}

.reg_fieldset {
  margin: 0;
  padding: 0;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.reg_radio_group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border: 1px solid #c9c9c9;
  background: #fff;
}

.reg_radio_label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 16px;
  line-height: 1.4;
  color: #000;
  cursor: pointer;
}

.reg_radio_label input {
  margin-top: 3px;
  flex-shrink: 0;
}

.reg_status {
  min-height: 1.4em;
  text-align: center;
  color: #333;
  font-size: 16px;
}

@media only screen and (max-width: 720px) {
  .reg_form_page {
    padding: 20px 0 36px;
  }

  .reg_field_row {
    flex-direction: column;
    gap: 18px;
  }

  .reg_field,
  .reg_field_wide,
  .reg_field_narrow {
    flex: 1 1 100%;
    width: 100%;
  }

  .reg_label {
    font-size: 14px;
  }

  .reg_control,
  .reg_form input.reg_control,
  .reg_form select.reg_control {
    width: 100%;
    height: 48px;
    min-height: 48px;
    font-size: 16px;
  }

  .reg_form textarea.reg_control,
  .reg_control_textarea {
    height: auto;
    min-height: 140px;
    font-size: 16px;
  }
}

.section_break {
  display: flex;
  gap: 10px;
  height: 120px;
  justify-content: center;
}

.full {
  width: 70%;
  background-color: #424141;
  font-family: oswald_reg, Oswald, Arial, Helvetica, sans-serif;
  font-size: 22px;
  color: #fff;
  text-align: center;
}

.full input {
  width: 100%;
  height: 60px;
  font-size: 22px;
}

.half {
  width: 502px;
  height: 50px;
  background-color: #424141;
  font-family: oswald_reg, Oswald, Arial, Helvetica, sans-serif;
  font-size: 22px;
  color: #fff;
  text-align: center;
}

.half input {
  width: 100%;
  height: 60px;
  font-size: 22px;
}

.quarter {
  width: 245px;
  height: 50px;
  background-color: #424141;
  font-family: oswald_reg, Oswald, Arial, Helvetica, sans-serif;
  font-size: 22px;
  color: #fff;
  text-align: center;
}

.quarter input {
  width: 100%;
  height: 60px;
  font-size: 22px;
}

.eighth {
  width: 120px;
  height: 50px;
  background-color: #424141;
  font-family: oswald_reg, Oswald, Arial, Helvetica, sans-serif;
  font-size: 22px;
  color: #fff;
  text-align: center;
}

.eighth input {
  width: 100%;
  height: 60px;
  font-size: 22px;
}

#guardian_container:not(.reg_guardian) {
  margin-bottom: 20px;
}

.references_div {
  padding: 5px 0px 30px 0px;
  font-family: oswald_reg;
  color: #1a4176;
  font-weight: bold;
  margin: auto;
  color: #1a4176;
  width:70%;
}

.references_div:nth-child(1){
  color: #424141;
}

@media only screen and (max-width: 600px) {
  .section_break {
    display: flex;
    height: auto;
    flex-wrap: wrap;
    justify-content: center;
  }

  .eighth {
    width: 300px;
    height: 100px;
    margin-bottom: 10px;
    background-color: #fff;
    color: #424141;
  }

  .quarter div {
    width: 100%;
  }

  .quarter {
    width: 300px;
    height: 100px;
    margin-bottom: 10px;
    background-color: #fff;
    color: #424141;
  }

  .half {
    width: 300px;
    height: 100px;
    margin-bottom: 10px;
    background-color: #fff;
    color: #424141;
  }

  /* Legacy fixed-width forms only — do not affect .reg_control */
  input[type="text"]:not(.reg_control) {
    width: 100%;
    height: 50px;
  }

  .full_form_input_title {
    width: 70%;
    height: 50px;
    background-color: #424141;
    font-family: oswald_reg, Oswald, Arial, Helvetica, sans-serif;
    font-size: 32px;
    color: #fff;
  }

  .full_form_input {
    width: 90%;
    height: 60px;
    font-size: 22px;
  }

  .half_form_input_title {
    width: 100%;
    height: 50px;
    background-color: #424141;
    font-family: oswald_reg, Oswald, Arial, Helvetica, sans-serif;
    font-size: 32px;
    color: #fff;
  }

  .half_form_input {
    width: 90%;
    height: 60px;
    font-size: 22px;
  }

  .threeforths_form_input_title {
    width: 100%;
    height: 50px;
    background-color: #424141;
    font-family: oswald_reg, Oswald, Arial, Helvetica, sans-serif;
    font-size: 32px;
    color: #fff;
  }

  .threeforths_form_input {
    width: 100%;
    height: 60px;
    font-size: 22px;
  }

  .third_form_input_title {
    width: 100%;
    height: 50px;
    background-color: #424141;
    font-family: oswald_reg, Oswald, Arial, Helvetica, sans-serif;
    font-size: 32px;
    color: #fff;
  }

  .third_form_input {
    width: 100%;
    height: 60px;
    font-size: 22px;
  }

  .guardian_input .form_title {
    background-color: #1a4176;
    width: 100%;
  }

  .form_title {
    width: 100%;
  }

  .full_form_container_inputs {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }

  main .full_form_container_inputs input[type="button"] {
    margin-top: 40px !important;
    margin-bottom: 24px !important;
  }
}
