/* components/organisms/subscribe-banner/subscribe-banner.css */
.c-subscribe-banner {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.c-subscribe-banner__card {
  box-shadow: 0px 0px 4px #cfcfcfcc;
  position: relative;
  padding: 45px 20px;
  text-align: center;
  background-color: #fff;
  z-index: 1;
}

.c-subscribe-banner__title {
  font-family: var(--font-family-mmc-bold);
  font-size: 38px;
  line-height: 50px;
  color: #2c3e50;
  font-weight: 800;
  margin: 0;
  padding: 0;
  margin-bottom: 30px;
  letter-spacing: -0.3px;
}

.c-subscribe-banner__subtitle {
  font-size: 20px;
  line-height: 26px;
  max-width: 890px;
  margin: 30px auto 50px;
  letter-spacing: 0px;
  color: #727b83;
  font-family: var(--font-family);
}

.c-subscribe-banner__subtitle p {
  margin: 0;
}

.c-subscribe-banner__form-wrapper {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

/* Hide webform title/labels if any exist */
.c-subscribe-banner__form-wrapper label {
  display: none !important;
}

/* Capsule Form Layout */
.c-subscribe-banner__form-wrapper form.webform-submission-form {
  display: flex;
  align-items: center;
  background: #f1f3f5;
  border-radius: 100px;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
  max-width: 405px;
  margin: auto;
}

.c-subscribe-banner__form-wrapper .form-item,
.c-subscribe-banner__form-wrapper .js-form-item {
  flex: 1;
  margin: 0;
}

/* Email Input Control */
.c-subscribe-banner__form-wrapper input[type="email"] {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  padding: 0 10px;
  font-family: var(--font-family);
  color: rgb(117, 117, 117);
  box-sizing: border-box;
  height: 40px;
  line-height: 40px;
  font-size: 16px;
  padding-left: 24px;
}

.c-subscribe-banner__form-wrapper input[type="email"]::placeholder {
  color: rgb(117, 117, 117);
  text-transform: none;
  font-size: 16px;
}

/* Submit Action Button */
.c-subscribe-banner__form-wrapper .form-actions {
  margin: 0;
  display: flex;
}

.c-subscribe-banner__form-wrapper input[type="submit"],
.c-subscribe-banner__form-wrapper button.webform-button--submit {
  max-width: 150px;
  width: 100%;
  text-transform: uppercase !important;
  background: #00ac41 0% 0% no-repeat padding-box;
  border-radius: 20px;
  outline: none;
  border: none;
  font-size: 14px;
  letter-spacing: 0px;
  color: #ffffff;
  padding: 12px 20px 10px;
  line-height: 18px;
  font-family: var(--font-family);
  cursor: pointer;
  white-space: nowrap;
}

/* Fallback HTML Form styles */
.c-subscribe-banner__form {
  display: flex;
  align-items: center;
  background: #f1f3f5;
  border-radius: 100px;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
  max-width: 405px;
  margin: auto;
}

.c-subscribe-banner__input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 0 10px;
  font-family: var(--font-family);
  color: rgb(117, 117, 117);
  box-sizing: border-box;
  height: 40px;
  line-height: 40px;
  font-size: 16px;
  padding-left: 24px;
}

.c-subscribe-banner__input::placeholder {
  color: rgb(117, 117, 117);
  text-transform: none;
  font-size: 16px;
}

.c-subscribe-banner__submit {
  max-width: 150px;
  width: 100%;
  text-transform: uppercase !important;
  background: #00b050; /* Green Subscribe Button */
  border-radius: 20px;
  outline: none;
  border: none;
  font-size: 14px;
  letter-spacing: 0px;
  color: #ffffff;
  padding: 12px 20px 10px;
  line-height: 18px;
  font-family: var(--font-family);
  cursor: pointer;
  white-space: nowrap;
  font-weight: 700;
  transition: background-color 0.2s ease;
}

.c-subscribe-banner__submit:hover {
  background-color: #029443;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .c-subscribe-banner {
    padding: 40px 16px;
  }

  .c-subscribe-banner__card {
    padding: 40px 24px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.08);
  }

  .c-subscribe-banner__title {
    font-size: 24px;
    line-height: 34px;
    margin-bottom: 20px;
  }

  .c-subscribe-banner__subtitle {
    font-size: 15px;
    line-height: 22px;
    margin: 20px auto 30px;
  }

  .c-subscribe-banner__form,
  .c-subscribe-banner__form-wrapper form.webform-submission-form {
    flex-direction: column;
    border-radius: 8px;
    background: transparent;
    gap: 12px;
  }

  .c-subscribe-banner__input,
  .c-subscribe-banner__form-wrapper input[type="email"] {
    background: #f1f3f5;
    border-radius: 4px;
    width: 100%;
    height: 44px;
    padding-left: 16px;
  }

  .c-subscribe-banner__submit,
  .c-subscribe-banner__form-wrapper input[type="submit"],
  .c-subscribe-banner__form-wrapper button.webform-button--submit {
    max-width: 100%;
    width: 100%;
    border-radius: 4px;
    height: 44px;
    text-transform: uppercase !important;
  }
}