/* ===========================================
   SECTION CTA REGISTER
   =========================================== */
.section-cta-register {
  position: relative;
  background: #fff;
  padding: 60px 0;
}

.section-cta-register .container {
  padding: 4rem;
  max-width: 1170px;
  background-color: var(--color-primary);
  border-radius: 20px;
  position: relative;
}

/* ===========================================
   DECORATIONS
   =========================================== */
.cta-register__decor {
  position: absolute;
  width: 0;
  height: 0;
}

.cta-register__decor--left {
  top: -18px;
  left: 15%;
  border-left: 35px solid transparent;
  border-right: 35px solid transparent;
  border-bottom: 55px solid var(--color-secondary);
  transform: rotate(33deg);
}

.cta-register__decor--right {
  bottom: 100px;
  right: 10%;
  width: 55px;
  height: 30px;
  background: var(--color-secondary);
  border-radius: 80px 80px 0 0;
}

/* ===========================================
   CONTENT
   =========================================== */
.cta-register__content {
  text-align: center;
  max-width: 665px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-register__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 16px;
}

.cta-register__desc {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 32px;
}

/* ===========================================
   FORM STYLES (Contact Form 7)
   =========================================== */
.cta-register__form {
  max-width: 500px;
  margin: 0 auto;
}

.cta-register__form .wpcf7-form {
  display: flex;
  justify-content: center;
}

.cta-register__form .wpcf7-form p {
  margin: 0;
  width: 100%;
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 10px;
  padding: 6px;
  gap: 0;
}

.cta-register__form .wpcf7-form br {
  display: none;
}

.cta-register__form .wpcf7-form-control-wrap {
  flex: 1;
}

.cta-register__form input[type="tel"] {
  width: 100%;
  border: none;
  outline: none;
  padding: 12px 20px;
  font-size: 15px;
  font-family: var(--font-family);
  color: var(--color-text);
  background: transparent;
  border-radius: 50px 0 0 50px;
}

.cta-register__form input[type="tel"]::placeholder {
  color: #999;
}

.cta-register__form input[type="submit"] {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 10px;
  background: var(--color-secondary);
  color: #ffffff;
  font-size: 0;
  cursor: pointer;
  transition: all var(--transition-normal);
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='22' y1='2' x2='11' y2='13'%3E%3C/line%3E%3Cpolygon points='22 2 15 22 11 13 2 9 22 2'%3E%3C/polygon%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px;
}

.cta-register__form input[type="submit"]:hover {
  background-color: #2d8a45;
  transform: scale(1.05);
}

/* Spinner & Response */
.cta-register__form .wpcf7-spinner {
  display: none !important;
}

.cta-register__form .wpcf7-response-output {
  margin: 16px 0 0 !important;
  padding: 12px 20px !important;
  border-radius: 8px !important;
  font-size: 14px;
  text-align: center;
  color: #ffffff;
}

.cta-register__form .wpcf7-form.invalid .wpcf7-response-output,
.cta-register__form .wpcf7-form.failed .wpcf7-response-output {
  background: rgba(255, 100, 100, 0.2);
  border-color: rgba(255, 100, 100, 0.5);
}

.cta-register__form .wpcf7-form.sent .wpcf7-response-output {
  background: rgba(57, 166, 83, 0.2);
  border-color: rgba(57, 166, 83, 0.5);
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media screen and (max-width: 768px) {
  .section-cta-register .container {
    padding: 2rem;
  }
  .section-cta-register {
    padding: 50px 10px;
  }

  .cta-register__decor--left {
    left: 5%;
    border-left-width: 30px;
    border-right-width: 30px;
    border-bottom-width: 45px;
  }

  .cta-register__decor--right {
    right: 5%;
    width: 60px;
    height: 30px;
  }

  .cta-register__title {
    font-size: 28px;
  }

  .cta-register__desc {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .cta-register__form input[type="tel"] {
    padding: 10px 16px;
    font-size: 14px;
  }

  .cta-register__form input[type="submit"] {
    width: 44px;
    height: 44px;
  }
}
