/*
 * Old-theme homepage forms, carried over from the legacy Brevo forms.
 *
 * Hero values come from wp_sib_model_forms row 6's `css` column and embedded
 * style block. Pre-footer values come from row 7's embedded style block. The
 * selectors and wrapper-dependent spacing are adapted to the flatter ARDE
 * form markup, following the same migration method as the SGH form.
 */

.arde-form--homepage-hero {
  color: #fff;
}

.arde-form--homepage-hero input[type="email"],
.arde-form--homepage-hero .arde-form-progressive > input[type="text"] {
  display: block;
  width: 100%;
  box-sizing: content-box;
  margin: 0;
  padding: 16px 12px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 6px;
  background: rgba(100, 100, 100, 0.4);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 18px;
  line-height: normal;
}

.arde-form--homepage-hero .arde-form-progressive > input[type="text"] {
  margin-bottom: 36.8632px;
  background: rgba(110, 110, 110, 0.4);
}

.arde-form--homepage-hero input::placeholder {
  color: rgba(255, 255, 255, 0.9);
  opacity: 1;
}

.arde-form--homepage-hero .arde-form-progressive {
  max-height: 0;
  margin: 22.8632px 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 600ms ease, opacity 600ms ease;
}

.arde-form--homepage-hero .arde-form-progressive.is-revealed {
  max-height: 800px;
  opacity: 1;
}

.arde-form--homepage-hero .arde-phone-field {
  display: block;
  margin: 22.8632px 0;
}

.arde-form--homepage-hero .arde-phone-picker {
  --iti-border-color: rgba(255, 255, 255, 0.5);
  --iti-country-selector-bg: rgba(75, 75, 75, 0.98);
  --iti-hover-color: rgba(255, 255, 255, 0.12);
  --iti-icon-color: rgba(255, 255, 255, 0.9);
  display: block;
  width: 100%;
  color: #fff;
}

.arde-form--homepage-hero .arde-phone-field input[type="tel"] {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 16px 12px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 6px;
  background: rgba(110, 110, 110, 0.4);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 18px;
  line-height: normal;
}

.arde-form--homepage-hero .arde-phone-picker .iti__selected-country {
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
}

.arde-form--homepage-hero .arde-phone-picker .iti__selected-country-primary {
  border-radius: 5px 0 0 5px;
}

/* The selector is detached to <body> so the progressive field's overflow
   cannot clip it. containerClass keeps these rules scoped to our picker. */
.arde-phone-picker.iti--detached-country-selector {
  --iti-border-color: #d7d7d7;
  --iti-country-selector-bg: #fff;
  --iti-hover-color: rgba(10, 9, 12, 0.08);
  --iti-icon-color: #555;
  color: #0a090c;
  font-family: Arial, sans-serif;
  font-size: 15px;
}

.arde-phone-picker .iti__country-selector {
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(10, 9, 12, 0.24);
}

.arde-phone-picker.iti--inline-country-selector .iti__country-selector {
  min-width: 320px;
  max-width: min(380px, calc(100vw - 32px));
}

.arde-phone-picker .iti__search-input {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 12px 40px;
  border: 0;
  border-bottom: 1px solid #ddd;
  border-radius: 0;
  background: #fff;
  color: #0a090c;
  font-family: Arial, sans-serif;
  font-size: 16px;
}

.arde-phone-picker.iti--inline-country-selector .iti__country-list {
  max-height: 280px;
}

.arde-phone-picker .iti__country-name,
.arde-phone-picker .iti__dial-code,
.arde-phone-picker .iti__no-results {
  color: #0a090c;
}

.arde-form--homepage-hero .arde-checkbox-field {
  display: flex;
  align-items: center;
  min-height: 30.7031px;
  margin: 0 0 22.8632px;
  color: #fff;
  font-family: "Raleway", sans-serif;
  font-size: 16px;
  line-height: 1.3;
}

.arde-form--homepage-hero .arde-checkbox-field input {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 0 11px 0 4px;
  accent-color: #fffaf8;
}

.arde-form--homepage-hero .arde-checkbox-field a {
  color: #fffaf8;
  text-decoration: underline;
}

.arde-form--homepage-hero input[type="submit"] {
  display: inline-block;
  width: 100%;
  box-sizing: border-box;
  margin: 18px 0 16px;
  padding: 18px 26px;
  border: 0;
  border-radius: 8px;
  background: #fa0b57;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
}

.arde-form--homepage-prefooter-cta {
  margin-top: 22.8632px;
}

.arde-form--homepage-prefooter-cta input[type="text"],
.arde-form--homepage-prefooter-cta input[type="email"],
.arde-form--homepage-prefooter-cta input[type="tel"] {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 22.8632px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  color: #0a090c;
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: normal;
}

.arde-form--homepage-prefooter-cta input[type="email"] {
  margin-bottom: 12px;
}

.arde-form--homepage-prefooter-cta input::placeholder {
  color: #333;
  opacity: 0.8;
}

.arde-form--homepage-prefooter-cta .form-privacy {
  display: block;
  margin: 0;
  color: #0a090c;
  font-family: "Raleway", sans-serif;
  font-size: 13px;
  line-height: 1.3;
}

.arde-form--homepage-prefooter-cta .form-privacy a {
  color: #0a090c;
  text-decoration: underline;
}

.arde-form--homepage-prefooter-cta input[type="submit"] {
  display: inline-block;
  width: auto;
  box-sizing: border-box;
  margin: 0 0 16px;
  padding: 15px 35px;
  border: 1px solid #0a090c;
  border-radius: 0;
  background: #0a090c;
  color: #f7f0df;
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  cursor: pointer;
}
