:root {
  --page-bg: #141414;
  --panel-bg: #080c1c;
  --field-bg: #1c1c1c;
  --field-focus: #202020;
  --text: #efefef;
  --muted: rgba(255, 255, 255, .60);
  --soft: rgba(255, 255, 255, .35);
  --faint: rgba(255, 255, 255, .28);
  --border: rgba(255, 255, 255, .10);
  --accent: #2340c8;
  --accent-hover: #2f4fe0;
  --accent-soft: #8e9de8;
  --danger: #e07070;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--page-bg);
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
label,
select {
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

.support-shell {
  min-height: 100vh;
  background: var(--page-bg);
  color: var(--text);
  display: grid;
  grid-template-columns: minmax(300px, 420px) 1fr;
}

.brand-panel {
  position: relative;
  background: var(--panel-bg);
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 56px;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, .06);
}

.brand-glow {
  position: absolute;
  top: -140px;
  right: -180px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(35, 64, 200, .38), rgba(8, 12, 28, 0) 70%);
  pointer-events: none;
}

.brand-content {
  position: relative;
}

.brand-logo {
  width: 172px;
  height: auto;
  display: block;
  margin-bottom: 64px;
}

.brand-kicker {
  margin: 0 0 14px;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .38);
  font-weight: 400;
}

.brand-panel h1 {
  margin: 0;
  font-size: 38px;
  line-height: 1.12;
  font-weight: 300;
  letter-spacing: -.02em;
  text-wrap: pretty;
}

.support-main {
  padding: 26px 64px 72px;
  max-width: 1035px;
  zoom: .85;
}

.support-form {
  margin: 0;
}

.form-intro {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  width: 644px;
  height: 4px;
}

.form-intro span {
  font-size: 12px;
  color: var(--soft);
  font-weight: 300;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 24px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}

.field > span,
.field-heading {
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--muted);
  font-weight: 400;
}

.field-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.counter {
  letter-spacing: 0;
  color: rgba(255, 255, 255, .30);
  font-size: 11.5px;
  white-space: nowrap;
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  background: var(--field-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 300;
  padding: 14px 16px;
  outline: none;
  transition: border-color .15s, background .15s, box-shadow .15s;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, .28);
  opacity: 1;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  background: var(--field-focus);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: rgba(224, 112, 112, .85);
}

.select-field {
  position: relative;
  align-self: start;
}

select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  cursor: pointer;
}

select option {
  background: var(--field-bg);
  color: #eee;
}

.select-arrow {
  position: absolute;
  right: 16px;
  bottom: 16px;
  pointer-events: none;
  color: rgba(255, 255, 255, .40) !important;
  font-size: 11px !important;
  letter-spacing: 0 !important;
}

.incident-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: end;
}

.availability-field {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.availability-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #181818;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
  padding: 18px 20px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  width: 267px;
  min-height: 49px;
}

.availability-card:hover {
  border-color: rgba(255, 255, 255, .18);
}

.availability-card:has(input:checked) {
  border-color: var(--accent);
}

.availability-card input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.checkbox-ui {
  width: 18px;
  height: 18px;
  flex: none;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 4px;
  background: var(--field-bg);
  display: grid;
  place-content: center;
  color: #fff;
  font-size: 11px;
  line-height: 1;
  transition: background .15s, border-color .15s;
}

.availability-card input:not(:checked) + .checkbox-ui {
  color: transparent;
}

.availability-card input:checked + .checkbox-ui {
  background: var(--accent);
  border-color: var(--accent);
}

.availability-card:focus-within {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}

.availability-label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 14.5px;
  font-weight: 400;
}

.full-width {
  grid-column: 1 / -1;
}

textarea {
  line-height: 1.6;
  resize: vertical;
  min-height: 150px;
}

.attachments {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.drop-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #1a1a1a;
  border: 1px dashed rgba(255, 255, 255, .16);
  border-radius: 10px;
  padding: 26px 20px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.drop-zone:hover,
.drop-zone.is-dragging {
  border-color: rgba(255, 255, 255, .35);
}

.drop-zone.is-dragging {
  border-color: var(--accent);
  background: #1c1c1c;
}

.drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.drop-plus {
  font-size: 16px;
  color: var(--accent-soft);
}

.drop-copy {
  font-size: 13.5px;
  font-weight: 300;
  color: rgba(255, 255, 255, .55);
  text-align: center;
}

.drop-copy > span {
  color: var(--accent-soft);
}

.drop-copy #maxFileSizeLabel {
  color: inherit;
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 2px;
}

