﻿/* Import font variables */
@import url('font-variables.css');
@import url('color-variables.css');

.formContainer {
  background-color: var(--offWhite);
  margin-top: 35px;
  padding: 0px 32px;
}

.fromPageContainer .container {
  padding: 0 20px;
}

.umbraco-forms-form, .umbraco-forms-submitmessage-html {
  max-width: 1190px;
  margin-left: auto;
  margin-right: auto;
  padding: 0px 20px;
}

.umbraco-forms-caption {
  font-size: 48px !important;
  line-height: 2em !important;
}

.umbraco-forms-page fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

  .umbraco-forms-page fieldset:not(:first-child) {
    border-top: 4px solid var(--secondary);
  }

.umbraco-forms-container {
  padding: 0;
}

.umbraco-forms-field. {
  font-family: var(--font-family-main);
}

  .umbraco-forms-field.dropdown .umbraco-forms-field-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
  }

    .umbraco-forms-field.dropdown .umbraco-forms-field-wrapper select {
      appearance: none;
      -webkit-appearance: none;
      -moz-appearance: none;
      width: 100%;
      height: 60px;
      border: 1px solid var(--primary);
      border-radius: 5px;
      padding: 0 40px 0 15px;
      font-size: 16px;
      background: var(--white);
      cursor: pointer;
      outline: none;
    }

.custom-dropdown-overlay:not(.active):after {
  content: '';
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 12px solid var(--primary);
  pointer-events: none;
  z-index: 100;
}

.custom-dropdown-overlay.active:after {
  content: '';
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 12px solid var(--primary);
  pointer-events: none;
  z-index: 100;
}
.umbraco-forms-field.dropdown.enhanced .umbraco-forms-field-wrapper {
  position: relative;
}

    .umbraco-forms-field.dropdown.enhanced .umbraco-forms-field-wrapper select {
      position: relative;
      z-index: 1;
    }

.custom-dropdown-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--white);
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 5px;
  padding: 0 40px 0 15px;
  display: flex;
  align-items: center;
  cursor: pointer;
  z-index: 2;
  font-size: 16px;
  transition: all 0.3s ease;
}

.custom-options {
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  color: var(--primary);
  background: var(--white);
  border-top: none;
  border-radius: 0 0 5px 5px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

  .custom-options.show {
    opacity: 1;
    visibility: visible;
    border: 1px solid var(--primary);
  }

  /* Likert Scale styling */
.likertscale .umbraco-forms-field-wrapper .survey-question-field thead {
  background: var(--bg-dark);
}


/* Custom option styling */
.custom-option {
  font-family: var(--font-family-main);
  padding: 15px;
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

  .custom-option:last-child {
    border-bottom: none;
  }

  .custom-option:hover {
    background-color: var(--primary);
    color: var(--white);
  }

  .custom-option.selected {
    background-color: var(--offWhite);
    color: var(--primary);

  }

/* Option icons/badges */
.option-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 12px;
  color: var(--white);
}

/* Option descriptions */
.option-content {
  flex: 1;
}

.option-title {
  font-weight: 600;
  margin-bottom: 2px;
}

.option-description {
  font-size: 14px;
  color: #666;
  line-height: 1.3;
}

.custom-option.selected .option-description {
  color: rgba(255,255,255,0.8);
}

/* Hide original select */
.umbraco-forms-field.dropdown.enhanced select {
  opacity: 0;
  position: absolute;
  z-index: -1;
}

/* Placeholder text */
.placeholder-text {
  color: var(--text);
}

/* Labels */
.umbraco-forms-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-dark);
}

.umbraco-forms-indicator {
  color: var(--red-energy);
}

/* Focus styles for accessibility */
.custom-dropdown-overlay:focus-visible {
  outline: 2px solid var(--hover-blue);
  outline-offset: 2px;
}

/* Animation for arrow rotation */
.enhanced .umbraco-forms-field-wrapper::after {
  transition: transform 0.3s ease;
}

