/* ==========================================================================
   Geo-Page Feedback Form — "Lokales Wissen teilen"
   ========================================================================== */

.re-geo {
  background: var(--bg-elev, #fafaf7);
  border: 1px solid var(--rule, #ddd);
  border-radius: 4px;
  padding: 28px 32px;
  margin: 64px auto 32px;
  max-width: 760px;
}

.re-geo__eyebrow {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute, #888);
  margin: 0 0 12px;
}

.re-geo__title {
  font-family: "Newsreader", Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 8px;
  color: var(--ink, #1a1715);
}

.re-geo__intro {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft, #555);
  margin: 0 0 20px;
}

.re-geo__options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.re-geo__option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid var(--rule, #ddd);
  border-radius: 4px;
  background: var(--bg, #fff);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.re-geo__option:hover {
  border-color: var(--ink-mute, #888);
}

.re-geo__option.is-selected {
  border-color: var(--accent, #2f8a1f);
  background: rgba(47, 138, 31, 0.04);
}

.re-geo__option input[type="radio"] {
  display: none;
}

.re-geo__option-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--ink-mute, #888);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--ink-mute, #888);
  font-weight: 600;
}

.re-geo__option.is-selected .re-geo__option-icon {
  border-color: var(--accent, #2f8a1f);
  color: var(--accent, #2f8a1f);
}

.re-geo__option-body {
  flex: 1;
  min-width: 0;
}

.re-geo__option-label {
  font-weight: 600;
  color: var(--ink, #1a1715);
  font-size: 14px;
  display: block;
  margin-bottom: 2px;
}

.re-geo__option-desc {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-soft, #555);
}

.re-geo__option-radio {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--ink-mute, #888);
  border-radius: 50%;
  margin-top: 3px;
  position: relative;
}

.re-geo__option.is-selected .re-geo__option-radio {
  border-color: var(--accent, #2f8a1f);
}

.re-geo__option.is-selected .re-geo__option-radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--accent, #2f8a1f);
}

.re-geo__field {
  margin-bottom: 20px;
}

.re-geo__label {
  display: block;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute, #888);
  margin-bottom: 6px;
}

.re-geo__textarea {
  width: 100%;
  min-height: 96px;
  padding: 12px 14px;
  border: 1px solid var(--rule-strong, #ccc);
  border-radius: 4px;
  background: var(--bg, #fff);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink, #1a1715);
  resize: vertical;
  outline: none;
  box-sizing: border-box;
}

.re-geo__textarea:focus {
  border-color: var(--ink, #1a1715);
  box-shadow: inset 0 0 0 1px var(--ink, #1a1715);
}

.re-geo__input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--rule-strong, #ccc);
  border-radius: 4px;
  background: var(--bg, #fff);
  font-family: inherit;
  font-size: 14px;
  color: var(--ink, #1a1715);
  outline: none;
  box-sizing: border-box;
}

.re-geo__input:focus {
  border-color: var(--ink, #1a1715);
}

/* Footnote sits as the last static line under the form — small, muted. */
.re-geo__footnote {
  font-size: 12px;
  color: var(--ink-mute, #888);
  margin: 12px 0 0;
}

/* Action row lives inside the field-wrap (only visible after option-click).
   Buttons sit directly under the textarea, no awkward gap when collapsed. */
.re-geo__actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.re-geo__btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 4px;
  cursor: pointer;
  border: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.re-geo__btn--cancel {
  background: transparent;
  color: var(--ink-soft, #555);
  border: 1px solid var(--rule-strong, #ccc);
}

.re-geo__btn--cancel:hover {
  background: var(--bg-sunken, #f5f3ee);
}

.re-geo__btn--submit {
  background: var(--ink, #1a1715);
  color: #fff;
}

.re-geo__btn--submit:hover {
  background: var(--ink-soft, #333);
}

.re-geo__btn--submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.re-geo__status {
  margin-top: 12px;
  font-size: 13px;
}

.re-geo__status--error {
  color: #b00020;
}

.re-geo__success {
  background: rgba(47, 138, 31, 0.08);
  border: 1px solid var(--accent, #2f8a1f);
  border-radius: 4px;
  padding: 18px 22px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink, #1a1715);
}

@media (max-width: 720px) {
  .re-geo { padding: 20px 18px; margin: 48px 0 24px; }
  .re-geo__title { font-size: 19px; }
  .re-geo__actions { width: 100%; }
  .re-geo__btn { flex: 1; }
}

/* Compact variant for sidebar placement */
.re-geo--compact { padding: 18px 20px; margin: 0; }
.re-geo--compact .re-geo__title { font-size: 18px; margin-bottom: 6px; }
.re-geo--compact .re-geo__intro { font-size: 13px; margin-bottom: 14px; }
.re-geo--compact .re-geo__option { padding: 10px 12px; gap: 10px; }
.re-geo--compact .re-geo__option-icon { width: 22px; height: 22px; font-size: 13px; }
.re-geo--compact .re-geo__option-label { font-size: 13px; }
.re-geo--compact .re-geo__option-desc { font-size: 12px; }
.re-geo--compact .re-geo__textarea { min-height: 70px; font-size: 13px; }
.re-geo--compact .re-geo__input { font-size: 13px; padding: 8px 12px; }
.re-geo--compact .re-geo__footnote { font-size: 11px; margin-top: 10px; }
.re-geo--compact .re-geo__actions { width: 100%; }
.re-geo--compact .re-geo__btn { flex: 1; padding: 8px 12px; font-size: 13px; }
.re-geo--compact .re-geo__field { margin-bottom: 0; }

/* Even more compact + email toggle */
.re-geo--compact { padding: 14px 16px; }
.re-geo--compact .re-geo__textarea { min-height: 56px; padding: 8px 10px; }
.re-geo--compact .re-geo__intro { margin-bottom: 12px; }
.re-geo--compact .re-geo__options { gap: 6px; margin-bottom: 0; }
.re-geo__email-toggle {
  background: transparent; border: 1px dashed var(--rule-strong, #ccc);
  padding: 6px 10px; font-size: 12px; cursor: pointer; border-radius: 4px;
  color: var(--ink-soft, #555); width: 100%; text-align: left;
  font-family: inherit; transition: border-color 0.15s ease, color 0.15s ease;
}
.re-geo__email-toggle:hover { border-color: var(--ink, #1a1715); color: var(--ink, #1a1715); }

/* Map card on smart_geo_page: constrain images so they don't overflow the card.
   The Drupal-rendered field_map_image carries width="400" height="200" attributes
   without max-width, so in a sidebar that's < 400px wide the PNG overflows. */
.standort-map .card img,
.standort-map .card iframe {
  max-width: 100%;
  height: auto;
  display: block;
}
