.sample-upload-section {
  background: #f4f7fa;
}

.sample-upload-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(520px, 1.28fr);
  gap: 40px;
  align-items: start;
}

.sample-upload-guidance h2 {
  margin: 6px 0 20px;
  color: #10263d;
  font-size: 30px;
  line-height: 1.35;
  letter-spacing: 0;
}

.sample-security-notice {
  display: flex;
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  border-left: 4px solid #d63a3a;
  background: #fff4f3;
  color: #6d2424;
}

.sample-security-notice > i {
  flex: none;
  color: #c92f2f;
  font-size: 28px;
}

.sample-security-notice strong {
  display: block;
  margin-bottom: 6px;
  color: #8f2020;
  font-size: 16px;
}

.sample-security-notice p,
.sample-upload-steps p,
.sample-privacy-note {
  margin: 0;
  line-height: 1.75;
}

.sample-security-notice code,
.sample-encryption-confirm code {
  padding: 2px 6px;
  border: 1px solid currentColor;
  background: #fff;
  color: #9f1f1f;
  font-family: Consolas, Monaco, monospace;
  font-weight: 700;
}

.sample-upload-steps {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sample-upload-steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
}

.sample-upload-steps li > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #0e99c9;
  color: #087fae;
  font-weight: 700;
}

.sample-upload-steps strong {
  display: block;
  margin-bottom: 4px;
  color: #142e47;
}

.sample-upload-steps p,
.sample-privacy-note {
  color: #617184;
}

.sample-privacy-note {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #d7e0e8;
  font-size: 14px;
}

.sample-upload-panel {
  border: 1px solid #d8e1e9;
  background: #fff;
  box-shadow: 0 16px 36px rgba(24, 54, 79, 0.08);
}

.sample-upload-form {
  padding: 32px;
}

.sample-type-fieldset {
  margin: 0 0 26px;
  padding: 0;
  border: 0;
}

.sample-type-fieldset legend,
.sample-form-field > label {
  display: block;
  margin-bottom: 9px;
  color: #173149;
  font-weight: 700;
}

.sample-type-fieldset b,
.sample-form-field b {
  color: #c83030;
}

.sample-type-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sample-type-options label {
  position: relative;
  cursor: pointer;
}

.sample-type-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.sample-type-options span {
  display: grid;
  grid-template-columns: 24px 1fr;
  column-gap: 10px;
  min-height: 88px;
  padding: 16px;
  border: 1px solid #cfdbe5;
  background: #fff;
  color: #4f6172;
}

.sample-type-options i {
  grid-row: 1 / span 2;
  margin-top: 1px;
  color: #0a91c5;
  font-size: 23px;
}

.sample-type-options strong {
  color: #173149;
}

.sample-type-options small {
  margin-top: 4px;
  line-height: 1.5;
}

.sample-type-options input:checked + span {
  border-color: #0797cc;
  background: #f0faff;
  box-shadow: inset 0 0 0 1px #0797cc;
}

.sample-type-options input:focus-visible + span {
  outline: 3px solid rgba(0, 151, 205, 0.22);
  outline-offset: 2px;
}

.sample-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

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

.sample-form-field input,
.sample-form-field textarea {
  width: 100%;
  border: 1px solid #cfd9e3;
  border-radius: 2px;
  background: #fff;
  color: #173149;
  font: inherit;
  letter-spacing: 0;
}

.sample-form-field input {
  min-height: 46px;
  padding: 10px 12px;
}

.sample-form-field textarea {
  min-height: 118px;
  padding: 12px;
  resize: vertical;
}

.sample-form-field input:focus,
.sample-form-field textarea:focus {
  border-color: #0797cc;
  outline: 3px solid rgba(0, 151, 205, 0.16);
  outline-offset: 0;
}

.sample-password-control {
  display: grid;
  grid-template-columns: 1fr 46px;
}

.sample-password-control input {
  border-right: 0;
  background: #f5f8fa;
  font-family: Consolas, Monaco, monospace;
  font-weight: 700;
}

.sample-password-control button {
  display: grid;
  min-width: 46px;
  border: 1px solid #cfd9e3;
  border-radius: 0 2px 2px 0;
  place-items: center;
  background: #edf3f7;
  color: #17688e;
  cursor: pointer;
}

.sample-password-control button:hover {
  background: #e1edf3;
}

.sample-password-control button:focus-visible {
  position: relative;
  outline: 3px solid rgba(0, 151, 205, 0.22);
  z-index: 1;
}

.sample-field-help {
  margin: 7px 0 0;
  color: #6d7c8b;
  font-size: 13px;
}

.sample-file-input {
  position: absolute;
  width: 1px !important;
  height: 1px;
  padding: 0 !important;
  opacity: 0;
  overflow: hidden;
}

.sample-file-picker {
  display: grid !important;
  min-height: 138px;
  margin: 0 !important;
  padding: 22px;
  border: 1px dashed #8eb5c8;
  place-items: center;
  align-content: center;
  gap: 7px;
  background: #f6fbfd;
  color: #536c7e !important;
  cursor: pointer;
  text-align: center;
}

.sample-file-picker:hover {
  border-color: #0797cc;
  background: #eefaff;
}

.sample-file-picker i {
  color: #0797cc;
  font-size: 34px;
}

.sample-file-picker strong {
  color: #173149;
}

.sample-file-picker span {
  font-size: 13px;
  font-weight: 400;
}

.sample-file-input:focus-visible + .sample-field-error,
.sample-form-field:focus-within .sample-file-picker {
  border-color: #0797cc;
}

.sample-field-error {
  min-height: 18px;
  margin: 6px 0 0;
  color: #b82727;
  font-size: 13px;
}

.sample-encryption-confirm {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 22px;
  color: #354d62;
  line-height: 1.7;
}

.sample-encryption-confirm input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  accent-color: #0797cc;
}

.sample-upload-progress {
  margin-top: 22px;
  padding: 14px 16px;
  background: #f1f6f9;
}

.sample-upload-progress > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: #3f5669;
  font-size: 13px;
}

.sample-upload-progress progress {
  display: block;
  width: 100%;
  height: 8px;
  border: 0;
  background: #dbe5ec;
  accent-color: #0a93c7;
}

.sample-upload-progress progress::-webkit-progress-bar {
  background: #dbe5ec;
}

.sample-upload-progress progress::-webkit-progress-value {
  background: #0a93c7;
}

.sample-form-actions {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 24px;
}

.sample-form-actions .btn {
  flex: none;
}

.sample-form-actions .btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.sample-upload-status {
  margin: 0;
  color: #586d80;
  line-height: 1.6;
}

.sample-upload-status.is-error {
  color: #b82727;
}

.sample-upload-status.is-success {
  color: #08734f;
  font-weight: 700;
}

@media (max-width: 900px) {
  .sample-upload-layout {
    grid-template-columns: 1fr;
  }

  .sample-upload-guidance {
    max-width: 720px;
  }
}

@media (max-width: 640px) {
  .sample-upload-layout {
    gap: 28px;
  }

  .sample-upload-guidance h2 {
    font-size: 25px;
  }

  .sample-upload-form {
    padding: 20px;
  }

  .sample-type-options,
  .sample-form-grid {
    grid-template-columns: 1fr;
  }

  .sample-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .sample-form-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
