.footer-col h4 a {
  color: white;
  text-decoration: none;
}

/* Kill Drupal form-item spacing */
.search-full-box .form-item {
  margin: 0;
  width: 100%;
}

/* Hide label but keep accessibility */
.search-full-box .form-item label {
  position: absolute;
  left: -9999px;
}

.search-full-box .search-input-group {
  display: flex;
  align-items: center;
  width: 100%;
  height: 56px;
  border: 1px solid #b89b5e;
}

/* Make wrapper stretch like input */
.search-full-box .search-input-group .form-item {
  flex: 1;
  display: flex;
  align-items: center;
}

.search-full-box input.form-text {
  height: 56px;
  padding: 0 16px;
  font-size: 16px;
  background: transparent;
  border: 0;
  color: #fff;
  width: 100%;
}

.search-full-box input.form-text::placeholder {
  color: #aaa;
  font-size: 16px;
}

.search-full-box input.form-text:focus {
  outline: none;
  box-shadow: none;
}

.search-full-box .search-icon {
  background: transparent;
  border: 0;
  padding: 0 14px;
  display: flex;
  align-items: center;
  height: 56px;
}

.search-full-box .search-icon img {
  width: 18px;
  height: 18px;
}

.search-full-box .ajax-progress,
.search-full-box .ajax-progress-throbber {
  display: none !important;
}

.ui-autocomplete {
  z-index: 99999 !important;
  background: #0f0f0f;
  border: 1px solid #2c2c2c;
  padding: 6px 0;
  font-size: 14px;
  max-width: calc(100% - 120px);
}

.ui-menu-item-wrapper {
  padding: 10px 16px;
  color: #ccc;
  cursor: pointer;
}

.ui-menu-item-wrapper.ui-state-active {
  background: #1f1f1f;
  color: #fff;
}

/* Hide search_api_autocomplete AJAX throbber */
.search-full-box .ajax-progress-throbber,
.search-full-box .ajax-progress {
  display: none !important;
}

/* Target the throbber that appears inside form-item */
.search-full-box .form-item .ajax-progress-throbber {
  display: none !important;
  visibility: hidden !important;
}

/* Hide any inline throbber elements */
.search-input-group .ajax-progress,
.search-input-group .ajax-progress-throbber,
.search-input-group .ajax-progress-fullscreen {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
}

/* Hide Drupal autocomplete AJAX spinners globally on search input */
.js-form-item.js-form-type-search-api-autocomplete .ajax-progress,
.js-form-item.js-form-type-search-api-autocomplete .ajax-progress-throbber,
.js-form-item.js-form-type-search-api-autocomplete .ajax-progress-fullscreen,
.ajax-progress,
.ajax-progress-throbber {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
}

/* Kill jQuery UI autocomplete throbber/spinner */
.ui-autocomplete-loading {
  background-image: none !important;
  background: transparent !important;
}

/* Remove any loading indicators from the input */
input.ui-autocomplete-input.ui-autocomplete-loading {
  background-image: none !important;
  background-position: 0 0 !important;
}

