/* Homepage newsletter lightbox — loaded separately with cache busting */
.jasa-modal--newsletter {
  z-index: 120;
  padding: 1rem;
}

.jasa-modal-panel--newsletter {
  container-type: inline-size;
  container-name: newsletter-modal;
  width: 100%;
  max-width: min(100%, 24rem);
  max-height: min(92vh, 40rem);
  padding: 0;
  overflow: hidden;
  text-align: left;
  border-radius: 1.25rem;
  box-shadow: 0 28px 72px -20px rgba(45, 74, 62, 0.38);
}

@media (min-width: 640px) {
  .jasa-modal-panel--newsletter {
    max-width: min(100%, 44rem);
  }
}

.jasa-modal-panel--newsletter .jasa-modal-close {
  z-index: 3;
  top: 0.65rem;
  right: 0.65rem;
  background: rgba(252, 249, 244, 0.96);
  box-shadow: 0 4px 16px -6px rgba(45, 74, 62, 0.18);
}

.newsletter-modal__grid {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 0;
  max-height: min(92vh, 40rem);
}

.newsletter-modal__media {
  display: none;
  position: relative;
  overflow: hidden;
  background: #e8e0d4;
}

.newsletter-modal__media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

.newsletter-modal__media-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 62%, rgba(252, 249, 244, 0.42) 100%);
  pointer-events: none;
}

.newsletter-modal__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.35rem 1.5rem 1.5rem;
  background: #fcf9f4;
  border-top: 3px solid rgba(176, 141, 87, 0.45);
}

@container newsletter-modal (min-width: 30rem) {
  .newsletter-modal__grid {
    grid-template-columns: 0.92fr 1.08fr;
    min-height: 21rem;
  }

  .newsletter-modal__media {
    display: block;
    min-height: 100%;
  }

  .newsletter-modal__body {
    padding: 2rem 1.85rem 1.75rem;
    border-top: 0;
    border-left: 1px solid rgba(45, 74, 62, 0.08);
  }
}

.newsletter-modal__eyebrow {
  margin: 0;
  font-family: Montserrat, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #b08d57;
}

.newsletter-modal__title {
  margin: 0.45rem 0 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  font-weight: 600;
  line-height: 1.2;
  color: #2d4628;
}

.newsletter-modal__lede {
  margin: 0.65rem 0 0;
  font-family: Montserrat, sans-serif;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(45, 74, 62, 0.76);
}

.newsletter-modal__form {
  margin-top: 1.15rem;
}

.newsletter-modal__field {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.jasa-modal--newsletter .newsletter-modal__input {
  width: 100%;
  border: 1px solid rgba(45, 74, 62, 0.14) !important;
  border-radius: 9999px !important;
  background: #fff !important;
  padding: 0.82rem 1.1rem !important;
  font-family: Montserrat, sans-serif !important;
  font-size: 14px !important;
  color: #2d4628 !important;
  box-shadow: inset 0 1px 2px rgba(45, 74, 62, 0.04) !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.jasa-modal--newsletter .newsletter-modal__input::placeholder {
  color: rgba(45, 74, 62, 0.4);
}

.jasa-modal--newsletter .newsletter-modal__input:focus {
  border-color: #b08d57 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.2) !important;
  --tw-ring-color: transparent;
  --tw-ring-shadow: 0 0 #0000;
}

.jasa-modal--newsletter .newsletter-modal__submit {
  display: inline-flex !important;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0 !important;
  border-radius: 9999px !important;
  background: #2d4628 !important;
  padding: 0.82rem 1.25rem !important;
  font-family: Montserrat, sans-serif !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff !important;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.jasa-modal--newsletter .newsletter-modal__submit:hover:not(:disabled) {
  background: #243a20 !important;
}

.jasa-modal--newsletter .newsletter-modal__submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.newsletter-modal__submit-icon {
  font-size: 1.125rem !important;
  line-height: 1;
}

.newsletter-modal__note {
  margin: 0.6rem 0 0;
  font-family: Montserrat, sans-serif;
  font-size: 11px;
  line-height: 1.45;
  color: rgba(45, 74, 62, 0.55);
}

.newsletter-modal__note[data-newsletter-error]:not([hidden]) {
  color: #b91c1c;
}
