/* ============================================================
   STARZ – Constant Contact Newsletter Form (LIVE PATCH)
   Figma: Sign Up For Our Newsletter
   Paste into WordPress Additional CSS / theme CSS
   ============================================================ */

.ctct-form-custom,
form.ctct-form-custom,
#ctct_form_0 {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  text-align: left;
  box-sizing: border-box;
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* Title */
.ctct-form-custom .ctct-form-header,
#ctct_form_0 .ctct-form-header {
  grid-column: 1 / -1;
  order: 1;
  margin: 0 0 14px;
  padding: 0;
  color: #83BEE2 !important;
  font-family: 'Nunito', sans-serif !important;
  font-size: 40px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  text-align: center !important;
  text-transform: uppercase !important;
  background: none !important;
}

.ctct-form-custom .ctct-form-text,
#ctct_form_0 .ctct-form-text {
  grid-column: 1 / -1;
  order: 2;
  max-width: 650px;
  margin: 0 auto 23px !important;
  padding: 0 !important;
  color: #ffffff !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
    letter-spacing: -0.1px;
  text-align: center !important;
}

/* Field order like Figma: First + Last, then Email */
#first_name_field_0 {
  grid-column: 1;
  order: 3;
}

#last_name_field_0 {
  grid-column: 2;
  order: 3;
}

#email_address_field_0 {
  grid-column: 1 / -1;
  order: 4;
}

.ctct-form-custom .ctct-form-field,
#ctct_form_0 .ctct-form-field {
  position: relative;
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
  float: none !important;
}

/* Labels look like placeholders inside inputs */
.ctct-form-custom .ctct-form-label,
#ctct_form_0 .ctct-form-label {
  position: absolute !important;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  margin: 0 !important;
  padding: 0 !important;
  color: rgb(188 226 239 / 78%) !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  pointer-events: none;
  background: transparent !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: nowrap;
}

.ctct-form-custom .ctct-form-field:has(.ctct-form-element:focus) .ctct-form-label,
.ctct-form-custom .ctct-form-field:has(.ctct-form-element:not(:placeholder-shown)) .ctct-form-label,
#ctct_form_0 .ctct-form-field:has(.ctct-form-element:focus) .ctct-form-label,
#ctct_form_0 .ctct-form-field:has(.ctct-form-element:not(:placeholder-shown)) .ctct-form-label {
  opacity: 0;
}

.ctct-form-custom .ctct-form-errorMessage,
#ctct_form_0 .ctct-form-errorMessage {
  position: absolute;
  left: 0;
  top: calc(100% + 2px);
  margin: 0;
  font-size: 12px;
  color: #ff8ec8;
  z-index: 3;
}

.ctct-form-custom .ctct-form-element,
#ctct_form_0 .ctct-form-element {
  width: 100% !important;
  min-height: 46px !important;
  height: 46px !important;
  margin: 0 !important;
  padding: 11px 14px !important;
  border: 2px solid #77B8E0 !important;
  border-radius: 6px !important;
  background: transparent !important;
  color: #77B8E0 !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 18px !important;
  line-height: 1.3 !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
  outline: none !important;
}

.ctct-form-custom .ctct-form-element::placeholder,
#ctct_form_0 .ctct-form-element::placeholder {
  color: rgb(188 226 239 / 78%) !important;
  opacity: 1;
}

.ctct-form-custom .ctct-form-element:focus,
#ctct_form_0 .ctct-form-element:focus {
  border-color: #BCE2EF !important;
}

/* Hide GDPR text in design */
#gdpr_text,
.ctct-form-custom .ctct-gdpr-text {
  display: none !important;
}

/* Error banners */
.ctct-form-custom .ctct-form-error,
#ctct_form_0 .ctct-form-error {
  grid-column: 1 / -1;
  order: 5;
}

/* Captcha + Submit row */
.ctct-form-custom .g-recaptcha,
#ctct_form_0 .g-recaptcha,
#ctct_recaptcha_0 {
  grid-column: 1;
  order: 6;
  align-self: center;
  justify-self: start;
  margin: 6px 0 0 !important;
}

.ctct-form-custom .ctct-form-button,
#ctct_form_0 .ctct-form-button,
button.ctct-form-button {
  grid-column: 2;
  order: 6;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  justify-self: end;
  align-self: center;
  min-width: 211px !important;
  min-height: 48px !important;
  margin: 14px 0 0 !important;
  padding: 12px 36px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #ef4aa6 !important;
  color: #ffffff !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  letter-spacing: 0 !important;
  cursor: pointer;
  box-shadow: none !important;
  float: none !important;
    outline: 0;
  width: auto !important;
}

.ctct-form-custom .ctct-form-button:hover,
#ctct_form_0 .ctct-form-button:hover,
button.ctct-form-button:hover {
  background: #d63d92 !important;
}

/* Invisible recaptcha: keep badge out of layout */
.ctct-form-custom .grecaptcha-badge {
  visibility: hidden !important;
}

/* If no visible captcha, submit can span nicely on the right */
@media (max-width: 767px) {
  .ctct-form-custom,
  form.ctct-form-custom,
  #ctct_form_0 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  #first_name_field_0,
  #last_name_field_0,
  #email_address_field_0 {
    grid-column: 1;
  }

  .ctct-form-custom .ctct-form-header,
  #ctct_form_0 .ctct-form-header {
    font-size: 28px !important;
  }

  .ctct-form-custom .ctct-form-text,
  #ctct_form_0 .ctct-form-text {
    font-size: 14px !important;
    margin-bottom: 8px !important;
  }

  .ctct-form-custom .g-recaptcha,
  #ctct_form_0 .g-recaptcha,
  #ctct_recaptcha_0,
  .ctct-form-custom .ctct-form-button,
  #ctct_form_0 .ctct-form-button,
  button.ctct-form-button {
    grid-column: 1;
    justify-self: stretch;
    width: 100% !important;
  }
}