.umbraco-forms-field-wrapper h2 {
  margin-bottom: 10px;
}

.umbraco-forms-page legend {
  line-height: 26px;
  font-family: var(--font-family-main);
  font-style: normal;
  color: var(--primary);
  letter-spacing: var(--font-letter-spacing-normal);
  font-size: 28px;
  font-weight: 400;
  padding-top: 30px;
  padding-bottom: 10px;
  width: 100%;
  border-bottom: 4px solid var(--secondary);
}

.umbraco-forms-field-wrapper p {
  padding-top: 20px;
}

.umbraco-forms-page label {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.625rem;
  font-family: var(--font-family-main);
  font-style: normal;
  color: var(--primary);
  letter-spacing: var(--font-letter-spacing-wide);
  padding-top: 15px;
  display: inline-block;
}

.umbraco-forms-tooltip {
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  font-family: var(--font-family-main);
  font-style: normal;
  color: var(--primary);
  letter-spacing: var(--font-letter-spacing-normal);
}

.umbraco-forms-field-wrapper input {
  border: 1px solid var(--primary);
  width: 100%;
  height: 60px;
  box-sizing: border-box;
  border-radius: 5px;
}

.umbraco-forms-field-wrapper textarea {
  border: 1px solid var(--primary);
  width: 100%;
  height: 142px;
  padding-top: 10px;
  border-radius: 5px;
  box-sizing: border-box;
}

.umbraco-forms-field-wrapper select {
  width: 100%;
  height: 60px;
  border: 1px solid var(--primary);
  border-radius: 5px;
  text-align: center;
}

.umbraco-forms-navigation input[type="submit"] {
  border-radius: 5px;
  padding: 20px 60px;
  min-width: 224px;
  background-color: var(--secondary);
  border-style: none;
  color: white;
  font-size: 18px;
  font-weight: 700;
  margin-top: 10px;
  flex-wrap: wrap;
  white-space: inherit;
  transition: 0.3s;
  border: 1px solid var(--secondary);
}

.umbraco-forms-navigation {
  text-align: right;
  padding: 65px 0;
}

.umbraco-forms-page {
  padding-top: 65px;
}

.checkboxlist, .radiobuttonlist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

  .radiobuttonlist label, .checkboxlist label, .formCheckBox label {
    padding-top: 0px;
  }

.pika-table th {
  color: white !important;
}

input, select, textarea {
  padding-left: 10px;
  color: var(--primary);
}

  textarea:focus, input:focus {
    color: var(--primary);
  }


.select2-results__option--highlighted,
.select2-results__option:hover {
  background: var(--primary) !important;
}

.select2-results__option {
  color: var(--primary);
}

.select2-container--default .select2-selection--single {
  border: 2px solid var(--primary);
  color: var(--primary);
}

  .select2-container--default .select2-selection--single .select2-selection__arrow b {
    background-image: url('../img/purpleDownArrow.svg');
    background-repeat: no-repeat;
    height: 20px;
    width: 30px;
    top: 46%;
    left: -16px;
    border: none;
    right: 13px;
  }

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  background-image: url('../img/purpleDownArrow.svg');
  background-repeat: no-repeat;
  height: 20px;
  width: 30px;
  top: 33%;
  left: -24px;
  border: none;
  transform: rotate(180deg);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--primary);
}

.select2-dropdown--below {
  border: 2px solid var(--primary) !important;
}

input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 20px;
  width: 20px;
  z-index: 2;
}

.formRadioButton {
  position: absolute;
  height: 20px;
  width: 20px;
  background-color: var(--white);
  border-radius: 50%;
  margin: 5px 0;
  border: 1px solid var(--primary);
}

input:hover ~ .formRadioButton {
  background-color: #ccc;
}

input:checked ~ .formRadioButton {
  background-color: var(--primary);
}

