/* CLATutor — Scholarship Test ad + form (isolated; does not alter other site styles) */

.schol-ad {
  --schol-ink: #0c0c0c;
  --schol-paper: #f4efe4;
  --schol-red: #e11d2e;
  --schol-red-deep: #b9101f;
  --schol-yellow: #ffcc00;
  --schol-yellow-hot: #ffe566;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
}

.schol-ad__link {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.85fr);
  width: 100%;
  min-height: clamp(150px, 18vw, 200px);
  overflow: hidden;
  border-radius: 0;
  text-decoration: none !important;
  color: inherit;
  box-shadow: 0 10px 28px rgba(12, 12, 12, 0.12);
  transition: filter 0.2s ease;
}

.schol-ad__link:hover {
  filter: brightness(1.03);
}

.schol-ad__link:focus-visible {
  outline: 3px solid var(--schol-yellow);
  outline-offset: -3px;
}

.schol-ad__visual {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  padding: clamp(1.1rem, 2.8vw, 1.75rem) clamp(1.25rem, 5vw, 4.5rem);
  background:
    radial-gradient(520px 260px at 8% 20%, rgba(255, 204, 0, 0.38), transparent 58%),
    radial-gradient(480px 240px at 92% 88%, rgba(225, 29, 46, 0.14), transparent 55%),
    linear-gradient(120deg, #faf6ee 0%, var(--schol-paper) 48%, #ebe3d4 100%);
  color: var(--schol-ink);
}

.schol-ad__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(12, 12, 12, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 12, 12, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.35), transparent 70%);
  pointer-events: none;
}

.schol-ad__visual::after {
  content: '';
  position: absolute;
  right: -4%;
  bottom: -42%;
  width: min(42vw, 380px);
  height: min(42vw, 380px);
  border-radius: 42% 58% 48% 52%;
  background: linear-gradient(160deg, rgba(225, 29, 46, 0.16), transparent 68%);
  pointer-events: none;
}

.schol-ad__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: min(720px, 100%);
}

.schol-ad__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.95rem;
}

.schol-ad__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--schol-yellow-hot), var(--schol-yellow));
  color: var(--schol-ink);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(255, 204, 0, 0.32);
  animation: schol-pop 2.8s ease-in-out infinite;
}

.schol-ad__badge strong {
  font-size: 0.92rem;
  margin-right: 0.25rem;
}

.schol-ad__kicker {
  margin: 0;
  font-size: clamp(0.78rem, 1.4vw, 0.9rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(12, 12, 12, 0.7);
}

.schol-ad__title-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
}

.schol-ad__title {
  margin: 0;
  padding: 0.65rem 1.1rem 0.7rem;
  border-radius: 1rem;
  background: linear-gradient(155deg, #ff3142 0%, var(--schol-red) 48%, var(--schol-red-deep) 100%);
  color: #fff;
  font-size: clamp(1.55rem, 3.6vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  box-shadow:
    0 16px 30px rgba(185, 16, 31, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.1);
}

.schol-ad__sub {
  margin: 0;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--schol-yellow-hot), var(--schol-yellow));
  color: var(--schol-ink);
  font-size: clamp(0.72rem, 1.35vw, 0.86rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 8px 16px rgba(255, 204, 0, 0.26);
}

.schol-ad__cta-pane {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 4vw, 3rem);
  background:
    radial-gradient(320px 200px at 70% 28%, rgba(255, 204, 0, 0.2), transparent 65%),
    linear-gradient(165deg, #1a1a1a 0%, #0a0a0a 100%);
  color: #fff;
  text-align: center;
}

.schol-ad__cta-pane::before {
  content: '';
  position: absolute;
  inset: 12% auto 12% 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 204, 0, 0.5), transparent);
}

.schol-ad__anytime {
  margin: 0;
  font-size: clamp(0.92rem, 1.8vw, 1.12rem);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.schol-ad__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-width: min(240px, 86%);
  padding: 0.95rem 1.45rem;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--schol-yellow-hot), var(--schol-yellow));
  color: var(--schol-ink) !important;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none !important;
  box-shadow: 0 14px 26px rgba(255, 204, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.schol-ad__link:hover .schol-ad__btn {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 18px 32px rgba(255, 204, 0, 0.4);
}

.schol-ad__hint {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.66);
}

