/* Survey create modal */
.modal--survey {
  max-width: 480px;
}

.survey-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 20px 20px;
}

.survey-form__section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.survey-form__label {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.survey-form__input,
.survey-form__textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  background: #f8fafc;
  padding: 12px 14px;
  font-family: Vazirmatn, inherit;
  font-size: 14px;
  color: #0f172a;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.survey-form__textarea {
  min-height: 88px;
  resize: vertical;
  line-height: 1.55;
}

.survey-form__input:focus,
.survey-form__textarea:focus {
  outline: none;
  border-color: rgba(200, 169, 107, 0.65);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(200, 169, 107, 0.14);
}

.survey-form__section--options {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(200, 169, 107, 0.22);
  background: linear-gradient(180deg, #fffdf8 0%, #ffffff 100%);
}

.survey-form__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.survey-form__section-title {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

.survey-form__add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px dashed rgba(200, 169, 107, 0.55);
  border-radius: 999px;
  background: #fff;
  color: #7a6238;
  font-family: Vazirmatn, inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}

.survey-form__add-btn:hover {
  background: rgba(200, 169, 107, 0.1);
  border-color: rgba(200, 169, 107, 0.75);
}

.survey-form__add-btn:active {
  transform: scale(0.98);
}

.survey-form__options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}

.survey-form__empty {
  margin: 0;
  padding: 14px 12px;
  border-radius: 12px;
  border: 1px dashed rgba(15, 23, 42, 0.12);
  background: rgba(248, 250, 252, 0.9);
  font-size: 12px;
  color: #64748b;
  text-align: center;
  line-height: 1.5;
}

.survey-option-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.survey-option-row__idx {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: rgba(15, 23, 42, 0.06);
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.survey-option-row__input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 11px;
  background: #fff;
  padding: 11px 12px;
  font-family: Vazirmatn, inherit;
  font-size: 14px;
  color: #0f172a;
}

.survey-option-row__input:focus {
  outline: none;
  border-color: rgba(200, 169, 107, 0.6);
  box-shadow: 0 0 0 3px rgba(200, 169, 107, 0.12);
}

.survey-option-row__remove {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 10px;
  background: #fff5f5;
  color: #dc2626;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.survey-option-row__remove:hover {
  background: #fee2e2;
  border-color: rgba(239, 68, 68, 0.35);
}

.survey-form__hint {
  margin: 8px 0 0;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  line-height: 1.4;
}

.modal--survey .modal-foot {
  padding: 14px 20px 18px;
}

@media (max-width: 480px) {
  .survey-form__section-head {
    flex-direction: column;
    align-items: stretch;
  }

  .survey-form__add-btn {
    justify-content: center;
  }
}
