.scholarship-application-document {
  color: var(--color-text-primary);
  background: var(--color-surface-soft);
}

.scholarship-application-page {
  overflow: hidden;
  background: var(--color-surface-soft);
}

.scholarship-hero {
  position: relative;
  min-height: 274px;
  display: grid;
  place-items: start center;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  background:
    radial-gradient(circle at 8% 42%, rgba(183, 218, 142, .78) 0, rgba(183, 218, 142, 0) 28%),
    radial-gradient(circle at 27% 18%, rgba(247, 235, 146, .66) 0, rgba(247, 235, 146, 0) 25%),
    radial-gradient(circle at 42% 55%, rgba(229, 201, 183, .74) 0, rgba(229, 201, 183, 0) 30%),
    radial-gradient(circle at 72% 18%, rgba(232, 208, 218, .7) 0, rgba(232, 208, 218, 0) 34%),
    radial-gradient(circle at 94% 80%, rgba(172, 193, 222, .72) 0, rgba(172, 193, 222, 0) 34%),
    #eef1e7;
}

.scholarship-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -36px;
  background: inherit;
  filter: blur(24px);
}

.scholarship-hero__inner {
  width: min(calc(100% - 48px), 940px);
  padding-top: 69px;
}

.scholarship-hero h1 {
  margin: 0;
  color: var(--color-primary);
  font: 700 46px / 1.3 var(--font-display);
  letter-spacing: -.025em;
}

.scholarship-hero p {
  margin: 24px 0 0;
  color: var(--color-primary);
  font-size: 16px;
  line-height: 1.6;
}

.scholarship-form-section {
  min-height: 746px;
  padding: 49px 0 58px;
  background: var(--color-surface-soft);
}

.scholarship-form-wrap {
  width: min(calc(100% - 48px), 694px);
  margin-inline: auto;
}

.scholarship-form {
  display: flex;
  flex-direction: column;
  gap: 29px;
}

.scholarship-field {
  min-width: 0;
  display: block;
}

