@charset "UTF-8";

/* Make fieldset legend black */
legend {
  color: #cc0000 !important;
}

#mc-embedded-subscribe-form label {
  color: black;
}

/* Set font size for form elements */
::placeholder,
select,
option,
small.error-message,
.form-control {
  font-size: 14px !important;
  font-family: "Poppins", Helvetica, Arial, sans-serif !important;
  line-height: 1.625 !important;
  color: #686868 !important;
}

/* Hide helper label on focus or input */
.hide-on-focus {
  transition: opacity 0.2s ease;
  opacity: 1;
  visibility: visible;
}
.form-group input:focus ~ .hide-on-focus,
.form-group input:not(:placeholder-shown) ~ .hide-on-focus,
.form-group textarea:focus ~ .hide-on-focus,
.form-group textarea:not(:placeholder-shown) ~ .hide-on-focus {
  opacity: 0;
  visibility: hidden;
}

/* Number inputs */
form input[type="number"] {
  max-width: none !important;
  width: 100% !important;
  min-width: 200px !important;
}
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
}

textarea.form-control {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 16px;
  font-family: "Poppins", Arial, sans-serif;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
  resize: vertical; /* lets the user expand it vertically */
  min-height: 150px;
}

/* On focus, give a nice glow */
textarea.form-control:focus {
  border-color: #d9534f;
  box-shadow: 0 0 5px rgba(220, 63, 79, 0.5);
  outline: none;
}

/* ===============================
   Newsletter-Specific Styling
   =============================== */
.newsletter-wrapper .input-button-wrap {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.newsletter-wrapper .form-group {
  flex: 1;
  position: relative;
  margin: 0;
}

.newsletter-wrapper .form-control {
  height: 56px;
  padding: 18px 20px 10px 20px;
  font-size: 16px;
}

/* Button height matches input height */
.newsletter-wrapper .btn {
  height: 56px;
  padding: 0 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Floating label */
.newsletter-wrapper .form-label-subscribe {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  pointer-events: none;
  transition: opacity 0.2s ease;
  opacity: 1;
  visibility: visible;
}

.newsletter-wrapper input:focus ~ .form-label-subscribe,
.newsletter-wrapper input:not(:placeholder-shown) ~ .form-label-subscribe {
  opacity: 0;
  visibility: hidden;
}

/* Error/success under input */
.newsletter-error-message,
.newsletter-success-message {
  font-size: 0.9rem;
  color: #e74c3c;
  margin-top: 4px;
  display: none;
  min-height: 1.25rem;
}

.newsletter-success-message {
  color: #2ecc71;
}

.newsletter-error-message.visible,
.newsletter-success-message.visible {
  display: block;
}

/* Ensure the response message sits below input+button in the newsletter form */
.newsletter-wrapper .form-response {
  margin-top: 8px;
  text-align: left;
  flex-basis: 100%;
}
