/* ===== Higher Ed CTA form (staffing-analogous) ===== */

#cta.cta-section {
  padding: 96px 80px;
  font-family: "Manrope", sans-serif;
  background: #1f1c26 url("/higher-education/assets/marketing/dark.png") center / cover no-repeat;
}

.cta-inner {
  max-width: 1150px;
  margin: 0 auto;
  text-align: center;
}

.cta-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.15;
}

.cta-subtitle {
  font-size: 17px;
  line-height: 1.6;
  color: #dbdefe;
  margin: 0 0 40px;
}

.cta-form-card {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 36px;
  text-align: left;
  position: relative;
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cta-form.cta-form--hidden {
  display: none !important;
}

.cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cta-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cta-label {
  font-size: 13px;
  font-weight: 600;
  color: #4c4951;
}

.cta-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e9e9ea;
  border-radius: 8px;
  font-size: 14px;
  font-family: "Manrope", sans-serif;
  color: #1f1c26;
  outline: none;
  box-sizing: border-box;
  background: #fff;
}

.cta-input::placeholder {
  color: #9a999d;
}

.cta-input:focus {
  border-color: #5848f7;
}

.cta-input.is-invalid {
  border-color: #c41230;
  box-shadow: 0 0 0 3px rgba(196, 18, 48, 0.15);
}

.cta-field .sk-select.is-invalid .sk-select-trigger {
  border-color: #c41230;
  box-shadow: 0 0 0 3px rgba(196, 18, 48, 0.15);
}

.cta-field .sk-select-placeholder {
  color: #9a999d;
}

.cta-field .sk-select-panel {
  z-index: 50;
}

.cta-field-error {
  margin-top: 4px;
  color: #c41230;
  font-size: 12px;
  font-weight: 700;
  font-family: "Manrope", sans-serif;
}

.cta-submit {
  width: 100%;
  padding: 20px 44px;
  border: none;
  border-radius: 10px;
  background: #5848f7;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  font-family: "Manrope", sans-serif;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(88, 72, 247, 0.35);
  transition: background 0.2s ease, transform 0.2s ease;
}

.cta-submit:hover {
  background: #3827d9;
  transform: translateY(-1px);
}

.cta-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cta-submit-error {
  text-align: center;
  color: #c41230;
  font-size: 13px;
  font-weight: 600;
  margin-top: 8px;
}

.cta-form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  min-height: 280px;
  font-family: "Manrope", sans-serif;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.cta-form-success.is-visible {
  display: flex;
  opacity: 1;
}

.cta-form-success.is-fading {
  opacity: 0;
}

.cta-success-face {
  width: 92px;
  height: auto;
  display: block;
  margin: 0 auto 20px;
  transform: rotate(15deg);
}

.cta-success-text {
  font-size: 25px;
  font-weight: 700;
  color: #5848f7;
  margin: 0;
  line-height: 1.5;
  max-width: 360px;
}

/* Modal */

.cta-modal-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
  width: 100%;
  box-sizing: border-box;
  padding: 80px 24px 40px;
}

.cta-modal-overlay::before {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  background: #1f1c26 url("/higher-education/assets/marketing/dark-modal.png") center / cover no-repeat;
  opacity: 0.98;
  pointer-events: none;
}

.cta-modal-content {
  width: min(900px, 100%);
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
  box-sizing: border-box;
}

.cta-modal-mascots {
  margin-top: 28px;
  max-width: 100%;
}

.cta-modal-mascots .product-guide-mascots {
  margin-bottom: 0;
}

@media (min-width: 769px) {
  .cta-modal-mascots {
    margin-top: 48px;
  }
}

@media (max-width: 768px) {
  #cta.cta-section {
    padding: 56px 20px 28px;
    border-bottom: none;
    background-color: #1f1c26;
    background-image: url("/higher-education/assets/marketing/dark.png");
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 155% 185%;
  }

  .cta-form-card {
    padding: 24px 16px;
  }

  .cta-input {
    font-size: 16px;
  }

  .cta-field .sk-select-trigger {
    font-size: 16px;
  }

  .cta-modal-overlay {
    padding: 72px 16px 24px;
  }

  .cta-modal-mascots .product-guide-mascots {
    --pg-mascot-h: 72px;
  }

  .cta-field .sk-select-panel {
    top: auto;
    bottom: calc(100% + 6px);
    max-height: min(220px, 42vh);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 500px) {
  .cta-row {
    grid-template-columns: 1fr;
  }
}