.formRadioButton:after {
  content: "";
  position: absolute;
  display: none;
}

input:checked ~ .formRadioButton:after {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
  margin: 6px;
}

/*-------------------CHECK MARKS------------------*/

input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 50px;
  width: 27px;
  z-index: 2;
}

.formCheckBoxButton {
  position: absolute;
  height: 25px;
  width: 25px;
  background-color: var(--white);
  border: 1px solid var(--primary);
}

.formCheckBox .formCheckBoxButton:after, .isthistrue .formCheckBoxButton:after {
  left: 9px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

/* When the checkbox is checked, add a blue background */
.formCheckBox input:checked ~ .formCheckBoxButton, .isthistrue input:checked ~ .formCheckBoxButton {
  background-color: var(--primary);
}

.formCheckBox label, .formRdioButton label {
  padding-left: 35px;
}
/* Create the checkmark/indicator (hidden when not checked) */
.formCheckBoxButton:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.formCheckBox input:checked ~ .formCheckBoxButton:after, .isthistrue input:checked ~ .formCheckBoxButton:after {
  display: block;
}

/* Style the checkmark/indicator */
.formCheckBox .formCheckBoxButton:after, .isthistrue .formCheckBoxButton:after {
  left: 9px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

/*-------------------FILE------------------*/

input[type="file"] {
  font-size: 100px;
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  cursor: pointer;
}

.fileupload {
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.fileuploadButton {
  background-color: var(--primary);
  color: white;
  padding: 0 10px;
}

.fileUploadCustom {
  display: flex;
}

.fileUploadCustom:hover {
  cursor:pointer;
}

.fileUploadCustomWording {
  align-items: center;
  border: 2px solid var(--primary);
  padding: 0 10px;
  color: var(--primary);
}

.formLikertButton {
  margin: -5px 0;
}

.col, .col-1, .col-10, .col-11, .col-12, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-auto, .col-lg, .col-lg-1, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-auto, .col-md, .col-md-1, .col-md-10, .col-md-11, .col-md-12, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-auto, .col-sm, .col-sm-1, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-auto, .col-xl, .col-xl-1, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-auto {
  width: auto;
}

.error, .field-validation-error {
  font-size: 16px;
  font-weight: 700;
  line-height: 26px;
  font-style: normal;
  letter-spacing: var(--font-letter-spacing-normal);
  width: 100%;
  color: var(--red-energy) !important;
  padding: 0 !important;
}

.form-section {
  margin-bottom: 30px !important;
}

.body-text {
  margin: 0;
  font-family: var(--font-family-main);
  font-style: normal;
  font-size: 16px;
  font-weight: 400;
  color: var(--primary);
  line-height: 26px;
  letter-spacing: var(--font-letter-spacing-normal);
  padding-top: 20px;
}

/************Media queries************/
/* On screens that are 1280px or less*/
@media (max-width: 1280px) {
  .umbraco-forms-caption {
    font-size: 26px !important;
  }

  .umbraco-forms-page label {
    font-size: 14px;
  }

  .umbraco-forms-field-wrapper input, .custom-dropdown-overlay, .umbraco-forms-field.dropdown .umbraco-forms-field-wrapper select {
    height: 43px;
  }

  .custom-options {
    top: 43px;
  }

  .umbraco-forms-field-wrapper textarea {
    height: 86px;
  }

  .select2-container--default .select2-selection--single {
    height: 43px;
  }

    .select2-container--default .select2-selection--single .select2-selection__arrow b {
      top: 30%;
    }

  .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    top: 15%;
  }

  .select2-container {
    height: 43px;
    width: 100% !important;
  }

  .umbraco-forms-page label {
    padding-bottom: 0px;
  }

  .umbraco-forms-navigation {
    text-align: center;
  }

  .fromPageContainer .container {
    padding: 0 20px;
  }
}

.umbraco-forms-hidden {
  display: none;
}