@keyframes schol-pop {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.045);
  }
}

@media (max-width: 860px) {
  .schol-ad__link {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .schol-ad__visual {
    padding: 1.25rem 1.15rem 1.15rem;
    justify-content: center;
  }

  .schol-ad__content {
    width: 100%;
    align-items: center;
    text-align: center;
  }

  .schol-ad__top {
    justify-content: center;
  }

  .schol-ad__title-block {
    justify-content: center;
  }

  .schol-ad__cta-pane {
    padding: 1.35rem 1.15rem 1.45rem;
  }

  .schol-ad__cta-pane::before {
    inset: 0 8% auto;
    width: auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 204, 0, 0.5), transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  .schol-ad__badge,
  .schol-ad__link,
  .schol-ad__btn {
    animation: none !important;
    transition: none !important;
  }
}

/* ——— Scholarship test page ——— */
.page-scholarship {
  --schol-ink: #121212;
  --schol-muted: #5c5c5c;
  --schol-line: #e8e4dc;
  --schol-paper: #f7f4ee;
  --schol-card: #ffffff;
  --schol-red: #e11d2e;
  --schol-yellow: #ffcc00;
  --schol-orange: #f47b20;
  color: var(--schol-ink);
  background:
    radial-gradient(700px 360px at 8% -8%, rgba(255, 204, 0, 0.18), transparent 55%),
    radial-gradient(620px 320px at 100% 0%, rgba(225, 29, 46, 0.1), transparent 50%),
    linear-gradient(180deg, #faf8f4 0%, #ffffff 48%, #f7f4ee 100%);
}

.schol-page {
  padding: clamp(1.5rem, 4vw, 2.75rem) 0 4rem;
}

.schol-page__wrap {
  width: min(980px, 92vw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: stretch;
}

.schol-page__intro {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: 1.5rem;
  background:
    radial-gradient(380px 220px at 20% 15%, rgba(255, 204, 0, 0.28), transparent 60%),
    linear-gradient(155deg, #171717 0%, #0f0f0f 100%);
  color: #fff;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.18);
}

.schol-page__eyebrow {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--schol-yellow);
}

.schol-page__title {
  margin: 0;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.schol-page__title span {
  color: var(--schol-yellow);
}

.schol-page__lead {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
}

.schol-page__points {
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.schol-page__points li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.88);
}

.schol-page__points i {
  margin-top: 0.15rem;
  color: var(--schol-yellow);
}

.schol-form-card {
  padding: clamp(1.35rem, 3vw, 2rem);
  border-radius: 1.5rem;
  background: var(--schol-card);
  border: 1px solid var(--schol-line);
  box-shadow: 0 18px 40px rgba(18, 18, 18, 0.08);
}

.schol-form-card__head {
  margin-bottom: 1.25rem;
}

.schol-form-card__head h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.schol-form-card__head p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--schol-muted);
}

.schol-form {
  display: grid;
  gap: 0.95rem;
}

.schol-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--schol-ink);
}

.schol-field input,
.schol-field select {
  width: 100%;
  box-sizing: border-box;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--schol-line);
  border-radius: 0.85rem;
  background: #fcfcfb;
  color: var(--schol-ink);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.schol-field input:focus,
.schol-field select:focus {
  outline: none;
  border-color: rgba(244, 123, 32, 0.65);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(244, 123, 32, 0.12);
}

.schol-form__actions {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.schol-submit {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.95rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff9f4d 0%, var(--schol-orange) 55%, #e06a12 100%);
  color: #fff;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 24px rgba(244, 123, 32, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.schol-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(244, 123, 32, 0.34);
}

.schol-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.schol-alt {
  text-align: center;
  font-size: 0.84rem;
  color: var(--schol-muted);
}

.schol-alt a {
  color: var(--schol-orange);
  font-weight: 700;
  text-decoration: none;
}

.schol-alt a:hover {
  text-decoration: underline;
}

.schol-alert {
  display: none;
  margin-bottom: 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.schol-alert.is-visible {
  display: block;
}

.schol-alert--ok {
  background: #ecfdf3;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.schol-alert--err {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

@media (max-width: 820px) {
  .schol-page__wrap {
    grid-template-columns: 1fr;
  }
}
