.email-subscribe {
  padding: 64px clamp(20px, 6vw, 240px);
  background: #fff;
  color: var(--kpn-green-grey-grey-900);
  font-family: "FC Minimal", sans-serif;
}

.email-subscribe__inner {
  max-width: 800px;
  margin: 0 auto;
}

.email-subscribe__header {
  width: 100%;
  margin-bottom: 40px;
  text-align: center;
}

.email-subscribe__title {
  width: fit-content;
  margin: 0 auto 12px;
  color: var(--kpn-green-green-green-600);
  font-size: clamp(28px, 4vw, var(--fc-minimal-heading-40-semibold));
  font-weight: 600;
  line-height: normal;
  background: linear-gradient(0deg, var(--kpn-green-green-green-200) 0%, var(--kpn-green-green-green-600) 76%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.email-subscribe__lead {
  max-width: 700px;
  margin: 0 auto;
  color: var(--kpn-green-grey-grey-500);
  font-size: var(--fc-minimal-paragraph-small-regular);
  font-weight: 400;
  line-height: 1.6;
}

.email-subscribe__guide {
  max-width: 680px;
  margin: 24px auto 0;
  color: var(--kpn-green-grey-grey-500);
  font-size: var(--fc-minimal-paragraph-small-regular);
  font-weight: 400;
  line-height: 1.6;
}

.email-subscribe__panel {
  padding: 48px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 40px rgba(20, 53, 35, .08);
}

.email-subscribe__form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.email-subscribe__field label {
  display: block;
  margin-bottom: 8px;
  color: var(--kpn-green-grey-grey-800);
  font-size: var(--fc-minimal-paragraph-small-medium);
  font-weight: 500;
}

.email-subscribe__field label span {
  margin-left: 3px;
  color: var(--kpn-green-orange-orange-500);
}

.email-subscribe__field input {
  width: 100%;
  height: 54px;
  padding: 14px 18px;
  border: 1px solid var(--kpn-green-grey-grey-100);
  border-radius: 12px;
  outline: none;
  color: var(--kpn-green-grey-grey-800);
  background: #fff;
  font: 400 var(--fc-minimal-paragraph-small-regular)/1.4 "FC Minimal", sans-serif;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.email-subscribe__field input::placeholder {
  color: var(--kpn-green-grey-grey-300);
}

.email-subscribe__field input:focus {
  border-color: var(--kpn-green-orange-orange-400);
}

.email-subscribe__field input.is-invalid {
  border-color: var(--kpn-green-orange-orange-500);
  box-shadow: 0 0 0 4px rgba(246, 135, 34, .1);
}

.email-subscribe__error {
  min-height: 20px;
  margin: 7px 0 0;
  color: var(--kpn-green-orange-orange-600);
  font-size: var(--fc-minimal-paragraph-detail-regular);
  line-height: 1.35;
}

.email-subscribe__error:empty {
  min-height: 0;
  margin: 0;
}

.email-subscribe__consent {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0;
  cursor: pointer;
}

.email-subscribe__consent input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.email-subscribe__checkbox {
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border: 1px solid var(--kpn-green-grey-grey-200);
  border-radius: 6px;
  color: #fff;
  background: #fff;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.email-subscribe__checkbox svg {
  width: 16px;
  height: 16px;
  opacity: 0;
}

.email-subscribe__consent input:checked + .email-subscribe__checkbox {
  border-color: var(--kpn-green-blue-blue-600);
  background: var(--kpn-green-blue-blue-600);
}

.email-subscribe__consent input:checked + .email-subscribe__checkbox svg {
  opacity: 1;
}

.email-subscribe__consent input:focus-visible + .email-subscribe__checkbox {
  box-shadow: 0 0 0 4px rgba(32, 171, 227, .12);
}

.email-subscribe__consent > span:last-child {
  color: var(--kpn-green-grey-grey-600);
  font-size: var(--fc-minimal-paragraph-detail-regular);
  line-height: 1.6;
}

.email-subscribe__consent a,
.email-subscribe__unsubscribe a,
.email-subscribe__return a {
  color: var(--kpn-green-blue-blue-600);
  font-weight: 600;
  text-decoration: none;
  transition: color .2s ease;
}

.email-subscribe__consent a:hover,
.email-subscribe__unsubscribe a:hover,
.email-subscribe__return a:hover {
  color: var(--kpn-green-orange-orange-500);
}

.email-subscribe__actions {
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.email-subscribe button.btn-more {
  font-family: "FC Minimal", sans-serif;
  cursor: pointer;
}

.email-subscribe__status {
  margin: -8px 0 0;
  color: var(--kpn-green-grey-grey-500);
  font-size: var(--fc-minimal-paragraph-detail-regular);
  line-height: 1.4;
  text-align: center;
}

.email-subscribe__status:empty {
  display: none;
}

.email-subscribe__status.is-error {
  color: var(--kpn-green-orange-orange-600);
}

.email-subscribe__status.is-success {
  color: var(--kpn-green-green-green-600);
}

.email-subscribe__unsubscribe {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--kpn-green-grey-grey-50);
  text-align: center;
}

.email-subscribe__unsubscribe p {
  max-width: 620px;
  margin: 0 auto 6px;
  color: var(--kpn-green-grey-grey-600);
  font-size: var(--fc-minimal-paragraph-detail-regular);
  line-height: 1.55;
}

.email-subscribe__unsubscribe a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fc-minimal-paragraph-detail-semibold);
}

.email-subscribe__return {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--kpn-green-grey-grey-50);
  text-align: center;
}

