:root {
  --ink: #172033;
  --muted: #667085;
  --line: #dde3ef;
  --soft: #f6f8fc;
  --primary: #3157d5;
  --primary-dark: #2447bd;
  --success: #287a4b;
  --red: #b42318;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--soft);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; }
a { color: inherit; }

.support-header { height: 68px; padding: 0 clamp(20px, 6vw, 90px); display: flex; align-items: center; justify-content: space-between; background: white; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.18rem; font-weight: 750; text-decoration: none; }
.brand-logo { width: 34px; height: 34px; display: block; object-fit: contain; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.back-link { color: var(--primary-dark); font-size: 0.92rem; font-weight: 700; }
.language-control { display: inline-flex; }
.language-control select { width: 64px; height: 36px; border: 1px solid #cdd5e3; border-radius: 4px; background: white; color: #344054; padding: 0 8px; font: inherit; font-size: 0.86rem; font-weight: 750; }
.language-control select:focus { outline: 3px solid rgba(49, 87, 213, 0.18); border-color: var(--primary); }
.sr-only { width: 1px; height: 1px; padding: 0; margin: -1px; position: absolute; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

main { min-height: calc(100vh - 150px); }
.support-intro { padding: clamp(54px, 8vw, 92px) clamp(20px, 9vw, 140px) clamp(45px, 6vw, 70px); background: var(--ink); color: white; }
.eyebrow { margin: 0 0 12px; color: #aebfff; font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; }
.support-intro h1 { max-width: 820px; margin: 0 0 18px; font-size: clamp(2.4rem, 6vw, 5rem); line-height: 1.02; letter-spacing: 0; }
.support-intro > p:last-child { max-width: 660px; margin: 0; color: #c5d0d7; font-size: 1.08rem; line-height: 1.65; }

.form-section { width: min(920px, calc(100% - 40px)); margin: -24px auto 80px; padding: clamp(24px, 5vw, 48px); position: relative; background: white; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 18px 45px rgba(16, 25, 35, 0.08); }
.form-heading { margin-bottom: 30px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.form-heading .eyebrow { color: var(--primary-dark); }
.form-heading h2, .success-message h2 { margin: 0; font-size: clamp(1.5rem, 4vw, 2.2rem); letter-spacing: 0; }
.form-heading > span { color: var(--muted); font-size: 0.82rem; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
form { display: grid; gap: 20px; }
label { display: grid; gap: 8px; color: #283640; font-size: 0.9rem; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid #b8c4cc; border-radius: 4px; background: white; color: var(--ink); padding: 12px 13px; font: inherit; letter-spacing: 0; }
input, select { min-height: 46px; }
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(49, 87, 213, 0.18); border-color: var(--primary); }
small { justify-self: end; color: var(--muted); font-weight: 500; }
.editor-field { display: grid; gap: 8px; }
.editor-field > label, .attachment-heading > span { color: #283640; font-size: 0.9rem; font-weight: 700; }
.editor-toolbar { min-height: 46px; padding: 5px 7px; display: flex; align-items: center; gap: 4px; border: 1px solid #b8c4cc; border-bottom: 0; border-radius: 4px 4px 0 0; background: #f8f9fc; }
.editor-command { width: 34px; height: 34px; flex: 0 0 34px; display: inline-grid; place-items: center; border: 1px solid transparent; border-radius: 3px; background: transparent; color: #344054; font: inherit; font-size: 0.88rem; font-weight: 750; cursor: pointer; }
.editor-command:hover, .editor-command:focus-visible { border-color: #c5cfdb; background: white; color: var(--primary-dark); outline: none; }
.editor-command-wide { width: auto; min-width: 50px; padding: 0 9px; }
.text-command { font-family: Georgia, serif; font-size: 1rem; }
.toolbar-separator { width: 1px; height: 24px; margin: 0 4px; background: #d5dce5; }
.description-editor { min-height: 220px; max-height: 520px; overflow: auto; padding: 13px; border: 1px solid #b8c4cc; border-radius: 0 0 4px 4px; background: white; color: var(--ink); font-size: 1rem; font-weight: 400; line-height: 1.55; }
.description-editor:focus { border-color: var(--primary); outline: 3px solid rgba(49, 87, 213, 0.18); position: relative; }
.description-editor:empty::before { content: attr(data-placeholder); color: #89939f; pointer-events: none; }
.description-editor p { margin: 0 0 0.75em; }
.description-editor p:last-child { margin-bottom: 0; }
.description-editor img { width: auto; max-width: 100%; max-height: 360px; display: block; margin: 12px 0; border: 1px solid var(--line); border-radius: 4px; object-fit: contain; }
.editor-meta { min-height: 22px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.editor-meta small:first-child { justify-self: start; }
.editor-meta .limit-reached { color: var(--red); font-weight: 700; }
.attachment-field { display: grid; gap: 8px; }
.attachment-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.attachment-button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 13px; border: 1px solid #aebbc8; border-radius: 4px; background: white; color: var(--primary-dark); font-size: 0.84rem; font-weight: 750; cursor: pointer; }
.attachment-button:hover, .attachment-button:focus-within { border-color: var(--primary); background: #f4f6ff; }
.attachment-guidance { margin: 0; color: var(--muted); font-size: 0.8rem; font-weight: 400; line-height: 1.5; }
.attachment-list { margin: 0; padding: 0; list-style: none; }
.attachment-item { min-height: 46px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.attachment-name { min-width: 0; overflow: hidden; color: #283640; font-size: 0.86rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.attachment-size { color: var(--muted); font-size: 0.78rem; white-space: nowrap; }
.attachment-remove { width: 32px; height: 32px; border: 0; border-radius: 3px; background: transparent; color: var(--red); font: inherit; font-size: 1rem; font-weight: 750; cursor: pointer; }
.attachment-remove:hover, .attachment-remove:focus-visible { background: #fff2f0; outline: 2px solid rgba(180, 35, 24, 0.18); }
.field-error { margin: 0; color: var(--red); font-size: 0.82rem; font-weight: 650; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; line-height: 1.5; }
.consent input { width: 18px; min-height: 18px; margin-top: 2px; accent-color: var(--primary); }
.form-actions { padding-top: 4px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.form-actions p { margin: 0; color: var(--muted); font-size: 0.84rem; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; border: 0; border-radius: 4px; background: var(--primary); color: white; font: inherit; font-weight: 750; text-decoration: none; cursor: pointer; }
.button:hover, .button:focus-visible { background: var(--primary-dark); }
.error-message { padding: 12px 14px; border-left: 4px solid var(--red); background: #fff2f0; color: #7a271a; line-height: 1.5; }
.success-message { min-height: 300px; display: flex; align-items: flex-start; gap: 22px; padding-top: 28px; }
.success-message p { margin: 14px 0 28px; color: var(--muted); font-size: 1.04rem; }
.status-mark { width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center; border-radius: 50%; background: #e5ebff; color: var(--primary-dark); font-size: 1.35rem; font-weight: 900; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

footer { min-height: 82px; padding: 24px clamp(20px, 6vw, 90px); display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #0a1118; color: #c6d0d7; font-size: 0.9rem; }
footer a { color: white; }
.footer-links { display: flex; align-items: center; gap: 22px; }

@media (max-width: 680px) {
  .support-header { height: auto; min-height: 68px; padding-top: 10px; padding-bottom: 10px; }
  .header-actions { gap: 10px; }
  .back-link { display: none; }
  .field-grid { grid-template-columns: 1fr; }
  .editor-toolbar { flex-wrap: wrap; }
  .editor-meta { align-items: stretch; flex-direction: column; gap: 4px; }
  .editor-meta small { justify-self: start; }
  .attachment-item { grid-template-columns: minmax(0, 1fr) auto; }
  .attachment-size { grid-column: 1; grid-row: 2; }
  .attachment-remove { grid-column: 2; grid-row: 1 / span 2; }
  .form-heading, .form-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  footer, .footer-links { align-items: flex-start; flex-direction: column; }
  .footer-links { gap: 12px; }
}
