/* =============================================
   Brevo Newsletter Paragraph - Main Styles
   ============================================= */

.brevo-newsletter-paragraph {
  background-color: #fff;
  color: #333;
  position: relative;
  overflow: hidden;
}

.brevo-newsletter-paragraph::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 85%;
  background-color: #005AC8;
  z-index: 0;
}

.brevo-newsletter-paragraph__container {
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: end;
  padding: 5em 0;
  position: relative;
  z-index: 1;
  grid-auto-flow: dense;
}
@media (min-width: 20rem) {
  .alert-brevo-module-applied{
    max-width: 420px;
  }
}
@media (min-width: 36rem) {
  .brevo-newsletter-paragraph__container {
    max-width: 540px;
  }

  .alert-brevo-module-applied{
    max-width: 540px;
  }
}
@media (min-width: 48rem) {
  .brevo-newsletter-paragraph__container {
    max-width: 720px;
  }
  .alert-brevo-module-applied{
    max-width: 720px;
  }
}
@media (min-width: 55rem) {
  .brevo-newsletter-paragraph__image-side{
    position:absolute !important;
    left: 20px;
    width: 850px;
  }
  .brevo-newsletter-paragraph__image{
    margin-bottom: unset !important;
  }
}
@media (min-width: 62rem) {
  .brevo-newsletter-paragraph__container {
    max-width: 960px;
  }
  .brevo-newsletter-paragraph__image-side{
    position:absolute !important;
    left: 180px;
  }

  .brevo-newsletter-paragraph__image{
    margin-bottom: unset !important;
  }
  .alert-brevo-module-applied{
    max-width: 960px;
  }
}
@media (min-width: 75rem) {
  .brevo-newsletter-paragraph__container {
    max-width: 1140px;
  }

  .brevo-newsletter-paragraph__image-side{
    position:absolute !important;
    left: 350px;
  }
  .brevo-newsletter-paragraph__image{
    margin-bottom: unset !important;
  }
  .alert-brevo-module-applied{
    max-width: 1140px;
  }
}
@media (min-width: 87.5rem) {
  .brevo-newsletter-paragraph__container {
    max-width: 1320px;
  }
  .brevo-newsletter-paragraph__image-side{
    position:absolute !important;
    left: 500px;
  }
  .brevo-newsletter-paragraph__image{
    margin-bottom: unset !important;
  }
  .alert-brevo-module-applied{
    max-width: 1320px;
  }
}

@media (max-width: 55rem) {
  .brevo-newsletter-paragraph__container {
    grid-template-columns: 1fr;
  }

  .brevo-newsletter-paragraph__image-side {
    order: 2;
  }

  .brevo-newsletter-paragraph__form-side {
    order: 1;
  }
}
/* =============================================
   Image Side Styles
   ============================================= */

.brevo-newsletter-paragraph__image-side {
  position: relative;
}

.brevo-newsletter-paragraph__image {
  display: block;
  max-width: 115%;
  height: auto;
  margin-bottom: -10%;
  position: relative;
  z-index: 2;
}

/* =============================================
   Form Side Styles
   ============================================= */

.brevo-newsletter-paragraph__form-side {
  /*padding: 2em 0 2em 0;*/
  color: #fff;
  position: relative;
  z-index: 1;
  top:50px;
}

.brevo-newsletter-paragraph__title {
  font-size: 27px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 1em !important;
  line-height: 1.2;
  color: #fff;
}

.brevo-newsletter-paragraph__description {
  font-size: 16px;
  margin-bottom: 1em;
  line-height: 1.6;
  color: #fff;
  opacity: 0.95;
  font-weight:500;
}
.brevo-newsletter-paragraph__description p {
  margin-top: 0;
  color: #fff !important;
}
.brevo-newsletter-paragraph__description p:last-child {
  margin-bottom: 0;
}

/* =============================================
   Form Element Specific Styles
   ============================================= */

.brevo-newsletter-form__form-element {
}

.brevo-newsletter-form__form-element .form-item-email label {
  display: block;
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 0.6em;
  color: #fff;
}

