/* CTA section — qalam-primary.html.
   Depends on shared page tokens (--green, --green-dark, --white, --yellow,
   --sans). */

.cta {
  background: linear-gradient(
    135deg,
    var(--green) 0%,
    var(--green-dark) 100%
  );
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  top: -150px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(250, 204, 21, 0.28) 0%,
    transparent 60%
  );
  filter: blur(34px);
}
.cta::after {
  content: "";
  position: absolute;
  bottom: -150px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.08) 0%,
    transparent 60%
  );
  filter: blur(34px);
}
.cta-inner {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
}
.cta h2 {
  color: var(--white);
  margin: 14px 0 20px;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
}
.cta h2 em {
  font-style: normal;
  color: var(--yellow);
  font-weight: 700;
}
.cta p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  max-width: 620px;
  margin: 0 auto 34px;
  line-height: 1.7;
}
.cta-form {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr auto;
  gap: 10px;
  max-width: 760px;
  margin: 0 auto;
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  backdrop-filter: blur(6px);
}
.cta-form input {
  height: 54px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 500;
  transition: all 0.2s;
  outline: none;
}
.cta-form input::placeholder {
  color: rgba(255, 255, 255, 0.54);
}
.cta-form input:focus {
  border-color: var(--yellow);
  background: rgba(255, 255, 255, 0.12);
}
.cta-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
  padding: 15px 30px;
  border-radius: 100px;
  background: #25d366;
  color: #ffffff;
  font-weight: 700;
  font-size: 15.5px;
  text-decoration: none;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}
.cta-wa:hover {
  background: #1fbd5b;
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.4);
}
.cta-wa img {
  width: 22px;
  height: 22px;
}

@media (max-width: 1100px) {
  .cta-form {
    grid-template-columns: 1fr 1fr;
  }
  .cta-form .btn {
    grid-column: span 2;
  }
}
@media (max-width: 640px) {
  .cta p {
    font-size: 15px;
  }
  .cta-form {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
  }
  .cta-form .btn {
    grid-column: span 1;
  }
}
