/* Overlay */
.fc-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(10, 20, 60, 0.5);
  z-index: 9500;
  align-items: center; justify-content: center;
  padding: 20px;
  backdrop-filter: blur(3px);
}
.fc-overlay.fc-open { display: flex; }

/* Modal box */
.fc-modal {
  background: #fff;
  border-radius: 20px;
  width: min(720px, 100%);
  max-height: calc(100dvh - 40px);
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(10, 30, 90, 0.22);
  animation: fc-slide-in 0.22s ease;
}
@keyframes fc-slide-in {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

/* Header */
.fc-header {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 28px 28px 20px;
  border-bottom: 1px solid #E2E8F0;
  flex-shrink: 0;
}
.fc-close {
  width: 40px; height: 40px; flex-shrink: 0;
  border: 1.5px solid #BFDBFF; border-radius: 8px;
  background: #fff; color: #1C398E;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.15s, border-color 0.15s;
}
.fc-close:hover { background: #EDF6FF; border-color: #1C398E; }
.fc-header-text { min-width: 0; }
.fc-title {
  margin: 0 0 4px;
  font-family: 'Inter', sans-serif;
  font-size: 22px; font-weight: 700;
  color: #1C398E; line-height: 1.2;
}
.fc-subtitle {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 14px; font-weight: 400;
  color: #6D7580; line-height: 1.4;
}

/* Body */
.fc-body {
  flex: 1; overflow-y: auto; padding: 24px 28px;
  display: flex; flex-direction: column; gap: 14px;
  scrollbar-width: thin; scrollbar-color: #c8d6f0 transparent;
}

/* Field */
.fc-field {
  position: relative;
  background: #EDF0F7; border-radius: 12px;
  padding: 10px 48px 10px 16px;
  transition: background 0.15s;
}
.fc-field:focus-within { background: #E8EEF9; }
.fc-field--error { background: #FFF0F0; }
.fc-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 500;
  color: #6D7580; margin-bottom: 3px;
  line-height: 1;
}
.fc-input, .fc-textarea {
  display: block; width: 100%; border: none; background: transparent;
  font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 600;
  color: #1C398E; outline: none; padding: 0;
  resize: none;
}
.fc-input::placeholder, .fc-textarea::placeholder { color: #9aaacf; font-weight: 400; }
.fc-textarea { min-height: 140px; padding-top: 2px; }

/* Validation icon */
.fc-field-icon {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; display: none;
}
.fc-field-icon--ok  { color: #27ae60; }
.fc-field-icon--err { color: #E4575F; }
.fc-field--valid .fc-field-icon--ok  { display: block; }
.fc-field--error .fc-field-icon--err { display: block; }
.fc-field-hint {
  display: none; font-size: 12px; color: #E4575F;
  margin: 4px 0 0; font-family: 'Inter', sans-serif;
}
.fc-field--error .fc-field-hint { display: block; }

/* Textarea field — icon top aligned */
.fc-field--area .fc-field-icon {
  top: 18px; transform: none;
}

/* Footer */
.fc-footer {
  padding: 16px 28px 20px;
  border-top: 1px solid #E2E8F0;
  flex-shrink: 0;
}
.fc-btns {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-bottom: 14px;
}
.fc-btn {
  height: 52px; border-radius: 12px; border: none;
  font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 600;
  cursor: pointer; transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.fc-btn--cancel {
  background: #fff; border: 1.5px solid #1C398E; color: #1C398E;
}
.fc-btn--cancel:hover { background: #EDF6FF; }
.fc-btn--submit {
  background: #1C398E; color: #fff;
}
.fc-btn--submit:hover:not(:disabled) { background: #1530a0; }
.fc-btn--submit:disabled {
  background: #E2E8F0; color: #90A1B9; cursor: not-allowed;
}
.fc-legal {
  color: var(--Label-Text-Secondary, #6D7580);
  font-size: 14px;
  font-weight: 500;
  line-height: 120%; /* 16.8px */
}
.fc-legal a { color: #1C398E; }

/* Success state */
.fc-success {
  display: none; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 48px 28px; text-align: center; gap: 16px;
}
.fc-success.fc-open { display: flex; }
.fc-success-icon {
  width: 64px; height: 64px;
  background: #EAF9F1; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.fc-success-title {
  margin: 0;
  font-size: 20px; font-weight: 700; color: #1C398E;
}
.fc-success-text {
  margin: 0;
  font-size: 15px; color: #6D7580; max-width: 340px;
}

/* Responsive */
@media (max-width: 480px) {
  .fc-modal { border-radius: 16px; }
  .fc-header { padding: 20px 18px 16px; }
  .fc-body   { padding: 18px; }
  .fc-footer { padding: 14px 18px 18px; }
  .fc-btns   { grid-template-columns: 1fr; }
  .fc-btn--cancel { order: 2; }
  .fc-btn--submit { order: 1; }
  .fc-title  { font-size: 19px; }
}

/* ── lr-modal (Rechtliches Problem melden) ── */
.lr-select { appearance: none; -webkit-appearance: none; -moz-appearance: none; padding-right: 36px; cursor: pointer; }
.lr-select-arrow { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: #1C398E; }
.lr-info-box {
  display: flex; gap: 10px; align-items: flex-start;
  background: #EDF6FF; border-radius: 12px; padding: 12px 16px;
}
.lr-info-box__icon { flex-shrink: 0; color: #1C398E; margin-top: 1px; }
.lr-info-box p { font-size: 14px; color: #1C398E; margin: 0; line-height: 1.5; font-family: 'Inter', sans-serif; }
.lr-textarea { min-height: 130px; resize: vertical; padding-top: 14px; font-family: inherit; }
.lr-checkbox-row { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.lr-checkbox-row input[type="checkbox"] { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; accent-color: #1C398E; cursor: pointer; }
.lr-checkbox-label { font-size: 14px; color: #1C398E; line-height: 1.45; font-family: 'Inter', sans-serif; }
.lr-privacy { margin: 0 0 14px; }
