/* Compact cooperation directory; reuse the existing form controls. */
.cooperation-page-body { background: #faf9f6; }
.cooperation-page::before { display: none; }
.cooperation-page { color: #242320; }
.cooperation-shell { width: min(1280px, calc(100% - var(--page-gutter) * 2)); margin-inline: auto; }
/* Match the overview hero-bottom + featured-image top spacing. */
.cooperation-intro { padding-top: clamp(68px, 7vw, 112px); padding-bottom: calc(clamp(76px, 7vw, 116px) + clamp(38px, 4vw, 64px)); text-align: center; }
.cooperation-intro h1 { margin: 0; font-size: clamp(38px, 4vw, 60px); line-height: 1.2; letter-spacing: 0; }
.cooperation-intro > p { margin: 22px auto 0; max-width: 800px; font-size: 18px; line-height: 1.7; color: #625e59; text-wrap: balance; }
.cooperation-types { padding-bottom: clamp(80px, 8vw, 120px); scroll-margin-top: 100px; }
.cooperation-type { border-top: 1px solid #d8d5ce; }
.cooperation-type:last-child { border-bottom: 1px solid #d8d5ce; }
.cooperation-type summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 32px; list-style: none; cursor: pointer; }
.cooperation-type summary::-webkit-details-marker { display: none; }
.cooperation-type h2 { margin: 0; font-size: clamp(25px, 2.3vw, 34px); line-height: 1.35; letter-spacing: 0; text-wrap: balance; }
.cooperation-plus { position: relative; display: block; width: 38px; height: 38px; border: 1px solid #b64c13; border-radius: 50%; color: #b64c13; flex: 0 0 38px; transition: color .2s, background .2s; }
.cooperation-plus::before, .cooperation-plus::after { content: ""; position: absolute; top: 50%; left: 50%; width: 16px; height: 1.5px; background: currentColor; transform: translate(-50%,-50%); }
.cooperation-plus::after { transform: translate(-50%,-50%) rotate(90deg); transition: transform var(--disclosure-duration) var(--disclosure-ease); }
.cooperation-type[open] .cooperation-plus::after { transform: translate(-50%,-50%); }
@media (hover: hover) {
  .cooperation-type summary:hover .cooperation-plus { background: #b64c13; color: #fff; }
}
.cooperation-type-content { padding: 0 64px 32px 0; max-width: 850px; }
.cooperation-type-content p { margin: 0 0 16px; color: #625e59; font-size: 17px; line-height: 1.8; text-wrap: pretty; }
.cooperation-inline-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; color: #ad4713; font-size: 16px; line-height: 1; transition: color 320ms cubic-bezier(.22, 1, .36, 1); }
.cooperation-inline-link:hover, .cooperation-inline-link:focus-visible { color: #c55016; }
@media (hover: hover) and (pointer: fine) {
  .cooperation-inline-link:not(:hover):not(:focus-visible):not(:active) { transition-delay: var(--hover-exit-delay, 0ms); }
}
.cooperation-page :is(a,summary):focus-visible { outline: 2px solid #b64c13; outline-offset: 5px; }
.cooperation-form-band { background: #f0efec; padding-block: clamp(64px,7vw,104px); scroll-margin-top: 76px; }
.cooperation-form-heading { margin: 0 0 28px; font-size: clamp(30px, 2.7vw, 40px); line-height: 1.35; }
.cooperation-form-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: end; gap: clamp(56px, 9vw, 144px); }
.cooperation-form-copy > p { font-size: 16px; line-height: 1.8; color: #625e59; margin: 0 0 18px; max-width: 30em; }
.cooperation-contacts { margin-top: 42px; }
.cooperation-contacts h3 { margin: 0 0 26px; font-size: 22px; }
.cooperation-office { font-style: normal; margin-top: 30px; }
.cooperation-office h4 { margin: 0 0 12px; font-size: 18px; }
.cooperation-office p { margin: 6px 0; font-size: 16px; line-height: 1.8; color: #5b5752; }
.cooperation-office:last-child p:last-child { margin-bottom: 0; }
.cooperation-office a { color: inherit; display: inline-block; text-decoration: none; white-space: nowrap; }
.cooperation-office a:hover { color: #c4501f; }
.cooperation-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.cooperation-field {
  display: grid;
  gap: 10px;
}

.cooperation-field > span:first-child {
  color: rgba(21, 21, 21, 0.58);
  font-size: 13px;
}

.cooperation-field input,
.cooperation-field select,
.cooperation-field textarea {
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  border: 1px solid rgba(21, 21, 21, 0.14);
  border-radius: 6px;
  color: #151515;
  background: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  font-weight: 400;
  outline: 0;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.cooperation-field textarea {
  min-height: 142px;
  resize: vertical;
  line-height: 1.75;
}

.cooperation-field input:focus,
.cooperation-field select:focus,
.cooperation-field textarea:focus {
  border-color: rgba(255, 138, 61, 0.62);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 138, 61, 0.1);
}

.cooperation-field .custom-select-trigger { min-height: 56px; font: inherit; font-size: 16px; background: #fff; }
.cooperation-field .custom-select-trigger span { font-weight: 400; }
.cooperation-field .custom-select-options button { font: inherit; font-size: 16px; }

.cooperation-field-wide {
  grid-column: 1 / -1;
}

.cooperation-field-error {
  min-height: 18px;
  color: #c74e36;
  font-size: 12px;
}
.cooperation-field-error:empty { display: none; }

.cooperation-field .is-invalid {
  border-color: rgba(199, 78, 54, 0.72);
}

.cooperation-form-footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  margin-top: 20px;
}
.cooperation-form-footer button[type="submit"] { width: 100%; justify-content: center; }

.cooperation-form-footer p {
  max-width: 530px;
  margin: 0;
  color: rgba(21, 21, 21, 0.44);
  font-size: 12px;
  line-height: 1.65;
}

.cooperation-form-footer button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.cooperation-feedback {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(21, 21, 21, 0.22);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.24s ease;
}

.cooperation-feedback[hidden] {
  display: none;
}

.cooperation-feedback.is-open {
  opacity: 1;
}

.cooperation-feedback-dialog {
  transform: translateY(12px);
  transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}

.cooperation-feedback.is-open .cooperation-feedback-dialog {
  transform: translateY(0);
}

.cooperation-feedback-dialog > button {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(21, 21, 21, 0.12);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.cooperation-feedback-dialog > button span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 1.5px;
  background: #151515;
  transform: translate(-50%, -50%) rotate(45deg);
}

.cooperation-feedback-dialog > button span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}


.has-cooperation-dialog {
  overflow: hidden;
}

/* The homepage tab renders the same form, inside its existing application shell. */
.application-panel .panel-topline > span:first-child { text-transform: none; }
.application-heading-stack { display: grid; }
.application-heading-stack > [data-application-heading] { grid-area: 1 / 1; }
.application-heading-stack > [data-application-heading="business"],
.application-panel.is-business-mode [data-application-heading="funding"] {
  visibility: hidden;
}
.application-panel.is-business-mode [data-application-heading="business"] { visibility: visible; }
.application-panel > .application-form.is-active { animation: none; }
.cooperation-embedded { margin-top: 24px; }
.cooperation-embedded .cooperation-form-band { padding: 0; background: transparent; }
.cooperation-embedded .cooperation-shell { width: 100%; }
.cooperation-embedded .cooperation-form-layout { display: block; }
.application-panel .cooperation-form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cooperation-embedded .cooperation-field:first-child { grid-column: auto; }
/* Keep both homepage tabs on the shared cooperation field and footer scale. */
#funding-apply-form { display: block; }
#funding-apply-form[hidden] { display: none; }
#funding-apply-form .cooperation-field { gap: 10px; }
#funding-apply-form .cooperation-field > span:first-child { color: #56524c; font-size: 15px; font-weight: 400; }
#funding-apply-form .custom-select-trigger span { font-size: inherit; font-weight: 400; }
#funding-apply-form :is(input:not([type="hidden"]), textarea) {
  min-height: 56px;
  padding: 14px 16px;
  border-radius: 6px;
  font: inherit;
  font-size: 16px;
  color: #151515;
  background: #fff;
  border-color: #bdb8ae;
}
#funding-apply-form .cooperation-field textarea { min-height: 142px; line-height: 1.75; resize: vertical; }
#funding-apply-form :is(input, textarea)::placeholder { color: #706a62; opacity: 1; }
#funding-apply-form .form-error:empty { display: none; }
.application-panel .cooperation-form-footer .apply-submit { width: 100%; }
.application-panel .cooperation-form-footer button { font-size: 16px !important; }
.application-panel .cooperation-form-footer p { max-width: none; line-height: 1.65; }

.cooperation-field > span:first-child { color: #56524c; font-size: 15px; }
.cooperation-field :is(input,select,textarea) { font: inherit; font-size: 16px; background: #fff; border-color: #bdb8ae; }
.cooperation-field :is(input,textarea)::placeholder { color: #706a62; opacity: 1; }
.application-panel .cooperation-field textarea { line-height: 1.75; }
.cooperation-form-footer { flex-wrap: wrap; }
.cooperation-form-footer p { color: #625e59; font-size: 13px; }
.cooperation-noscript { max-width: 900px; padding: 70px 24px; margin: auto; }
@media (max-width: 900px) {
  .application-panel .cooperation-form-grid { grid-template-columns: 1fr; }
  .cooperation-form-layout { grid-template-columns: 1fr; gap: 42px; }
  .cooperation-contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
  .cooperation-contacts h3 { grid-column: 1 / -1; margin-bottom: 0; }
}
@media (max-width: 600px) {
  .cooperation-intro { padding-top: 50px; }
  .cooperation-intro > p { font-size: 16px; }
  .cooperation-type summary { padding-block: 26px; gap: 16px; }
  .cooperation-plus { width: 34px; height: 34px; flex-basis: 34px; }
  .cooperation-type-content { padding-right: 0; padding-bottom: 24px; }
  .cooperation-type-content p { font-size: 16px; }
  .cooperation-form-grid, .cooperation-contacts { grid-template-columns: 1fr; }
  .cooperation-form-grid { gap: 16px; }
  .cooperation-form-footer { flex-direction: column; align-items: flex-start; gap: 18px; margin-top: 20px; }
  .cooperation-feedback-dialog { padding: 42px 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .cooperation-page *, .cooperation-page *::before, .cooperation-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