.scholarship-field input,
.scholarship-field select,
.scholarship-field textarea {
  width: 100%;
  display: block;
  border: 1px solid #b9b9b9;
  border-radius: 2px;
  color: #2c2c2c;
  background-color: #fff;
  font: 400 16px / 1.4 var(--font-body);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.scholarship-field input,
.scholarship-field select {
  height: 44px;
  padding: 10px 14px;
}

.scholarship-field select {
  padding-right: 40px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23b8b8b8' d='M1 1.5 6 6.5l5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
}

.scholarship-field textarea {
  min-height: 98px;
  padding: 13px 14px;
  resize: vertical;
}

.scholarship-field input::placeholder,
.scholarship-field textarea::placeholder {
  color: #aaa;
  opacity: 1;
}

.scholarship-field input:hover,
.scholarship-field select:hover,
.scholarship-field textarea:hover {
  border-color: #939393;
}

.scholarship-field input:focus,
.scholarship-field select:focus,
.scholarship-field textarea:focus {
  border-color: var(--color-primary);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(11, 59, 145, .12);
}

.scholarship-field small {
  display: block;
  margin-top: 5px;
  color: #626b7c;
  font-size: 14px;
  line-height: 1.35;
}

.scholarship-phone-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.scholarship-turnstile {
  width: min(100%, 300px);
  min-height: 65px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  color: var(--color-text-secondary);
  font: 400 13px / 1.5 var(--font-body);
}

.scholarship-turnstile[data-state="unavailable"] {
  width: min(100%, 300px);
  min-height: 65px;
  display: flex;
  align-items: center;
  overflow: visible;
  color: #202124;
  font: 400 14px / 1.2 Arial, sans-serif;
}

.scholarship-turnstile-shell {
  width: 300px;
  min-height: 65px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid #d6d6d6;
  border-radius: 3px;
  background: #fafafa;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}

.scholarship-turnstile-shell__checkbox {
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  box-sizing: border-box;
  border: 2px solid #777;
  border-radius: 2px;
  background: #fff;
}

.scholarship-turnstile-shell__label {
  flex: 1 1 auto;
  min-width: 0;
  color: #202124;
  white-space: nowrap;
}

.scholarship-turnstile-shell__brand {
  width: 70px;
  flex: 0 0 70px;
  display: grid;
  justify-items: center;
  gap: 2px;
  color: #303030;
  text-align: center;
}

.scholarship-turnstile-shell__brand strong {
  margin: 0;
  color: #303030;
  font: 700 9px / 1 Arial, sans-serif;
  letter-spacing: 1.2px;
}

.scholarship-turnstile-shell__brand small {
  color: #555;
  font: 400 9px / 1 Arial, sans-serif;
  white-space: nowrap;
}

.scholarship-turnstile-shell__cloud {
  position: relative;
  width: 28px;
  height: 11px;
  margin-top: 1px;
  border-radius: 8px 8px 3px 3px;
  background: #f48120;
}

.scholarship-turnstile-shell__cloud::before,
.scholarship-turnstile-shell__cloud::after {
  position: absolute;
  bottom: 2px;
  display: block;
  border-radius: 50%;
  background: #f48120;
  content: "";
}

.scholarship-turnstile-shell__cloud::before {
  left: 4px;
  width: 12px;
  height: 12px;
}

.scholarship-turnstile-shell__cloud::after {
  right: 3px;
  width: 9px;
  height: 9px;
}

.scholarship-turnstile iframe {
  display: block;
  max-width: 100%;
}

.scholarship-submit {
  width: fit-content;
  min-width: 86px;
  min-height: 42px;
  margin-top: -12px;
  padding: 0 15px;
  border: 0;
  border-radius: 2px;
  color: white;
  background: #0875b9;
  font: 600 16px / 1 var(--font-body);
  cursor: pointer;
  transition: color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.scholarship-submit:hover:not(:disabled) {
  color: var(--color-primary-deep);
  background: var(--color-secondary-hover);
  transform: translateY(-1px);
}

.scholarship-submit:disabled {
  color: #eef1f5;
  background: #8c95a6;
  cursor: not-allowed;
}

.scholarship-status {
  min-height: 22px;
  margin: -18px 0 0;
  color: var(--color-primary);
  font-size: 13px;
  line-height: 1.5;
}

.scholarship-status[data-state="error"] {
  color: var(--color-danger);
}

.scholarship-status[data-state="success"] {
  color: var(--color-success);
}

/* The shared non-home CTA treatment is intentionally bright, but the
   reference form keeps Submit visibly disabled until Turnstile completes. */
body:not(.home-body) .scholarship-submit:disabled,
body:not(.home-body) .scholarship-submit:hover:disabled {
  color: #eef1f5;
  background: #8c95a6;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 720px) {
  .scholarship-hero {
    min-height: 238px;
  }

  .scholarship-hero__inner {
    width: calc(100% - 28px);
    padding-top: 55px;
  }

  .scholarship-hero h1 {
    font-size: 34px;
  }

  .scholarship-hero p {
    margin-top: 18px;
  }

  .scholarship-form-section {
    padding: 38px 0 48px;
  }

  .scholarship-form-wrap {
    width: calc(100% - 28px);
  }
}

@media (max-width: 480px) {
  .scholarship-hero {
    min-height: 220px;
  }

  .scholarship-hero__inner {
    padding-top: 45px;
  }

  .scholarship-hero h1 {
    font-size: 30px;
  }

  .scholarship-hero p {
    font-size: 15px;
  }

  .scholarship-form {
    gap: 24px;
  }

  .scholarship-phone-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scholarship-field input,
  .scholarship-field select,
  .scholarship-field textarea,
  .scholarship-submit {
    transition: none;
  }
}
