/* Replaces behaviour that Webflow (incl. its interactions), jQuery and nice-select used to add at runtime */

/* The original hid every section's content in CSS until GSAP ran (a script failure meant a blank page).
   Content is visible by default now and only hidden while the reveal script is actually running. */
.u-container > * { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .js-reveal .u-container > * { opacity: 0; }
}

/* Dropdown interactions (were Webflow IX2: "Dropdown Opens/Closes/Hover"):
   the plus turns into a cross and goes blue when open, darkens on hover, and the row gets a soft tint */
.dropdown { transition: background-color .15s; }
.dropdown:not(.is--pricing):hover { background-color: rgba(247, 241, 238, .25); }
.dropdown:hover .dropdown__arrow { color: var(--swatch--black-grey); }
.dropdown__toggle.w--open .dropdown__arrow { transform: rotate(45deg); color: var(--swatch--blue-main); }
@media (prefers-reduced-motion: no-preference) {
  .dropdown__answer.w--open { animation: dd-in .25s ease-out; }
  @keyframes dd-in { from { opacity: 0; transform: translateY(-6px); } }
}
.w-dropdown-toggle:focus-visible, .w-slider-arrow-left:focus-visible, .w-slider-arrow-right:focus-visible, .w-slider-dot:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* Inquiry purpose: native select styled like the other fields (was the nice-select jQuery plugin) */
select.form_main_field_input {
  appearance: none;
  height: calc(2 * var(--size--2rem) + 2px);  /* same box as the text inputs (their height comes from padding) */
  padding-top: 0; padding-bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%239a4844' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
}

/* Demo form */
.demo-note { margin-top: .5rem; font-size: .875rem; opacity: .75; }
