/* ==========================================================================
   UNICEF Canada Survey Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Survey Block Container - Alignment
   -------------------------------------------------------------------------- */
.en__component--svblock {
  max-width: 960px;
  margin: 0 auto;
  margin-top: 50px;
  padding: 0 40px;
}

/* --------------------------------------------------------------------------
   Survey Fields Container - Align with supporter fields
   -------------------------------------------------------------------------- */
.en__field--survey {
  max-width: 880px;
}

.en__field__element {
	display: inline-block !important;
}

/* --------------------------------------------------------------------------
   Text Input
   -------------------------------------------------------------------------- */
.en__field__input--text,
input[type="text"].en__field__input {
  width: 100%;
  max-width: 310px;
  padding: 10px;
  font-family: "Univers Light", Arial, sans-serif;
  font-size: 16px;
  color: rgb(46, 46, 46);
  background-color: rgb(255, 255, 255);
  border: 1px solid rgb(183, 183, 183);
  border-radius: 0;
  box-sizing: border-box;
  line-height: 24px;
}

.en__field__input--text:focus,
input[type="text"].en__field__input:focus {
  outline: none;
  border-color: rgb(28, 171, 226);
}

/* --------------------------------------------------------------------------
   Textarea
   -------------------------------------------------------------------------- */
.en__field__input--textarea,
textarea.en__field__input {
  width: 100%;
  max-width: 500px;
  min-height: 100px;
  padding: 10px;
  font-family: "Univers Light", Arial, sans-serif;
  font-size: 16px;
  color: rgb(46, 46, 46);
  background-color: rgb(255, 255, 255);
  border: 1px solid rgb(183, 183, 183);
  border-radius: 0;
  box-sizing: border-box;
  line-height: 24px;
  resize: vertical;
}

.en__field__input--textarea:focus,
textarea.en__field__input:focus {
  outline: none;
  border-color: rgb(28, 171, 226);
}

/* --------------------------------------------------------------------------
   Select
   -------------------------------------------------------------------------- */
.en__field__input--select,
select.en__field__input {
  width: 100%;
  max-width: 310px;
  padding: 10px;
  font-family: "Univers Light", Arial, sans-serif;
  font-size: 16px;
  color: rgb(46, 46, 46);
  background-color: rgb(255, 255, 255);
  border: 1px solid rgb(183, 183, 183);
  border-radius: 0;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23777779' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
  cursor: pointer;
}

.en__field__input--select:focus,
select.en__field__input:focus {
  outline: none;
  border-color: rgb(28, 171, 226);
}

.en__field--survey label {
  width: auto !important;
}

/* --------------------------------------------------------------------------
   Radio Buttons
   -------------------------------------------------------------------------- */
.en__field--radio .en__field__element,
.en__field__element--radio {
  /* display: block; */
}

body .en__field__element--select, .en__field__element--text {
	display: inline-block !important;
}

.en__field--radio .en__field__item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.en__field__input--radio,
input[type="radio"].en__field__input {
  /* Override hidden styles from site */
  position: static !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px;
  margin: 0;
  cursor: pointer;
  accent-color: rgb(28, 171, 226);
  -webkit-appearance: radio !important;
  -moz-appearance: radio !important;
  appearance: radio !important;
}

