/* ==========================================================================
   MBH — apply.css
   MBH Academy application form. Builds on the field styles in contact.css;
   adds the CV picker. Errors and notices live in contact.css.
   ========================================================================== */

.apply__form { margin-top: 34px; }

/* Long question labels read as sentences, not caps */
.field label[for="course"],
.field label[for="motivation"] {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

.field__label {
  color: var(--green-900);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.field__hint { color: var(--muted); font-size: 0.8125rem; }

.field.has-error .apply__file { border-color: #b42318; }

/* CV picker: the native input sits invisibly over a styled row */
.field .apply__file {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--muted);
  font-size: var(--fs-body);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  transition: border-color 0.4s var(--ease);
}

.field .apply__file:hover,
.apply__file:focus-within { border-color: var(--accent); }

.apply__file input {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  cursor: pointer;
}

.apply__file-btn {
  flex: none;
  padding: 10px 16px;
  background: var(--green-900);
  color: var(--paper);
  font-size: 0.8125rem;
  font-weight: 600;
}

.apply__file-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.apply__file.is-filled .apply__file-name { color: var(--green-900); font-weight: 500; }


/* --------------------------------------------------------------- aside
   Photo, Academy benefits and contact details beside the form; sticks
   alongside it on wide screens. */
@media (min-width: 940px) {
  .apply__aside { position: sticky; top: calc(var(--header-h-sm) + 32px); }
}

.apply__photo {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--green-900);
}

.apply__photo img { width: 100%; height: 100%; object-fit: cover; }

.apply__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 39, 28, 0) 40%, rgba(6, 39, 28, 0.85) 100%);
}

.apply__photo figcaption {
  position: absolute;
  left: clamp(20px, 2.4vw, 28px);
  right: clamp(20px, 2.4vw, 28px);
  bottom: clamp(18px, 2.2vw, 26px);
  z-index: 1;
  display: grid;
  gap: 10px;
  justify-items: start;
}

.apply__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  background: var(--accent);
  color: var(--paper);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1;
}

.apply__badge-mark {
  width: 10px;
  height: 12px;
  background: var(--paper);
  transform: skewX(-19deg);
}

.apply__motto {
  color: var(--paper);
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.apply__panel {
  padding: clamp(24px, 2.8vw, 34px);
  background: var(--green-900);
}

.apply__panel .eyebrow { color: var(--accent-hi); }

.apply__perks { display: grid; margin-top: 20px; }

.apply__perks li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: start;
  padding: 16px 0;
  border-top: 1px solid rgba(254, 254, 254, 0.12);
  color: rgba(254, 254, 254, 0.72);
  font-size: 0.875rem;
  line-height: 1.6;
}

.apply__perks li:last-child { padding-bottom: 0; }

.apply__perks b {
  display: block;
  margin-bottom: 2px;
  color: var(--paper);
  font-size: 0.9375rem;
  font-weight: 600;
}

.apply__perk-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(89, 141, 41, 0.5);
  color: var(--accent-hi);
}

.apply__perk-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.apply__contact {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.apply__contact .contact__direct { margin-top: 16px; }
