:root {
  --page-bg: #f0f0f0;
  --panel-bg: #ffffff;
  --text: #191919;
  --muted: #5e5e5e;
  --border: #cfcfcf;
  --border-dark: #9d9d9d;
  --focus: #1a77c9;
  --primary: #24dfe3;
  --primary-hover: #18c4cc;
  --error: #c41414;
  --success: #137047;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Tahoma, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.35;
}

.bg-gray {
  background: var(--page-bg);
}

.page-shell {
  width: min(100% - 24px, 1140px);
  margin: 0 auto;
  padding: 0 0 48px;
}

.form-panel {
  margin-top: 0;
  padding: 16px;
  background: var(--panel-bg);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
}

.brand-header {
  margin-bottom: 12px;
}

.brand-logo {
  display: block;
  width: min(280px, 78vw);
  height: auto;
  object-fit: contain;
}

.form-title-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 8px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 24px;
  font-weight: 400;
}

.form-section {
  margin-top: 10px;
}

.form-section h2 {
  margin: 12px 0 8px;
  font-size: 16px;
  font-weight: 700;
}

.field,
.upload-row,
.consent-block {
  width: 100%;
  margin-bottom: 8px;
}

.honeypot-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

label,
.upload-label {
  display: block;
  margin-bottom: 3px;
  color: var(--text);
  font-size: 13px;
}

.required-marker {
  color: #c41414;
  font-weight: 700;
}

input[type="text"],
input[type="email"],
select {
  width: 100%;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: #fff;
  color: var(--text);
  font: inherit;
}

select {
  appearance: auto;
}

input:focus,
select:focus,
.upload-control:focus-within {
  outline: 2px solid rgba(26, 119, 201, 0.22);
  border-color: var(--focus);
}

.upload-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(280px, 1fr);
  align-items: center;
  gap: 12px;
}

.upload-label {
  margin-bottom: 0;
}

.upload-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 34px;
  margin: 0;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
}

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

.fake-file {
  min-width: 0;
  padding: 7px 8px;
  color: var(--muted);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.browse-button {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-left: 1px solid var(--border-dark);
  background: #ededed;
  color: var(--text);
}

.consent-block {
  padding-top: 7px;
}

.checkbox-line {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: start;
  margin: 0;
}

.checkbox-line input {
  width: 16px;
  height: 16px;
  margin-top: 1px;
}

.form-message {
  min-height: 24px;
  padding: 0;
  color: var(--error);
  font-size: 18px;
  font-weight: 700;
}

.form-message.success {
  color: var(--success);
}

.save-button {
  width: 100%;
  min-height: 40px;
  border: 1px solid #13b7c0;
  border-radius: 0;
  background: var(--primary);
  color: #0b1015;
  font: inherit;
  font-size: 18px;
  cursor: pointer;
}

.save-button:hover,
.save-button:focus-visible {
  background: var(--primary-hover);
}

.save-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.success-panel {
  min-height: 360px;
}

.success-copy {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
}

.return-link {
  display: inline-block;
  margin-top: 20px;
  color: #1b5e93;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 720px) {
  .page-shell {
    width: 100%;
    padding: 0 0 28px;
  }

  .form-panel {
    box-shadow: none;
  }

  .brand-logo {
    width: min(240px, 82vw);
  }

  h1 {
    font-size: 22px;
  }

  .upload-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