.email-subscribe__return p {
  margin: 0;
  color: var(--kpn-green-grey-grey-600);
  font-size: var(--fc-minimal-paragraph-detail-regular);
  line-height: 1.55;
}

.email-subscribe__return a {
  margin-left: 4px;
  font-weight: 600;
}

@media (max-width: 767.98px) {
  .email-subscribe {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .email-subscribe__header {
    margin-bottom: 32px;
  }

  .email-subscribe__panel {
    padding: 32px;
    border-radius: 16px;
  }
}

@media (max-width: 575.98px) {
  .email-subscribe__guide-break {
    display: none;
  }

  .email-subscribe__panel {
    padding: 28px 20px;
  }

  .email-subscribe__actions .btn-more {
    width: 100%;
    justify-content: space-between;
  }

  .email-subscribe__unsubscribe {
    margin-top: 28px;
    padding-top: 20px;
  }

  .email-subscribe__return {
    margin-top: 28px;
    padding-top: 20px;
  }
}
/* KPN typography audit --------------------------------------------------- */
.email-subscribe__lead {
  color: var(--kpn-green-grey-grey-500);
  font-size: var(--fc-minimal-paragraph-regular-regular);
  font-weight: 400;
}

/* ฟอร์มเป็น <form runat="server"> — กล่อง hidden ของ ASP.NET (ViewState) ไม่ต้องกินช่อง gap */
.email-subscribe__form > .aspNetHidden {
  display: none;
}

/* reCAPTCHA (UC_Recaptcha.ascx) */
.email-subscribe__captcha {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.email-subscribe__captcha #Messagerecapt:empty {
  display: none;
}

/* หน้าขอบคุณหลังสมัครรับข่าวสาร (email-alerts-subscribe.aspx — ไม่มีในดีไซน์ ใช้โทนเดียวกับฟอร์ม) */
.email-subscribe__done {
  text-align: center;
}

.email-subscribe__done-icon {
  display: inline-flex;
  width: 64px;
  height: 64px;
  color: var(--kpn-green-green-green-600);
}

.email-subscribe__done-icon svg {
  width: 100%;
  height: 100%;
}

.email-subscribe__done-text {
  margin: 16px 0 24px;
  color: var(--kpn-green-grey-grey-600);
  font-size: var(--fc-minimal-paragraph-regular-regular);
  line-height: 1.6;
}
