/*
 * WLT Carbon Calculator (Honeycom3)
 * Trimmed + rewritten from legacy carbon-calculator.css / main.css
 * Scope: only pages under /carbon-calculator/ (via body class added by MU plugin)
 */

/* ------------------------------------------------------------------------- */
/* Scope + safe resets                                                     */
/* ------------------------------------------------------------------------- */

.frm_forms.with_frm_style,
.frm_forms.with_frm_style * {
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

.frm_combo_inputs_container,
.frm_form_fields .frm_section_heading,
.frm_form_fields .frm_fields_container,
.frm_grid_container:not(.frm_toggle_container) {
  display: block !important;
  margin:0;
}

/* ------------------------------------------------------------------------- */
/* Form layout                                                            */
/* ------------------------------------------------------------------------- */

.frm_forms form {
  width: 100%;
  max-width: none;
}

.frm_forms form .frm_form_field {
  margin-left: auto;
  margin-right: auto;
  position: relative;
  width: 100%;
}

/* Thirds used on some calculators */
.frm_forms form .frm_form_field.frm_third {
  margin-left: 0;
}
.frm_forms form .frm_form_field.frm_third.frm_first {
  margin-left: 0;
}

/* Headings inside multi-page forms */
.frm_forms.with_frm_style h3,
.frm_forms.with_frm_style .frm-show-form .frm_section_heading h3 {
  text-align: center;
  font-family: 'Dunbar Low', sans-serif;
}

/* ------------------------------------------------------------------------- */
/* Inputs + labels                                                        */
/* ------------------------------------------------------------------------- */

.frm_forms.with_frm_style label.frm_primary_label {
  font-size: 1rem;
  font-weight: normal;
}

.frm_forms.with_frm_style label {
  font-family: "Poppins", sans-serif;
}

/* Match legacy input appearance */
.frm_forms.with_frm_style input[type="text"],
.frm_forms.with_frm_style input[type="number"],
.frm_forms.with_frm_style input[type="email"],
.frm_forms.with_frm_style input[type="password"],
.frm_forms.with_frm_style input[type="tel"],
.frm_forms.with_frm_style input[type="url"],
.frm_forms.with_frm_style select,
.frm_forms.with_frm_style textarea {
  background: transparent;
  box-shadow: none;
  height: 2.3em;
  opacity: 1;
  padding: 1.4rem 1em;
  transition: all .3s;
  border-radius: 12px;
  border: 1px solid #188045;
  font-size: 1.125rem;
  width: 100%;
}

.frm_forms.with_frm_style textarea {
  height: auto;
  min-height: 6em;
}

/* Datepicker icon positioning */
.frm_forms.with_frm_style .frm_form_field img.ui-datepicker-trigger {
  position: absolute;
  right: .5em;
  bottom: .45em;
}

/* Field descriptions align */
.frm_forms.with_frm_style .frm_form_field .frm_description {
  text-align: right;
}
.frm_forms.with_frm_style .frm_form_field.frm_section_heading .frm_description {
  text-align: left;
}
.frm_forms.with_frm_style .frm_form_field.horizontal_radio .frm_description {
  text-align: left;
}

/* ------------------------------------------------------------------------- */
/* GBP add-on (Cost to offset)                                             */
/* ------------------------------------------------------------------------- */

.frm_forms.with_frm_style .input-add-on {
  display: table;
  width: 100%;
}
.frm_forms.with_frm_style .input-add-on input {
  display: table-cell;
  border-radius: 0 12px 12px 0;
}
.frm_forms.with_frm_style .input-add-on--item {
  display: table-cell;
  text-align: center;
  font-weight: 700;
  color: #fff;
  background: #04c2af;
  vertical-align: middle;
  padding: 0 .35em;
  white-space: nowrap;
}

/* ------------------------------------------------------------------------- */
/* Hide “Total” HTML field (Formidable Product Add-ons total)              */
/* ------------------------------------------------------------------------- */
.frm_form_field.hide.frm_html_container,
.frm_html_container.hide {
  display: none !important;
}

.frm_fields_container .frm_form_field {
  margin:0;
}

/* ------------------------------------------------------------------------- */
/* Buttons                                                                */
/* ------------------------------------------------------------------------- */

.frm_forms.with_frm_style .frm_submit {
  text-align: center;
}

.frm_forms.with_frm_style .submit_description {
  font-size: 12px;
  margin-top: 0px;
  text-align: center;
}

.frm_forms.with_frm_style .frm_button_submit {
  width: 100%;
  padding: 16px 11px;
  background: #e71c22;
  color: #fff;
  border-radius: 80px;
  border: none;
  font-size: 18px;
  font-family: 'Dunbar Low', sans-serif;
}

.frm_current_page .frm_rootline_title {
  color:#188045 !important;
}

.frm_rootline_title {
  color: black !important;
}

.frm_remove_form_row .frm_button {
  svg {
    top: -3px !important;
    position: relative !important;
  }

}

.with_frm_style .frm_repeat_sec .frm_form_field.frm_repeat_buttons svg.frm-svg-icon {
  
}

/* Repeater add/remove buttons (Flights journey, etc.) */
body.wlt-carbon-calculator-page .frm_forms.with_frm_style .frm_repeat_sec {
  border-top: 2px solid #e8e8e8;
  margin: 1em 0;
  padding-top: 1em;
}
body.wlt-carbon-calculator-page .frm_forms.with_frm_style .frm_repeat_sec.frm_first_repeat {
  border-top: 0;
  padding-top: 0;
}
body.wlt-carbon-calculator-page .frm_forms.with_frm_style .frm_repeat_buttons {
  text-align: center;
}
body.wlt-carbon-calculator-page .frm_forms.with_frm_style .frm_repeat_buttons .frm_button {
  background: #04c2af;
  border: none;
  border-radius: 0;
  color: #fff;
  display: inline-block;
  opacity: 1;
  padding: 4px 11px;
  transition: all .3s;
}
body.wlt-carbon-calculator-page .frm_forms.with_frm_style .frm_repeat_buttons .frm_button:hover {
  transform: translateY(-5px);
}
body.wlt-carbon-calculator-page .frm_forms.with_frm_style .frm_repeat_buttons .frm_button i:before {
  color: #fff;
}

/* ------------------------------------------------------------------------- */
/* Airport / station search dropdowns                                      */
/* ------------------------------------------------------------------------- */
.frm_style_formidable-style.with_frm_style .form-field {
  margin:0.5rem 0 !important;
}

.form-field {
  position: relative;
}

body.wlt-carbon-calculator-page .form-field .results {
  padding: .5em;
  width: 75%;
  position: absolute;
  top: -21px;
  left: 0;
  background: #fff;
  border: 1px solid #eee;
  z-index: 9;
  display: none;
}

body.wlt-carbon-calculator-page .form-field .results .name {
  cursor: pointer;
  padding: .5em 1em;
  margin-left: -0.5em;
  margin-right: -0.5em;
}

body.wlt-carbon-calculator-page .form-field .results .name:hover,
body.wlt-carbon-calculator-page .form-field .results .name.selected {
  background: #eee;
}

/* Train dropdown variant */
body.wlt-carbon-calculator-page .form-field .results.results--train {
  list-style: none;
  width: 100%;
  top: 42px;
  display: block;
}

body.wlt-carbon-calculator-page .form-field .results.results--train .name {
  font-size: 14px;
  text-transform: capitalize;
  color: #666;
}

/* Title-case inputs */
body.wlt-carbon-calculator-page .train-from input,
body.wlt-carbon-calculator-page .train-to input {
  text-transform: capitalize;
}

/* ------------------------------------------------------------------------- */
/* Multi-page progress (“rootline”)                                        */
/* ------------------------------------------------------------------------- */

body.wlt-carbon-calculator-page .frm_form_fields .frm_rootline_group {
  font-size: .9em;
}

body.wlt-carbon-calculator-page .frm_form_fields .frm_rootline_group .frm_progress_line input,
body.wlt-carbon-calculator-page .frm_form_fields .frm_rootline_group .frm_progress_line input:disabled {
  border-top: none;
  border-bottom: none;
  box-shadow: none;
  padding: 0;
  height: 10px;
  transition: all .3s;
  opacity: 1;
}

body.wlt-carbon-calculator-page .frm_form_fields .frm_rootline_group .frm_progress_line input:hover,
body.wlt-carbon-calculator-page .frm_form_fields .frm_rootline_group .frm_progress_line input:focus,
body.wlt-carbon-calculator-page .frm_form_fields .frm_rootline_group .frm_progress_line input:disabled:hover,
body.wlt-carbon-calculator-page .frm_form_fields .frm_rootline_group .frm_progress_line input:disabled:focus {
  background-color: #ccc;
}

body.wlt-carbon-calculator-page .frm_form_fields .frm_rootline_group .frm_progress_line input[type="button"] {
  border-radius: 0 !important;
}

/* Back button colour used by some multi-step forms */
body.wlt-carbon-calculator-page .frm_form_fields .frm_rootline_group .frm_progress_line input.frm_page_back {
  background-color: #04c2af;
}

body.wlt-carbon-calculator-page .frm_forms .frm_form_field.hide,
body.wlt-carbon-calculator-page .frm_forms .frm_form_field.hide.frm_html_container,
body.wlt-carbon-calculator-page .frm_forms .frm_html_container.hide,
body.wlt-carbon-calculator-page .frm_forms .hide {
  display: none;
  visibility: hidden;
  height: 0;
  overflow: hidden;
}

body.wlt-carbon-calculator-page .frm_forms .frm_form_field.type-of-flight { display: none; }
body.wlt-carbon-calculator-page .frm_forms .frm_form_field.type-of-flight.is-active {
  display: block !important;
}

body.wlt-carbon-calculator-page .frm_forms .gbp.calculate-total .frm_input_group.frm_hidden {
  display: block !important;
  visibility: visible !important;
  height: auto !important;
  overflow: visible !important;
}