/*
 * Template 6 "Tạp chí tin tức" — form đăng ký nhận tin [gpw_newsletter] + hộp tác giả [gpw_author_box].
 * Chuyển từ theme gpw-magazine (style.css) sang flatsome-child; màu lấy từ token --iw-accent.
 */

/* ----- Form đăng ký nhận tin ----- */
.gpw-newsletter {
  position: relative;
  margin: 0 0 28px;
  padding: 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3012FB, #0BC0D6);
  color: #ffffff;
}
.gpw-newsletter__title { margin: 0 0 12px; color: #ffffff; font-size: 18px; font-weight: 700; line-height: 1.35; }
.gpw-newsletter__form { display: grid; gap: 10px; margin: 0; }
.gpw-newsletter__form > * { margin: 0 !important; }
.gpw-newsletter--wide { display: grid; grid-template-columns: 1fr 1.8fr; align-items: center; gap: 16px 24px; margin-top: 36px; padding: 24px 28px; }
.gpw-newsletter--wide .gpw-newsletter__title { margin: 0; font-size: 20px; }
.gpw-newsletter--wide .gpw-newsletter__form,
.gpw-newsletter--inline .gpw-newsletter__form { grid-template-columns: 1.4fr 1fr auto; }
.gpw-newsletter input[type="email"],
.gpw-newsletter input[type="tel"] {
  width: 100%;
  height: 44px;
  box-sizing: border-box;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  background: #ffffff;
  color: #14183A;
  font-size: 15px;
  line-height: normal;
}
.gpw-newsletter button[type="submit"] {
  height: 44px;
  min-height: 0;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  background: #14183A;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  line-height: 44px;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
}
.gpw-newsletter button:disabled { opacity: .6; cursor: wait; }
.gpw-newsletter__error { grid-column: 1 / -1; padding: 6px 10px; border-radius: 6px; background: #ffffff; color: #c62828; font-size: 14px; }
.gpw-newsletter__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.gpw-nl-popup { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(10, 12, 40, .55); }
.gpw-nl-popup__box { width: 100%; max-width: 420px; padding: 28px 24px 20px; border-radius: 14px; background: #ffffff; text-align: center; box-shadow: 0 10px 40px rgba(0, 0, 0, .25); }
.gpw-nl-popup__box p { margin: 0 0 18px; color: #14183A; font-size: 17px; font-weight: 600; }
.gpw-nl-popup__box button { min-height: 0; margin: 0; padding: 9px 28px; border: 0; border-radius: 8px; background: var(--iw-accent, #2337C6); color: #ffffff; font-weight: 700; line-height: 1.4; text-transform: none; cursor: pointer; }

/* ----- Hộp tác giả ----- */
.gpw-author { display: flex; gap: 18px; align-items: flex-start; margin: 32px 0; padding: 20px; border-radius: 12px; background: #f4f6fd; }
.iw-mag__main > .gpw-author:first-child { margin-top: 0; }
.gpw-author__avatar img { display: block; border-radius: 50%; }
.gpw-author__label { margin: 0; color: #7a7f99; font-size: 12px; text-transform: uppercase; }
.gpw-author__name { margin: 2px 0 6px; font-size: 18px; font-weight: 700; line-height: 1.3; }
.gpw-author--page .gpw-author__name { font-size: 26px; }
.gpw-author__name a { color: #14183A; text-decoration: none; }
.gpw-author__count { margin: 0 0 6px; color: var(--iw-accent, #2337C6); font-size: 14px; font-weight: 600; }
.gpw-author__bio p { margin: 0 0 6px; }
.gpw-author__socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.gpw-author__social { padding: 4px 12px; border: 1px solid #d9ddf0; border-radius: 999px; background: #ffffff; color: var(--iw-accent, #2337C6); font-size: 13px; font-weight: 600; text-decoration: none; }

@media (max-width: 781px) {
  .gpw-newsletter--wide { grid-template-columns: 1fr; padding: 20px; }
}
@media (max-width: 600px) {
  .gpw-newsletter--wide .gpw-newsletter__form,
  .gpw-newsletter--inline .gpw-newsletter__form { grid-template-columns: 1fr; }
  .gpw-author { flex-direction: column; align-items: center; text-align: center; }
  .gpw-author__socials { justify-content: center; }
}
