.yorkville-apply {
  max-width: 880px;
  padding-block: 42px 60px;
}

.apply-heading { margin-bottom: 24px; }
.apply-heading h1 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.18; }
.apply-title-en { margin-top: 6px; color: var(--teal); font-size: 1.04rem; }
.apply-heading p:last-child { margin-top: 12px; color: var(--muted); }
.yorkville-apply .ouac-section { border-color: var(--line); }
.yorkville-apply .ouac-section h2 { color: var(--ink); }
.yorkville-apply .ouac-section h2 > span { color: var(--muted); }
.yorkville-apply .ouac-section summary > span,
.yorkville-apply .application-section-progress { display: none; }
.yorkville-apply .ucas-section[open] summary { margin-bottom: 18px; }
.yorkville-apply .ucas-section > p { margin-bottom: 16px; color: var(--muted); }
.yorkville-apply [data-repeat] { margin-top: 18px; }
.yorkville-apply .ouac-text-button { color: var(--teal); }
.yorkville-apply input:focus-visible,
.yorkville-apply select:focus-visible,
.yorkville-apply textarea:focus-visible,
.yorkville-apply button:focus-visible { outline: 3px solid #ca7623; outline-offset: 3px; }

.apply-portfolio-requirements {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.apply-portfolio-material {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--wash);
}

.apply-portfolio-material h3 { font-size: 1rem; line-height: 1.35; }
.apply-portfolio-material ul { margin-block: 10px; padding-inline-start: 19px; }
.apply-portfolio-material li + li { margin-top: 8px; }
.apply-portfolio-material span[lang="en"], .apply-portfolio-filename span[lang="en"] {
  display: block;
  color: var(--muted);
  font-size: .92rem;
}

.apply-portfolio-material a { color: var(--teal); text-underline-offset: .17em; }
.apply-portfolio-material a span[lang="en"] { color: inherit; }

.apply-attachments {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.apply-attachment {
  display: grid;
  gap: 8px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.apply-attachment label { display: grid; gap: 5px; }
.apply-attachment-label { font-weight: 700; }
.apply-attachment-label span, .apply-consent span[lang] { display: block; color: var(--muted); font-weight: 400; }
.apply-attachment input { min-width: 0; width: 100%; }
.apply-attachment input[type="file"] { padding: 4px; font-size: .92rem; }
.apply-attachment input::file-selector-button {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #edf4ed;
  padding: 7px 10px;
  margin-inline-end: 8px;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.apply-attachment small, .apply-upload-rules { color: var(--muted); }
.apply-required { color: #9c271f; }
.apply-clear {
  justify-self: start;
  min-height: 40px;
  border: none;
  background: transparent;
  color: var(--teal);
  text-decoration: underline;
}

.apply-consent label { display: flex; align-items: flex-start; gap: 10px; }
.apply-consent input { width: 19px; height: 19px; flex: 0 0 auto; margin-top: 3px; accent-color: var(--teal); }
.apply-submit { margin-top: 14px; border: none; }
.apply-status { margin-top: 12px; color: var(--muted); overflow-wrap: anywhere; }
.apply-status[data-error="true"] { color: #9c271f; }
.apply-errors {
  margin: 16px 0;
  padding: 16px 18px;
  border: 1px solid #ddb6ae;
  border-radius: 9px;
  color: #902d26;
  background: #fff6f3;
}

.apply-errors ul { margin-bottom: 0; padding-inline-start: 20px; }
.apply-errors button {
  border: none;
  background: transparent;
  text-align: start;
  color: inherit;
  text-decoration: underline;
  padding: 5px 0;
}

.apply-receipt h2 { margin-bottom: 10px; }
.apply-receipt p + p { margin-top: 8px; }
.apply-receipt strong { overflow-wrap: anywhere; }
.apply-receipt .button { margin-top: 17px; }
.apply-turnstile:not(:empty) { margin-top: 12px; }

@media (max-width: 540px) {
  .yorkville-apply { padding-block: 28px 38px; }
  .apply-submit { width: 100%; }
  .apply-portfolio-requirements { grid-template-columns: minmax(0, 1fr); }
}