.brevo-newsletter-form__email-input {
  width: 100%;
  padding: 0.9em 1.1em;
  border: none;
  background-color: #fff;
  color: #222;
  font-size: 1em;
  border-radius: 4px;
  margin-bottom: 1.5em;
  box-sizing: border-box;
}
.brevo-newsletter-form__email-input::placeholder {
  color: #a0a0a0;
}
.brevo-newsletter-form__email-input:focus {
  outline: 2px solid #87c3ff;
  outline-offset: 1px;
}

.brevo-newsletter-form__form-element .form-item-consent {
  margin-bottom: 2em;
  display: flex;
  align-items: flex-start;
  gap: 0.8em;
}

.brevo-newsletter-form__consent-checkbox {
  margin-top: 0.2em;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: #fff;
}

.brevo-newsletter-form__form-element .form-item-consent label p{
  font-size: 14px;
  line-height: 1.5;
  color: #fff;
  opacity: 0.9;
  margin: 0;
  font-weight: 500;
}
.brevo-newsletter-form__form-element .form-item-consent label a {
  color: #fff;
  text-decoration: underline;
  font-weight: 500;
}
.brevo-newsletter-form__form-element .form-item-consent label a:hover {
  text-decoration: none;
}

.brevo-newsletter-paragraph__error {
  color: #ffdddd;
  border: 1px solid #ffaaaa;
  padding: 0.8em;
  border-radius: 4px;
  background-color: rgba(255, 0, 0, 0.1);
  margin-top: 1em;
  font-size: 0.9em;
}

#edit-actions{
  text-align: center;
}

/* =============================================
   Responsive Styles (Mobile)
   ============================================= */

@media (max-width: 900px) {
  .brevo-newsletter-paragraph {
    background-color: #005AC8;
  }
  .brevo-newsletter-paragraph::before {
    display: none;
  }

  .brevo-newsletter-paragraph__container {
    grid-template-columns: 1fr;
    padding: 2em 0;
    align-items: center;
  }

  .brevo-newsletter-paragraph__image-side {
    padding-left: 0;
    text-align: center;
  }

  .brevo-newsletter-paragraph__image {
    margin-top: 0;
    object-position: center center;
    display: inline-block;
  }

  .brevo-newsletter-paragraph__form-side {
    padding: 1em 1.5em 2em 1.5em;
    text-align: center;
    order: 1;
    color: #fff;
  }

  .brevo-newsletter-paragraph__title {
    font-size: 27px;
  }

  .brevo-newsletter-form__form-element .form-item-email label,
  .brevo-newsletter-form__form-element .form-item-consent {
    text-align: left;
  }

  .brevo-newsletter-form__form-element .form-item-consent {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}

.alert-brevo-module-applied{
  margin-left: auto;
  margin-right: auto;
  height: 80px;
}

.alert-brevo-module-applied h2{
  display:none;
}
.alert-brevo-module-applied hr{
  display:none;
}

/* Complete style for the submit button */
.brevo-newsletter-form__submit-button {
  background-color: transparent !important;
  border: 1px solid #fff  !important;
  color: #fff  !important;
  padding: 0.7em 1.5em  !important;
  font-size: 1em  !important;
  font-weight: 600 !important;
  border-radius: 1px !important; /* Slightly rounded corners */
  cursor: pointer !important;
  transition: background-color 0.2s ease, color 0.2s ease !important;
  display: inline-flex !important; /* Use inline-flex for alignment with icon */
  align-items: center !important;
  gap: 0.6em !important; /* Space between "Send" and the arrow */
  line-height: 1 !important;
  width: auto !important; /* IMPORTANT: Let the button size to its content */
}

/* Hover/focus state for the button */
.brevo-newsletter-form__submit-button:hover,
.brevo-newsletter-form__submit-button:focus {
  background-color: #fff !important;
  color: #005AC8 !important; /* The blue background color */
  outline: none !important;
}

.brevo-newsletter-form__submit-button::after {
  content: "" !important;
  display: inline-block !important;
  width: 16px !important;
  height: 16px !important;
  background: currentColor !important;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M22 12L2 4L7 12L2 20L22 12Z'/></svg>") no-repeat center / contain !important;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M22 12L2 4L7 12L2 20L22 12Z'/></svg>") no-repeat center / contain !important;
}