/* Tanlium Newsletter - Front styles (match provided Figma) */

.tn-newsletter{
  box-sizing: border-box;
}

.tn-newsletter .tn-newsletter__inner{
  box-sizing: border-box;
  width: 341px;
  max-width: 100%;
  min-height: 121px;
  border: 2px solid #000000;
  border-radius: 10px;
  background: #F9F8F5;
  padding: 14px 16px 12px;
}

.tn-newsletter .tn-newsletter__title{
  font-family: 'IRANSansXFaNum', 'IRANSansX', sans-serif;
  font-style: normal;
  font-weight: 800;
  font-size: 16px;
  line-height: 24px;
  text-align: right;
  color: #000000;
  margin: 0 0 10px 0;
}

.tn-newsletter .tn-newsletter__form{
  display: flex;
  flex-direction: row-reverse; /* input right, button left */
  align-items: center;
  gap: 10px;
}

.tn-newsletter .tn-newsletter__input{
  box-sizing: border-box;
  width: 203px;
  max-width: 100%;
  height: 44px;
  border: 2px solid #000000;
  border-radius: 7px;
  background: transparent;
  outline: none;

  font-family: 'IRANSansXFaNum', 'IRANSansX', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  line-height: 18px;
  text-align: right;
  color: #000000;

  padding: 0 12px;
}

.tn-newsletter .tn-newsletter__input::placeholder{
  color: #585858;
}

.tn-newsletter .tn-newsletter__btn{
  box-sizing: border-box;
  width: 84px;
  height: 44px;
  border: none;
  border-radius: 7px;
  background: #0B1F3F;
  cursor: pointer;

  font-family: 'IRANSansXFaNum', 'IRANSansX', sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 14px;
  line-height: 21px;
  text-align: center;
  color: #F9F8F5;
}

.tn-newsletter .tn-newsletter__btn[disabled]{
  opacity: 0.7;
  cursor: not-allowed;
}

.tn-newsletter .tn-newsletter__message{
  margin-top: 8px;
  min-height: 18px;
  font-family: 'IRANSansXFaNum', 'IRANSansX', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  line-height: 18px;
  text-align: right;
  color: #000000;
}

.tn-newsletter .tn-newsletter__message.is-error{ color: #b00020; }
.tn-newsletter .tn-newsletter__message.is-success{ color: #0a6a2a; }

/* Responsive */
@media (max-width: 420px){
  .tn-newsletter .tn-newsletter__inner{ width: 100%; }
  .tn-newsletter .tn-newsletter__form{ flex-direction: column; align-items: stretch; }
  .tn-newsletter .tn-newsletter__input{ width: 100%; }
  .tn-newsletter .tn-newsletter__btn{ width: 100%; }
}
