.solawi-survey {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #1f2a22;
  background: #eef1ed;
  min-height: 100vh;
}

.solawi-survey__card {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
}

.solawi-survey__topbar {
  height: 5px;
  background: #2f6b3a;
}

.solawi-survey__header {
  padding: 30px 40px 12px;
}

.solawi-survey__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #2f6b3a;
  font-size: 13px;
  font-weight: 600;
}

.solawi-survey__header h1 {
  font-size: 27px;
  font-weight: 700;
  color: #1f2a22;
  margin: 14px 0 8px;
  line-height: 1.25;
  text-wrap: pretty;
}

.solawi-survey__header p {
  font-size: 14.5px;
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
}

.solawi-survey__body {
  padding: 6px 40px 8px;
}

.solawi-survey__locked-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 9px;
  font-size: 13.5px;
  line-height: 1.55;
  margin-bottom: 22px;
}

.solawi-survey__locked-banner--submitted {
  background: #eff5ef;
  color: #1f4d28;
  border: 1px solid #cfe0d2;
}

.solawi-survey__locked-banner--closed {
  background: #fdf6e6;
  color: #6b5a30;
  border: 1px solid #ecdcb4;
}

.solawi-survey__membership {
  border: 1px solid #dfe3dd;
  border-radius: 9px;
  padding: 16px 18px;
  margin-bottom: 26px;
  background: #fafbfa;
}

.solawi-survey__membership-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  margin: 0;
}

.solawi-survey__membership-label-title {
  font-size: 14.5px;
  font-weight: 600;
  color: #1f2a22;
  display: block;
}

.solawi-survey__membership-label-help {
  display: block;
  font-size: 13.5px;
  color: #6b7280;
  line-height: 1.6;
  margin-top: 3px;
}

.solawi-survey__membership-details {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e6e8e4;
}

.solawi-survey__step-title {
  font-size: 13px;
  font-weight: 600;
  color: #1f2a22;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 11px;
}

.survey-doc-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: #fff;
  border: 1px solid #dfe3dd;
  border-radius: 8px;
  text-decoration: none;
  margin-bottom: 8px;
}

.survey-doc-link__icon {
  color: #2f6b3a;
  font-size: 16px;
}

.survey-doc-link__title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1f2a22;
}

.survey-doc-link__meta {
  font-size: 12.5px;
  color: #6b7280;
}

.survey-dropzone {
  border: 2px dashed #b9c9bb;
  border-radius: 9px;
  background: #f6f9f6;
  padding: 22px;
  text-align: center;
  margin-bottom: 12px;
  transition: border-color .12s, background .12s;
}

.survey-dropzone--dragover .survey-dropzone {
  border-color: #2f6b3a;
  background: #eff5ef;
}

/* Shown under already-uploaded files in a multi-file slot, so it shouldn't dominate them. */
.survey-dropzone--compact {
  padding: 12px;
  margin-top: 10px;
}

.survey-dropzone--compact i {
  font-size: 16px;
}

.survey-dropzone--compact .survey-dropzone__text {
  font-size: 13px;
  margin-top: 5px;
}

.survey-dropzone i {
  font-size: 22px;
  color: #2f6b3a;
}

.survey-dropzone__text {
  font-size: 14px;
  color: #1f2a22;
  margin-top: 9px;
}

.survey-dropzone__link {
  color: #2f6b3a;
  font-weight: 600;
  text-decoration: underline;
}

.survey-dropzone__hint {
  font-size: 12.5px;
  color: #6b7280;
  margin-top: 6px;
}

.survey-upload-progress {
  height: 7px;
  border-radius: 4px;
  background: #e2e6df;
  margin-top: 14px;
  overflow: hidden;
}

.survey-upload-progress__bar {
  height: 100%;
  width: 0;
  background: #2f6b3a;
  border-radius: 4px;
  transition: width .15s ease-out;
}

.survey-uploaded-file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #eff5ef;
  border: 1px solid #cfe0d2;
  border-radius: 8px;
}

.survey-uploaded-file i.fa-circle-check {
  color: #2f6b3a;
}

.survey-uploaded-file__name {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  color: #1f2a22;
}

.survey-uploaded-file__link {
  color: #1f2a22;
  text-decoration: underline;
}

.survey-uploaded-file__link:hover {
  color: #2f6b3a;
}

.survey-uploaded-file__action {
  color: #9aa39c;
  background: none;
  border: none;
  padding: 0 2px;
  cursor: pointer;
  text-decoration: none;
  font-size: 15px;
  line-height: 1;
  flex: none;
}

.survey-uploaded-file__action:hover {
  color: #2f6b3a;
}

.survey-uploaded-file__remove:hover {
  color: #b3261e;
}

.solawi-survey__membership-gate-hint {
  font-size: 13.5px;
  color: #6b7280;
  font-style: italic;
  margin: 0 0 26px;
}