.en__field--radio .en__field__label--item {
  display: inline;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   Checkbox
   -------------------------------------------------------------------------- */
.en__field--checkbox .en__field__element,
.en__field__element--checkbox {
  display: block;
}

.en__field--checkbox .en__field__item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.en__field__input--checkbox,
input[type="checkbox"].en__field__input {
  /* Override hidden styles from site */
  position: static !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px;
  margin: 0;
  cursor: pointer;
  accent-color: rgb(28, 171, 226);
  -webkit-appearance: checkbox !important;
  -moz-appearance: checkbox !important;
  appearance: checkbox !important;
}

/* Hide custom styled checkbox pseudo-elements */
.en__field--checkbox .en__field__label--item::before,
.en__field--checkbox .en__field__label--item::after {
  display: none !important;
}

.en__field--checkbox .en__field__label--item {
  display: inline;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font-weight: 400;
}

.en__field--checkbox input[type="checkbox"] + label {
  padding-left: 0 !important;
}

/* --------------------------------------------------------------------------
   Radio with Input (Other field)
   -------------------------------------------------------------------------- */
.en__field__input--other {
  width: 100%;
  max-width: 300px;
  padding: 10px;
  font-family: "Univers Light", Arial, sans-serif;
  font-size: 16px;
  color: rgb(46, 46, 46);
  background-color: rgb(255, 255, 255);
  border: 1px solid rgb(183, 183, 183);
  border-radius: 0;
  box-sizing: border-box;
  margin-top: 8px;
}

.en__field__input--other:focus {
  outline: none;
  border-color: rgb(28, 171, 226);
}

.en__field__item.en__field__item--other > input {
	margin-left: 0;
}

/* --------------------------------------------------------------------------
   Split Text - Inline fields
   -------------------------------------------------------------------------- */
.en__field--splittext .en__field__element,
.en__field__element--splittext {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 10px;
}

.en__field--splittext .en__field__item {
  display: inline-block !important;
  width: auto !important;
}

.en__field__input--splittext {
  width: 150px;
  max-width: none;
  padding: 10px;
  font-family: "Univers Light", Arial, sans-serif;
  font-size: 16px;
  color: rgb(46, 46, 46);
  background-color: rgb(255, 255, 255);
  border: 1px solid rgb(183, 183, 183);
  border-radius: 0;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Split Select - Inline fields
   -------------------------------------------------------------------------- */
.en__field--splitselect .en__field__element,
.en__field__element--splitselect {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 10px;
}

.en__field--splitselect .en__field__item {
  display: inline-block !important;
  width: auto !important;
}

.en__field__input--splitselect {
  width: 150px;
  max-width: none;
  padding: 10px;
  font-family: "Univers Light", Arial, sans-serif;
  font-size: 16px;
  color: rgb(46, 46, 46);
  background-color: rgb(255, 255, 255);
  border: 1px solid rgb(183, 183, 183);
  border-radius: 0;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23777779' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Triple Text - Inline fields
   -------------------------------------------------------------------------- */
.en__field--tripletext .en__field__element,
.en__field__element--tripletext {
  display: flex !important;
  flex-direction: row !important;
  gap: 10px;
}

.en__field--tripletext .en__field__item,
.en__field.en__field--tripletext .en__field__item {
  display: inline-block !important;
  width: auto !important;
  flex: 0 0 auto !important;
}

.en__field__input--tripletext {
  width: 150px !important;
  max-width: none !important;
  padding: 10px;
  font-family: "Univers Light", Arial, sans-serif;
  font-size: 16px;
  color: rgb(46, 46, 46);
  background-color: rgb(255, 255, 255);
  border: 1px solid rgb(183, 183, 183);
  border-radius: 0;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Triple Select - Inline fields
   -------------------------------------------------------------------------- */
.en__field--tripleselect .en__field__element,
.en__field__element--tripleselect {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 10px;
}

.en__field--tripleselect .en__field__item {
  display: inline-block !important;
  width: auto !important;
}

.en__field__input--tripleselect {
  width: 150px;
  max-width: none;
  padding: 10px;
  font-family: "Univers Light", Arial, sans-serif;
  font-size: 16px;
  color: rgb(46, 46, 46);
  background-color: rgb(255, 255, 255);
  border: 1px solid rgb(183, 183, 183);
  border-radius: 0;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23777779' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Calendar / Date
   -------------------------------------------------------------------------- */
.en__field__input--calendar,
input[type="date"].en__field__input {
  width: 100%;
  max-width: 200px;
  padding: 10px;
  font-family: "Univers Light", Arial, sans-serif;
  font-size: 16px;
  color: rgb(46, 46, 46);
  background-color: rgb(255, 255, 255);
  border: 1px solid rgb(183, 183, 183);
  border-radius: 0;
  box-sizing: border-box;
  cursor: pointer;
}

.en__field__input--calendar:focus,
input[type="date"].en__field__input:focus {
  outline: none;
  border-color: rgb(28, 171, 226);
}

/* --------------------------------------------------------------------------
   Number Input
   -------------------------------------------------------------------------- */
.en__field__input--number,
input[type="number"].en__field__input {
  width: 100%;
  max-width: 200px;
  padding: 10px;
  font-family: "Univers Light", Arial, sans-serif;
  font-size: 16px;
  color: rgb(46, 46, 46);
  background-color: rgb(255, 255, 255);
  border: 1px solid rgb(183, 183, 183);
  border-radius: 0;
  box-sizing: border-box;
  line-height: 24px;
}

.en__field__input--number:focus,
input[type="number"].en__field__input:focus {
  outline: none;
  border-color: rgb(28, 171, 226);
}

/* --------------------------------------------------------------------------
   Telephone Input
   -------------------------------------------------------------------------- */
.en__field__input--telephone,
input[type="tel"].en__field__input {
  width: 100%;
  max-width: 250px;
  padding: 10px;
  font-family: "Univers Light", Arial, sans-serif;
  font-size: 16px;
  color: rgb(46, 46, 46);
  background-color: rgb(255, 255, 255);
  border: 1px solid rgb(183, 183, 183);
  border-radius: 0;
  box-sizing: border-box;
  line-height: 24px;
}

.en__field__input--telephone:focus,
input[type="tel"].en__field__input:focus {
  outline: none;
  border-color: rgb(28, 171, 226);
}

/* --------------------------------------------------------------------------
   Image Select - Inline items (always inline, including mobile)
   -------------------------------------------------------------------------- */
.en__field--imgselect .en__field__element,
.en__field__element--imgselect {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 20px;
}

.en__field--imgselect .en__field__item {
  display: inline-block !important;
  width: auto !important;
}

.en__imageSelectField {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  padding: 15px;
  border: 2px solid rgb(220, 220, 220);
  border-radius: 8px;
  transition: all 0.2s ease;
  background-color: rgb(255, 255, 255);
  min-width: 100px;
}

.en__imageSelectField:hover {
  border-color: rgb(28, 171, 226);
  box-shadow: 0 2px 8px rgba(28, 171, 226, 0.2);
}

.en__imageSelectField:has(input:checked),
.en__imageSelectField.en__imageSelectField--selected {
  border-color: rgb(28, 171, 226);
  background-color: rgb(240, 249, 253);
}

.en__imageSelectField img,
.en__imageSelectField__image {
  max-width: 80px;
  height: auto;
  margin-bottom: 10px;
  border-radius: 4px;
}

/* Hide radio inside image select - these use visual card selection */
.en__field--imgselect input[type="radio"],
.en__imageSelectField input[type="radio"],
.en__field__input--imageSelectField {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  visibility: hidden !important;
}

/* Hide the control container that shows radio buttons */
.en__imageSelectField__control input[type="radio"] {
  display: none !important;
}

.en__imageSelectField span,
.en__imageSelectField__label {
  font-family: "Univers Light", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: rgb(46, 46, 46);
  text-align: center;
}

/* --------------------------------------------------------------------------
   H1 Headings
   -------------------------------------------------------------------------- */
.en__component--copyblock h1,
.en__component h1 {
  font-family: UniversLT-CondensedBold, Arial, sans-serif;
  font-size: 35px;
  font-weight: 400;
  color: rgb(28, 171, 226);
  line-height: 42px;
  padding: 0 0 17.5px;
  margin: 0 0 15px;
}

/* --------------------------------------------------------------------------
   H2 Headings
   -------------------------------------------------------------------------- */
.en__component--copyblock h2,
.en__component h2 {
  font-family: UniversLT-CondensedBold, Arial, sans-serif;
  font-size: 28px;
  font-weight: 400;
  color: rgb(119, 119, 121);
  line-height: 33.6px;
  padding: 0;
  margin: 0 0 15px;
}

/* --------------------------------------------------------------------------
   Paragraphs
   -------------------------------------------------------------------------- */
.en__component--copyblock p,
.en__component p {
  font-family: "Univers Light", Arial, sans-serif;
  font-size: 17px;
  font-weight: 400;
  color: rgb(0, 0, 0);
  line-height: 25.5px;
  padding: 0;
  margin: 0 0 15px;
}

/* --------------------------------------------------------------------------
   Field Labels - Inline (no wrapping)
   -------------------------------------------------------------------------- */
.en__field__label {
  display: block;
  font-family: "Univers Light", Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: rgb(0, 0, 0);
  padding: 6px 0;
  margin: 0 0 2px;
  line-height: 24px;
}

.en__field__label--positionabove {
  padding: 6px 0;
  margin-bottom: 4px;
}

/* --------------------------------------------------------------------------
   Field Container
   -------------------------------------------------------------------------- */
.en__field {
  padding: 0 0 20px;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Submit Button
   -------------------------------------------------------------------------- */
.en__submit button,
button[type="submit"] {
  background-color: rgb(28, 171, 226);
  color: rgb(255, 255, 255);
  font-family: "Univers Light", Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 12px 40px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.en__submit button:hover,
button[type="submit"]:hover {
  background-color: rgb(26, 157, 209);
}

.en__submit button:focus,
button[type="submit"]:focus {
  outline: 2px solid rgb(28, 171, 226);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Mobile Responsive - Stack split fields but keep image selects inline
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
 

  .en__field--survey {
    max-width: 100%;
  }

  .en__field--splittext .en__field__element,
  .en__field__element--splittext,
  .en__field--splitselect .en__field__element,
  .en__field__element--splitselect,
  .en__field--tripletext .en__field__element,
  .en__field__element--tripletext,
  .en__field--tripleselect .en__field__element,
  .en__field__element--tripleselect {
    flex-direction: column !important;
  }

  .en__field__input--splittext,
  .en__field__input--splitselect,
  .en__field__input--tripletext,
  .en__field__input--tripleselect {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Image selects stay inline on mobile - do NOT stack */
  .en__field--imgselect .en__field__element,
  .en__field__element--imgselect {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: flex-start;
    gap: 15px;
  }

  .en__imageSelectField {
    padding: 10px;
    min-width: 80px;
  }

  .en__imageSelectField img,
  .en__imageSelectField__image {
    max-width: 60px;
  }

  .en__field__label,
  .en__field__label--positionabove {
    white-space: normal !important;
  }

  .en__field__input--text,
  .en__field__input--select,
  .en__field__input--textarea,
  .en__field__input--number,
  .en__field__input--telephone,
  .en__field__input--calendar,
  .en__field__input--other {
    max-width: 100% !important;
  }
}

@media screen and (max-width: 619px) {
   .en__component--svblock {
    padding: 0 20px;
    margin-top: 30px;
  }
}