/* ============================================================
   EBKaC labs — newsletter subscribe page
   Layout is the original two-column card (form + illustration);
   the visual styling has been rebranded to match the rest of the
   site: Fraunces headings, Plus Jakarta Sans body, the orange
   (#FF5600) / green (#1B3A2D) palette, a light branded backdrop,
   and soft white cards. Wording is unchanged.
   ============================================================ */

:root{
  --ink:#1d1d1f;
  --ink-soft:#6e6e73;
  --orange:#FF5600;
  --orange-soft:#FF8A3D;
  --green:#1B3A2D;
  --line:#e3e3e6;
  --card-shadow:0 1px 3px rgba(0,0,0,.05),0 24px 56px rgba(0,0,0,.14);
}

* {
  box-sizing: border-box;
}

body {
  /* light, branded backdrop — echoes the home hero gradient wash */
  background:
    radial-gradient(60% 50% at 20% 30%, rgba(255,86,0,.28), transparent 60%),
    radial-gradient(50% 60% at 85% 20%, rgba(27,58,45,.35), transparent 60%),
    radial-gradient(70% 60% at 60% 90%, rgba(80,120,255,.22), transparent 60%),
    #eef0f2;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  width: 100%;
  min-height: 100vh;
  color: var(--ink);
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  -webkit-font-smoothing: antialiased;
}

.signup-container {
  width: 900px;
  max-width: 100%;
  min-height: 630px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  background-color: #ffffff;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.content {
  width: 400px;
  max-width: 100%;
  color: var(--ink);
  margin-left: 60px;
}

.signup-header {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--green);
  font-size: 45px;
  margin-top: 100px !important;
  margin-left: 40px;
  font-weight: 600;
  letter-spacing: -.01em;
}

p {
  font-size: 16px;
  color: var(--ink);
  margin-left: 10px;
  line-height: 24px;
}

.update-list {
  width: 400px;
  max-width: 100%;
  text-align: left;
  margin-left: 15px;
}

.icon {
  margin-right: 10px !important;
}

li {
  margin-left: -39px;
  list-style: none;
  padding: 5px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.image {
  margin-right: 20px;
  margin-left: 20px;
}

.image img {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
}

#signup-form {
  max-width: 400px;
  margin: 0 auto;
  padding: 20px;
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.newsletter-label {
  display: block;
  font-weight: bold;
  font-size: 14px;
  margin: 0;
}

.error-message {
  color: red;
  font-size: 13px;
  display: none;
  margin: 0 !important;   /* override global p { margin-left: 10px } */
  line-height: normal;
  text-align: right;
}

.email-input {
  width: 100%;
  padding: 14px;
  margin-bottom: 20px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s;
}

.email-input:focus {
  border: 1px solid var(--orange);
  box-shadow: 0 0 0 4px rgba(255,86,0,.12);
  outline: none;
}

.submit-button {
  width: 100%;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-soft) 100%);
  box-shadow: 0 8px 24px rgba(255,86,0,0.28);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  color: #fff;
  padding: 14px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
}

.submit-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 12px 28px rgba(255,86,0,0.34);
}

.submit-button:disabled {
  opacity: .7;
  cursor: default;
  transform: none;
}

.attribution {
  font-size: 11px;
  text-align: center;
  position: fixed;
  bottom: 10px;
  width: 100%;
  color: var(--ink-soft);
}

.attribution a {
  color: var(--orange);
}

#success {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  width: 450px;
  max-width: 90%;
  min-height: 450px;
  padding: 48px 40px;
  text-align: center;
}

#success img {
  width: 56px;
  height: 56px;
  margin: 0 0 24px 0;
}

.success-text {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--ink);
  font-size: 30px;
  font-weight: 600;
  margin: 0 0 12px 0;
  text-align: center;
}

#success p {
  margin: 0 0 8px 0;
  text-align: center;
}

.dismiss-button {
  width: 100%;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-soft) 100%);
  box-shadow: 0 8px 24px rgba(255,86,0,0.28);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  color: #fff;
  padding: 14px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  margin-top: 32px;
}

.dismiss-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
}

/* =========================
   MOBILE RESPONSIVE LAYOUT
========================= */

@media (max-width: 768px) {
  body {
    padding: 20px;
    align-items: center;
  }

  .signup-container {
    width: 100%;
    max-width: 420px;
    min-height: auto;
    flex-direction: column;
    border-radius: 20px;
    padding: 20px;
    gap: 20px;
    box-shadow: var(--card-shadow);
  }

  .content {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .signup-header {
    font-size: 38px;
    margin: 0 0 20px 0 !important;
  }

  p {
    margin-left: 0;
    text-align: left;
    margin-bottom: 24px;
  }

  .update-list {
    width: 100%;
    margin-left: 0;
    padding-left: 0;
    margin-bottom: 28px;
  }

  li {
    margin-left: 0;
    white-space: normal;
  }

  .image {
    display: none;
  }

  #signup-form {
    width: 100%;
    padding: 0;
    margin-top: 10px;
  }

  .email-input,
  .submit-button {
    width: 100%;
  }

  #success {
    width: 100%;
    max-width: 420px;
    min-height: auto;
    border-radius: 20px;
    padding: 40px 25px;
    box-shadow: var(--card-shadow);
  }

  .dismiss-button {
    width: 100%;
    margin: 30px 0 0 0;
  }

  .attribution {
    display: none;
  }
}