/* Hide all possible AJAX progress elements */
.search-full-box .ajax-progress-throbber,
.search-full-box .ajax-progress,
.ajax-progress-throbber,
.ajax-progress {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Force remove background on search input during loading */
.search-input.ui-autocomplete-loading {
  background-image: none !important;
  padding-right: 16px !important;
}

.newsletter-message {
  position: absolute;
  top: -40px;
  left: 0;
  right: 0;
  z-index: 10;
}

.newsletter-success {
  background: #28a745;
  color: #fff;
  padding: 10px 15px;
  border-radius: 4px;
  font-size: 14px;
  animation: slideDown 0.3s ease;
}

.newsletter-error {
  background: #dc3545;
  color: #fff;
  padding: 10px 15px;
  border-radius: 4px;
  font-size: 14px;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.newsletter-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 16px;
  color: #fff;
  outline: none;
  min-width: 0;
}
 
.newsletter-input::placeholder {
  color: #fff;
  opacity: 1;
}

.newsletter-submit {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: #fff;
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.newsletter-submit:hover {
  background: rgba(255, 193, 7, 0.1);
}

.newsletter-submit i {
  font-size: 18px;
}

.newsletter-submit .ajax-progress {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.newsletter-submit .ajax-progress .throbber {
  background: transparent;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
} 

.social-aria .newsletter-input {
  width: 100%;
} 

#newsletter-form-wrapper form {
  position: relative;
}

.newsletter-input {
  width: 100%;
  height: 46px;
  padding-right: 48px;
}

.newsletter-button::before {
  content: "\f1d8"; 
}

.captcha .description {
  display: none;
}

/* Wrapper spacing */
[data-drupal-messages] {
  margin-bottom: 20px;
}

/* Base message box */
[data-drupal-messages] > div[role="contentinfo"] {
  padding: 16px 20px;
  border-radius: 6px;
  font-size: 15px;
  line-height: 1.5;
  position: relative;
  animation: fadeInMessage 0.3s ease-in-out;
}

/* =========================
   ERROR MESSAGE
========================= */
[data-drupal-messages] [aria-label="Error message"] {
  background-color: #fdecea;
  border-left: 4px solid #c62828;
  color: #7f1d1d;
}

[data-drupal-messages] [aria-label="Error message"] ul {
  margin: 0;
  padding-left: 18px;
}

[data-drupal-messages] [aria-label="Error message"] li {
  margin-bottom: 6px;
}

/* =========================
   SUCCESS / STATUS MESSAGE
========================= */
[data-drupal-messages] [aria-label="Status message"] {
  background-color: #e6f4ea;
  border-left: 4px solid #2e7d32;
  color: #1b5e20;
}

/* Fade animation */
@keyframes fadeInMessage {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Make actions container sit inline with the input */
#newsletter-form-wrapper form {
  display: flex;
  align-items: center;
}

#edit-mail-wrapper {
  flex: 1;
}

#edit-actions {
  flex-shrink: 0;
}

/* Hide all the wrapper divs' block behaviour */
#edit-mail-wrapper,
#edit-actions {
  margin: 0;
}

.newsletter-button::before,
.newsletter-button::after {
  display: none !important;
  content: none !important;
}

.search-api-autocomplete-search .ui-menu-item a {
    text-decoration: none;
    color: #fff;
}

#edit-message {
    border: none;
    color: #fff;
    padding: 10px;
    font-weight: bold;
    outline: none;
    font-size: 14px;
}

.consent-check label {
  display: inline;
}

@media (max-width: 767.98px) {

  #block-metcity-webform .field-input-group.webform-flexbox.js-webform-flexbox {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    width: 100% !important;
  }

  #block-metcity-webform .field-input-group.webform-flexbox .webform-flex {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    margin-bottom: 20px !important;
  }

  /* Last flex item — no trailing margin */
  #block-metcity-webform .field-input-group.webform-flexbox .webform-flex:last-child {
    margin-bottom: 0 !important;
  }

  #block-metcity-webform .field-input-group.webform-flexbox .webform-flex .webform-flex--container {
    width: 100% !important;
    display: block !important;
  }

  #block-metcity-webform .field-input-group.webform-flexbox .webform-flex .webform-flex--container .form-control,
  #block-metcity-webform .field-input-group.webform-flexbox .webform-flex .webform-flex--container .form-select {
    display: block !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #666 !important;
    border-top: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-radius: 0 !important;
    border-bottom: 2px solid #666 !important;
    background-color: #fff !important;
    box-shadow: none !important;
  }

  /* Between flexbox row groups (e.g. Name+Email → Mobile+Project) */
  #block-metcity-webform .field-input-group.webform-flexbox.js-webform-flexbox {
    margin-bottom: 20px !important;
  }

  /* Reset js-form-item margin — margin-bottom on .webform-flex handles spacing now */
  #block-metcity-webform .field-input-group.webform-flexbox .js-form-item {
    margin-bottom: 0 !important;
  }
}