.support-layout {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(0, 1.4fr);
  gap: clamp(24px, 5vw, 90px);
  max-width: 1540px;
  margin-inline: auto;
  padding: clamp(24px, 5vw, 75px) var(--gutter) clamp(52px, 7vw, 110px);
}

.support-intro { align-self: start; color: var(--paper); background: var(--ink); }
.support-intro > div { padding: clamp(24px, 4vw, 55px); }
.support-intro .section-marker { margin-bottom: 18px; color: var(--lime); }
.support-intro h1 { font-size: clamp(38px, 4.3vw, 74px); line-height: 1.03; }
.support-intro p, .form-section-intro p { margin-top: 16px; line-height: 1.55; font-size: clamp(16px, 1.45vw, 20px); }
.support-intro p { color: #d2dfd3; }
.support-intro a:focus-visible { outline-color: var(--lime); }
.support-intro .text-link, .contact-hero .text-link { margin-top: 14px; }

.form-section {
  display: grid;
  grid-template-columns: minmax(250px, .85fr) minmax(0, 1.5fr);
  align-items: start;
  gap: clamp(24px, 5vw, 90px);
  padding-block: clamp(40px, 7vw, 100px);
}

.form-section-intro h2 { font-size: clamp(36px, 4.4vw, 70px); line-height: 1.04; }
.form-section-intro .text-link { margin-top: 14px; color: var(--green); }
.form-surface { min-width: 0; padding: clamp(20px, 3.2vw, 48px); border: 1px solid var(--line); background: #fff; }
.form-surface > h2 { margin-bottom: 16px; font-size: clamp(28px, 3vw, 46px); line-height: 1.08; }
.support-choices { display: flex; flex-wrap: wrap; align-items: start; gap: 0 16px; margin-bottom: 12px; }
.form-choice-set { min-width: 0; margin: 0; padding: 0; border: 0; }
.form-choice-set legend { padding: 0; font-size: 15px; font-weight: 600; }
.form-choices { display: flex; flex-wrap: wrap; column-gap: 12px; }
.form-check { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; cursor: pointer; font-size: 15px; }
.form-check input { width: 16px; height: 16px; flex: 0 0 auto; margin: 0; accent-color: var(--green); }
.form-check input:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.support-urgency { align-self: end; padding-inline: 10px; border: 1px solid var(--line); }
.support-urgency:has(:checked) { border-color: #8c561a; background: #fff3df; }
.urgent-note { margin: 0 0 12px; padding: 8px 12px; background: #fff3df; border-left: 3px solid #8c561a; font-size: 14px; line-height: 1.5; }
.urgent-note a { text-decoration: underline; text-underline-offset: 2px; }
.support-details { margin-block: 10px; border-block: 1px solid var(--line); }
.support-details summary { min-height: 44px; padding-block: 11px; cursor: pointer; color: var(--green); font-size: 15px; font-weight: 600; }
.support-details summary span { color: #475649; font-size: 13px; font-weight: 400; }
.support-details .form-grid { padding-bottom: 14px; }
[data-support-form] .form-grid { row-gap: 12px; }
[data-support-form] > .field-hint a { text-decoration: underline; text-underline-offset: 3px; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 15px; }
.form-wide { grid-column: 1 / -1; }
.form-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form-field label { font-size: 15px; font-weight: 600; line-height: 1.4; }
.form-field label span { color: #475649; font-size: 13px; font-weight: 400; }
.form-field :is(input, select, textarea) { width: 100%; min-height: 45px; padding: 10px 11px; font: inherit; color: var(--ink); background: #fff; border: 1px solid #9da99c; border-radius: 0; }
.form-field textarea { resize: vertical; }
.form-field :is(input, select, textarea):focus-visible, .capsa-form button:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.form-field [aria-invalid="true"] { border-color: #992f23; }
.field-hint, .field-error { font-size: 14px; line-height: 1.45; }
.field-hint { color: #475649; }
.form-grid + .field-hint { margin-top: 18px; }
.field-error { color: #992f23; margin-top: 5px; font-weight: 600; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 14px; }
.capsa-form button { font-family: inherit; cursor: pointer; }
.capsa-form .button { border: 0; }
.capsa-form .button:focus-visible { outline-offset: -4px; outline-color: var(--lime); }
.capsa-form .button:disabled { opacity: .7; cursor: wait; }
.form-back { border: 0; background: transparent; color: var(--green); padding: 8px; min-height: 44px; text-decoration: underline; font-size: 15px; }
.form-feedback { margin: 0 0 18px; padding: 14px 17px; line-height: 1.5; }
.form-feedback-error { background: #fff0ec; border-left: 3px solid #992f23; }
.form-feedback-success { background: #eef4e7; border-left: 3px solid var(--green); }
.form-feedback-success h3 { margin-bottom: 6px; font-size: 20px; font-family: Montserrat, sans-serif; }

@media (max-width: 700px) {
  .support-layout, .form-section { grid-template-columns: 1fr; }
  .support-image { display: none; }
}

@media (max-width: 480px) {
  .form-grid { grid-template-columns: 1fr; }
}

@media (min-width: 481px) {
  .form-field-aligned label { min-height: 2.8em; display: flex; align-items: baseline; align-content: start; flex-wrap: wrap; column-gap: 4px; }
}
.form-back { display: inline-flex; align-items: center; gap: 4px; }
.form-field-aligned input { margin-top: auto; }

/* Contact layer remains an ordinary inline form when JavaScript is unavailable. */
.contact-person {
  align-self: start;
  display: grid;
  grid-template-columns: minmax(96px, 30%) minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 3vw, 30px);
  padding: clamp(18px, 4vw, 40px);
  background: #e3ebdf;
}
.contact-person img { width: min(100%, 176px); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; display: block; }
.contact-person h2 { font-size: clamp(24px, 3vw, 38px); }
.contact-person p { margin-top: 8px; color: #3d5143; line-height: 1.5; }
.contact-person .button { margin-top: 18px; }
.form-grid + .field-hint a { text-decoration: underline; text-underline-offset: 3px; }
.form-section-intro .contact-options { margin-top: 20px; }
.support-intro .support-mail { margin-top: 14px; }
.support-mail a { text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
@media (max-width: 420px) {
  .contact-person { grid-template-columns: minmax(0, 1fr); }
  .contact-person img { width: min(100%, 144px); }
}
html:has(.contact-dialog[open]) { overflow: hidden; }
.contact-dialog { position: fixed; inset: 0; width: min(720px, calc(100% - 32px)); max-width: none; max-height: min(90dvh, 940px); margin: auto; padding: 0; overflow-y: auto; overscroll-behavior: contain; border: 1px solid #b6d276; background: #fff; color: var(--ink); box-shadow: 0 24px 100px #0009; }
.contact-dialog::backdrop { background: #07120ccb; backdrop-filter: blur(9px); }
.contact-dialog-header { display: flex; justify-content: space-between; gap: 20px; padding: clamp(24px, 4vw, 40px); background: #14261d; color: #fff; }
.contact-dialog-marker { display: block; color: var(--lime); font: 700 10px/1.4 Montserrat, sans-serif; letter-spacing: .14em; }
.contact-dialog-header h2 { margin-top: 14px; font-size: clamp(30px, 4vw, 48px); line-height: 1.05; }
.contact-dialog-header p { margin-top: 10px; color: #d1dfd1; line-height: 1.5; }
.contact-dialog-close { flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid #ffffff70; background: transparent; color: white; font: 300 30px/1 Arial, sans-serif; cursor: pointer; }
.contact-dialog-close:hover { border-color: var(--lime); color: var(--lime); }
.contact-dialog-close:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.contact-dialog .form-surface { padding: clamp(24px, 4vw, 40px); border: 0; }
@media (max-width: 480px) { .contact-dialog { width: calc(100% - 20px); max-height: 92dvh; } }