.file-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--field-bg);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 8px;
  padding: 11px 14px;
}

.file-ext {
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-soft);
  font-weight: 400;
  min-width: 38px;
}

.file-name {
  flex: 1;
  font-size: 13.5px;
  font-weight: 300;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-size {
  font-size: 12px;
  color: var(--soft);
  font-weight: 300;
  white-space: nowrap;
}

.file-remove {
  background: none;
  border: none;
  color: var(--soft);
  font-size: 15px;
  line-height: 1;
  padding: 4px 6px;
  cursor: pointer;
}

.file-remove:hover,
.file-remove:focus-visible {
  color: var(--text);
}

.turnstile-container {
  margin-top: 24px;
}

.form-message {
  margin-top: 22px;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.5;
}

.form-message.is-error {
  color: #f1b4b4;
  background: rgba(224, 112, 112, .08);
  border: 1px solid rgba(224, 112, 112, .26);
}

.form-message.is-info {
  color: rgba(255, 255, 255, .68);
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .08);
}

.form-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 24px;
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}

.actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.clear-button {
  background: none;
  border: none;
  color: rgba(255, 255, 255, .45);
  font-size: 13px;
  padding: 12px 8px;
  cursor: pointer;
}

.clear-button:hover,
.clear-button:focus-visible {
  color: var(--text);
}

.submit-button {
  background: var(--accent);
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  padding: 15px 30px;
  border-radius: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background .15s, opacity .15s;
}

.submit-button:hover,
.submit-button:focus-visible {
  background: var(--accent-hover);
}

.submit-button:disabled {
  cursor: wait;
  opacity: .65;
}

.submit-arrow {
  font-size: 12px;
}

.form-footer p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .30);
  font-weight: 300;
  max-width: 44ch;
  text-align: right;
}

.success-panel {
  max-width: 560px;
  margin-top: 40px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  padding: 44px 40px;
}

.success-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  margin-bottom: 24px;
}

.success-panel h2 {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 300;
  letter-spacing: -.01em;
}

.success-panel p {
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .55);
  font-weight: 300;
}

.ticket-reference {
  color: var(--accent-soft);
}

.secondary-button {
  background: none;
  border: 1px solid rgba(255, 255, 255, .18);
  color: var(--text);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
}

.secondary-button:hover,
.secondary-button:focus-visible {
  border-color: rgba(255, 255, 255, .40);
}

@media (max-width: 1000px) {
  .support-shell {
    grid-template-columns: 300px 1fr;
  }

  .brand-panel {
    padding: 48px 36px;
  }

  .support-main {
    padding-left: 42px;
    padding-right: 42px;
  }
}

@media (max-width: 820px) {
  .support-shell {
    display: block;
  }

  .brand-panel {
    min-height: auto;
    padding: 34px 28px 38px;
  }

  .brand-logo {
    width: 150px;
    margin-bottom: 34px;
  }

  .brand-panel h1 {
    font-size: 32px;
  }

  .support-main {
    max-width: none;
    padding: 34px 28px 54px;
    zoom: 1;
  }

  .form-intro {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .form-grid,
  .incident-grid,
  .form-footer {
    grid-template-columns: 1fr;
  }

  .form-grid {
    gap: 22px;
  }

  .incident-grid {
    gap: 22px;
  }

  .availability-card {
    width: 100%;
  }

  .form-footer {
    gap: 20px;
  }

  .actions {
    justify-content: flex-start;
  }

  .form-footer p {
    text-align: left;
  }
}

@media (max-width: 430px) {
  .brand-panel,
  .support-main {
    padding-left: 20px;
    padding-right: 20px;
  }

  .brand-panel h1 {
    font-size: 29px;
  }

  .drop-zone {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .file-row {
    gap: 9px;
  }

  .file-size {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
