/* Newsletter */
.newsletter-box_footer-widget{
  display: flex;
  align-items: center;
  gap: 12px;
justify-content: flex-end;
}

.newsletter-box_footer-widget .news-label{
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.newsletter-box_footer-widget .news-form{
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.newsletter-box_footer-widget .news-input{
  position: relative;
}

.newsletter-box_footer-widget .news-input input{
  width: 260px;
  height: 40px;
  border: 0;
  outline: none;
  background: var(--color-black);
  color: var(--color-white);
  padding: 0 40px 0 12px; /* icon right */
  font-size: 12px;
  font-weight: 800;
}
.newsletter-box_footer-widget .news-input input::placeholder{
  color: var(--color-white);
  font-weight: 800;
}

.newsletter-box_footer-widget .mail-ico{
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: var(--color-white);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M4 6h16v12H4V6Zm1.6 1.6L12 12.7l6.4-5.1'/%3E%3C/svg%3E") no-repeat center/contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M4 6h16v12H4V6Zm1.6 1.6L12 12.7l6.4-5.1'/%3E%3C/svg%3E") no-repeat center/contain;
}

.newsletter-box_footer-widget .news-submit{
  padding:14px;
  border: 0;
  cursor: pointer;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.newsletter-box_footer-widget .news-arrow{
  width: 42px;
  height: 40px;
  border: 0;
  cursor: pointer;
  background: var(--color-black);
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


@media screen and (max-width:600px){
	.newsletter-box_footer-widget {
    flex-direction: column;
}
	.newsletter-box_footer-widget .news-submit {
    width: 100%;
}
}


/* =========================
   Footer Newsletter (CF7)
   .newsletter-box_footer-widget
========================= */

.newsletter-box_footer-widget .newsletter-form-container .wpcf7 form{
  margin: 0;
}

/* حذف استایل‌های پیشفرض CF7 */
.newsletter-box_footer-widget .wpcf7 p{
  margin: 0 !important;
}
.newsletter-box_footer-widget label{
  margin: 0;
  font-size: 0; /* متن "ایمیل شما" رو مخفی میکنه چون تو عکس نیست */
}

/* یک ردیف کردن input و submit */
.newsletter-box_footer-widget .wpcf7 form{
  display: flex;
  align-items: center;
  gap: 0;

  padding: 8px;
 
}

/* input */
.newsletter-box_footer-widget input[type="email"]{
  flex: 1 1 auto;
  height: 40px;
  border: 0;
  outline: 0;
  background: #ffffff;
  color: var(--color-primary);
  font-weight: 900;
  font-size: 14px;
  padding: 0 14px;
  border-radius: 2px;
  min-width: 0;
}

/* placeholder */
.newsletter-box_footer-widget input[type="email"]::placeholder{
  color: rgba(237, 85, 33, .75);
  font-weight: 900;
}

/* دکمه submit (نارنجی مربعی با فلش) */
.newsletter-box_footer-widget input[type="submit"]{
  flex: 0 0 46px;
  width: 46px;
  height: 40px;
  border: 0;
  cursor: pointer;
  border-radius: 2px;
  background: var(--color-primary);
  color: transparent; /* متن "ثبت" مخفی */
  position: relative;
  margin-right: 8px; /* فاصله بین input و دکمه */
  box-shadow: none;
  transition: filter .2s ease, transform .2s ease;
}

/* فلش داخل دکمه */
.newsletter-box_footer-widget input[type="submit"]{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M14 7l-5 5l5 5v-3h8v-4h-8V7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* hover */
.newsletter-box_footer-widget input[type="submit"]:hover{
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* اسپینر CF7 */
.newsletter-box_footer-widget .wpcf7-spinner{
  position: absolute;
  right: 12px;
  bottom: 12px;
  margin: 0;
}

/* پیام خطا/موفقیت */
.newsletter-box_footer-widget .wpcf7-response-output{
  margin-top: 10px !important;
  border: 0;
  padding: 8px 10px;
  border-radius: 4px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}

/* ریسپانسیو موبایل */
@media (max-width: 520px){
  .newsletter-box_footer-widget .wpcf7 form{
    padding: 6px;
  }
  .newsletter-box_footer-widget input[type="submit"]{
    flex-basis: 44px;
    width: 44px;
  }
}