.solawi-survey__question {
  margin-bottom: 26px;
}

/* Fields the final-submit validation flagged as missing. */
.solawi-survey__question--invalid {
  border: 1px solid #b3261e;
  border-radius: 9px;
  background: #fdf4f3;
  padding: 16px 18px;
}

.survey-dropzone--invalid {
  border-color: #b3261e;
  background: #fdf4f3;
}

.solawi-survey__field-error {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #b3261e;
  margin: 8px 0 0;
}

.solawi-survey__question-label {
  font-size: 15.5px;
  font-weight: 600;
  color: #1f2a22;
  margin-bottom: 14px;
  line-height: 1.45;
}

.solawi-survey__question-required {
  color: #b3261e;
}

.solawi-survey__question-help {
  font-size: 13.5px;
  color: #6b7280;
  line-height: 1.6;
  margin: -6px 0 14px;
}

.q-opt {
  cursor: pointer;
  border: 1px solid #dfe3dd;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 10px;
  transition: .12s;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.q-opt:hover {
  border-color: #7aab84;
  background: #f6f9f6;
}

.q-opt:has(input:checked) {
  border-color: #2f6b3a;
  background: #eff5ef;
  box-shadow: inset 0 0 0 1px #2f6b3a;
}

.q-opt input {
  margin-top: 2px;
}

.q-opt span {
  font-size: 14.5px;
  color: #1f2a22;
}

.solawi-survey__option-panel {
  border: 1px solid #cfe0d2;
  border-radius: 9px;
  background: #f6f9f6;
  padding: 16px 18px;
  margin: -2px 0 10px;
}

.solawi-survey__option-panel-note {
  font-size: 13.5px;
  color: #3d4a41;
  line-height: 1.6;
  margin-bottom: 14px;
}

/* A free-text answer that belongs to one option (the Bietergemeinschaft partners) — sits inside
   that option's panel, below any documents or dropzones. */
.solawi-survey__text-field {
  margin-top: 4px;
}

.solawi-survey__text-field-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #1f2a22;
  margin: 0 0 8px;
  line-height: 1.5;
}

/* Always-visible remarks box, last thing before the footer buttons. */
.solawi-survey__remarks {
  margin-bottom: 26px;
}

.solawi-survey__errors {
  background: #fdecea;
  border: 1px solid #f5c2c0;
  color: #7a2a24;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 18px;
  font-size: 13.5px;
}

.solawi-survey__errors ul {
  margin: 4px 0 0;
  padding-left: 18px;
}

.solawi-survey__summary-item {
  padding: 14px 0;
  border-bottom: 1px solid #eceee9;
}

.solawi-survey__summary-label {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 5px;
}

.solawi-survey__summary-value {
  font-size: 15px;
  font-weight: 600;
  color: #1f2a22;
  line-height: 1.5;
}

.solawi-survey__summary-value--empty {
  font-weight: 400;
  font-style: italic;
  color: #9aa39c;
}

.solawi-survey__summary-file {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #4b5563;
  margin-top: 7px;
}

.solawi-survey__summary-file i {
  color: #2f6b3a;
}

.solawi-survey__footer {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  padding: 20px 40px 30px;
  border-top: 1px solid #eceee9;
  margin-top: 18px;
}

.solawi-survey__footer-hint {
  font-size: 13px;
  color: #6b7280;
}

.solawi-survey__footer-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}

.solawi-survey__save-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #6b7280;
}

.solawi-survey__save-state--saved {
  color: #2f6b3a;
}

.solawi-survey__save-state--failed {
  color: #b3261e;
}

/* Two classes deep on purpose: the vendored Bootstrap in app/assets/stylesheets is pulled in by
   stylesheet_link_tag :app *after* this file, so a single-class rule would lose to plain `.btn`
   and leave light text on the white card. */
.solawi-survey .solawi-survey__btn-primary {
  background: #2f6b3a;
  border-color: #2f6b3a;
  color: #fff;
}

.solawi-survey .solawi-survey__btn-primary:hover,
.solawi-survey .solawi-survey__btn-primary:focus,
.solawi-survey .solawi-survey__btn-primary:active {
  background: #24522d;
  border-color: #24522d;
  color: #fff;
}

.solawi-survey .solawi-survey__btn-secondary {
  background: #fff;
  border-color: #c6ccc5;
  color: #1f2a22;
}

.solawi-survey .solawi-survey__btn-secondary:hover,
.solawi-survey .solawi-survey__btn-secondary:focus {
  background: #f6f9f6;
  border-color: #7aab84;
  color: #1f2a22;
}

@media (max-width: 640px) {
  .solawi-survey__header,
  .solawi-survey__body,
  .solawi-survey__footer {
    padding-left: 20px;
    padding-right: 20px;
  }
}
